View Full Version : Time series question
11-19-2007, 02:05 AM
Am I making a mistake here? Why are there trades after 11pm?
11-19-2007, 02:08 AM
Sorry, I don't follow.
11-19-2007, 02:28 AM
Sorry pls see thumbnail
11-19-2007, 07:38 AM
Would someone please respond to this post?
11-19-2007, 07:40 AM
A support rep will contact you shortly.
11-19-2007, 09:37 PM
I am assuming you are running on a 5minute chart. Is this correct? The reason you are getting trade after 11 is because your condition is set at Time not Time. When you set it at Time the comparison you are doing is effectively saying "If the time of the previous bar is less than 11pm, enter long". When you are backtesting this is what is happening with that code. On the current bar (time 11pm) it looks at the time of the previous bar (10:55pm). That time is less than 11pm so it wants to enter a trade. It enters the trade at the open of the next bar (11:05pm) because the 11pm bar is already completely closed and the next point in time is the open of the 11:05 bar hence the 11:05 timestamp on your trade.
11-20-2007, 06:16 AM
You ae the man Josh! Thank you