Download MetaTrader 5

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

To add comments, please log in or register
zeno
275
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. 

Alain Verleyen
Moderator
29908
Alain Verleyen  
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