Adaptive Grid setup

Nasdaq 100, long only, timeframe 2 hours. Everything you need to run it on TradingView1, step by step.

At a glance

  • Chart symbol

    NASDAQ_DLY:NDX

    other markets work too

  • Timeframe

    2 hours

    Standard candles

  • Direction

    Long only

  • Orders fill

    Next bar’s open

  • Sizes in

    Whole index units

  • Alerts

    One alert

    Every entry and exit

Get access to this strategyAdaptive Grid (SureShot) on NASDAQ_DLY:NDX, 2h with the status panel “● Ready”

Set it up

  1. Add it to your chart

    On TradingView, open Indicators → Invite-only scripts and click Adaptive Grid in the list of PineIndicators scripts. Or open the ready-made layout and save a copy (Copy at the top right, or layout menu → Make a copy…).
    • You should see: Adaptive Grid at the top left of the chart, the status panel at the top right.
    • If not: Access not showing
  2. Set the chart

    Symbol NASDAQ_DLY:NDX, timeframe 2 hours, chart type Candles.
  3. Choose your size

    Open the settings (gear icon next to the name). Inputs → Position sizing: Optimized. Order size (% / quantity): type 50 × your multiplier (×1 = 50, ×2 = 100; ×1 is the size our published results use; in a portfolio also × its weight, see Portfolio and multiplier). Properties → Initial capital: your account size.
    • You should see: Next order in the panel: the next quantity and its % of equity.
    • If not: Position size
  4. Set the start date

    Live trading: set Start date to today.
    • You should see: Past trades disappear from the chart. That is normal.
  5. Choose where alerts go

    Inputs → Send alerts to: keep Custom for your old messages, or pick your service.
  6. Create one alert

    Condition Adaptive Grid (Interval as it is). Message: delete TradingView’s own text, paste {{strategy.order.alert_message}}. Your service’s webhook URL.
  7. After any change, a new alert

    After any change of the settings or an update: delete the alert and create it again.
Adaptive Grid (SureShot) Inputs tab: position sizing and start date
The picture shows the script’s default (50). Type 50 × your multiplier, as in step 3.
Create alert for Adaptive Grid (SureShot): condition and message

Every step in detail: create the one alert · the start date

Where do you trade?

Every setting

The defaults of the current version. You decide every value.

Inputs tab

Order size (% / quantity)
In plain words: How big each order is: a percentage in Optimized and % of equity, a quantity in Fixed quantity. With Optimized, type 50 × your multiplier (×1 = the size of our published results; in a portfolio also × its weight).
Default: 50 (script default)
Position sizing
In plain words: How the order size is read: Optimized, % of equity, Fixed quantity.
Default: Optimized
Max order value (% of equity)
In plain words: Safety cap per order (each layer) as % of equity. 0 = off.
Default: 3,000 %
Max quantity per order (0 = off)
In plain words: Optional cap in units, every mode.
Default: 0
Start date
In plain words: No orders before this date. Live trading: the day you create the alert.
Default: 2000-01-01
Strategy-mode
In plain words: The direction: Only Long, Only Short or Long & Short.
Default: Only Long
Further strategy settings
In plain words: The other inputs under General Settings and the two groups below it. Keep the defaults; every input has a tooltip.
Default: as published
Send alerts to
In plain words: What every alert message looks like.
Default: Custom
PineConnector license ID
In plain words: Your PineConnector ID (PineConnector only).
Default: empty
Units per lot (PineConnector)
In plain words: Enter your MetaTrader symbol’s contract size if it isn’t 1 index unit per lot.
Default: 1
Broker symbol (blank = chart symbol)
In plain words: Your broker’s name for the market (PineConnector, TradersPost).
Default: empty
Entry/Buy alert message · Exit/Close alert message
In plain words: Your own two texts, used with Custom. Saved texts stay after updates.
Default: the earlier default
Show alert message preview
In plain words: The next messages in the panel.
Default: off
Status panel · Gain‑Table? · Publication and live-start lines · Show notices
In plain words: Chart parts (group Strategy Style). Display only.
Default: on
Problems/Questions? Find Solutions In The FAQ!
In plain words: Short answers on the chart (group Help & FAQ).
Default: off

