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

Re: EL question



PureBytes Links

Trading Reference Links


----- Message d'origine ----- 
De : Bob Fulks <bfulks@xxxxxxxxxxxx>
À : <VBatla@xxxxxxx>
Cc : Omega List <omega-list@xxxxxxxxxx>
Envoyé : jeudi 6 janvier 2000 17:43
Objet : Re: EL question


> At 11:29 AM -0500 1/6/00, VBatla@xxxxxxx wrote:
> >I'm trying to add a condition. 
> >
> > I want to add the ADX indicator to an existing system and want it to be 
> >higher than 20 bars ago to trigger a setup.  
> >
> >Here's what I have:
> >
> >Condition7 = ADX(1) > ADX(20);
> >
> >It doesn't seem to be working.  
> >
> >Any ideas?
> 
> 
> 
> You probably want:
> 
> Condition7 = ADX(14) > ADX(14)[20];
> 
> where 14 is the length of the ADX look back length.
> 
> Bob Fulks
> 

Yes.
And generally speaking, it is better to write:

Value1=adx(14);
condition1= value1>value1[1];

Doing so, you avoid to calculate ADX twice in row.

Meilleures salutations.

-Pierre Orphelin
Représentant exclusif de Omega Research en France.
web: http://www.sirtrade.com