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

[amibroker] Re: what's wrong with this...



PureBytes Links

Trading Reference Links

oops - no code attached!;



PB=Optimize("PB",0.995,0.99,0.999,0.001);
Length=Optimize("Length",6,3,15,1);

Cond1=Ref(C,-1)<PB*Ref(C,-2);
Cond2=C>Ref(C,-1);


Buy=Cond1 AND Cond2;
Sell=BarsSince(Buy)==length;
length=BarsSince(Buy);

Short=O;
Cover=O;




--- In amibroker@xxxxxxxxxxxxxxx, "foxblade2000invest" <foxblade@xxx>
wrote:
>
> .....code?
> 
> This system is supposed to buy the first bounce after a dip (an up day
> after a down day of a certain size) then sell after so many bars.
> 
> At first glance it runs ok - but the exposure % is falling when the
> trade length increases during an optiminsation. This doens't make
> sense - is the code wrong?
> 
> All help appreciated.
> 
> Cheers,
> Rich
>



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

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/