Stochastic Oscillator, the beginning - page 30 1...232425262728293031323334353637...130 New comment forex_tsd 2009.07.16 07:31 #291 fxbs: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 fxbs 2009.07.16 21:26 #292 sto rsi and sto cci mod Files: stochasticcci_je.mq4 4 kb stochasticrsi._je.mq4 4 kb sto_cci_rsi.gif 16 kb matfx 2009.07.17 05:54 #293 fxbs:sto rsi and sto cci mod Thanks fxbs, i liked it. forex_tsd 2009.07.17 10:17 #294 Thank you fxbs, The work you do is really helpful for people. That makes your forum really great and popular one. Thank you again s5804 2009.07.21 13:11 #295 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 My own Stochastics in Indicators with alerts/signal Help Developing Simple Stochastic fxbs 2009.07.21 18:56 #296 s5804: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 do you mean " long periods of 100.0 or 0.0." when sto price field cl-cl? Files: sto_pf.gif 25 kb s5804 2009.07.21 20:17 #297 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. Files: picture.png 37 kb Easy iCustom and Alerts! RSI ADX Stochastic One of the indicator fxbs 2009.07.21 21:05 #298 s5804: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: Files: sto_cl-cl_hhll.gif 22 kb sto_cl-cl_hhl2l.gif 26 kb s5804 2009.07.21 21:11 #299 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? Various My own Stochastics in smma ? s5804 2009.07.21 21:23 #300 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 Playsound from Indicator Indicators with alerts/signal Stochastic EA 1...232425262728293031323334353637...130 New comment
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