Skip to content
✦ SOURCE CODE 3 editable source-code editions · code EARLYBIRDSCRIPT saves $200 ($599 → $399) · through Dec 1, 2026 Explore editions ↗ ◆ SMART TRADER Premium scripts + 90+ optimization releases + private Discord · $29/month Join membership ↗ ⌘ PRIVATE CODING Develop a custom TradingView strategy with TradeSmart How it works ↗ ◈ OPTIMIZATION Research your own asset, timeframe and trading rules See the process ↗

TRADESMART DOCUMENTATION

3Commas Strategy Signal Bot — Step-by-Step TradeSmart V2 Setup

Exact workflow for TradingView strategy order-fill alerts, provider-generated messages, and controlled demo testing.

On this page 4 sections

3Commas — TradingView Strategy Signal Bot (step by step)

  1. In 3Commas → Signal Bot → Create bot, select TradingView Strategy as the bot start condition (not Indicator, unless intentionally using an indicator-based custom alerts workflow).
  2. Connect your intended exchange account/API profile, choose Spot or Futures as supported, and set the exact pair, side and capital allocation. Use demo/paper trading for initial validation.
  3. Review the bot’s multiple entry, swing/reversal, partial-exit and provider-side SL/TP handling against the V2 strategy’s own position-handling mode. Avoid duplicate stops and untested reversals.
  4. In the TradeSmart V2 script set Use Automation ON, choose Provider-Native TradingView Payload, and keep Automation Safe Mode ON while testing.
  5. Copy the bot-generated webhook URL and exact strategy message from the current 3Commas bot alert instructions. Do not invent a generic JSON or copy another bot’s identifiers.
  6. In TradingView choose the correct script, symbol, timeframe and inputs; open Create Alert, choose Order fills only, paste the provider-generated message into Message and the bot webhook URL into Notifications → Webhook URL.
  7. Verify the entire route using a minimum-size or demo position: TradingView alert log → 3Commas bot logs → exchange order log. Test entries, exits, partial exits and flips separately.
  8. After changing a script/input/symbol, recreate the TradingView alert: active alerts retain old snapshots. Emergency stop requires pausing the bot and deleting/pausing the alert.

Official visual walkthrough and position sizing

Primary official illustrated walkthrough (open for the provider’s current screenshots): 3Commas: Set up a bot with the TradingView Strategy start condition using placeholders. Open this article alongside the TradeSmart guide, because the provider UI may change.

Will the actual position size be sent? It can be, but not automatically in every configuration. TradingView exposes the filled order quantity through {{strategy.order.contracts}}. The bot receives and uses the quantity only if its chosen strategy-start template/payload supports it and the correct quantity-type field is configured. See the official 3Commas custom-volume article and 3Commas Signal Bot JSON guide.

For a JSON-capable custom-volume mode the documented relevant fields are:

{
  "code": "<BOT-SPECIFIC-CODE-FROM-3COMMAS>",
  "amountPerTrade": "{{strategy.order.contracts}}",
  "amountPerTradeType": "contracts"
}

This is an illustrative fragment, not a ready-to-send 3Commas message. Use the exact bot-generated code and provider template. contracts is intended for compatible futures contract sizing; crypto spot/base amount and quote-currency amount require different interpretation. {{strategy.order.contracts}} cannot simply be treated as a USD amount. If using the native TradingView Strategy mode, follow that bot’s prescribed strategy payload rather than mixing the JSON-mode example into it.

Before live trading: verify one entry, one full exit, and (if relevant) a partial exit using the minimum permissible size; compare the contract/base quantity in TradingView’s alert, 3Commas logs, and exchange fills. Make sure both systems do not independently place duplicate stop orders. Creating an alert saves a snapshot of the strategy configuration: after changes, stop the old alert and create a new one.

Official 3Commas instructions: TradingView Strategy Signal Bot setup · 3Commas v2 signal-source distinctions · JSON & dynamic signal options.

Important: 3Commas’ indicator JSON guide may instruct users to choose alert() function calls only. That is a different workflow from our V2 strategy order-fill provider-native setup. Follow the 3Commas guide for your chosen bot’s TradingView Strategy mode, not a mismatched Indicator tutorial.

Download the full TradeSmart V2 reference

Download the V2 Premium Automation Guide (DOCX). Verify current provider interface fields against the linked official guide before connecting real funds.

Back to the automation routes →

Using a V1 Premium strategy instead?

The classic V1 connection used a different webhook and order-comment workflow. Follow the V1 3Commas setup guide for that script generation. Do not use V1 DCA-bot alert screenshots to configure a V2 Strategy Signal Bot.

Guides explain configuration and research workflows. For automated execution, test every entry, exit and quantity on a demo account before trading live. Historical returns do not guarantee future performance.