Forums › ProRealTime English forum › ProOrder support › IsLastBarUpdate – proper way to code and use › Reply To: IsLastBarUpdate – proper way to code and use
08/02/2021 at 5:46 PM
#174581
Ok, your code is doing exactly what you want, what’s the issue?
The only issue I can detect (but you may even take it as an advantage) is that if your trade closes before the 15-minute entry candle does, another trade will open in the same direction because C1 will change only at the closing of the 15-minute candle. You may leave it as is, if that’s what you want, or you need some additional code to prevent entering further trades before the 15-minute candle closes.