Properties tab

Initial capital
What to do: Set it to your account size before going live.
Default: 100,000 USD
Order size
What to do: Not used: the size is set on the Inputs tab.
Default: —
Commission
What to do: Trading cost per side in the backtest.
Default: 0.01 % per side
Slippage
What to do: Price slippage per fill in the backtest.
Default: 1 tick
Margin (long / short)
What to do: Use your broker’s real margin with large sizes.
Default: 5 % (20x)
Pyramiding
What to do: Entries in the same direction.
Default: 25 (keep it)
Order execution delay
What to do: Keep it as set: it decides when orders fill.
Default: One tick
Recalculate (after order is filled / on every tick)
What to do: Keep both off.
Default: off

Every setting explained: Every setting

The panel and its notices

● Ready / ● Custom setup / ● Check
What it shows: Tested setup / another symbol, feed or timeframe / change something
Position
What it shows: Flat, or ▲ Long / ▼ Short with the open result
Position value
What it shows: The whole position, all layers together.
Exit level
What it shows: Where the position closes.
Next layer
What it shows: The next order the strategy can add.
Sizing
What it shows: Your mode and size
Next order
What it shows: The next order’s size and its % of equity. Compare it with your broker.
Drawdown
What it shows: The drop now, next to the worst one on your chart

Notices only Adaptive Grid shows

  • Tested mainly on NDX 2h

    Info. Nothing to do. Other markets and timeframes work; results there can differ.

  • Max order value made … order smaller than your Order size · raise it, or 0 = off

    Custom setup. Raise Max order value, or set it to 0 (off).

  • 1 unit = … …, above Max order value … % · use about … … capital or Max order value 0 = off or the micro future MNQ1!

    Check. One index unit is too large for the cap. Use the capital shown, set the cap to 0, or use MNQ1!.

The notices all 8 share: every notice and its fix. Hide them: Settings › Strategy Style › Show notices.

Good to know

Calculated when the 2-hour bar closes, from bars that had already closed. Orders fill at the next bar’s open; the exit can also fill inside a bar.

  • Builds a position in layers and closes it all at once. Every layer is its own order.
  • Your service must allow adding to an open position (TradersPost: “Allow add to position”).
  • The Order size applies to every layer. Position value in the panel shows the whole position.
  • No stop-loss. A position can stay open at a loss for months.
  • The index trades in whole units, so a small account skips orders.

Changelog

Pine v6 update · 28 Nov 2026

  • Same entries and exits as before, checked trade by trade over the entire history.
  • New: the status panel, the notices, clear trade marks and the Send alerts to menu.
  • Your saved size, start date and alert texts are kept.

After this update

  1. Delete your old SureShot alert (after every update).
  2. Don’t reset the settings. Your Order size, Start date, strategy settings and alert texts are kept.
  3. Properties: set Initial capital to your account size.
  4. Start date: today (only for live trading with an alert).
  5. Every layer is its own order: your service must allow adding to a position.
  6. Send alerts to: keep Custom for exactly your old messages, or pick your service.
  7. Create one alert: condition SureShot (Interval as it is), message {{strategy.order.alert_message}} instead of TradingView’s own text, your service’s webhook URL.

Questions

My bridge says “Position Already Open”.

Every layer is a new order on the same position. Allow adding to an open position in your service.

Why “SureShot”?

The name is historical. No trade and no result is certain.

Which settings should I leave alone?

Everything outside Position Sizing, Start date and Alert Messages. Every input has a tooltip.

The NDX chart shows a “D”.

NASDAQ NDX data is delayed without a data subscription. The backtest is unaffected; live alerts come late. For live alerts, consider a real-time symbol. See Data feeds.

What is Strategy-mode?

The direction: Only Long (default), Only Short or Long & Short. Our figures use the default.

Still stuck?

Ask our AI assistant (the button at the bottom, 24/7), or email support@pineindicators.com with your TradingView username, the strategy and a screenshot of the panel. A person replies within 24 hours, weekends included.

This help is general. It explains how our strategies and TradingView work. It is not investment advice, and you decide every setting yourself. Test on a demo account first.