Forums › ProRealTime English forum › ProOrder support › Your very own code snippet library › Reply To: Your very own code snippet library
04/20/2018 at 4:41 PM
#68882
Hi,
It seems that we all have the same method…
Here is a snipet “close after n bars”… I do use it live in one of the strategies (hourly basis)
Close after n bars
1 2 3 4 5 |
x = 8 IF BarIndex - TradeIndex = x Then Sell at Market endif |