You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
something like this you looking 4?
Thank you for replying quickly. That is kinda that i am looking for. Actually the one is perfect like stochrsi. However it is ok
Thank you again
sto rsi and sto cci mod
sto rsi and sto cci mod
Thanks fxbs, i liked it.
Thank you fxbs,
The work you do is really helpful for people. That makes your forum really great and popular one.
Thank you again
Stochastic high low strange in Metatrade 4
Hello
put a Stochastic (8, 3, 1) on EUR/USD 5M and watch how the K line is sometimes on full 100.0 or min 0.0 for many bars.
This is strange!
According to the stochastic formula to get 100.0, the
(recent close - lowest low n) / (highest high n - lowest low n) > 1.0
This means that resent close must be equal or higher that highest high n.
However this is occasionally one bar, but rarely for many bars in a row.
After checking the bars very carefully maybe the recent bars high was the highest, but the recent close is bellow the bars high...?
The Stochastic.mq4 code looks correct
for(k=(i+Slowing-1);k>=i;k--)
{
sumlow+=Close[k]-LowesBuffer[k];
sumhigh+=HighesBuffer[k]-LowesBuffer[k];
}
Therefore I have no idea why the chart is showing this long periods of 100.0 or 0.0.
I appreciated very much for help to understand what is going on.
Thank you in advance
Hello
put a Stochastic (8, 3, 1) on EUR/USD 5M and watch how the K line is sometimes on full 100.0 or min 0.0 for many bars.
This is strange!
According to the stochastic formula to get 100.0, the
(recent close - lowest low n) / (highest high n - lowest low n) > 1.0
This means that resent close must be equal or higher that highest high n.
However this is occasionally one bar, but rarely for many bars in a row.
After checking the bars very carefully maybe the recent bars high was the highest, but the recent close is bellow the bars high...?
The Stochastic.mq4 code looks correct
for(k=(i+Slowing-1);k>=i;k--)
{
sumlow+=Close[k]-LowesBuffer[k];
sumhigh+=HighesBuffer[k]-LowesBuffer[k];
}
Therefore I have no idea why the chart is showing this long periods of 100.0 or 0.0.
I appreciated very much for help to understand what is going on.
Thank you in advancedo you mean " long periods of 100.0 or 0.0." when sto price field cl-cl?
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.
I use close-close. 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?
Example,
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
while(i>=0)
{
double sumlow=0.0;
double sumhigh=0.0;
for(k=(i+Slowing-1);k>=i;k--)
{
sumlow+=Close[k]-LowesBuffer[k];
sumhigh+=HighesBuffer[k]-LowesBuffer[k];
}
MainBuffer=sumlow/sumhigh*100;
i--;
}
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.
THX