|
Params
Integer P1(30);
Integer P2(60);
Vars
Begin
Numeric TA = (Open+High+Low+Close)/4;
Numeric TA1 = Highest(TA,P1);
Numeric TA2 = Lowest(TA,P1);
Numeric TA3 = TA1-TA2;
Numeric TA4 = EMA((TA1-TA2)/TA3,2)*100;
PlotNumeric("MA1",TA4,White);
Numeric TB1 = Highest(TA,P2);
Numeric TB2 = Lowest(TA,P2);
Numeric TB3 = TB1-TB2;
Numeric TB4 = EMA((TA-TB2)/TB3,2)*100;
PlotNumeric("MA2",TB4,Yellow);
End |
|