TS Doubly Adaptive Profit Targets

Da traderpedia.
Jump to navigation Jump to search

Trading System "Doubly Adaptive Profit Targets"

Autore:Chuck LeBeau

Formula per Tradestation™:

INIZIO FORMULA

Type : Signal, Name : Doubly Adaptive Profit Targets
Vars:
TrendIndicator(0),
RiskReward(0);

If ADX(14) > ADX(14)[1] Then TrendIndicator = 4;
If ADX(14) <= ADX(14)[1] Then TrendIndicator = 2;

Condition1 = MarketPosition = 0
and Close > Average(Close, 50)
and Open Tomorrow > High
and TrendIndicator = 4;

If Condition1 Then Begin
Buy Tomorrow at High Limit;
RiskReward = AvgTrueRange(20);
End;

If MarketPosition = 1 Then Begin
ExitLong ("Profit") Tomorrow at (EntryPrice + RiskReward * TrendIndicator)
Limit;
ExitLong ("Loss") Tomorrow at (EntryPrice - RiskReward * TrendIndicator)
Stop;
If Close < Average(Close, 50) Then ExitLong ("Trend") at Market;
End;

FINE FORMULA

Vedi anche: