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

Re: MA envelope



PureBytes Links

Trading Reference Links

Michael/

Assuming you have MS v6.5, try the following.

Pds:=input("Periods?",1,1000,5);
Mov(H,Pds,S);
Mov(L,Pds,S)

Change the last number on the first line (5) to whatever default period
you prefer.  Set the periods to 1 to simply connect all the highs and
all the lows.  You can change the S to E to try an exponential moving
average instead of a simple one.

Harvey Pearce, Victoria, B.C., Canada
=====================================

Michael Robb wrote:
> 
> Could someone kindly suggest how to write an indicator that will plot a MA
> of highs for the top band of an envelope, and a MA of the lows for the
> bottom band?
> 
> Michael Robb