- Trading Signals
- New Order Box Technical Problem
- How to tell EA that input parameter has changed
You can use:
bool ChartSetSymbolPeriod( long chart_id, // Chart ID string symbol, // Symbol name ENUM_TIMEFRAMES period // Period );ChartSetSymbolPeriod - Chart Operations - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5

- www.mql5.com
You can use:
ChartSetSymbolPeriod - Chart Operations - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5Sorry I don't see how to use it so that it launches onInit() when I click ok without changing any parameters. Do you have an example?
Thanks
If nothing has been changed, then there is no way to determine that this button was pressed.
Sorry I don't see how to use it so that it launches onInit() when I click ok without changing any parameters. Do you have an example?
Thanks
Oh right. Sorry. I was thinking more in terms of a script as a workaround.
As fxsaber said, no can do with the native button.
If you're willing to have your own custom button, there are numerous MQL5 Articles about custom buttons, panels, and modules.

Oh right. Sorry. I was thinking more in terms of a script as a workaround.
As fxsaber said, no can do with the native button.
If you're willing to have your own custom button, there are numerous MQL5 Articles about custom buttons, panels, and modules.
I will look because on the mt4 code that I converted to mt5 the developer managed to do it but I do not have the mt4 source code

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use