This strategy is based on the Pivot Detector Oscillator to determine the current trend direction and manipulate the trend reversely using RSI to follow the trend.
This strategy uses SMA and RSI to construct the Pivot Detector Oscillator. The calculation method is as follows:
50 means bullish
According to the Pivot Detector Oscillator signal, reverse manipulate the trend, i.e. go short when bullish and go long when bearish, to follow the trend direction.
The key of this strategy is using the Pivot Detector Oscillator to determine the trend direction and reverse manipulate to track the market trend.
The main advantages of this strategy are:
The Pivot Detector Oscillator can accurately determine the trend direction. It comprehensively considers SMA and RSI, and can accurately identify trend reversal points.
The reverse manipulation strategy can effectively follow the trend. It can reverse operation in time when trend reversal happens to follow the trend.
The RSI parameter setting can adjust the sensitivity. Smaller RSI parameter makes it more sensitive to market changes.
The SMA period can be flexibly adjusted for trend analysis over different timeframes.
The long/short direction can be switched to adapt to different market conditions.
High capital utilization efficiency without requiring large capital.
There are also some risks:
Risk of misjudgment of the Pivot Detector Oscillator. Divergence may cause wrong judgments.
High risk of loss in reverse manipulation strategies. Strict stop loss is required.
Unable to reverse operation in time in strong trend conditions, potentially missing the trend.
Improper parameter settings may cause over-sensitivity or sluggishness.
Frequent trading leads to high transaction costs.
Risk management measures:
Set reasonable SMA period to avoid misjudgment.
Strict stop loss to control single loss.
Using partial position to reduce risk.
Parameter optimization to find optimal parameters.
Optimize stop loss strategy to reduce loss.
This strategy can be improved from the following aspects:
Optimize indicator parameters to find the optimal combination.
Optimize stop loss strategies such as trailing stop loss.
Add other indicators like MACD, KDJ to filter signals.
Use machine learning methods to automatically optimize, like evolutionary algorithms, reinforcement learning.
Combine volume analysis for timing.
Model-based stop loss based on price fluctuation models.
Optimize stop loss using high frequency data.
This strategy uses the Pivot Detector Oscillator to determine the trend direction and reverse manipulation to follow the trend. The advantages are accuracy, flexibility, high capital utilization efficiency, but there are also risks of misjudgment and loss. Further improvements on parameter optimization and stop loss can enhance profitability and stability. Overall this is a typical quantitative trading strategy with clear logic and worth in-depth researching.
/*backtest start: 2023-09-30 00:00:00 end: 2023-10-30 00:00:00 period: 1d basePeriod: 1h exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}] */ //@version=2 //////////////////////////////////////////////////////////// // Copyright by HPotter v1.0 03/10/2017 // The Pivot Detector Oscillator, by Giorgos E. Siligardos // The related article is copyrighted material from Stocks & Commodities 2009 Sep // // You can change long to short in the Input Settings // WARNING: // - For purpose educate only // - This script to change bars colors. //////////////////////////////////////////////////////////// strategy(title="The Pivot Detector Oscillator, by Giorgos E. Siligardos") Length_MA = input(200, minval=1) Length_RSI = input(14, minval=1) UpBand = input(100, minval=1) DownBand = input(0) MidlleBand = input(50) reverse = input(false, title="Trade reverse") // hline(MidlleBand, color=black, linestyle=dashed) // hline(UpBand, color=red, linestyle=line) // hline(DownBand, color=green, linestyle=line) xMA = sma(close, Length_MA) xRSI = rsi(close, Length_RSI) nRes = iff(close > xMA, (xRSI - 35) / (85-35), iff(close <= xMA, (xRSI - 20) / (70 - 20), 0)) pos = iff(nRes * 100 > 50, 1, iff(nRes * 100 < 50, -1, nz(pos[1], 0))) 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) barcolor(possig == -1 ? red: possig == 1 ? green : blue ) plot(nRes * 100, color=blue, title="Pivot Detector Oscillator")