ChainSmoker setup

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

At a glance

  • Chart symbol

    CRYPTO:BTCUSD

  • Timeframe

    2 hours

    Standard candles

  • Direction

    Long only

  • Orders fill

    Bar close

  • Sizes in

    BTC

  • Alerts

    One alert

    Every entry and exit

Get access to this strategyChainSmoker on CRYPTO:BTCUSD, 2h with the status panel “● Ready”

Set it up

  1. Add it to your chart

    On TradingView, open Indicators → Invite-only scripts and click ChainSmoker 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: ChainSmoker at the top left of the chart, the status panel at the top right.
    • If not: Access not showing
  2. Set the chart

    Symbol CRYPTO:BTCUSD, 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 115 × your multiplier (×1 = 115, ×2 = 230; ×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 ChainSmoker (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.
ChainSmoker Inputs tab: position sizing and start date
The picture shows the script’s default (50). Type 115 × your multiplier, as in step 3.
Create alert for ChainSmoker: 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 115 × 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 position value (% of equity)
In plain words: Safety cap: no position above this share of equity. 0 = off.
Default: 1,500 %
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
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: MetaTrader Bitcoin is often 1 BTC per lot, sometimes 0.1 or 0.01. Check your broker.
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 · Monthly returns table · Publication and live-start lines · Show notices
In plain words: Chart parts (group Display). Display only.
Default: on
FAQ on the chart
In plain words: Short answers on the chart (group Help).
Default: off

Properties tab

Initial capital
What to do: Set it to your account size before going live.
Default: 10,000
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.1 % 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: 10 % (10x)
Pyramiding
What to do: Entries in the same direction.
Default: 1
Order execution delay
What to do: Keep it as set: it decides when orders fill.
Default: None
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
Take-profit · stop
What it shows: The two exit levels of the open trade.
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 ChainSmoker shows

  • … · tested on CRYPTO:BTCUSD, so trades differ · check Order Size and Initial capital

    Info. Another coin. Allowed. Check your size and capital for it.

  • Feed …:… (tested: CRYPTO:BTCUSD) · fine, prices differ slightly

    Custom setup. Fine to use. CRYPTO:BTCUSD shows the tested trades.

  • Timeframe … · tested on 2h, so trades differ · 2h shows the tested setup

    Info. Switch to 2h for the tested setup.

  • Price step … (tested 0.01) · trades differ; best on a chart with a 0.01 step

    Custom setup. Run it on CRYPTO:BTCUSD 2h, even if you trade Bitcoin elsewhere.

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

Good to know

The entry is calculated when the 2-hour bar closes, from bars that had already closed, and fills at that close. Take-profit and stop fill when the price reaches them, also inside a bar.

  • Long only. One position at a time.
  • Each trade has a take-profit and a stop, set at entry and drawn on the chart. A stop can fill worse in a fast move.
  • Bitcoin trades every day. Signals can come at night and at weekends.
  • Funding and broker fees are not in the backtest.
  • Our ready-made layout runs our own size setting, so its figures differ from the script’s default report. The trades are the same.

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 ChainSmoker alert.
  2. Don’t reset the settings. Your Order Size, Start Date 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. Send alerts to: keep Custom for exactly your old messages, or pick your service.
  6. Create one alert: condition ChainSmoker (Interval as it is), message {{strategy.order.alert_message}} instead of TradingView’s own text, your service’s webhook URL.

Questions

The name says 30m-4H. Which timeframe?

2 hours is the tested setup. Other timeframes from 30 minutes to 4 hours work and show an info line.

Do I place the take-profit and stop myself?

With automation, the strategy sends the exit when the price gets there. By hand: place both at your broker right after the entry. The panel shows them under Take-profit · stop.

Can I trade Bitcoin at another broker?

Yes. Keep the strategy on CRYPTO:BTCUSD 2h and send the orders to your broker. Its price step is part of the tested setup.

Funding and fees?

Not in the backtest. Perpetual futures and CFDs on Bitcoin charge funding or overnight fees; check your broker.

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.