I use close-close.
Your picture demonstrates the 100.0 and 0.0 periods.
Attached is a picture I just made from EUR/USD with stoch 8,3,3 cl-cl setting.
Only the K line is visible.
I can't get my head around why the K line bottom on 0.0 when the recent close is not the lowest low of the period.
is it not?
hhll & cc:
I am guessing the meaning of cl-cl (can't find it in the manual)
cl-cl means that the stock formula is using the highest close and lowest close, instead of the highest high and highest low.
I can verify this with my own calculations of, K% lines with smoothing 1.
However how is the smoothing calculated?
K% values for 8,3,1 are, 0.6428, 0.5, 0.0
To get the smoothed value for K% 8,3,3 on shall 3 period SMA of K% above.
(0.6428 + 0.5 + 0.0) / 3 = 0.3809
However the Meta Trade 4 chart has the value 0.4285
What am I missing with the smoothing?
From the code I now understand how the smoothing is done
dividing the sum of low with the sum of highs is something else than an SMA.
I am curious is the Meta Trader Stochastic.mq4 very special or is this approach common in most other charting products.
The smoothing seems to be far of from the normal documentation about full stochastic.
everyting right with mt4 sto:
stock sto (mt4 custom ind folder) w price cc mod
or u can do:
I agree. Just another endless example of where proper documentation (with beginners in mind) would have helped.
Thanks for bringin me up to speed.
most of the time- no documentation whatsoever
like this-https://www.mql5.com/ru/code/9028 nobody knows what it is (and where it came from)
it had tried it but it repaints :P
Not sure if this is somewhere on the site but I'm hoping someone could help me with an alert.
I am using the normal stochastic indicator (14,3,3) and what I would like is to have an alert when both lines are in OB/OS (20/80) at the close of 3 consecutive bars.
Would anyone be able to help?
average of weighted STO_RSI_CCI_3in1, codebase