Type/to search

Pivot Reversal Quantitative Strategy Based on Pivot Points

Common strategy
Created: 2024-02-20 14:22:13
Last modified: 2 years ago
1
Follow
1802
Followers

img

Overview

The core idea of this strategy is to use pivot points for quantitative trading. It looks for important swing highs and lows and makes reversal trades when prices break through these key levels.

Strategy Logic

The strategy first defines functions pivotHighSig() and pivotLowSig() to locate swing highs and low points. These two functions search for qualified pivot points on the left and right sides.

Specifically, for swing highs, it looks for multiple higher highs on the left and multiple lower highs on the right. Thus the pivot high sits at a relatively higher level. The criteria for swing lows are opposite - it looks for higher lows and lower lows on both sides.

After locating the swing highs and lows, the strategy further selects pivot points from those pivot points, i.e. important points from the pivots. This is achieved by defining multiple historical variables for the swing highs and lows, e.g. ph1, ph2 etc.

Finally, reversal trades are taken when prices break through the pivot points of pivots.

Advantages

This pivot point based quantitative strategy has the following advantages:

  1. It takes advantage of support and resistance levels in the market where turnarounds often happen
  2. It identifies both important high and low points for dual-side trading
  3. Pivot points are outstanding extremum points and breaking through them gives strong signals
  4. Using pivot points of pivots makes the signal even more reliable

Risks and Solutions

There are also some risks with this strategy:

  1. Misjudging pivot points leads to wrong signals. The solution is to tune the left/right range parameters to identify pivot points more precisely.
  2. Breakout false signals. The solution is to filter out signals combining other factors like volume, momentum etc.

Enhancement Areas

This strategy can be improved in the following areas:

  1. Add stop loss mechanisms to make the strategy more stable
  2. Incorporate more technical indicators for signal filtering
  3. Develop PRED reversal models using machine learning to further boost pivot point prediction
  4. Build in adaptive parameters

Conclusion

Overall this strategy performs well. The core idea is to detect important pivot points and trade their breakouts. Further enhancements can generate more solid and reliable signals for higher and more consistent profits.

Source
Pine
/*backtest
start: 2023-02-13 00:00:00
end: 2024-02-19 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
strategy("Pivot of Pivot Reversal Strategy [QuantNomad]", shorttitle = "PoP Reversal Strategy [QN]", overlay=true)

// Inputs 
Strategy parameters
Strategy parameters
PP Left Bars
PP Right Bars
ATR Length
ATR Mult
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)