Download MetaTrader 5

How to change default period from M1 to M30 in custom indicator

To add comments, please log in or register
Do you want to write a trading robot? Find solution in MQL5 Reference!
zeno
275
zeno 2014.05.10 19:53 

Hello,

By launching a custom indicator, the default period is M1. Even if I close all charts, it will still generate the M1 as default period.

Can this be changed in oncalculate function

Many thanks. 

Alain Verleyen
Moderator
30711
Alain Verleyen 2014.05.10 22:08  
zeno:

Hello,

By launching a custom indicator, the default period is M1. Even if I close all charts, it will still generate the M1 as default period.

Can this be changed in oncalculate function

Many thanks. 

What do you mean ? A custom indicator attached to a chart will run on this current chart period.
To add comments, please log in or register