Help centerTradingView Automation

Set up TradingView Automation with SyncMyTrade

Trade your TradingView strategy automatically across your connected futures accounts.

This guide walks you through the complete TradingView automation setup, from creating a strategy in SyncMyTrade to configuring your TradingView webhook alert. It also explains how to manage stop loss and take profit and what to check when a signal does not reach your accounts.

⏱ 12 min readLast updated: November 2026

ℹ️ Note

TradingView Automation is available on paid SyncMyTrade plans. It supports Tradovate, ProjectX and Rithmic, plus supported NinjaTrader accounts connected through Tradovate. New to the feature? Start with our TradingView Automation overview.

Prefer to watch? See the full setup and a live test (4:55)

How it works

Every strategy you create in SyncMyTrade has its own private webhook URL and a ready-to-use alert message. You add both to a TradingView alert on your strategy.

Whenever your strategy fills an order, TradingView sends its updated position to SyncMyTrade. We compare that position with what each connected account currently holds and send the orders needed to bring each account in line with its assigned ratio.

The alert reports the strategy’s resulting position, not just the latest buy or sell order. For example, it tells us that your strategy is now long two contracts.

This makes duplicate alerts harmless: receiving the same position twice does not open another position.

If an account misses an update while it is already participating in a trade, a later signal can bring it back in line. However, an account that is flat while the strategy is already in a trade will not enter late. It waits for the next new entry or reversal.

Before you start

There are four things you need before setting up your automation.

A TradingView plan that supports webhooks

TradingView webhook notifications need a paid TradingView plan (Essential or higher at the time of writing). The free Basic plan does not include them. Check TradingView’s pricing page if you are unsure, as plan features can change.

⚠️ Important

Without a plan that supports webhooks, you will not see the Webhook URL option when creating an alert. Your TradingView strategy may still show that an alert has fired, but no webhook will reach SyncMyTrade. If your strategy’s Signals list is empty after a confirmed alert, check your TradingView plan first.

Two-factor authentication enabled on TradingView

TradingView requires two-factor authentication (2FA) before you can use webhook notifications. To enable it, open your TradingView account settings and go to Privacy and Security.

A paid SyncMyTrade plan

TradingView Automation is available on paid plans. During the free trial, you can open the feature and explore it, but you cannot create or run a strategy. You must upgrade to a paid plan to use strategy automation.

A connected broker with at least one account

Connect Tradovate, ProjectX or Rithmic first. Supported NinjaTrader accounts connect through Tradovate. See Brokers & connections for setup instructions.

A strategy cannot be enabled until at least one account is assigned to it.

ℹ️ Note

An account can only be assigned to one strategy or copy group at a time. If an account is missing from the list, it may already be assigned to another strategy or group.

1. Create a strategy in SyncMyTrade

Open TradingView Automation and select Add Strategy.

1

Give your strategy a name that you can easily recognise. It identifies the strategy on your dashboard.

2

Select the symbols that the strategy is allowed to trade. SyncMyTrade handles different contract formats automatically. For example, MNQ1!, MNQZ2026 and MNQZ26 all resolve to MNQ. An alert for a symbol that you have not selected will be rejected.

3

Choose your Exit Management settings. You can use TradingView exit alerts only, or enable broker-side stop loss and take profit as well. See Exit management below.

4

Save your strategy. Its webhook URL and alert message appear in the TradingView Setup panel on the strategy page.

ℹ️ Note

Signal Source is fixed to Strategy (a Pine Script strategy using strategy()). Indicator alerts are not supported yet. Order Execution is fixed to Market, so a limit entry in your TradingView strategy will be sent as a market order.

Market entries help keep your broker account in sync with your TradingView strategy. An unfilled limit order could leave your strategy and broker account holding different positions.

2. Add accounts and set ratios

Add your accounts on the strategy page

On your strategy page, find Connected Accounts and click Add Account. Select each account you want the strategy to trade. New accounts start at a ratio of 1x.

You can combine supported prop firm and personal accounts, as well as live and demo accounts, in one strategy.

Set each account’s ratio on the Dashboard

The ratio is a whole number from 1x to 10x. It determines how many contracts the account holds compared with your TradingView strategy. For example, if your TradingView strategy holds one contract:

  • An account set to 1x holds one contract.
  • An account set to 2x holds two contracts.
  • An account set to 3x holds three contracts.

To change it:

1

Open the Dashboard and select your strategy from the tabs at the top. Strategies are marked TV.

2

Select the symbol tab, for example MNQ.

3

In the Ratio column, click the account’s current ratio (for example 1x), type a whole number from 1 to 10 and press Enter.

Ratios are set per symbol. If your strategy trades more than one symbol, set the ratio on each symbol tab. A smaller evaluation account and a larger funded account can follow the same strategy at different sizes.

💡 Tip

Assign your accounts before creating the TradingView alert. A strategy cannot be enabled without at least one assigned account. If an alert arrives before an account is assigned, the signal will be recorded, but there will be no account to trade.

