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

[EquisMetaStock Group] Envelope of an Oscillator



PureBytes Links

Trading Reference Links

Hi all,

It would like to know as to make an envelope for oscillators with positive and negative scale (i.e: +1000/0/-1000). I tried this:

**************************************************************

ft1:=Input("Vertical %), 0,2000,200);

CMOV:=fml("AAA") {oscilador};

x:=Mov(CMOV,100,E);

VShUP:= x*(1+(ft1/100) );

VShUP:= x*(1-(ft1/100) );

UP:=if(VShUP<0,-VShUP,VShUP);

DN:=if(VShDN>0,-VShDN,VShDN);

UP;DN

**************************************************************

In this case, the bands of the envelope if find in "0" (zero).

How to make them bands to be parallel with "x"? 

Thanks,

Edson 


[Non-text portions of this message have been removed]





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/