Professional Documents
Culture Documents
Turtle Rules Trading Strategy
Turtle Rules Trading Strategy
Turtle Rules Trading Strategy
vars:up(false),h20(0),h10(0),l20(0),l10(0),lastb(0 ),
lasts(99999),go(false),first(true),lx2n(0),sx2n( 0),atr(0),con(0),h50(0),l50(0);
includesystem: "edate",edate;
atr=average(truerange,atrbars);
con = round((0.01*acctsize)/(atr*bigpointvalue),0);
h20=highest(high,echannel);
l20=lowest(low,echannel);
h10=highest(high,xchannel);
l10=lowest(low,xchannel);
if go then begin
if maxlist(h20, 0 tomorrow) > lasts and up[1] = false then
buy ("c-20 buy #1") con contracts h20 +1 point stop;
if minlist(l20, 0 tomorrow) < lastb and up[1] then
sell("c-20 sell #1") con contracts l20 -1 point stop;
if h20 > lasts and up and lasts < lastb then
buy("c-20 buy #2") con contracts h20 +1 point stop;
if l20 < lastb and up = false and lasts < lastb then
sell ("c-20 sell #2") con contracts l20 -1 point stop;
end;
end;