Hi - I believe AB checks the price range and will adjust your buy/sell prices 
if you try to buy/sell higher than the actual high or lower than the actual 
low. You can turn this range checking off by adding this to your code.

SetOption( "PriceBoundChecking", False )

Steve
  ----- Original Message ----- 
  From: Clement Chin 
  To: [email protected] 
  Sent: Wednesday, May 23, 2007 2:30 PM
  Subject: [amibroker] Can't set Buy Price?


   

  Hi,

   

  I would like to set the buy price to current bar's High plus an offset. I 
write the following codes:

   

  BuyPrice          =          H+10;

  SellPrice          =          C-10;

   

  Buy                  =          Cond01 AND Cond02 AND Cond03;

  //         Selling only by stop.

  Sell                  =          0;

   

   

  Unfortunately, the entry price is shown as High with no offset. The Sell 
Price is shown correctly. What can I do?

   

  TIA.

   

  Clement

   

   

Reply via email to