Type/to search

TEMA Crossover Trading Strategy

Cryptocurrency
Created: 2023-09-12 16:40:50
Last modified: 3 years ago
1
Follow
1781
Followers

This strategy trades the crossover between two TEMA lines of different periods to capture intermediate-term trends. TEMA filters noise well for identifying trend reversals.

Strategy Logic:

  1. Calculate fast and slow TEMA lines, typically 5 and 8 periods.

  2. Go long when fast TEMA crosses above slow TEMA.

  3. Exit long when fast TEMA crosses below slow TEMA.

  4. Option to filter based on candle direction to avoid counter-trend trades.

  5. Backtest over specified period to simulate historical signals.

Advantages:

  1. TEMA strongly filters price noise.

  2. Fast/slow combo captures intermediate trends.

  3. Direction filter improves win rate by avoiding counter-trend entries.

Risks:

  1. TEMA still lags, potentially missing best entries.

  2. Parameter tuning needed for ideal match.

  3. Difficult to sustain signals in ranging markets.

In summary, this strategy crosses TEMA lines to trade trends with noise filtering for stability. But TEMA lag persists, requiring optimization to match market pace.

Source
Pine
/*backtest
start: 2022-09-11 00:00:00
end: 2023-09-11 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
strategy("Tema",overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.075)
startP = timestamp(input(2017, "Start Year"), input(12, "Start Month"), input(17, "Start Day"), 0, 0)
end   = timestamp(input(9999, "End Year"),   input(1, "End Month"),   input(1, "End Day"),   0, 0)
Strategy parameters
Strategy parameters
Start Year
Start Month
Start Day
End Year
End Month
End Day
Fast TEMA
Slow TEMA
Use bar's direction ?
direction bars
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)