Strategy · Pine Script v5 · On the chart

均线过滤版震荡下沿插针评分系统

by Cyvadra

This strategy buys near a recent range low when a pin-like candle and a combined amplitude and volume score pass a threshold.

View on GitHub

Repaints

GitHub stars2on the repository
Pine versionv5runs as is
Lines of code110
Settings6inputs
LicenceNone stated
Last update8 weeks ago31 Aug 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Short moving averages with an ATR buffer detect a bearish stack, which raises the required score and tints the chart background. It opens one long position on the price chart and closes it if price drops more than two ATRs from the highest high since entry. There is no protective stop by default, and the signal can change on the live bar. Lookback length, amplitude percentile, and the two score thresholds are the main settings.

Details

Published by

Cyvadra on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

Moving averages, Candlestick patterns, Volume, Mean reversion

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)
  • The strategy enters trades without a stop loss

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
基础周期 (CCI/ATR/HL)int20lookback_period
波动率百分位追溯周期int200vol_pr_lookback
波动率准入百分位int50vol_pr_threshold
形态振幅准入百分位int66min_amp_pr
标准信号触发分值int3score_threshold
空头排列时触发分值int5strict_score
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

106 stars

This strategy enters long on an outside bar when the candle is bullish, the Klinger Volume Oscillator is positive, and price is above a Hull moving average. It enters short on an inside bar when the candle is bearish, the oscillator is negative, and price is b

Strategy v4 Oscillators & momentumMoving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Advanced OutSide Forex strategy

Candlestick Patterns

by pineforge-4pass
1 stars

This strategy detects bullish and bearish engulfing candles, hammers, shooting stars, and morning stars from current and prior bar bodies. It enters long when a bullish pattern occurs while price is below a simple moving average, and short when a bearish patte

Strategy v6 Candlestick patternsTrend Repaints
Updated 5 days ago · Apache-2.0 GitHub repository of Candlestick Patterns

Volume Spike Reversal

by Basant1Saini
1 stars

The Volume Spike Reversal strategy identifies potential price reversals driven by high volume activity. It triggers long entries when a volume spike occurs while price is below a 20-period simple moving average, combined with oversold RSI readings and bullish

Strategy v5 VolumeOscillators & momentum
Updated 7 months ago · None stated GitHub repository of Volume Spike Reversal
285 stars

Mean Reversion Strategy is an overlay strategy that identifies pullbacks using a long-term EMA, RSI, and candlestick patterns. It generates long signals when a bullish engulfing candle forms below the EMA while RSI is oversold, and short signals when a bearish

Strategy v4 Mean reversionCandlestick patterns
Updated 3 years ago · None stated GitHub repository of Mean Reversion Strategy

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers