TS IDNR4 AvgTrueRange concept

Da traderpedia.
Jump to navigation Jump to search

Trading System "IDNR4 AvgTrueRange concept"

Formula per Tradestation™:

INIZIO FORMULA

Type : Signal, Name : Test IDNR4
{System: Test IDNR4 (Inside day Narrow range Pattern # 1 (L.C.)
additional AvgTrueRange concept (W.D.) added 1998 }

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;

FINE FORMULA

Vedi anche: