Hello gentlemens,
I am facing an issue, I want to know the hour and minutes values on every candle.
After placing:
I always get 0 value, am I doing something wrong here?
Is it on the daily chart?
Hello gentlemens,
I am facing an issue, I want to know the hour and minutes values on every candle.
After placing:
I always get 0 value, am I doing something wrong here?
Is it on the daily chart?
Yes was testing on daily chart, I guess hour and minutes works in different time periods? I did test on 1h range and it prints the hours, minutes and day of the week :)
Andrew, I am doing this test now when market is closed. TimeCurrent() I have not played with, you think is better to have proper times data?
Is it on the daily chart?
Yes was testing on daily chart, I guess hour and minutes works in different time periods? I did test on 1h range and it prints the hours, minutes and day of the week :)
Your code suggests that it should only print when a new bar opens.
A new daily bar opens at 00:00, so unless there are no ticks for the first minute, of course hour and minutes will be 0.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello gentlemens,
I am facing an issue, I want to know the hour and minutes values on every candle.
After placing:
I always get 0 value, am I doing something wrong here?