I do not understand how to write the code to create the below indicator. Would any of you help, please?
The indicator is a slight variation of the Stochastic oscillator, having two lines.
Line 1:
SET A = CLOSE
SET B = MIN(CLOSE, n)
SET C = MAX(CLOSE,n)
SET D = A - B
SET E = C - B
SET F = D/E
SET G = F*100
Line 2:
N-period EMA of the above line 1.
Comment