PureBytes Links
Trading Reference Links
|
I get a message 'Error 29 variable 'buy' used without being
initilized' when running a backtest on the NYSE or OTC list but not
when using the AMEX list.
The lines highlighted are:
Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);
I have the following code:
PositionSize = 10000;
PB_per = 5;
PBbot = HHV(Ref(High,-1) , 1);
PBbot_slope = LinRegSlope( Ref(Low,-1), PB_per);
for (bar = PB_per-1; bar < BarCount-1; bar++)
{
for (loop = 0; loop < PB_per-1 ; loop++)
{
PBbot = Min(PBbot, LLV(Ref(Low,-1),4) + (PBbot_slope*loop));
}
}
for (bar = PB_per-1; bar < BarCount-1; bar++)
{
BuyPrice = 0.962 * PBbot ;
Buy = Low < BuyPrice ;
Sell = Open;
}
Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);
Any help would be much appreciated
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/DldnlA/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
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:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|