[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Help with the modification of code



PureBytes Links

Trading Reference Links

Hi  

 

Can anyone help with the modification of this code so that it also appears
on the chart as a colour band (one colour when above "0" and another when
below "0")?   Likewise, is it also possible to have Parameter settings
include?

 

My coding skills are very limited in this regard.

 

Thanks in advance

 

Ken

 

 

 

// Walking the (Random) Walk

Plot( CA= RWI( 40, 100),"Walking the (Random) Walk",3,4 );

 

Plot( CB= RWI( 40, 100)," Med-Term",3,34 );

Plot( CB= RWI( 44, 2),"",1,12+24 );

Plot(0,"",3,12);

 

CondA= CB>0 AND (CA<0 OR Ref(CA,-1)<0) AND CA>Ref(CA,-1) AND

Ref(CA,-1)<Ref(CA,-2) ;

PlotShapes( shapeUpArrow*CondA, 1,L,-1.5) ;

 

CondB= CB<-0 AND (CA>0 OR Ref(CA,-1)>0) AND CA<Ref(CA,-1) AND

Ref(CA,-1)>Ref(CA,-2) ;

PlotShapes( shapeHollowDownArrow*CondB, 1,H,1.25);

 

Buy= CondA;

Short= CondB;

 


Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.8/621 - Release Date: 1/9/2007 1:37 PM