Type/to search

CRYPTO TREND REVERSAL STRATEGY BASED ON PIVOT SWING HIGH AND LOW POINTS

Common strategy
Created: 2024-01-12 14:13:36
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

This strategy identifies trend reversals in crypto assets based on PIVOT swing high/low points and breakout signals. It belongs to the breakout reversal strategy category. The strategy first calculates the recent highest and lowest price points as PIVOT levels, then detects if price breaks out these key levels, signaling major trend changes.

How The Strategy Works

  1. Calculate PIVOT High/Low Points

    Uses ta.pivothigh() and ta.pivotlow() to find highest high and lowest low prices over a custom bar lookback period to plot PIVOT points.

  2. Identify Breakout Signals

    If price breaks above PIVOT low point, or breaks below PIVOT high point, the strategy considers it as trend reversal signal.

  3. Set Filter Conditions

    Requires price to breakout PIVOT levels by meaningful distance, and closing price crosses 150 bar closing prices to avoid whipsaws.

  4. Entries and Exits

    Trigger buy signal on long condition, close long position on exit condition. Similarly for short setup rules.

Advantages

  1. PIVOT points are sensitive to major trend shifts
  2. Avoids whipsaws in consolidation trends with filters
  3. Captures reversals early with swing high/low breakouts

Risks

  1. Larger cycles can cause strategy to get whipsawed
  2. PIVOT points and filters need tuning for each asset
  3. Exchange fees impact results, need near-zero fee structure

Enhancement Opportunities

  1. Test different PIVOT lookback periods
  2. Add moving stop loss to control loss per trade
  3. Combine with other indicators for filter

Conclusion

The strategy is robust overall to capture large reversals, but needs customized parameters per asset and risk controls. With further optimization and guardrails, it can perform well across crypto markets.

Source
Pine
/*backtest
start: 2023-12-01 00:00:00
end: 2023-12-31 23:59:59
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © nkrastins95

//@version=5
Strategy parameters
Strategy parameters
Timeframe (Optional)
LENGTH LEFT / RIGHT
Pivot High
/
colorH
Pivot Low
/
colorL
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)