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

[amibroker] switching from long to short position in backtesting



PureBytes Links

Trading Reference Links

Hello,

I am implementing a system which can be short/long on the same symbol
from one bar to another, meaning that it can change from short to long
with a single trade.

Let's say I am long 100 shares on msft, and then want to:

a) to be short 50 on the next bar, i.e.sell 150 

or 

b)be still long 25, i.e. sell 75.
c)be long 130,ie.e buy 30.

In case a) I dont think scaletrade would work, unless it accepts
negative positions.

In case b,c) I can enter a scale order, but I want to keep trades
separate, so I prefer a "manual" sell order.

Would in a,b,c) the open position object IsLong property be handle
automatically, or I have to modify "manually" appropriately(in case a)
it would have to switch )?

A related question is: does the separate long/short ranking apply to
rotational trading?

Thanks a lot

Ly




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

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