Is there a custom calculation starting point in MQL5 indicator?

 

Dear All,

I am a newbie who just into the MQL5 programming.

Could I ask when program an EA or indicator, can I use a customisiable calculation starting point. For instance, when I apply an indicator to the chart, it will let me choose a bar as a staring point to calculate, rather than calculate from the very beginning of the chart. 

Thank you very much for reading the post.


YUTEN

 
yuten:

Dear All,

I am a newbie who just into the MQL5 programming.

Could I ask when program an EA or indicator, can I use a customisiable calculation starting point. For instance, when I apply an indicator to the chart, it will let me choose a bar as a staring point to calculate, rather than calculate from the very beginning of the chart. 

Thank you very much for reading the post.


YUTEN

If you need a visual presentation, and/or  calculation on history, you will better chose an indicator.

You can choose to calculate what you want, for any candle. Please show your code if you need coding help.

Reason: