logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
MS Support  
#1 Posted : Monday, July 28, 2014 1:45:49 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,934

Thanks: 85 times
Was thanked: 154 time(s) in 150 post(s)

Oscar G Cagigas' article, “The Degree of Complexity”, discussed how simpler systems can perform better than more complex ones. The formulas for his basic Donchian Channel system are below:


Buy Order:

Len1:= OPT1;

Len2:= OPT2;

el:= h > ref(hhv(H,len1),-1);

es:= L < ref(llv(L,len1),-1);

xl:= L < ref(llv(L,len2),-1);

xs:= h > ref(hhv(H,len2),-1);

trade:= if(el, 1, if(es, -1,

if((prev=1 and xl) or (prev=-1 and xs), 0, prev)));

trade=1 and ref(trade<>1, -1)

Sell Order:

Len1:= OPT1;

Len2:= OPT2;

el:= h > ref(hhv(H,len1),-1);

es:= L < ref(llv(L,len1),-1);

xl:= L < ref(llv(L,len2),-1);

xs:= h > ref(hhv(H,len2),-1);

trade:= if(el, 1, if(es, -1,

if((prev=1 and xl) or (prev=-1 and xs), 0, prev)));

trade=0 and ref(trade=1, -1)

Sell Short Order:

Len1:= OPT1;

Len2:= OPT2;

el:= h > ref(hhv(H,len1),-1);

es:= L < ref(llv(L,len1),-1);

xl:= L < ref(llv(L,len2),-1);

xs:= h > ref(hhv(H,len2),-1);

trade:= if(el, 1, if(es, -1,

if((prev=1 and xl) or (prev=-1 and xs), 0, prev)));

trade=-1 and ref(trade<>-1, -1)

Buy to Cover Order:

Len1:= OPT1;

Len2:= OPT2;

el:= h > ref(hhv(H,len1),-1);

es:= L < ref(llv(L,len1),-1);

xl:= L < ref(llv(L,len2),-1);

xs:= h > ref(hhv(H,len2),-1);

trade:= if(el, 1, if(es, -1,

if((prev=1 and xl) or (prev=-1 and xs), 0, prev)));

trade=0 and ref(trade=-1, -1)

Optimizations:

OPT1:

Description: long term

Minimum: 20

Maximum: 40

Step : 5

OPT2:

Description: short term

Minimum: 5

Maximum: 20

Step : 5
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.