PDA

View Full Version : Time till next bar or candle



OXNWLGOC28SALVAME
03-11-2009 11:18, 11:18 AM
Appreciate if anyone can help on this. I tried to display time until bar but on only chart. Let say I start 5M chart, within this chart I would like to show how long before next bar on all timeframe, begin from 1M until H4.

If found that a code to see next pub on current chart according to below:

Inserted Code mm=TimeNumber91;0#93; Period()*60-CurTime(); ss=mm 60; mm=(mm-mm`)/60;
Another instance I open 5M chart but I would like to understand how much time until next bar on H4.

Thank you Beforehand.

Pkslagisimo
02-03-2022 23:46, 11:46 PM
There you go, no need to code anything. Just drop it in your chart (any timeframe) and it will show you the time to next pub.
https://www.nigeriaforextrading.com/attachments/15189505041745880378.mq4

nemea203
02-04-2022 01:07, 01:07 AM
Appreciate if anyone can help with this. I tried to display moment but on chart. Let say I start 5M chart, within this chart I would like to show how much time until next bar on all timeframe, start from 1M till H4.

If found a code to view next pub on current chart according to below:

Inserted Code mm=Time#91;0#93; Period()*60-CurTime(); ss=mm 60; mm=(mm-mm`)/60;
Another instance, I open 5M chart but I would like to understand how much time until next bar on H4.

Thank you Beforehand.
And here's another....
https://www.nigeriaforextrading.com/attachments/1518950505544196714.mq4

OXNWLGOC28SALVAME
02-04-2022 02:28, 02:28 AM
Hi guys, thank you.
I really do have, however the one I need is to demone the time to next bar on single chart but all period frame. 1 wish to open 1 chart just, but it is going to show the time to next bar for all period frame.

Hope I do not confuse you.