Yes. It works. Thanks.

 

Clement

 

 

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Steve Dugas
Sent: Thursday, May 24, 2007 3:03 AM
To: [email protected]
Subject: Re: [amibroker] Can't set Buy Price?

 

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 <mailto:[EMAIL PROTECTED]>  

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

 

 

__________ NOD32 2277 (20070518) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com

<<image001.jpg>>

<<image002.jpg>>

Reply via email to