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

Re: [amibroker] Buy & Hold



PureBytes Links

Trading Reference Links

I would guess that not all of the symbols had data at the start date of the test

You need to set roundlotsize to 1 to stop partial share purchase

-- 
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com



2008/7/29 Angelo <ima_cons@xxxxxxxx>:
> Hi everybody,
>
> I coded a simple "Buy and Hold Strategy" the following way:
>
> Buy=Status("firstbarintest");
> Sell=Status("lastbarintest");
> SetTradeDelays(0,0,0,0);
> PositionSize = -100;
>
> and applied it to S&P 500 index from 1950/01/03 until today.
>
> Here's the screenshot of the results:
>
> http://img120.imageshack.us/img120/4239/spbhmr5.jpg
>
> I wonder why "exposure" is 77% and not 100%.
>
>
> Another question: according to my data, with an initial capital of
> 10000 $ on 1950/01/03 I buy 600.24 shares at 16.66 (10000/16.66 = 600.24).
> I was expecting to buy just 600 "shares" as in the settings window I
> selected "1" for the "minimum shares" option.
>
> Thanks to everybody for helping.
>
>
>
>
>
>
> ------------------------------------
>
> 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
>
>
>
>

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

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/