Discussions
»
Product and Service Development
»
MetaStock
»
How to limit system test to specific hours [RESOLVED]
Rank: Newbie
Groups: Registered, Registered Users Joined: 3/2/2005(UTC) Posts: 2
|
How to specify in the test formula to trade between 9:30 am and 11 am only? I'm finding very little information about this anywhere, if somebody knows, please post it.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
If you are using realtime data, you need to modify your formula and add a time statement.
For example my original signal was : Cross(C,Mov(C,10,E))
I would modify the formula to read :
Cross(C,Mov(C,10,E)) and
(
(Hour()=9 and minute()>=30)
or
Hour()=10
)
Hope this helps.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 3/2/2005(UTC) Posts: 2
|
This helps a lot, thanks :)
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Discussions
»
Product and Service Development
»
MetaStock
»
How to limit system test to specific hours [RESOLVED]
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.