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

[amibroker] Trade Delays



PureBytes Links

Trading Reference Links

Hello all

I have been testing a system with trade delays set to 1 for long short entry
exit in the backtester and keep getting very different results if I
alternatively code settradedealys(1,1,1,1) in the code.  The results are
hugely different....

Just to clarify, when the settradedelays is used in the code the settings in
the backtester are for no trade delays.

Code below shows how I have used the Settradedelays..

PositionSize = Close * (1200/(3*ATR(30))); //max risk/sls * close
SetOption("InitialEquity", 120000 );
SetOption("AllowPositionShrinking", True );
SetOption("MaxOpenPositions", 10 );

SetTradeDelays( 1, 1, 1, 1);

trigger = Cross(C,Ref(LLV(L,14),-1));
Cond1 = trigger;
Cond2=ATR(30)/C >.01;
Cond3=ATR(30)/C<.03;
cond4= Close > Ref(HHV(Close,20),-1)-5*ATR(30);
Cond5=MA(C,200)>Ref(MA(C,200),-50) + 6*ATR(200) ;
cond7=MA(C,21)*MA(V,21)>200000;

Buy = Cond1 AND Cond2 AND Cond3 AND Cond5 AND Cond7 AND Cond4;
SellPrice = Open;



Sell= C < Ref(LLV(C,2),-1);


Steve Carlsson
Home and Property Maintenance
12 WInsham Rd
KARRINYUP WA 6018
0432990469


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/