Skip to main content
Automate · TradingView → MT5

Your alerts.Checked first.

Point a TradingView alert at your own PFX webhook. Every alert passes five checks before it reaches the free PFX Executor on your MT5 account. One that fails is refused, and the log tells you exactly why.

Free with a PrecisionFX account

Example alerts. Refusal messages are the relay's own wording.

The risk guard

Refused.With a reason.

An alert the Executor can't carry out exactly as written is never guessed at or quietly dropped. It is refused, and the alert log shows why.

Alert checkRefused
LicenseID,buy,XAUUSD,risk_pct=1
Percent-risk sizing on the PFX Executor needs the stop as a price (sl_price=)
Add the stop as a price, for example sl_price=2378.0
All checksAccepted
{ "action": "BUY", "symbol": "EURUSD",
  "lots": 0.35, "sl": 1.08322, "tp": 1.08772,
  "px_mode": "price" }
Delivered to every account that follows this strategy
Alert checkRefused
LicenseID,buy,EURUSD,vol_lots=0.5,risk_pct=1,sl_price=1.0832
Use one volume method per entry
Keep vol_lots or risk_pct, not both
StrategyRefused
{ "action": "SELL", "symbol": "XAUUSD", "lots": 0.08 }
Strategy paused
You paused this strategy. Nothing is sent until you switch it back on
Alert checkRefused
LicenseID,buy,EURUSD,sl_price=1.0832,sl_pips=15
Use prices or pips for the stop and target, not both
StrategyRefused
{ "action": "BUY", "symbol": "GBPJPY", "lots": 0.20 }
Symbol not allowed
This strategy only trades the symbols you listed for it
Your accountNot sent
{ "ticker": "EURUSD", "action": "buy",
  "orderType": "limit", "limitPrice": 1.0810 }
Not sent: this account's Executor is older than 6.00
Pending orders need Executor 6.00 on that account
Your accountNot sent
{ "action": "BUY_LIMIT", "symbol": "XAUUSD", "entry": 2370.0 }
expired (entry too old)
An account that reconnects late never chases an old entry
In the ExecutorHeld
{ "action": "BUY", "symbol": "EURUSD", "lots": 0.35 }
Held (news)
Your optional news guard, using MT5's own calendar. Off until you switch it on

Example alerts

One alert · several accounts

One alert.Each account its own way.

Every MT5 account sets its own size and its own symbol name, so one alert reaches a live account, a prop account and a demo the way each one needs it.

AlertLondon Break
{ "action": "BUY",
  "symbol": "XAUUSD",
  "lots": 0.20 }
Live account× 1.0
size × 1.0 · symbol XAUUSD
BUY 0.20 XAUUSD
Prop accountfixed
fixed 0.10 lots · XAUUSD → GOLD
BUY 0.10 GOLD
Demo account× 0.5
size × 0.5 · XAUUSD → XAUUSD.r
BUY 0.10 XAUUSD.r

Example accounts and sizes

Formats

Keep your alerts.We translate them.

One webhook reads three alert formats, so moving from PineConnector or TradersPost doesn't mean rewriting your alerts. The same trade, three ways:

Your alert messagePFX
{ "action": "BUY",
  "symbol": "XAUUSD",
  "lots": 0.20,
  "sl": 2378.0,
  "tp": 2396.0,
  "px_mode": "price" }
What your Executor receivesSame every time
actionBUY
symbolXAUUSD
lots0.20
sl2378.0
tp2396.0
px_modeprice
Executor 5.37 and later
BUYSELLCLOSECLOSE_ALLCLOSE_PARTIALSET_SLSET_TPTRAIL_SL
Executor 6.00 and later
BUY_LIMITSELL_STOPCANCEL_ALLBREAKEVENtrail_distexpire_min

Example prices

Set up

Three steps.Nothing to host.

  1. 01

    Create a strategy

    Each strategy gets its own webhook address. Paste it into your TradingView alert.

  2. 02

    Add your MT5 accounts

    One key per Executor chart, and allow WebRequest for precisionfx.io.

  3. 03

    Choose who follows what

    Pick the accounts for each strategy, each with its own size and symbol names.

What you need

  • A free PrecisionFX account. Automation is open to every member.
  • The free PFX Executor, from Tools once you sign in. It is not on the MQL5 Market yet.
  • MT5 running for each account: your PC, your own VPS or an MQL5 VPS.
  • Your own alerts to your own accounts. This is not copy trading, and no broker password is ever asked for.

Before you automate

  • Automated trading carries the same risk as manual trading, plus the risk of a missed or repeated signal.
  • Test on a demo account first.
  • Your prop firm may restrict automation. Check its rules.
Send your first alert to a demo.

Sign in, create a strategy and paste the address into TradingView.

Open Automation
Risk warning: Trading forex, CFDs and futures is high risk and most retail traders lose money. Nothing on this site is financial advice. Past results, including backtests, do not guarantee future results. Read the full risk disclosure.