Rank: Newbie
Groups: Registered, Registered Users Joined: 12/3/2005(UTC) Posts: 4
|
henry1224 wrote:
MACD w TDC
Per1:=Input("Length of Fast MA",3,100,12); Per2:=Input("Length of Slow MA",5,200,26); Per3:=Input("Length of Sig",3,200,9); cFactor:=Input("Factor",1,1000,1); TDClose:=ExtFml("PowerPivots.TDataCreate",3, cFactor); MA:=Mov(TDClose,Per1,E)-Mov(TDClose,Per2,E); Sig:=Mov(MA,Per3,E); MA:=ExtFml("PowerPivots.TDataLocalize", MA, cFactor, 0); Sig:= ExtFml("PowerPivots.TDataLocalize", Sig, cFactor, 0); Hist:=MA-Sig; MA; Sig; Hist;
Use a factor =2 for a weekly MACD on a daily Chart
Hi,
Sorry that my first intervention in the forum is a negative one. The code above may lead you into false results if used in a system. Other then mondays, the values plotted by the code will be hindisight, just like the zigzag function.
For instance, the last plateau (or the last bar dependig how you are plotting it) of the histogram will only be determined on friday, after closing. So you just have safe values on mondays (after the friday close). Using this on a system will lead you to tremendous but unfortunately false results.
Try it yourselves.
PS: sorry for the poor english, it is not my native language.
|