how to reload the custom indicator

 

hi every one

how i can reload an custom indicator completely 

i mean like why i go to setting of input and press ok and custom indicator applied again to the chart?

i know about ChartSetSymbolPeriod but when i change the period how i can back to original period and also the indicator input will back to default and not the user input

 
Seyedmasoud Hashemi: how i can reload an custom indicator completely

Why do you think you need to? If it doesn't paint properly, it is broken; fix it.

 

thanks for answer 

it works first good but after some times and some candle pass some graphic object (like an arrow buffer ) disappear and appear only after the reloading the indicator 

how can this happen?

 
Seyedmasoud Hashemi:

thanks for answer 

it works first good but after some times and some candle pass some graphic object (like an arrow buffer ) disappear and appear only after the reloading the indicator 

how can this happen?

Maybe your indicator failed to calculating on every tick (oncalculate execution function), so buffer value became 0 or EMPTY_VALUE, maybe

 
Seyedmasoud Hashemi: how can this happen?

Do you really expect an answer? There are no mind readers here and our crystal balls are cracked.

Always post all relevant code.
     How To Ask Questions The Smart Way. 2004
          Be precise and informative about your problem

We can't see your broken code.

Fix your broken code.

With the information you've provided — we can only guess. And you haven't provided any useful information for that.

Reason: