Forums ProRealTime English forum ProBuilder support Count condition help Reply To: Count condition help

#69179

The count of the candles is working now, thank you.

The only problem left is that when checking if a new high is formed, it looks at the previous candle rather than at the candle which was the previous high.

For example, on the chart you attached, let’s look at the first candles on the left which have the numbers 1 2 3 underneath. The candle which has the number 3 is followed by a red one and then by a blue one. The blue candle should have been number 4 (the high and low of this are less than the high and low of candle with count 3; red candle after the candle with the count of 3 should be ignored as the high of this is not higher than the high of candle 0)but it doesn’t because the red candle after the one with the count of 3 resets the count to 0 because is looking at the candle with the count 3 and a new high is formed. The high of the red candle should be looking at the high of the candle before the candle with the count 1 as this was the previous candle with the count 0.

I hope this makes sense, as is quite complicated to explain.

Thanks