Very odd problem from indicator buffer
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Your topic has been moved to the section: MQL4 and MetaTrader 4
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Sorry will double check next time.
Anyway I've found the problem, because a tick in a single pair is independent to other pair's tick, so the data from other pairs only gets updated according to the chart symbol's tick instead of the real tick from the pair requested.
Not sure if there is a work around this?
Sorry will double check next time.
Anyway I've found the problem, because a tick in a single pair is independent to other pair's tick, so the data from other pairs only gets updated according to the chart symbol's tick instead of the real tick from the pair requested.
Not sure if there is a work around this?
SymbolInfoTick()
My indicator draws multiple pair's daily percetage change as line in the indicator window.
However I noticed a very weird problem, that the value are sometimes wrong as the ticks goes by on chart, but if I refresh or reload the indicator,
the value goes back to the correct value. But this does not happen in the strategy tester using everytick mode, everything is correct there when I ran the indicator.
Have anyone ever encounter such problem? Any help would be appreciated. Thanks in Advance.
Below are the codes: