Sell after x amount of bars?

Forums ProRealTime English forum ProOrder support Sell after x amount of bars?

Viewing 3 posts - 1 through 3 (of 3 total)
  • #8051

    Hello! Need help with code to let me sell or exitshort (if on market) after x amount of bars.

    Thanks!

    #8062

    Hello, you need the TRADEINDEX instruction which save the BARINDEX number when the trade were launched.

    For example, if you want to exit a trade that have at least 5 bars elapsed since it were launched:

     

    #8089

    Thank you Nicolas!

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

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