Strategies action timeframe

Forums ProRealTime English forum ProOrder support Strategies action timeframe

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • #212077

    Hello guys.

    If I wanted to modify one or more strategies that are on this site by limiting the action timeframe (for example: only trading from Monday to Friday, from 08:30 to 12:00 and from 14:00 to 18:00), how should I proceed with the code?

    In other words, (i) is there a standard formula to use (copy and paste), and (ii) in which part of the code should I exactly paste this formula (at the end before the closing formula)?

    Thanks in advance.

    Edo

    #212078

    There you go:

    Days are identified from 0 (Sunday) through 6 (Saturday), to disable, say WEDNESDAY, set td3 = 0.

    Add tdCond to your entry conditions.

     

    2 users thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login