How to detect a New Bar in Muti Symbol ?
Vik 3001:
Before (Without Array ) :-
It is working one symbol but I saw the MQL5 Forum Website ( https://www.mql5.com/en/forum/5762/page2 )
After (With Array) :-
It doesn't work multi Trade to multiple symbol
Please solve this code 🙏
Is your bar in another symbol closing in millisecond or second (which is not defined in PERIOD_CURRENT )? or Is your broker having time offsets in each symbol?
Why you set prevTime[i] to zero every time?
It's not clear where the loop is. Where the iteration is happening...
I am sorry Sir/Madam..
It is working because I wronged this "prevTime[i]" code 👇
static datetime prevTime[] ; ArrayResize(prevTime,NumOfSymbols); prevTime[i] = 0;
Before (Without Array ) :-
It is working one symbol but I saw the MQL5 Forum Website ( https://www.mql5.com/en/forum/5762/page2 )
After (With Array) :-
It doesn't work multi Trade to multiple symbol
Please solve this code 🙏