indicator returns 0.0

 

Hello everyone,

I'm developing an expert advisor that uses the stochastic(h1) and sar(d1) indicators. I noticed that sometimes  the indicators return 0.0. Why does this happen?

 

Thank you in adance 

 

Do you use iStochastic() and iSAR() or your own indicators?

You need to post the code in this case.

 
gooly:

Do you use iStochastic() and iSAR() or your own indicators?

You need to post the code in this case.

I use iStochastic() and iSAR() 
 
alessandrob83:
I use iStochastic() and iSAR() 
The 0.0 value indicates that there is an error?
Reason: