IDNR4

IDNR4

Type : Signal, Name : Test IDNR4

Input:

CLen(4),
ELen(1),
Avr(2),
Rat(.38),
ExL(0),
ExS(0);

IF Range = Lowest(Range,CLen)
and H < H[ELen] and L > L[ELen] then Begin

Buy High + (AvgTrueRange(Avr)[1]*Rat) stop;
Sell Low — (AvgTrueRange(Avr)[1]*Rat) stop;

End;

If MarketPosition = 1 then Begin

If BarsSinceEntry = ExL then Exitlong at Market;

End;

If MarketPosition = -1 then Begin

If BarsSinceEntry = ExS then ExitShort at market;

End;

IDNR4

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