Strategy · Pine Script v6 · On the chart

v39b Live Adapt

by syrilj

A long strategy for one-hour or two-hour charts based on structure and volume-price analysis.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code380
Settings40inputs
LicenceNone stated
Last update2 months ago8 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

Side is set by price being inside the value area and at or above the point of control, with an optional higher-timeframe Heikin-Ashi MACD filter. Position size comes from a weighted volume-price score covering reclaims, springs, climaxes, upthrusts and dump bars, blended with momentum and a volatility regime. Exits use an ATR stop and trail plus a soft volume-price collapse. The volume profile is a rolling approximation.

Details

Published by

syrilj on GitHub

Draws

On the price chart

Markets

Stocks

Timeframes

M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Topics

algorithmic-tradingbacktestingfastapifintechmachine-learningnextjspythonquantitative-financereacttrading

Settings

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

SettingTypeDefaultVariable
Value Area %float70.0vaPct
VP rowsint25vpRows
VP lookback barsint20vpLook
Require HTF MACD-HA greenbooltrueuseHtf
HTF (4H=240, D=D)timeframe240htfTf
Require above session VWAPboolfalseuseVwap
Require price in Value AreabooltrueuseInVa
Require close >= POCbooltrueusePoc
Hard VPA entry floor (OFF = v39b)boolfalseuseVpaEntryFloor
Hard VPA floor if enabledfloat-1.50minVpaEntry
Block dump bars (specialist DNA)booltrueblockDump
Vol SMA (fast)int14volSma
Show all 40 settings
SettingTypeDefaultVariable
Price/Vol lookint3volLook
Stop/top memory barsint5stopLook
W stopping reclaimfloat1.00wStopRec
W no-supply testfloat0.75wNoSup
W springfloat0.55wSpring
W confirm upfloat0.50wConfirm
W healthy pullfloat0.20wHealthy
W stopping volumefloat0.25wStopVol
W no-demand (penalty)float0.40wNoDem
W climax recent (penalty)float0.45wClimax
W effort anomaly (penalty)float0.30wEffort
W topping recent (penalty)float0.28wTop
W upthrust (penalty)float0.35wUpthrust
W dump (penalty)float0.40wDump
W red-flag up (penalty)float0.22wRedFlag
Mom blend into size scorefloat0.35momW
Vol-regime amplify factorfloat0.15volRegAmp
Use EMA cloud soft biasbooltrueuseCloud
EMA fastint9emaFast
EMA midint21emaMid
EMA slowint55emaSlow
% equity base sizefloat10.0basePct
Hard stop ATR multfloat1.5stopAtr
Trail ATR multfloat2.5trailAtr
Arm trail after ATR multfloat1.0armAtr
Soft exit on VPA collapsebooltrueexitVpa
VPA mom exit threshfloat-0.85vpaExitTh
VPA score exit threshfloat-0.35vpaExitSc
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

This strategy calculates multiple technical indicators including EMAs, SuperTrend, ADX, RSI, MACD, Stochastic, and volume MA to generate entry signals for Indonesian stocks. It supports three entry trigger modes: Composite Score, Pullback, and Breakout, with f

Strategy v6 TrendOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Saham: Papan Gerak Strategy By. Akhmfz
257 stars

This overlay strategy is built for ES futures on the one-minute chart. It plots a volume-weighted moving average of price opens and standard-deviation bands at Fibonacci ratios, plus a second longer volume-weighted average from a higher-timeframe open. Call an

Strategy v5 Volatility & bandsMoving averages
Updated 6 weeks ago · None stated GitHub repository of ES Futures 1M No Repaint
106 stars

This strategy plots on the price chart and enters when three smoothed moving averages are aligned, RSI is on the matching side of 50, and a Williams fractal appears. An upward stack with RSI above 50 and a down fractal opens a long; the opposite setup opens a

Strategy v5 Moving averagesOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 3SmmaCrossUp + Fractal + RSI
105 stars

This overlay strategy looks for gold scalps from break of structure and change of character. It enters long when a bullish break, a bullish character change, and an optional volume filter align, and short on the opposite set. Optional RSI levels can block trad

Strategy v6 SMC / ICT / price actionOscillators & momentum Repaints

This strategy plots the previous daily high and low on the price chart and calculates the Andean oscillator bull and bear components with an exponential moving average signal. It looks for a bull or bear cross of that signal, then confirms the setup against re

Strategy v5 Oscillators & momentumSupport & resistance Repaints
Updated 3 years ago · MIT GitHub repository of Daily High/Low and Andean Oscillator Strategy

This strategy trades 1-minute futures contracts on Binance. It plots pivot high and low resistance and support levels on the price chart, along with an EMA and a custom Cto indicator. Long and short entries trigger on EMA and Cto crossovers combined with price

Strategy v5 TrendMoving averages Repaints
Updated 2 years ago · None stated GitHub repository of Binancash Futures Strategy 1M Candles

More Volume scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

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

Compare brokers