Type/to search

Adaptive Zero Lag EMA Trading Strategy

Cryptocurrency
Created: 2023-09-13 14:22:55
Last modified: 3 years ago
1
Follow
1781
Followers

This strategy uses the Adaptive Zero Lag EMA indicator for trend determination and trade signals. The adaptive EMA dynamically tunes parameters to eliminate lag. It aims for trend following.

Strategy Logic:

  1. Calculate Adaptive Zero Lag EMA with cosine and I-Q adaptive algorithms.

  2. EMA is normal EMA, EC is adaptive zero lag EMA.

  3. Go long when EC crosses above EMA, and short when crossing below.

  4. Compute error curve and set threshold to filter false signals.

  5. Use fixed points for stop loss and take profit for risk control.

Advantages:

  1. Adaptive EMA significantly reduces indicator lag.

  2. Threshold filtering improves signal quality and avoids false breakouts.

  3. Simple stops and targets are easy to implement.

Risks:

  1. Adaptive EMA parameters can become unstable.

  2. Fixed stops/targets fail to adapt to changing market conditions.

  3. No limit on loss size, risks large losing trades.

In summary, this strategy uses adaptive EMA for trend following, reducing lag to some extent. But parameter stability and optimized stops are needed to control risks.

Source
Pine
/*backtest
start: 2023-09-05 00:00:00
end: 2023-09-12 00:00:00
period: 2h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=3
strategy(title="Adaptive Zero Lag EMA v2 (w/ Backtest Date Range)", shorttitle="AZLEMA", overlay = true,  commission_type=strategy.commission.cash_per_contract, slippage = 5, pyramiding=1, calc_on_every_tick=true)

src = input(title="Source",  defval=close)
Strategy parameters
Strategy parameters
Source
Security Type
Custom # of Contracts
Max Lots
Period
Adaptive Method
Gain Limit
Threshold
SL Points
TP Points
Risk
From Month
From Day
From Year
To Month
To Day
To Year
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)