Updated November 2, 2026 · Source: TradingView · Destination: Cloud MT5 · Automation Settings: EA 2.21

How to connect TradingView to Cloud MT5

This guide covers the complete AlgoWay Cloud MT5 workflow: create a TradingView webhook, verify your MT5 broker server, connect a trading account, launch the hosted terminal, configure EA 2.21 automation and read the Journal or Experts logs.

TradingView alert  »  AlgoWay webhook  »  Hosted MT5 + Cloud EA  »  Broker account

Cloud MT5 is different from installing AlgoWay's desktop MT5 EA. You do not download or attach an EA to your own MetaTrader terminal for this workflow. AlgoWay manages a hosted instance, and you provide the broker account and trading instructions.

1. Before you begin

Have an AlgoWay account, a supported MetaTrader 5 broker account with its login, password and exact broker server name, and a TradingView strategy or indicator capable of producing webhook alerts. Test in a demo broker account before using live funds.

A broker account's right to trade, available instruments and symbol-specific volume/stop restrictions still apply. Cloud hosting does not override broker execution rules.

2. Create a Cloud MT5 connection

  1. Open Trade Webhooks

    In the AlgoWay Store, choose TradingView under Source — From, and Cloud MT5 under Destination — To. Select a trial where eligible or purchase the Cloud MT5 webhook.

  2. Enter the broker server

    In the connection form, type the exact MT5 broker server name (for example, the server shown by your MT5 account). Click Find Broker Server and wait for verification before continuing.

  3. Enter MT5 credentials

    Supply the broker account's numeric login and password, and confirm the verified broker server. This is your MT5 broker login — not your AlgoWay account password.

  4. Finish the webhook setup

    Review News Filter and Prevent Duplicate Alerts as needed, then create the webhook. You can later edit the connection from the dashboard.

Cloud MT5 is selected as the TradingView webhook destination
Step 1: select TradingView as the source and Cloud MT5 as the destination.
Cloud MT5 broker finder and MT5 login inputs
Step 2: verify the exact broker server, then provide broker login credentials.

News Filter and duplicate-alert protection

The connection form includes a News Filter selector and a separate Prevent Duplicate Alerts switch. Duplicate protection defaults to off; its window defaults to 10 seconds. When enabled, the configured window skips identical BUY/SELL alerts. Close and modify alerts are unaffected by that window.

Connection form with News Filter and prevent duplicate alerts options
The news selector and duplicate-alert window are connection-level controls, not EA trade-management settings.
If you already have a Cloud MT5 webhook but broker credentials are missing, use the Complete Cloud MT5 Connection screen. It preserves the existing webhook UUID and subscription; verify the broker again before saving.

3. Start Cloud MT5 and confirm readiness

Open Workspace → Cloud MT5. The dashboard lists each connection, its trial or subscription expiry, MT5 status, EA status and terminal controls.

  1. Click Start MT5 (play icon) for the correct connection.
  2. Allow the terminal to prepare, authenticate with the broker and connect the EA.
  3. Confirm both MT5 and EA indicators are green and the status reads Ready.
  4. Use Copy URL for the webhook URL that will go into TradingView.
  5. Use Positions, Instruments and History to inspect the broker account.

Use the gear icon for Automation Settings and the pencil icon to edit the webhook/connection details.

Cloud MT5 and EA status indicators plus Start and Stop controls
Each connection has its own MT5/EA health state, Start/Stop controls and reports.
Cloud MT5 dashboard with connections, status lights and report links
Cloud MT5 workspace: check the connection you intend to trade on.
Connections dashboard with multiple Cloud MT5 webhook rows and naming controls
The Connections page lists webhook records and lets you name each connection for easier identification.
Do not stop a trading terminal casually if it is managing live positions. Restarting for new settings can interrupt EA-side management until the terminal is ready again.

4. Configure your TradingView webhook alert

Create an alert on the intended TradingView strategy or indicator. In TradingView's notification settings, enable the Webhook URL option and paste the URL copied with Copy URL from your Cloud MT5 connection. In the Message field, use JSON appropriate for your strategy and configured sizing.

Strategy alert example

