The strategy is named Adaptive Price Zone Reversal Trading Strategy. It uses the Adaptive Price Zone (APZ) indicator to identify price zones and generates trading signals when prices break out of the zones. The APZ indicator calculates upper and lower zone boundaries based on double exponential moving averages and volatility. When prices break through the boundaries, it indicates potential price reversals and trading opportunities.
The strategy is mainly suitable for range-bound markets, especially consolidation markets. It can be used for intraday or short-term trading as part of automated trading systems, and is applicable to all tradable assets. In summary, it utilizes the assistances of APZ indicator and makes reversal trades around price zone boundaries.
The strategy uses the APZ indicator to determine price zones, with specific calculations as follows:
The Upper Band and Lower Band make up the adaptive price zone. Trading signals are generated when prices break through this zone. The signal rules are as follows:
In addition, a reverse trading switch parameter called “reverse” is included. When reverse trading is enabled, the long and short signals work in the opposite way of the above rules.
In summary, this strategy uses the APZ indicator to determine adaptive price zones, and generates reversal trading signals when prices break out of the zone boundaries. It belongs to a typical trend reversal tracking strategy.
The main advantages of this strategy are:
There are also some risks with this strategy, mainly in the following areas:
The suggested mitigations are:
The strategy can be optimized in the following aspects:
In summary, this is a short-term reversal strategy which captures price zones using the APZ indicator and makes reversal trades around zone boundaries. The advantages are high trading frequency and ability to adaptively adjust price zones. But there are also risks of false breakouts that need to be addressed through optimizations and additional tools.
/*backtest start: 2023-12-05 00:00:00 end: 2023-12-11 08:00:00 period: 1m basePeriod: 1m exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}] */ //@version=4 //////////////////////////////////////////////////////////// // Copyright by HPotter v1.0 15/01/2020 // // The adaptive price zone (APZ) is a volatility-based technical indicator that helps investors // identify possible market turning points, which can be especially useful in a sideways-moving // market. It was created by technical analyst Lee Leibfarth in the article “Identify the // Turning Point: Trading With An Adaptive Price Zone,” which appeared in the September 2006 issue // of the journal Technical Analysis of Stocks and Commodities. // This indicator attempts to signal significant price movements by using a set of bands based on // short-term, double-smoothed exponential moving averages that lag only slightly behind price changes. // It can help short-term investors and day traders profit in volatile markets by signaling price // reversal points, which can indicate potentially lucrative times to buy or sell. The APZ can be // implemented as part of an automated trading system and can be applied to the charts of all tradeable assets. // // WARNING: // - For purpose educate only // - This script to change bars colors. //////////////////////////////////////////////////////////// strategy(title="Adaptive Price Zone Backtest", shorttitle="APZ", overlay = true) nPeriods = input(20, minval=1) nBandPct = input(2, minval=0) reverse = input(false, title="Trade reverse") xHL = high - low nP = ceil(sqrt(nPeriods)) xVal1 = ema(ema(close,nP), nP) xVal2 = ema(ema(xHL,nP), nP) UpBand = nBandPct * xVal2 + xVal1 DnBand = xVal1 - nBandPct * xVal2 pos = 0 pos := iff(low < DnBand , 1, iff(high > UpBand, -1, pos[1])) possig = iff(reverse and pos == 1, -1, iff(reverse and pos == -1 , 1, pos)) if (possig == 1) strategy.entry("Long", strategy.long) if (possig == -1) strategy.entry("Short", strategy.short) if (possig == 0) strategy.close_all() barcolor(possig == -1 ? #b50404: possig == 1 ? #079605 : #0536b3 )