MQL and stochastic. How can I receive a value from 0 to 100? (solved)

 

Good afternoon,

I have a simple problem and maybe you can help me to sort it out. I want to use full stochastics into my Ea, which displays values from 0 to 100. Like this:

However, the EA receives floating numbers that are not in the 0 - 100 range. How can I make iStochastic() to behave as in default MT4 indicator?

Thanks!


 
flaab:
However, the EA receives floating numbers that are not in the 0 - 100 range. How can I make iStochastic() to behave as in default MT4 indicator?
It does. You're doing something wrong. Post your code.
 
WHRoeder:
It does. You're doing something wrong. Post your code.

You are right, it does. I was confusing some variables! Sorry to bother you. Thanks!