INVITE-ONLY SCRIPT
Pivot Rider Strategy

📈 The trading strategy "Pivot Rider" is based on the breakout of key pivot points. Positions are opened when the previous extremum of the last N candles is broken.
In this trading algorithm, three levels of confirmation for trade entry are used:
In the strategy, two modes of exit from a position are implemented.
Main Components of the Trading Algorithm ⚙️
1. Pivot Points
Pivot points show places on the chart where the price either reverses or slows down.
Two types of pivots are used:
Pivots are divided into left and right shoulders.
Left Shoulders (Left Length)
Determine how many bars before the potential pivot must confirm its formation.
Default: leftLenH = 3, leftLenL = 3
Right Shoulders (Right Length)
Determine how many bars after the pivot confirm its formation.
Default: rightLenH = 3, rightLenL = 6
Why Different Numbers of Bars for Highs and Lows? 🤔
Market psychology: downward moves are usually sharper → more confirmations for lows.
Significance confirmation: more right bars for lows increase probability of a real "bottom".
Stricter trade conditions reduce both the number of trades and the probability of false signals.
How Trading Signals Are Formed
Long Entry:

Short Entry:
Chart Display 🎨

📌 At trade entry, labels appear:
Practical Application
Default sources: Pivot High = High, Pivot Low = Low
The correct combination of left and right pivots filters noise and shows potential entry/exit points.
2. Trend Filter 📊
Signal filtering based on market structure.
Rising highs/lows → uptrend; falling highs/lows → downtrend.
Without trend filter, the script would open trades at every breakout, causing false signals in flat markets.
Background: green = uptrend, red = downtrend
3. Volume Filter 🔊
4. Exit from Position 🚪
Main mode: stay in position until opposite conditions arise → then close and open new.
Exit on opposite pivot (ignore volume/trend): close immediately when opposite pivot forms.
Choice of exit mode depends on market conditions.
Pivot Rider Strategy Settings ⚙️
Pivot Settings:
Trend Filter:
Volume Filter:
Exit Settings:
Exit on Opposite Pivot: false
Trading Parameters:
Note: Funding is not accounted for. On different exchanges, it may vary and affect results.
Backtest Results 📑
Optimized for 4H timeframe, GALAUSDT. Can be used on other assets/timeframes, must be optimized.
Disclaimer ⚠️
Recommended: do not trade <1H timeframe, low-liquidity assets, or risk >1% capital.
Do not perceive this strategy as the Holy Grail. This script is merely a trader’s tool for backtesting a specific trading algorithm on any assets and timeframes to make more informed trading decisions, as well as automating trading using the TradingView platform.
In this trading algorithm, three levels of confirmation for trade entry are used:
- The script waits for the formation of a certain number of candles after the potential pivot to confirm its significance.
- It checks the compliance of the trade direction with the current local trend, determined based on rising or falling highs or lows, in order to reduce the probability of opening positions against the market.
- It requires increased volume, since true pivots are often accompanied by high volumes.
In the strategy, two modes of exit from a position are implemented.
Main Components of the Trading Algorithm ⚙️
1. Pivot Points
Pivot points show places on the chart where the price either reverses or slows down.
Two types of pivots are used:
- Pivot High (PH) — local maximum
- Pivot Low (PL) — local minimum
Pivots are divided into left and right shoulders.
Left Shoulders (Left Length)
Determine how many bars before the potential pivot must confirm its formation.
- For Pivot High: all bars in the left shoulder must have lower highs.
- For Pivot Low: all bars in the left shoulder must have higher lows.
Default: leftLenH = 3, leftLenL = 3
Right Shoulders (Right Length)
Determine how many bars after the pivot confirm its formation.
- For Pivot High: all bars in the right shoulder must have lower highs.
- For Pivot Low: all bars in the right shoulder must have higher lows.
Default: rightLenH = 3, rightLenL = 6
Why Different Numbers of Bars for Highs and Lows? 🤔
Market psychology: downward moves are usually sharper → more confirmations for lows.
Significance confirmation: more right bars for lows increase probability of a real "bottom".
Stricter trade conditions reduce both the number of trades and the probability of false signals.
How Trading Signals Are Formed
Long Entry:
- The script finds a peak high (the highest candle among 3 left candles).
- Waits for confirmation — 3 right candles pass, all below the high.
- HH level is set — this becomes the reference price.
- Potential long entry: price closes ABOVE this HH level.
Short Entry:
- The script finds a peak low (the lowest candle among 3 left candles).
- Waits for confirmation — 6 right candles pass, all above the low.
- LL level is set — this becomes the reference price.
- Potential short entry: price closes BELOW this LL level.
Chart Display 🎨
- Confirmed HH: green lines
- Confirmed LL: red lines
- HL: brown
- LH: blue
📌 At trade entry, labels appear:
- “Long Pivot Ride” for long trades
- “Short Pivot Ride” for short trades
Practical Application
- Active markets: reduce shoulders (e.g., 2-2) → more signals
- Calm markets: increase shoulders (4-5) → only important levels
- Trending instruments: use asymmetric settings (default in strategy)
Default sources: Pivot High = High, Pivot Low = Low
The correct combination of left and right pivots filters noise and shows potential entry/exit points.
2. Trend Filter 📊
Signal filtering based on market structure.
Rising highs/lows → uptrend; falling highs/lows → downtrend.
Without trend filter, the script would open trades at every breakout, causing false signals in flat markets.
Background: green = uptrend, red = downtrend
3. Volume Filter 🔊
- Filters weak signals caused by minor price fluctuations.
- Calculates average volume (last 10 candles by default).
- Checks volume at breakout against threshold (default 1.5×).
- Ensures breakout has "energy," indicating real market movement.
4. Exit from Position 🚪
Main mode: stay in position until opposite conditions arise → then close and open new.
Exit on opposite pivot (ignore volume/trend): close immediately when opposite pivot forms.
Choice of exit mode depends on market conditions.
Pivot Rider Strategy Settings ⚙️
Pivot Settings:
- Pivot High Source: high
- Pivot Low Source: low
- Left Pivot High: 3
- Right Pivot High: 3
- Left Pivot Low: 3
- Right Pivot Low: 6
Trend Filter:
- Use Trend Filter: true
- Bars for Trend Analysis: 7
Volume Filter:
- Use Volume Filter: true
- Volume Lookback Period: 10
- Volume Multiplier Threshold: 1.5
Exit Settings:
Exit on Opposite Pivot: false
Trading Parameters:
- Initial Capital: $10,000
- Default Quantity: $100
- Commission: 0.1%
- Slippage: 2 ticks
Note: Funding is not accounted for. On different exchanges, it may vary and affect results.
Backtest Results 📑
Optimized for 4H timeframe, GALAUSDT. Can be used on other assets/timeframes, must be optimized.
Disclaimer ⚠️
- Backtest results may not repeat.
- Market unpredictable; use at your own risk.
- Author not responsible for losses, exchange malfunctions, or platform issues.
Recommended: do not trade <1H timeframe, low-liquidity assets, or risk >1% capital.
Do not perceive this strategy as the Holy Grail. This script is merely a trader’s tool for backtesting a specific trading algorithm on any assets and timeframes to make more informed trading decisions, as well as automating trading using the TradingView platform.
초대 전용 스크립트
이 스크립트는 작성자가 승인한 사용자만 접근할 수 있습니다. 사용하려면 요청을 보내고 승인을 받아야 합니다. 일반적으로 결제 후에 승인이 이루어집니다. 자세한 내용은 아래 작성자의 지침을 따르거나 Script_Algo에게 직접 문의하세요.
트레이딩뷰는 스크립트 작성자를 완전히 신뢰하고 스크립트 작동 방식을 이해하지 않는 한 스크립트 비용을 지불하거나 사용하지 않는 것을 권장하지 않습니다. 무료 오픈소스 대체 스크립트는 커뮤니티 스크립트에서 찾을 수 있습니다.
작성자 지시 사항
To request access to this script, please follow this link https://www.patreon.com/cw/ScriptAlgo/membership
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
초대 전용 스크립트
이 스크립트는 작성자가 승인한 사용자만 접근할 수 있습니다. 사용하려면 요청을 보내고 승인을 받아야 합니다. 일반적으로 결제 후에 승인이 이루어집니다. 자세한 내용은 아래 작성자의 지침을 따르거나 Script_Algo에게 직접 문의하세요.
트레이딩뷰는 스크립트 작성자를 완전히 신뢰하고 스크립트 작동 방식을 이해하지 않는 한 스크립트 비용을 지불하거나 사용하지 않는 것을 권장하지 않습니다. 무료 오픈소스 대체 스크립트는 커뮤니티 스크립트에서 찾을 수 있습니다.
작성자 지시 사항
To request access to this script, please follow this link https://www.patreon.com/cw/ScriptAlgo/membership
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.