Count candles from precise time until EA launch
-
Good morning everyone,
I made several attempts and looked for solutions in the forum.
I would like to solve this problem:
I have to count the candles passed from 01:00 to the time I start the EA.
Example :
EA start at 10:05 am, with TF 1h from 00:00 no. 10 candles have passedExample:
EA start at 10:05 am, with TF 4h from 00:00 no. 2 candles have passedThanks if you help me
-
That will depend on the time frame the bot is working on. You don't need to count candles if you know what time is it now when compared to the initial hour. Otherwise you can create a counter variable adding +1 every time a new candle is created.
-
Thanks for the reply, but what do you mean by "You don't need to count candles if you know what time is it now when compared to the initial hour"? What block should I use?