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

[amibroker] Re: Question about Scaling In and out



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "slipthruthecracks"
<slipthruthecracks@xxx> wrote:
>
> I am trying to test a system that works like this:
> 
> each buy signal: enter long 5% of account.
> each sell signal: sell half of the value of the long position.
> 
> continue this until a maximum of 50% of the account equity is invested.
> 
> It might look like this:
> 
> Buy #1 - enter long 5% of account:
> Buy #2 - enter long 5% of account - total long is now 10% of account
> Sell #1 - sell half of the 10% currently invested - total now invested
> is 5%.
> Buy #3 - enter long 5% of account - total long is 10%
> Buy #4 - enter long 5% of account - total long is 15%.
> Sell #2 - sell half of the 15% currently invested - total now invested
> is 7.5%.
> Sell #3 - sell half of the 7.5% currently invested - total now
> invested is 3.25%.
> Buy #5 - Enter long 5% of the account - total long is now 8.25% of the
> account.
> ...this would continue until a maximum of 50% of the account was
invested.
> 
> Can I use sigScaleIn/Out for this and if so, how do I control the
> amount being sold each time? Or, do I need to loop through each bar
> and set PositionSize for each buy and sell? If so, what would this
> look like?
> 
> One-Eyed-Jack
>
I'd like to know the answer too


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

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL 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/