Pine Script v6 · for TradingView

Describe how you trade. Get Pine Script that actually runs.

Plain English in, a complete Pine Script v6 strategy out — entries, exits, sessions and risk, auto-checked for the errors that stop scripts compiling or trading. Paste it straight into TradingView.

Try it free — 3 generations a day

No card required. Start generating in under a minute.

ema-rejection-mgc-15m.pine
The part nobody else does

The first script is rarely the final one

A strategy that compiles can still be wrong — too tight to ever fire, exiting on the wrong bar, printing labels every candle. So refining is built in: say what went wrong in plain English and get a corrected script back.

01 · SymptomStrategy Tester

It compiles. It just never trades.

Total trades 0 Net profit Period 6 months

The most demoralising outcome — nothing looks broken, so there's nothing to search for.

02 · DiagnosisCause

The entry gate is too tight to open.

range_tight = atr_v * 1.5 // excludes nearly every // real consolidation

Named in plain English and pointed at the exact line — not a shrug and a fresh script.

03 · FixCorrected

Loosened. Re-run. Trading.

range_tight = atr_v * 3.0 Total trades ✓ firing

You get the rewritten script itself, ready to paste back into TradingView.

How it works

Three steps, about thirty seconds

1

Describe your strategy

In plain English, the way you'd explain it to another trader. Pick your symbol, timeframe, direction and session — or start from a preset.

2

Get working Pine Script

A complete v6 strategy with entries, stops, targets and session filters — automatically linted and validated before it reaches you.

3

Test and refine

Paste it into TradingView and run the backtest. Something off? Say what to change and get the corrected script back.

What it produces

Real setups, real Pine

Three of the patterns it builds from — generated as complete, runnable strategies, not snippets.

EMA Rejection
MGC15mLong & Short

Waits for a rejection wick at the 50 EMA, then enters on the confirmation candle that closes back through it.

// 2-bar rejection
near_ema       = low[1] <= ema_v + atr_v * ema_tol
bull_rejection = near_ema and prior_low_wick >= atr_v * 0.4
long_signal    = bull_rejection and close > open[1]
ORB Breakout
MNQ5mBoth

Builds the opening range from the first 30 minutes, then trades the break with an ATR-filtered confirmation.

if in_orb
    orb_high := math.max(orb_high, high)
    orb_low  := math.min(orb_low,  low)
long_signal = orb_built and close > orb_high
Liquidity Sweep
BTC/USD15mBoth

Enters after price sweeps a recent swing low and displaces back through it on an expansion candle.

bullSweep = low < swingLow and close > swingLow
bullDisp  = close > open and
            (close - open) > atr_v * 1.5
long_signal = bullSweep and bullDisp

Your strategy, in Pine Script, today

Stop hand-writing scripts you have to debug line by line. Describe it once and refine it until it trades the way you meant.

Try it free — 3 generations a day

No card required. Free every day, forever.