Counter to Count The Candle Itself

alhabob

Active Trader
Feb 19, 2010
3
0
32
Dears,
can anyone make a strategy to counter the candle itself ONLY.

Example :- If I use the TimeFrame 5 Minutes ( Thats mean 300 Seconds )

Now I want strategy to make counter to the candle of 5 Minutes, from start until end of the 300 Seconds, Regardless of the stander normal candle watch

and again start counter for the new candle 300 Seconds.
and this strategy Possible for all TimeFrames 😕

because some time you find the candle watch MetaTrader are STOP or HANG up, and Suddenly the new price with new candle are come.

of course this is only second, but i make New strategy depend on the second.

So please Can any one help me on that. 😀
 
It's very difficult to understand what you say, but if you want an indicator that would let you know an exact time until the next candle then it's not possible in MetaTrader as the new candles there start not at an exact time but only when the first tick (quote) in the new time period comes from the server.

For example you have one M5 candle started at 13:30. By the logic it should end at 13:34:59 and the new candle should start at 13:35. But, if the markets are slow, you can see the old candle at 13:35:10 or even later and the new one will start only when the new tick with a price rate will come. Sometimes it takes milliseconds, sometimes it takes seconds, but during holidays it may probable take up a minute or more.
 
Thk, my friend, Yes you are understand what i want, but why there is no indicator can make a counter Depends of the candle itself, i hope someone from the programer can do , i try but the metatrader are HANG UP, because of the LOOP. but my program Language in MQ4 are still weak.
 
Thk, my friend, Yes you are understand what i want, but why there is no indicator can make a counter Depends of the candle itself, i hope someone from the programer can do , i try but the metatrader are HANG UP, because of the LOOP. but my program Language in MQ4 are still weak.
It can't be done in MT4 because the indicators also work based on ticks coming from the server. It will count seconds but it will produce such outputs as 1..2..4.......297..303, depending on the frequency of the ticks coming from your broker.
 
It can't be done in MT4 because the indicators also work based on ticks coming from the server. It will count seconds but it will produce such outputs as 1..2..4.......297..303, depending on the frequency of the ticks coming from your broker.


thanks, again but is there any way to make only clock counting Continuous ?
regardless the time came from server, ONLY this counter is start first time correctly with one candle after that this counter will be in loop.