Stochastic Oscillator, the beginning - page 30

fxbs
3203
fxbs  

sto diff modes

(for histo & arrows set line modes to false)

efig
16
efig  

Thank you very much FXBS.

forex_tsd
85
forex_tsd  

CciStoch indicator

Hi all,

I am looking for cci stoch combo indicator. Any of you have this one? I got something about its code. Actually it would be grateful if making into mq4 format.

Thank you

Type : Indicator, Name : CCI - Stochastic

{Average(3,(Today's 14-day CCI reading - Lowest 14-day CCI reading

(over the past 5 periods)/Highest 14-day

CCI reading (over the past 5 periods) - Lowest 14-day CCI reading

(over the past 5 periods))*100)

CCI-Stochastic}

inputs:

CCILength( 14 ),

HighLowPeriod( 5 ),

Smooth( 3 ) ;

variables:

TodayCCI( 0 ),

TodayLowCCI( 0 ),

TodayHighCCI( 0 ),

CCISto( 0 ) ;

TodayCCI = CCI( CCILength ) ;

TodayLowCCI = Lowest( TodayCCI, HighLowPeriod ) ;

TodayHighCCI = Highest( TodayCCI, HighLowPeriod ) ;

if CurrentBar > Smooth + HighLowPeriod then

begin

CCISto = Average((TodayCCI - TodayLowCCI)/(TodayHighCCI - TodayLowCCI), Smooth );

Plot1( CCISto, "CCISto");

end ;

fxbs
3203
fxbs  

something like this you looking 4?

Files:
forex_tsd
85
forex_tsd  
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
3203
fxbs  

sto rsi and sto cci mod

matfx
612
matfx  
fxbs:
sto rsi and sto cci mod

Thanks fxbs, i liked it.

forex_tsd
85
forex_tsd  

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
7
s5804  

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

fxbs
3203
fxbs  
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