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

[amibroker] trade at close using previous trade funds immedially



PureBytes Links

Trading Reference Links

Hello,

I want to trade at close and hold position till next close, or exit a
with stop/loss/profit.

when positions are closed at the next close using an applystop nbar
type, i want the funds to be immediately available for the new
positions which will be  opened at the same close.

Sometime it works sometime not.Any suggestion why?

I also have some a customized backtesting procedure for position
sizing and ranking of signals(mi-level I would say), and I ahve tried
to force stops using hanldestops method (evenif is meant ofr low
level)but  it apply stops immediately (instead of waiting till next
open using ) according to the settings:

ShortPrice=BuyPrice=C;
CoverPrice=SellPrice=C;
ApplyStop(stopTypeNBar,stopModeBars,nBar,0); 
SetOption("AllowSameBarExit",False); 
SetOption("ActivateStopsImmediately",False);

Does handlestops ignores them?
If I don't use handle stops, some trades are skipped because of the
not immediate availability of funds coming from
ApplyStop(stopTypeNBar,stopModeBars,nBar,0);

Any suggestion is very welcome

Thanks
Ly

 



------------------------------------

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/