how to temporarily stop auto trading?

Forums ProRealTime English forum ProOrder support how to temporarily stop auto trading?

Viewing 5 posts - 1 through 5 (of 5 total)
  • #29017

    what is the code for ‘temporarily stop trading’ for 3 or 4 hours if a stop loss was activated?

    #29021

    something like (i did not test it)

     

    1 user thanked author for this post.
    #29121

    If you are trading the 1 hour timeframe, you can simply use TRADEINDEX keyword, that give you the barindex number where the trades were launched at market. Then you only need to make differences between the current barindex and the last tradeindex to know if there is already 4 bars elapsed.

    #30606

    still didnt make it

    set stop ploss 50 then set my system to stop one hour in 5 min timeframe?

    #30806

    1 hour is 12 bars of 5 minutes.

    So your boolean condition to test if 12 bars has passed since the trade launch is:

     

Viewing 5 posts - 1 through 5 (of 5 total)

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