3. Create the TradingView alert

Open the TradingView chart where your strategy is running. Make sure the strategy has been added to the chart. Then follow these steps:

1

Click Alert in the top toolbar. The Create Alert panel will open.

2

Set Condition to your strategy’s name. The dropdown may show several items from your chart. Select the strategy, not an indicator or Price. The price condition rows will disappear because strategy alerts are based on your strategy’s orders.

3

Leave Interval set to Same as chart unless you have a specific reason to change it.

4

In SyncMyTrade, open your strategy page and find the TradingView Setup panel. Under 2. Alert Message, click Copy. Back in TradingView, open the Message section, delete the text TradingView has filled in, paste the copied message and click Apply.

5

In the same TradingView Setup panel, under 1. Webhook URL, click Copy. Back in TradingView, open Notifications, select the Webhook URL checkbox, paste the URL into the field and click Apply. Your URL starts with https://webhook.syncmytrade.com/tv/ and is unique to your strategy.

6

Check the alert’s expiration date. See the warning below.

7

Click Create.

⚠️ Important

Alert expiration. TradingView alerts have an expiry date. Standard alerts can run for up to two months. Premium and Ultimate plans offer an open-ended alert option.

When an alert expires, your automation stops because TradingView no longer sends signals. Your SyncMyTrade Signals list will not show new alerts because nothing is being received. Keep track of your alert’s expiry date and recreate the alert when needed.

TradingView also deactivates alerts that are more than one year old and have not triggered or been edited for more than a year.

⚠️ Important

Notification schedule. TradingView also has a Notification schedule, which controls when alerts can send notifications. It is set to 24/7 by default. Keep it at 24/7 unless you intentionally want to pause alerts during certain hours. Changing this schedule can stop your trading signals from reaching SyncMyTrade.

💡 Tip

You can also create the alert from the Strategy Tester’s Add alert button or from your strategy’s menu. The same alert panel will open with the strategy condition already selected.

What the alert message says

Copy the message from the TradingView Setup panel on your strategy page and paste it into TradingView exactly as shown. TradingView automatically replaces the placeholders when your strategy fills an order.

{
  "action": "{{strategy.order.action}}",
  "position": "{{strategy.market_position}}",
  "posSize": {{strategy.market_position_size}},
  "symbol": "{{ticker}}",
  "qty": {{strategy.order.contracts}},
  "price": {{strategy.order.price}},
  "interval": "{{interval}}",
  "time": "{{timenow}}"
}
FieldPlaceholderWhat it tells us
actionstrategy.order.actionbuy or sell — the direction of this order.
positionstrategy.market_positionlong, short or flat — what the strategy holds after it.
posSizestrategy.market_position_sizeHow many contracts it holds after it. This is the number we size your accounts to.
symboltickerThe chart's symbol. Must be one this strategy is allowed to trade.
qtystrategy.order.contractsThe size of this particular order.
pricestrategy.order.priceThe strategy's fill price. Used to place the stop and target straight away; they are then moved to your actual fill price.
intervalintervalThe chart timeframe, for your own records on the signal row.
timetimenowWhen it fired. Used to block old alerts, and makes a retry recognisable as the same signal.

ℹ️ Note

Every field is required. If any field is missing, the signal is rejected rather than guessed at. The reason is recorded on the strategy page. Changing the alert message manually is one of the most common ways to break a working setup.

⚠️ Important

The time field must use {{timenow}}, not {{time}}. The {{time}} placeholder reports when the bar opened. On most timeframes, this makes an alert appear older than it really is, so it may be blocked.

Because posSize reports the strategy’s resulting position rather than just the change in position, the same message handles scaling in, scaling out and reversals. For example, a reversal from long two contracts to short two contracts is sent in a single alert, rather than requiring separate close and open alerts.

Exit management

You can choose whether to use your TradingView strategy’s exit alerts only or add stop-loss and take-profit orders at your broker.

TradingView alerts only

Your strategy’s exit alerts close or reduce the position. No stop-loss or take-profit orders are placed at your broker.

This option follows your TradingView strategy’s exits most closely. However, the exit alert must reach SyncMyTrade for the position to close.

Stop Loss & Take Profit

SyncMyTrade places a stop loss and an optional take profit at your broker.

Because these orders are held at your broker, they stay active if your internet connection drops or SyncMyTrade becomes temporarily unavailable.

Your TradingView exit alerts still work in this mode. An exit alert closes or reduces the position, and the resting stop-loss and take-profit orders are cancelled or resized to match.

You can enter stop-loss and take-profit distances in points, ticks or dollars. They are first placed using the price in the TradingView alert, then moved to measure from the price your broker actually filled your order at.

There are two ways to manage these orders when your strategy adds to a position:

ModeBehaviour
One per PositionOne stop and one target for the whole position, measured from its average fill price and resized automatically as the position changes.
One per EntryEach entry keeps its own stop and target at its own fill price. Reducing the position retires the oldest entry first, the way your broker matches contracts.

