You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I'm not sure if this has been addressed already but this rounding logic has inconsistencies.
Here is a potential fix.
Oops, your right, int((st-gt + 1800)/3600) truncates toward zero not rounds. So use (int)MathRound( (st-gt)/3600.)
Exactly what I used in Indicators: Zero Lag Timer - Indices - Articles, Library comments - MQL5 programming forum
Alternative, still using integer arithmetic:
I'm not sure if this has been addressed already but this rounding logic has inconsistencies [...]