{
  "platform_name": "cloudmt5",
  "ticker": "{{ticker}}",
  "order_action": "{{strategy.order.action}}",
  "order_contracts": "{{strategy.order.contracts}}"
}

The double-curly TradingView placeholders are replaced by TradingView when an alert fires. Common actions include buy and sell; make sure your actual strategy action values match the webhook's supported handling. For a non-strategy alert, replace the placeholders with values produced by that alert. Never use a placeholder that your chosen alert type does not provide.

Example fixed-size demo alert

{
  "platform_name": "cloudmt5",
  "ticker": "EURUSD",
  "order_action": "buy",
  "order_contracts": "0.01"
}
Volume matters: do not assume a TradingView strategy contract equals a broker lot. Check the Position size & partial closes settings, then compare resulting MT5 lots with the broker symbol's minimum and volume step. Test with a small demo order first.

After the test, verify the webhook activity, MT5 Positions and History, and Experts log. A successful webhook delivery does not by itself guarantee broker execution.

5. Cloud MT5 Automation Settings — complete reference

Click the gear icon for your Cloud MT5 connection. The Automation Settings screen contains nine sections and 75 fields, matching the Cloud MT5 EA 2.21 settings schema. The defaults below are for new connections; saved settings can differ.

Save versus apply: Save Automation Settings stores the new revision without changing the running terminal. The saved settings take effect after the next Stop → Start MT5. Disabled features retain their saved parameter values for later.
Save Automation Settings toolbar and restart reminder
The save bar confirms that settings take effect on the next MT5 start.
Automation settings · 01 / 09

Trade execution

Core routing and broker order interpretation. Values shown below are the schema defaults, not recommendations for every broker or strategy.

These settings are stored per Cloud MT5 connection. Enable a switch only when you want the EA to apply its related controls.

Trade execution settings with mode, filling and pip selection
Setting / keyDefaultHow it works
Trade modetrade_modeReverse / NettingReverse/Netting manages one direction; Hedge can keep both sides on hedging accounts; Opposite changes signal direction; Inverse applies the EA inverse logic.
Magic numbermagic_number1973EA identifier used to distinguish its orders from other trading activity.
Order fillingorder_filling_typeAutoAuto selects a supported policy; FOK requires a complete fill; IOC allows a partial fill.
Pending orderspending_order_handlingAuto-convert (legacy)Invalid pending entry price: auto-convert, reject, or chase price. Choose deliberately when using pending orders.
Pip modepip_calc_modeTradingViewBroker AUTO, TradingView, Percent or Points. Defines how the EA interprets incoming pip and distance values.
SL/TP referencepip_calc_styleBid / AskReference incoming distances to live Bid/Ask or to the intended entry price.
Applying changes: use Save Automation Settings, then Stop → Start MT5 when it is safe to restart the connection. Saving does not interrupt an already running terminal.
Automation settings · 02 / 09

Position size & partial closes

Entry lots, scaling and close instructions. Values shown below are the schema defaults, not recommendations for every broker or strategy.

Position sizing: a webhook size of 0.10 lots multiplied by 2 gives 0.20 lots before broker rounding. Risk-based sizing needs valid entry and stop information. Confirm your broker's permitted volume step.

Connection configuration also includes duplicate alert protection
Position-size settings are in Automation Settings; the duplicate-alert window is configured separately during connection creation.
Setting / keyDefaultHow it works
Sizing modeposition_size_modeLots from webhookLots from the alert, Risk % of account, or Balance %; risk sizing requires meaningful entry/SL information.
Lot multiplierorder_size_coefficient1Multiplies the requested volume; 0.5 halves it, 2 doubles it before broker volume rules.
Override webhook lot sizeuse_internal_lot_sizeOffUse fixed lots for new entries rather than the quantity in the alert.
Fixed lot sizeinternal_lot_size0.10Entry volume when fixed-lot override is enabled.
Close size modeclose_volume_modeLotsPartial-close quantities are either absolute lots or percent of the initial position.
Legacy force risk modeuse_risk_percentOffCompatibility switch for legacy workflows; normally leave disabled.
Automation settings · 03 / 09

Trailing, break-even & profit protection

