Forums ProRealTime English forum ProOrder support Multi timeframe and countofposition Reply To: Multi timeframe and countofposition

#122930

This would means that my code for the 15 minutes will hit 3 times (if the default time frame is 1 minute).

Without UpdateOnClose, it would refresh 15 times since there is 15 bars of 1 minute in a 15-minutes TF.

Without UpdateOnClose, it would refresh only 1 time at the end of the 15-minutes TF period.

But the result of your show15 variable will most likely be the same as the COUNTOFPOSITION[1] is the previous 15-minutes bar count of position !