[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] allow same bar exit



PureBytes Links

Trading Reference Links

hi,

I set SetTradeDelays(1,0,1,0). Also in settings I allow "Allow same 
bar exit (single bar trade). Still, the setup shown below does not 
exit the same day after a purchase at the "open". I checked this 
using "show arrows for actual trades" and also in the backtest I can 
see it is only exiting the next day at the soonest.

What am I doing wrong?

thanks, Ed




SetTradeDelays(1,0,1,0);

Buy = Perc_Threshold_Long(Close,10) AND V>100000;
BuyPrice = Open;

ApplyStop(stopTypeProfit, stopModePercent, 1);
ApplyStop(stopTypeLoss, stopModePercent, 30);
ApplyStop(stopTypeNBar, stopModeBars, 40);


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/I3w.vC/hP.FAA/3jkFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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