Hello,
Could somebody help me with the code for a trendindictor based on the Stochastic indicator (20, 3, 3)?
In the following way:
The Stochastic indicator is used to reflect the up and down cycle. It takes in account the highest closingprice when it went above 80 and the lowest closingprice when it went below 20
If in a cycle from below 20 to above 80 the closing price is higher than the previous cycle that the stochastic rose above 80, I want a green signal until the moment that in a cycle from 80 down to below 20 the closing price is lower than the closing price in the previous cycle when the stochastic fell below 20.
I would be very grateful.