Inputs: Price(Close),Length(26), Len1(9), Len2(35),Typ(1); {Typ=1:=MA, Typ=2:=XMA, Typ=3:=WMA}
Vars:TEMA1(0); TEMA1 = (3*XAverage(Price,Length))- (3*XAverage(XAverage(Price,Length),Length))+(XAverage(XAverage(XAverage(PRI
CE,lENGTH),Length),Length));
Plot1(TEMA1,"TEMA1"); if Typ=1 then begin plot2(average(Price,Len1),"K1"); plot3(average(Price,Len2),"K2"); end else if Typ=2 then begin plot2(XAverage(Price,Len1),"K1"); plot3(XAverage(Price,Len2),"K2"); end else if Typ=3 then begin plot2(WAverage(Price,Len1),"K1"); plot3(WAverage(Price,Len2),"K2"); end;
Vielleicht klappt s Gruß Uwe
|