how to close trades at the end of the candle stick

Forums ProRealTime English forum ProOrder support how to close trades at the end of the candle stick

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

    hi,

     

    how do i write code that will close trades automatically at the end of the time period. for example if i am trading on a 5 minute period, it will close the trade at the end of the 5 minutes.

     

    thanks.

    #206219

    Simply add SELL AT MARKET or/and EXITSHORT AT MARKET at the beginning of your code, as this will ensure your trades will be closed at the end of  the candle, when your strategy is run.

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