Why don't you have a candle timer for MT5? Or do you have one? If not, do you have any plans? I'll wait for your answer, thanks
Why don't you have a candle timer for MT5? Or do you have one? If not, do you have any plans? I'll wait for your answer, thanks
Rajesh Kumar Nait, 2023.01.14 20:51
Shows moving Last Price on Bid Line, LAst 24 hours percentage change, switch chart from arrow keys and more..Bad code. No tick, no update.
Similar bad code.
Explained here why :
Forum on trading, automated trading systems and testing trading strategies
Alain Verleyen, 2025.12.30 21:24
Strictly speaking this script will not work correctly depending on the symbols selected in the Market Watch.
TimeCurrent() is returning the last update time of any symbol in the Market Watch, if they are a lot of symbols then fine, if there are only symbol(s) with low activity, your counter will not move.
Additionally, using sleep(1000), you can have a shift of almost 1 second in your counter.
Exemple : it should be 00:37:05
Please try to avoid taking all personally. I don't care who coded it and it's not about what I like or doesn't like.
One of my goal on this forum is to avoid poor code, bad code, buggy code to broadcast, with my smalls means.
There's been a few different approaches and they all work just fine.
OnTick can be precarious because not always do ticks arrive, so OnTimer would be best or a constantly running while loop.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use