MOV AVG X 2_20

MOV AVG X 2_20

Type: Indicator, Name: Mov Avg X 2_20

Inputs: Price(Close), AvgLen(20);
Vars: AvgVal(0);
AvgVal = XAverage(Price, AvgLen);
Plot1(AvgVal, «EMA»);

{Entry Alert Criteria}
IF (Lowest(Low, 2) > AvgVal AND Low 1 Bar Ago Crosses Above
AvgVal 1 Bar Ago) OR (Highest(High, 2) < AvgVal AND
High 1 Bar Ago Crosses Below AvgVal 1 Bar Ago) Then Begin
IF CheckAlert Then Alert = True;
Plot2(High, «Alert»);
Plot3(Low, «Alert»);
End;

Николай Солабуто
Оцените автора
Николай Солабуто
Добавить комментарий