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

 

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. 

 
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.