hi,

simply use:

Buy=Cross(Graph1,Graph0) AND Graph2 < 0;
Sell=Cross(Graph2,Graph0) AND Graph1 > 0;






  ----- Original Message ----- 
  From: rijnaars 
  To: [email protected] 
  Sent: Friday, August 08, 2008 3:41 PM
  Subject: [amibroker] Help with buy and sell statements


  I want to make a statement that 
  a buy of croos is valid when another value is above zero

  for instance 

  Buy=Cross(Graph1,Graph0); is valid if Graph2 <0

  and

  Sell=Cross(Graph2,Graph0); is valid if Graph1 >0

  how can i do that ???

  by if and else statement or should i use another one

  can you please help me also by giving me direction in this example



   

Reply via email to