Let's say I have an EA running on the EURUSD M15 chart... and I mistakenly change the Period, or the Currency (by dragging a pair or clicking a new timeframe button)... is there a way to do any of the following?
1. Trap the fact that the currency has changed (for the EA running using a static var?)
2. Cancel/reject/(don't allow) the change to occur once trapped
3. Disable the ability of Period and/or Currency changes in an EA (without hard-coding the EA to a specific pair or timeframe)
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.
Hello all,
Let's say I have an EA running on the EURUSD M15 chart... and I mistakenly change the Period, or the Currency (by dragging a pair or clicking a new timeframe button)... is there a way to do any of the following?
1. Trap the fact that the currency has changed (for the EA running using a static var?)
2. Cancel/reject/(don't allow) the change to occur once trapped
3. Disable the ability of Period and/or Currency changes in an EA (without hard-coding the EA to a specific pair or timeframe)
4. ???
Thank you for your replies!
-charliev