View Single Post
  #294 (permalink)  
Old 07-15-2009, 07:29 PM
forex_tsd_ forex_tsd_ is offline
Member
 
Join Date: Feb 2009
Location: Turkei
Posts: 97
forex_tsd_ is on a distinguished road
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 ;


__________________
Kötü tecrübesiz bir hayat kaybetmeye mahkumdur
Reply With Quote