if(getCurrentBarIndex()>-21)
return new
Array(mean+sdDev,mean+(sdDev*2),mean+(sdDev*3),mea n-sdDev,mean-(2*sdDev),mea
n-(3*sdDev),mean)
else return
----- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Wednesday, February 05, 2003 4:18 PM
Subject: Reply to post 'Draw a MA for the last X bars'
I think the ONLY two ways you can do what I think you are trying to do is:
1) Use the drawline command to plot the MA (this will look clunky and not be able to give you the MA values in the cursor window). But you could draw one line between each bar and then delete the oldest (22nd) line as a new line is drawn.
2) This may or maynot work. You will need 545 I think to even try it.
Comment