It's impossible. You can't put two metatraders in the one directory and each MT use its own directory for Global Variable. You have to use the file and winapi functions.
Roger09: It's impossible. You can't put two metatraders in the one directory and each MT use its own directory for Global Variable. You have to use the file and winapi functions.
Thank you for the response. I was afraid of that. Do you have any examples on how to use the winapi?
If the start_time and stop_time parameters are defined, the function returns the number of bars in the specified time interval, otherwise it returns the total number of bars. If data for the timeseries with specified parameters are not formed in the terminal by the time of the Bars() function call, or data of the timeseries are not synchronized...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
It's impossible. You can't put two metatraders in the one directory and each MT use its own directory for Global Variable. You have to use the file and winapi functions.
It's impossible. You can't put two metatraders in the one directory and each MT use its own directory for Global Variable. You have to use the file and winapi functions.
Thank you for the response. I was afraid of that. Do you have any examples on how to use the winapi?
File Operations via WinAPI - MQL4 Articles
https://www.mql5.com/en/code/8314
hi guys, anyone know how we can use global variable to keep stop alerting when change between timeframes. or show me a sample indicator that use it...
in regular mode, we stop repeating alerts by a datetime like:
but this not work in this case and each time you change timeframe it will alert again.
thanks
hi guys, anyone know how we can use global variable to keep stop alerting when change between timeframes. or show me a sample indicator that use it...
in regular mode, we stop repeating alerts by a datetime like:
but this not work in this case and each time you change timeframe it will alert again.
thanks
This is one possibility (you can call IsNewBar() any number of time, but only call TickEnded() once at the end of OnTick()):
This is one possibility (you can call IsNewBar() any number of time, but only call TickEnded() once at the end of OnTick()):
wow, its worked. almost all last previous 24 hours i was busy with this problem!, thanks man.