I am having problems changing the buy, sell, short and cover prices 
inside a standard BarCount loop in a standard backtest (not a custom 
backtest).  This happens even when I set PriceBoundChecking to 
False.  I am using the BarCount loop to adjust my entries and exits 
by simply setting the Buy[bar], Sell[bar], Short[bar], and Cover[bar] 
values to zero or one.  All this logic works fine, but when I go to 
set the buy price using something like:

BuyPrice[bar] = Open[bar] * 1.0015;

it does not work.    It also does not work if I do this using the 
array method of:  BuyPrice = Open * 1.0015; in combination with a 
BarCount loop.

It also works fine in the pure array mode with NO BarCount loop.

Anyone have any ideas?

Thanks,

Dave






Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to