⚠️ Important

Be careful when setting very tight stop-loss distances. Your entry is a market order, and prices can move quickly. The market may reach your stop before the entry order has fully filled. In that situation, your broker could open and close the position almost immediately. Set your stop distances with the instrument’s normal price movement in mind.

4. Enable and monitor your strategy

Once your accounts and TradingView alert are ready, you can enable the strategy using the toggle on its page.

When the strategy is disabled, incoming signals are recorded but no trades are placed. This gives you a way to watch the signals for a session before allowing the strategy to trade your accounts.

1

Turn on the strategy using its toggle.

2

Wait for your TradingView strategy to generate a signal.

3

Open the Signals section on the strategy page and check the incoming alerts. Every alert we receive appears there, whether it was traded or not.

4

Check the position at your broker as well. Your broker is the final source of truth for what your account actually holds.

Late alerts and missed entries

Old alerts are blocked from opening trades

Every alert includes the time it was generated. If it reaches SyncMyTrade after your configured time limit, it is treated as stale. The default limit is 60 seconds. You can change it under Advanced in your strategy settings.

A stale alert cannot open a new position, but it can still reduce or close an existing position. This helps prevent delayed entry signals from opening trades at prices that may no longer be relevant.

A late reversal can close your current position, but it will not open a new position in the opposite direction.

An account with no position does not join an open trade

If an account is flat while your TradingView strategy is already in a trade, SyncMyTrade will not open that trade late. This can happen when:

  • You add an account after the strategy has already entered a trade.
  • An account was paused while the strategy continued trading.
  • The account's own stop loss closed its position.

The account waits for the strategy’s next new entry or reversal before joining again. Until then, its signal rows show Position mismatch.

An account that already has a position continues to follow the strategy’s new entries, partial exits, reversals and closing signals as normal.

Why a signal was rejected

Every alert we receive is recorded on the strategy page. You can see whether it was traded, skipped or rejected, along with the reason. These are the reasons you may see.

ReasonWhat happened
Alert must be JSONTradingView’s default message was left in the box, or text was added around ours. The message must be our block and nothing else.
Missing "posSize"A placeholder was edited or removed. Copy the message again from the strategy page.
Signal is for ES, but this strategy trades MNQThe alert ran on a chart whose symbol is not in this strategy’s list. Add the symbol, or move the alert to the right chart.
Signal arrived … the limit is 60The alert reached us later than your age limit, so it was not allowed to open a position. Exits are still accepted however late. If this happens on every entry, check that time uses {{timenow}}.
Position mismatchThe account was flat while the strategy was mid-trade. It joins at the next new entry or reversal. See Late alerts and missed entries.
Strategy is not enabledThe toggle is off. The alert was recorded and nothing was traded.
TradingView Automation requires a paid planThe subscription lapsed or is on the free trial.
Rate limitMore than 60 alerts reached this strategy in a minute. One row is recorded per minute rather than one per rejected alert.
Already holding long 2Not an error. The strategy reported a position your accounts already hold, so there was nothing to send. This is what makes a duplicate alert harmless.

Troubleshooting

My TradingView alert fired, but the Signals list is empty

This means SyncMyTrade did not receive the webhook. Check the following:

1

Your TradingView plan includes webhook notifications. The free Basic plan does not.

2

Two-factor authentication is enabled on your TradingView account.

3

The Webhook URL checkbox is selected in your TradingView alert.

4

You are using the correct webhook URL from your current strategy. If you regenerated the URL, the old one no longer works.

5

Your TradingView alert has not expired.

6

Your TradingView notification schedule allows alerts at that time.

My automation worked for weeks and then stopped

First, check the alert’s expiry date. Standard TradingView alerts last up to two months and stop sending signals when they expire. Also check that:

  • The TradingView alert is still active.
  • The notification schedule covers the hours you want to trade.
  • Your SyncMyTrade strategy is enabled.
  • Your broker connection is still connected.

The same signal appears twice

TradingView may resend a webhook if a delivery fails. SyncMyTrade recognises these retries as the same signal, so they do not open duplicate positions.

I regenerated my webhook URL and now nothing works

Regenerating the URL takes effect immediately, and your old URL stops working. Open the TradingView alert and replace the old webhook URL with the new one shown on your SyncMyTrade strategy page.

My account is not available when I try to add it

An account can only be assigned to one strategy or copy group at a time. Remove it from the other strategy or group first, then try adding it again.

I cannot change my strategy settings

Strategy settings are locked while one of its connected accounts has an open position. This is because the stop loss and take profit orders at your broker were placed using the current settings. Close the open position first, then make your changes.

You can still view your current settings in the Strategy Configuration panel on the strategy page.

ℹ️ Note

Still need help? Contact our support team with your strategy name and the approximate time the alert fired. Every signal we receive is recorded with the information TradingView sent, so our team can look it up.