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

Re: Donchian channels Indicator formula



PureBytes Links

Trading Reference Links

Valera,

Here is the code, just cut and paste it into your PowerEditor.

Marlowe

{40/20 Donchian Channel Breakout}

INPUT : Multi(1), EntryDay(40), ExitDays(20);
VAR : Cons(0);

IF Multi = 1 THEN 
   Cons = 5000 / ( StdDev( Close - Close[1], 30 ) * BigPointValue )
   ELSE
      Cons = 1;

IF Cons < 1 THEN Cons = 1;



 Buy ("Breakout Buy") {Cons Contracts} Next Bar at Highest(High, 
EntryDay) Stop;

 Sell ("Breakout Sell") {Cons Contracts} Next Bar at Lowest(Low, 
EntryDay) Stop;

ExitLong ("Breakout Exit-Ln") Next Bar at Lowest(Low, ExitDays) Stop;

ExitShort ("Breakout Exit-Sh") Next Bar at Highest(High, ExitDays) Stop;





----- Original Message ----- 
From: ValMac <valmac@xxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Monday, October 23, 2000 5:27 AM
Subject: Donchian channels Indicator formula


> Hi folks!
> Do smb know ELA formulas for Donchian channels Indicator ?
> thx
> Valera
>