Protecting open trades through the EA. Values shown below are the schema defaults, not recommendations for every broker or strategy.

These settings are stored per Cloud MT5 connection. Enable a switch only when you want the EA to apply its related controls.

Trailing, break-even and profit lock controls
Setting / keyDefaultHow it works
Enable trailingenable_trailing_stopOffMove Stop Loss behind favourable market price action.
Trailing distance (pips)trailing_step20Desired distance between current price and trailing stop.
Trail starts after (pips)trail_points0Profit threshold to start trailing; 0 starts without an additional profit threshold.
Enable breakevenenable_breakevenOffMove Stop Loss to entry when the configured profit distance is reached.
Breakeven after (pips)breakeven_after_pips20Favourable move required for ordinary break-even.
Breakeven after TP1breakeven_after_tp1OffMove the remaining position stop to entry after TP1 actually closes; TP1 confirmation takes priority if both breakeven methods are enabled.
Enable profit lockenable_profit_lockOffProtect part of a favourable move by moving the stop further into profit.
Profit lock trigger (pips)profit_lock_pips100Profit threshold for activating profit-lock behaviour.
Profit lock delta (pips)profit_lock_delta_trigger20Amount of achieved profit that the locking calculation aims to retain.
Automation settings · 04 / 09

Stop loss & take profit

Override or ignore stop instructions. Values shown below are the schema defaults, not recommendations for every broker or strategy.

These settings are stored per Cloud MT5 connection. Enable a switch only when you want the EA to apply its related controls.

Internal and ignored Stop Loss and Take Profit controls
Setting / keyDefaultHow it works
Override SL/TP in EAuse_internal_sltpOffUse the distances below instead of incoming webhook SL/TP values.
Internal SL distance (pips)internal_sl_pips0Stop distance when internal SL/TP is enabled; zero means no distance.
Internal TP distance (pips)internal_tp_pips0Target distance when internal SL/TP is enabled; zero means no distance.
Ignore stop lossignore_stop_lossOffIgnore SL instructions from alerts; can leave trades unprotected if no other rule applies.
Ignore take profitignore_take_profitOffIgnore TP instructions from alerts; positions can remain open without a TP.
Automation settings · 05 / 09

Multiple take-profit levels

Up to four partial exits. Values shown below are the schema defaults, not recommendations for every broker or strategy.

These settings are stored per Cloud MT5 connection. Enable a switch only when you want the EA to apply its related controls.

Four target levels with distance and percentage inputs
Setting / keyDefaultHow it works
Enable 4-level take profitenable_multiple_take_profitOffEnable EA-managed TP1 through TP4; at least one target distance must be greater than zero.
TP distance unitmultiple_take_profit_modePipsMeasure target distances in pips or percent price movement.
TP close unitmultiple_take_profit_close_modePercentClose each target by percentage of position or by an absolute number of lots.
TP1 distancemultiple_tp10Distance from entry to TP1. Zero disables this target.
TP1 close (%)multiple_tp1_close_percent25Percent of position closed on TP1 when percentage mode is selected.
TP1 close lotsmultiple_tp1_close_lots0Lot volume to close on TP1 when lots mode is selected.
TP2 distancemultiple_tp20Distance from entry to TP2. Zero disables this target.
TP2 close (%)multiple_tp2_close_percent25Percent of position closed on TP2 when percentage mode is selected.
TP2 close lotsmultiple_tp2_close_lots0Lot volume to close on TP2 when lots mode is selected.
TP3 distancemultiple_tp30Distance from entry to TP3. Zero disables this target.
TP3 close (%)multiple_tp3_close_percent25Percent of position closed on TP3 when percentage mode is selected.
TP3 close lotsmultiple_tp3_close_lots0Lot volume to close on TP3 when lots mode is selected.
TP4 distancemultiple_tp40Distance from entry to TP4. Zero disables this target.
TP4 close (%)multiple_tp4_close_percent25Percent of position closed on TP4 when percentage mode is selected.
TP4 close lotsmultiple_tp4_close_lots0Lot volume to close on TP4 when lots mode is selected.
Multiple TP validation: at least one TP distance must be above zero; when closing in percentages, enabled target percentages combined must not exceed 100%. TP1 can also trigger breakeven after TP1.
Automation settings · 06 / 09

