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

[amibroker] Questions on SetPositionSize and ApplyStop when Pyramiding with ScaleIn



PureBytes Links

Trading Reference Links

Hello,

I am currently backtesting a trend following system both long and
short and can't solve my following method when scaling in with AFL :

My backtester settings are :
  Buy/Sell Price as Open and Delay set to 1
  Round lot size to 10

Basic position size is 5 % of my equity.

For any trade I first open a new position with 50 % of my basic
position size, i.e. 2.5 % of my current equity. 

I then apply stop as stopTypeLoss set to 10 % .

When there is 10 % of profit - I then scale in trade with another half
of my basic position size but I'd like to buy this time exactly the
same number of shares as I bought when first entering the trade.

I then immediately want to reset ApplyStop with stopTypeLoss to exit
the whole position at the price I opend the first half of my position
so that, theoretically, when market will
go against me - I exit this position on stop loss at breakeven.

Thanks for advice.

Svatopluk




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/