this one is correct:

Buy = Ref(cond1 and cond2 and TimeNum() < 155000,-1); BuyPrice = (O);






  ----- Original Message ----- 
  From: booker_1324 
  To: [email protected] 
  Sent: Wednesday, January 03, 2007 5:49 PM
  Subject: [amibroker] Which statement is correct


  If I wanted to buy the next bar at open after meeting 3 conditions, 
  which statement is correct.

  Buy = Ref(cond1,-1) and cond2 and TimeNum() < 155000; BuyPrice = (O);

  or

  Buy = Ref(cond1 and cond2 and TimeNum() < 155000,-1); BuyPrice = (O);

  Thanks



   

Reply via email to