Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 8/12/2005(UTC) Posts: 73
|
{GMMA Trend Channel Oscillator - revised personal use only not for distribution by FormulaPrimer}
{Input} base:=(Mov(CLOSE, 3,E)+Mov( CLOSE,5,E) + Mov(CLOSE,8, E)+Mov(CLOSE, 10,E)+ Mov(CLOSE,12, E)+Mov(CLOSE, 15,E)+ Mov(CLOSE,30, E)+Mov(CLOSE, 35,E)+ Mov(CLOSE,40, E)+Mov(CLOSE, 45,E)+ Mov(CLOSE,50, E)+Mov(CLOSE, 60,E))/12; 3ema := Mov(C,3,E); 5ema := Mov(C,5,E); 8ema := Mov(C,8,E); 10ema := Mov(C,10,E); 12ema := Mov(C,12,E); 15ema := Mov(C,15,E); 30ema := Mov(C,30,E); 35ema := Mov(C,35,E); 40ema := Mov(C,40,E); 45ema := Mov(C,45,E); 50ema := Mov(C,60,E); {Yellow}(((3ema - base)/base) + ((5ema - base)/base) + ((8ema - base)/base) + ((10ema - base)/base) + ((12ema - base)/base) + ((15ema - base)/base) + ((30ema - base)/base) + ((35ema - base)/base) + ((40ema - base)/base) + ((45ema - base)/base) + ((50ema - base)/base)) *100; {Green}Peak(1,(((3ema - base)/base) + ((5ema - base)/base) + ((8ema - base)/base) + ((10ema - base)/base) + ((12ema - base)/base) + ((15ema - base)/base) + ((30ema - base)/base) + ((35ema - base)/base) + ((40ema - base)/base) + ((45ema - base)/base) + ((50ema - base)/base)) *100,2); {Red}Trough(1,((( 3ema - base)/base) + ((5ema - base)/base) + ((8ema - base)/base) + ((10ema - base)/base) + ((12ema - base)/base) + ((15ema - base)/base) + ((30ema - base)/base) + ((35ema - base)/base) + ((40ema - base)/base) + ((45ema - base)/base) + ((50ema - base)/base)) *100,2); {End}
|