Risk controls

Exposure, execution limits and optional progression. Values shown below are the schema defaults, not recommendations for every broker or strategy.

These settings are stored per Cloud MT5 connection. Enable a switch only when you want the EA to apply its related controls.

Maximum positions, spread and anti-pyramiding controls
Setting / keyDefaultHow it works
Prevent pyramidingprevent_pyramidingOffBlock new same-direction entries where an open position already exists on the broker symbol, including matching manually opened positions.
Daily loss limit (%)daily_loss_limit_percent0Restrict further EA trading after the loss threshold; zero disables the limit.
Max drawdown per trade (%)max_drawdown_per_trade_percent0Per-position drawdown guard; zero disables it.
Maximum open positionsmax_open_positions0Total simultaneously open EA positions; zero means unrestricted by this setting.
Maximum per directionmax_open_positions_per_direction0Separate cap for buys and sells; zero disables the cap.
Maximum spread (points)max_spread_points0Block entries above the broker-point spread limit; zero disables it.
Maximum deviation (points)max_price_deviation_points0Maximum requested execution deviation in broker points; zero uses EA default.
Enable martingaleenable_martingaleOffIncrease sizing according to the EA martingale progression; this amplifies exposure.
Martingale multipliermartingale_multiplier1.5Multiplier for martingale progression when enabled.
Automation settings · 07 / 09

Trading hours & scheduling

Session filters, windows, reset and automatic flat. Values shown below are the schema defaults, not recommendations for every broker or strategy.

These settings are stored per Cloud MT5 connection. Enable a switch only when you want the EA to apply its related controls.

Allowed session windows and end-of-day closing controls
Setting / keyDefaultHow it works
London sessiontrade_londonOnAllow entries in the EA London session.
New York sessiontrade_newyorkOnAllow entries in the EA New York session.
Tokyo sessiontrade_tokyoOnAllow entries in the EA Tokyo session.
New York seasonnew_york_seasonWinterWinter or Summer session schedule; set according to applicable DST season.
Daily window timezonedaily_window_time_modeUTCUTC, broker-server time, or terminal local time for daily entry window.
Daily trading windowdaily_time_window_utc00:00-23:59Allowed entry window HH:MM-HH:MM interpreted in the selected timezone.
Daily reset UTCdaily_reset_time_utc22:00Daily calculation reset in UTC, HH:MM.
Delay after open (minutes)start_trading_after_open_minutes0Hold new entries this many minutes after a session opens.
Auto-flatauto_closeNoneOptional end-of-day or end-of-week flattening; None leaves positions open.
Auto-flat lead (minutes)auto_close_lead_minutes30Start automatic flattening this many minutes before the selected day or week end.
Automation settings · 08 / 09

Symbol mapping

Broker-specific instrument aliases. Values shown below are the schema defaults, not recommendations for every broker or strategy.

These settings are stored per Cloud MT5 connection. Enable a switch only when you want the EA to apply its related controls.

Five TradingView symbol to broker instrument mappings
Setting / keyDefaultHow it works
TradingView ticker 1tv_ticker1BlankSource symbol for mapping pair 1; e.g. US100.
Broker ticker 1broker_ticker1BlankExact broker instrument name for mapping pair 1; e.g. NAS100.
TradingView ticker 2tv_ticker2BlankSource symbol for mapping pair 2; e.g. US100.
Broker ticker 2broker_ticker2BlankExact broker instrument name for mapping pair 2; e.g. NAS100.
TradingView ticker 3tv_ticker3BlankSource symbol for mapping pair 3; e.g. US100.
Broker ticker 3broker_ticker3BlankExact broker instrument name for mapping pair 3; e.g. NAS100.
TradingView ticker 4tv_ticker4BlankSource symbol for mapping pair 4; e.g. US100.
Broker ticker 4broker_ticker4BlankExact broker instrument name for mapping pair 4; e.g. NAS100.
TradingView ticker 5tv_ticker5BlankSource symbol for mapping pair 5; e.g. US100.
Broker ticker 5broker_ticker5BlankExact broker instrument name for mapping pair 5; e.g. NAS100.
Automation settings · 09 / 09

