Rank: Newbie
Groups: Registered, Registered Users Joined: 8/17/2009(UTC) Posts: 1 Location: India
|
Hi,
I want to test 30min data on intraday basis....i mean any open position should be squared at day end. For e.g: testing 5000 bars but on intraday basis only.....at the day end position is zero.. i dont understand what to write specifically for the same...can anybody assist me plz?
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,960
Thanks: 92 times Was thanked: 155 time(s) in 150 post(s)
|
For a system test, I suggest using this to find the last bar of each day: Code:
DayofMonth() <> Ref( DayofMonth(), +1)
This will always be true on the last bar of each trading day. If your system is using any delay from the signal to the open of the trade, you will need to add that day to the +1 in the Ref() function. For example, if you have "Delay order Opening" set to 2, then you would need to change the +1 to a +3.
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.