Count the bar in the last day

Created at 14 Apr 2024, 14:23
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
TI

tikahcm2

Joined 03.02.2024

Count the bar in the last day
14 Apr 2024, 14:23


Hi everybody,
I have a problem with the code in counting candlesticks during the trading day on small time frames (m2,m5,m15).
With the following code. It only appears on the first bar of the day.

Please help me

 

@tikahcm2