Strategy · Pine Script v6 · On the chart

GEKO Strategy

by grzegorzkowalskigk-jpg

This strategy backtests a Candle Range Theory model on the price chart, with variants that also require a CVD divergence, an absorption candle, or both.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code554
Settings40inputs
LicenceCustom licence
Last update3 months ago4 Jul 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

Entries can be taken on a midline retest, with the stop placed using an ATR buffer. Risk is sized as a percentage of equity or a fixed quantity, with a dollar cap, an optional daily loss limit, two reward-to-risk targets, a partial close at the first target and a move to breakeven. Direction and the test date window are adjustable, and only one position is open at a time.

Details

Published by

grzegorzkowalskigk-jpg on GitHub

Draws

On the price chart

Markets

Indices

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.

Settings

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

SettingTypeDefaultVariable
Strategy VariantstringCRT OnlystrategyVariant
Trade DirectionstringLong+ShorttradeDirection
Backtest Start Datetimetimestamp("2024-01-01 00:00 UTC")backTestStart
Backtest End Datetimetimestamp("2030-01-01 00:00 UTC")backTestEnd
CRT TimeframestringAutocrtTfMode
Strict Mode (C2 must sweep PDH/PDL)boolfalsecrtStrictMode
Entry ModestringMidline RetestcrtEntryMode
SL Buffer × ATR14float0.3crtSlBufferAtr
Base Risk per Trade (% of equity)float1.0riskPerTrade
Risk BasestringEquity (compounding)riskBaseMode
Max Risk per Trade ($, 0 = off)float10000maxRiskUsd
Quantity ModestringRisk-basedqtySizingMode
Show all 40 settings
SettingTypeDefaultVariable
Fixed Contracts / Unitsfloat1.0fixedQtyIn
Max Position Size (0 = off)float0maxQtyCap
Max Daily Loss ($, 0 = off)float0maxDailyLossUsd
TP1 Risk:Rewardfloat2.0tp1RR
TP2 Risk:Rewardfloat3.0tp2RR
Close % at TP1float50partialCloseTP1
Move SL to Breakeven after TP1booltruebreakevenAfterTP1
Max Concurrent Positionsint1maxConcurrent
Position Sizing ModestringFixed Risk %sizingMode
Target Annualized Volatility %float20.0targetVolPct
Volatility Lookback (bars)int25volLookbackBars
Max Effective Risk Cap (%)float3.0maxRiskCap
Vol Blend Weight (0=Fixed, 1=Full VT)float0.5volBlendWeight
Confluence Lookback (bars)int40divLookback
CVD Reset AnchorstringNevercvdResetMode
Div Pivot Lengthint3divPivotLen
Div Max Distance Between Pivotsint120divMaxDist
Absorption Min Volume Zfloat1.5absVolZ
Absorption Max Body/Rangefloat0.5absBodyRatio
Absorption Min |Delta|/Volumefloat0.4absDeltaRatio
Absorption Volume Lookbackint50absVolLookback
Restrict Trades to SessionsboolfalserestrictSessions
Asia (00-09 UTC)boolfalseallowAsia
London (08-17 UTC)booltrueallowLondon
NY (13-22 UTC)booltrueallowNY
Show CRT Boxes on chartbooltrueshowCRTBoxes
Show Stats PanelbooltrueshowStats
Stats Panel Positionstringbottom_rightstatsPos
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

Daily Bias + FVG Strategy

by TradersPost
228 stars

This overlay strategy plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto

Strategy v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Daily Bias + FVG Strategy
105 stars

Gold Scalping BOS & CHoCH is an overlay strategy designed for detecting market structure shifts. It calculates rolling swing highs and lows to identify Break of Structure (BOS) and Change of Character (CHoCH) events. Long signals trigger when bullish BOS and C

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Gold Scalping BOS & CHoCH
57 stars

This strategy identifies trend reversals through market structure changes (CHoCH) filtered by MACD momentum. It initiates long positions on bullish structure breaks when MACD is positive and above its signal line, and short positions on bearish breaks when MAC

Strategy v6 SMC / ICT / price actionOscillators & momentum Repaints
Updated 1 year ago · Apache-2.0 GitHub repository of Market Structure MACD 4H + Trailing
43 stars

Donald - AI Futures is a price-chart strategy that estimates inner and outer high-low zones and a smoothed close with rational quadratic kernel regression. It builds bullish and bearish momentum signals, optionally compares volume with a volume-weighted moving

Strategy v5 Oscillators & momentumSMC / ICT / price action Repaints
Updated 2 years ago · None stated GitHub repository of Donald - AI Futures

More SMC / ICT 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