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

Re: [amibroker] Which statement is correct



PureBytes Links

Trading Reference Links

this one is correct:

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






  ----- Original Message ----- 
  From: booker_1324 
  To: amibroker@xxxxxxxxxxxxxxx 
  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



   
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.4/615 - Release Date: 1/3/2007 1:34 PM