Hello, yes, you can do this through using BuyPrice, SellPrice, ShortPrice, CoverPrice
Example to buy always on open price. BuyPrice = 0pen; Example for symbol based BuyPrice: BuyPrice = IIf(Name() == "SymbolA", Open, IIf(Name() == "SymbolB", Close, Close)); Kind regards Thomas Zmuck www.patternexplorer.com From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of loveyourenemynow Sent: Tuesday, January 01, 2008 9:40 PM To: [email protected] Subject: [amibroker] hard coding when to trade open/close Is it possible to hard code when to trade? I know this option is available from the trades setting of the automatic analysis, but I would prefer to set it directly in the code to avoid to set it properly for different systems. Trading delays can be set by setoption, but I can't find a similar option for trade at close/open. Can it be changed on bar and symbol base? thanks Ly
<<attachment: winmail.dat>>