Telegram alerts & diagnostics

Saved notification preferences and debug option. Values shown below are the schema defaults, not recommendations for every broker or strategy.

These settings are stored per Cloud MT5 connection. Enable a switch only when you want the EA to apply its related controls.

Notification preferences and debug logging settings
Setting / keyDefaultHow it works
Connection alertsenable_telegram_notificationsOffNotification preference only; bot delivery is not available until encrypted token storage is implemented.
Trade reportsenable_telegram_trade_reportsOffTrade-report preference; does not currently send Telegram messages.
Telegram chat IDtelegram_chat_idBlankChat destination preference; a chat ID alone cannot send messages.
Telegram bot tokentelegram_bot_tokenUnavailableInput is disabled pending encrypted secret storage; do not describe it as operational.
Debug loggingdebug_loggingOffEnable more detailed MT5 Experts output for troubleshooting.
Telegram delivery is not live. Notification toggles currently save preferences only. The bot-token input is disabled until encrypted storage is available.

6. Monitoring, logs and diagnosing trade execution

The Cloud MT5 dashboard gives you two separate read-only diagnostic panes. Select the required connection in Cloud MT5 Debug Logs, then use Refresh or allow the interface to update automatically approximately every 6 seconds.

MT5 Journal UTC log screen
MT5 Journal (UTC): terminal and network activity.
Experts UTC log showing Cloud MT5 EA ping and transport details
Experts (UTC): EA startup, connection and trade-processing diagnostics.
SymptomChecksWhat to do
MT5 offline / stoppedSubscription active, Start action and terminal statusStart the connection and wait for broker authorization; inspect Journal if it fails.
EA status not greenEA health state and Experts entriesVerify terminal launch and EA connectivity before sending another alert.
Broker login rejectedAccount number, password and verified broker serverCorrect the broker details using connection editing and retry when appropriate.
Order not openedWebhook activity, symbol, position mode, lot size, trading permission and ExpertsResolve the reported broker or EA error; a webhook accepted by AlgoWay is not a confirmed fill.
Unexpected order sizeWebhook quantity, multiplier, fixed-lot override, sizing mode and broker volume stepCalculate the intended lot size and repeat with a controlled demo alert.
Invalid stop / priceBid/Ask or entry-price reference, pip mode, SL/TP override and broker stop limitsCheck the exact broker response and validate distances against current instrument rules.
New settings not activeSaved revision and last terminal startApply with a planned Stop → Start MT5; saving alone does not reload the EA.
Telegram alert missingWhether bot-token configuration is availableTelegram sending is not yet supported in the current Cloud MT5 settings UI.

7. Frequently asked questions

Is this the same as installing the MT5 EA on my laptop?

No. Cloud MT5 runs the terminal and EA in a hosted environment. You manage its connection and settings from the AlgoWay website.

Why does the settings page say changes apply after the next start?

Saving stores a revision for the connection. A running terminal continues with its currently loaded settings until MT5 is started again.

Why does my webhook show an alert but not a filled position?

Check the MT5 and EA indicators, broker login and trading permissions, symbol mapping, order size, broker return codes and Experts log. Webhook receipt alone does not establish execution.

What if TradingView and my broker use different symbols?

Configure a TradingView ticker to exact broker ticker pair in Symbol mapping and confirm the instrument is offered by the broker.

Can I send trades when the terminal is stopped?

Do not expect live execution while MT5 and its EA are stopped. Start the connection and confirm both indicators show readiness before trading.

Can I enable Telegram trade reports?

The options are visible but sending Telegram notifications is not yet implemented because token setup is disabled.

Next step: test a complete entry and exit

Start with a demo account, verify an entry, then verify an intentional exit and the final position state. Once symbols, volumes and broker-specific restrictions are confirmed, enable additional EA management features deliberately.

For product details and billing, see Cloud MT5 automation overview. For the unrelated local-terminal installation workflow, use the dedicated MetaTrader 5 EA documentation rather than installing another EA for Cloud MT5.