You may want to give these a shot. This allows you to input the values when you open the indicator. If you don't want exp. weighted than change the E's to S's.
MACD mp1:=Input("Short MA",1,377,13); mp2:=Input("Long MA",1,377,34); Mov(C ,mp1 ,E )- Mov(C ,mp2 ,E )
MACD signal line mp1:=Input("Short MA",1,377,13); mp2:=Input("Long MA",1,377,34); mp3:=Input("Signal MA",1,377,89); Mov( (Mov(C ,mp1 ,E )- Mov(C ,mp2 ,E )),mp3,E)
MACD - Signal Line mp1:=Input("Short MA",1,377,13); mp2:=Input("Long MA",1,377,34); mp3:=Input("Signal MA",1,377,89); (Mov(C,mp1,E)-Mov(C,mp2,E))-(Mov((Mov(C,mp1,E)-Mov(C,mp2,E)),mp3,E))
Best Regards KEITH |