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

Re: [amibroker] Help with the modification of code



PureBytes Links

Trading Reference Links

Ken use this 

Plotcolor = iif(var > 0,colorgreen,colorred);

Plot(var,"",Plotcolor,style .... )

  ----- Original Message ----- 
  From: Ken Henderson 
  To: amibroker@xxxxxxxxxxxxxxx 
  Sent: Tuesday, January 09, 2007 7:58 PM
  Subject: [amibroker] Help with the modification of code


  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.9/622 - Release Date: 1/10/2007 2:52 PM