How to trade specific hours

Forums ProRealTime English forum ProOrder support How to trade specific hours

Viewing 4 posts - 1 through 4 (of 4 total)
  • #206420

    Hi,

    how to a make it so my algorithms only trade for certain hours a day. I want to keep the codes running but only trade between for example, 9am -5 pm. is this done within the code, or within the pro real time software.

    thanks

    #206422

    There you go (just add TradingAllowed to your conditions to enter a trade):

     

    #206431
    JS

    Hi @ACACAC

    You say “I want to keep the codes running” but do you also want your positions to remain open outside of your trading hours?

    If you also want to close your positions outside your trading hours, you can use:

    DefParam FlatBefore=090000

    DefParam FlatAfter=170000

    1 user thanked author for this post.
    #206457

    Hi everybody,

    another way I’m using to trade in certain period is adding to the IF condition this:  and (hour=>H1 and hour<=H2)

    In this way you can put H1 and H2 as variables to be checked to find the best hours to trade.

     

     

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

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