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 : Tuesday, November 7, 2023 6:10:59 PM(UTC)
MS Support

Rank: Advanced Member

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

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

Stella Osoba’s article, “Using Price Channels,” explains Donchian Channels and offers a system to trade them. MetaStock includes Donchian Channels in its list of indicators but uses a different formula for the center band. Below are the MetaStock formulas for the version described by Stella Osoba.  Also included are the suggested entry signals and middle band exit formulas.

Donchian Channels:

Indicator:

Code:
x:= Input("periods",2,100,20);
Ref(HHV(H,x), -1);
Ref(LLV(L,x), -1);
Ref(HHV(H,x)+LLV(L,x), -1)/2

Buy Signal:

Code:
x:= 20; 
Cross( H, Ref(HHV(H,x), -1) )

Sell Signal:

Code:
x:= 20;
Cross( Ref(HHV(H,x)+LLV(L,x), -1)/2, L)

Sell Short Signal:

Code:
x:= 20;
Cross( Ref(LLV(L,x), -1), L )

Buy to Cover Signal:

Code:
x:= 20;
Cross( H, Ref(HHV(H,x)+LLV(L,x), -1)/2 )

Users browsing this topic
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.