Automate TradingView on a Prop Firm MT5 Account — Without Breaking the Daily Loss Rule

Most prop firms that run MetaTrader let you automate. FTMO says so in as many words — "yes, you are allowed to use algorithmic trading at FTMO" — and then adds the sentence this guide is built around: "Although the code enters the trades, you remain responsible for meeting the Trading Objectives (such as the Maximum Daily Loss)." Your TradingView strategy does not know your account exists. It will fire its fourth losing entry of the day as happily as its first. Whatever stops it has to live in the terminal, and it has to measure loss the way your firm measures it. That second part is where the traps are.

What You Need

Read These Five Rules Before You Automate Anything

Firms word these differently, change them, and sometimes vary them by account type, so read your own firm's current rules for the account you are buying. FTMO is the worked example throughout because its rules are public and precise — figures below are from its pages as of October 2026.

RuleWhat to find outFTMO example
1. Daily loss limit The amount; whether it is measured on balance or equity; when it resets, and in which time zone 5% (2-Step) or 3% (1-Step) of initial capital. Resets at 00:00 CE(S)T from the balance at that moment, and equity may not fall below it
2. Maximum loss Static or trailing, and how far below the start 10% — static on the 2-Step, an end-of-day trailing limit on the 1-Step
3. Automation Are EAs allowed? Is there a request limit? Allowed. EAs that push an account past 2,000 server requests a day are forbidden
4. News and market closes Windows in which you may not open trades or hold positions Its "gap trading" rule covers opening trades when major news is scheduled, or two hours or less before a market closes for at least two hours
5. Who trades the account May signals come from someone else? No third party may trade for you or in coordination with you

Trading Router is not affiliated with FTMO or any other prop firm. The rules quoted here come from FTMO's own trading objectives, its list of forbidden trading practices, and its article on algorithmic trading. Check them yourself before you start — firms update these pages.

Map Each Rule to an EA Setting

Everything in this table is set in the terminal or the alert message, per account. The sections after it explain the parts that are easy to get wrong.

Firm ruleTrading Router settingHow to set it
Daily loss limit Daily Loss Management Currency, below the firm's limit. Check time at the firm's reset. Close all and halt until the next reset
Static maximum loss accfilter_eqt= plus Cumulative Loss Management Floor plus a buffer in every entry alert. Re-enter Cumulative Loss after every halt or restart
Trailing maximum loss accfilter_eqt= Raise the value as the floor rises
Per-trade risk risk_pct_bal_loss= or Risk Source: Set risk by EA A percentage of balance, always with a stop
Profit target Cumulative Profit Management Close all and halt (persistent) at the target
News and weekend windows News Impact file Your own schedule of windows. Restart the EA after editing
Server request limit trailstep= and alert frequency Move stops in steps. Fire alerts once per bar close
Instrument names Prefix / Suffix, Symbol Map Match the firm server's names

Daily loss: five settings, two traps

Daily Loss Management closes everything and stops the EA when equity falls a set amount below a benchmark it records once a day. Set it like this:

Trap 1 — carrying a loser through the reset. The EA's benchmark is your equity at the check time. FTMO's is your balance at midnight. With no open positions those are the same number. With a losing position open, they are not:

Balance at the reset$100,000
Open position at the reset−$1,500, so equity is $98,500
Firm's floor for the new day$100,000 − $5,000 = $95,000
EA's halt level$98,500 − $4,000 = $94,500 — $500 below the firm's floor

The open loss you carried in counts against the firm's new day but not against the EA's. Either be flat at the reset — a News Impact window that spans it does that, see below — or make the buffer bigger than the largest open loss you would ever carry through it. An open profit at the reset works the other way and only makes the EA stricter.

Trap 2 — restarting mid-day. With Check Equity at Start and Wakeup on, a restart sets a fresh benchmark at whatever your equity is at that moment. Down $2,500 at 15:00 when the VPS reboots, the EA comes back allowing another full $4,000 — $6,500 for the day against a $5,000 limit. After any mid-day restart, lower Daily Loss by what the day has already lost, or keep the EA off until the reset. Re-attaching the EA to load an edited news file counts as a restart too.

Maximum loss: an equity floor that survives restarts

Cumulative Loss Management looks like the natural fit, with one catch. It measures from your equity when the EA starts, and it resets that baseline whenever the EA restarts or wakes from a profit or loss halt — a daily-loss halt included. On a $100,000 account with a $90,000 floor, a $9,000 cumulative limit is right on day one. After a $4,000 losing day the EA wakes at $96,000 with a new baseline, and the same $9,000 now allows trading down to $87,000.

Two ways to handle it. Use both.

Put an equity floor in your entry alerts. accfilter_eqt= makes the EA skip a signal unless account equity is above the value you give. It lives in the message, so restarts and halts cannot move it:

token=YOUR_MASTER_TOKEN, signal=buy, symbol=EURUSD, sl_pips=250, risk_pct_bal_loss=0.5, accfilter_eqt=91000

Re-enter Cumulative Loss after every halt or restart, as current equity minus the floor minus your buffer. At $96,000, with a $90,000 floor and a $1,000 buffer, that is $5,000.

A trailing maximum loss — FTMO's 1-Step uses an end-of-day trailing limit — has no setting that follows it automatically. Raise the accfilter_eqt= value whenever the floor moves up, and keep per-trade risk small enough that one bad day cannot reach it.

Per-trade risk: size from each account's balance

Fixed lots are the wrong unit for a funded account: they mean something different at every balance and every stop distance. Size from the stop instead:

token=YOUR_MASTER_TOKEN, signal=buy, symbol=EURUSD, sl_pips=250, risk_pct_bal_loss=0.5

The EA calculates the volume so that hitting the stop loses 0.5% of the balance. sl_pips is in points, not pips — on a 5-digit EURUSD, 250 is 25 pips. See pips and points if your instruments are anything other than plain forex pairs.

Or set Risk Source to Set risk by EA and choose a balance-percentage risk in each terminal. The EA then ignores the message's risk value and each account sizes itself, which is the cleanest way to run accounts of different sizes from one alert.

Then do the arithmetic once. At 0.5% per trade, a $4,000 daily stop on $100,000 is eight full losses. If your strategy can lose eight in a row in one day, risk less per trade.

Profit target: stop once you have passed

An automated strategy does not know you have passed. Cumulative Profit Management with Close All Positions and Halt EA (Persistent) stops everything at the target and stays stopped until you send eaon. It re-bases the same way Cumulative Loss does, so re-enter it after any halt or restart as the distance left to the target. If your firm has a consistency or best-day rule, Daily Profit Management can end the day once a cap is reached.

News and weekends: you write the schedule

The EA does not download an economic calendar. Its News Impact feature reads a file of time windows that you write, and during each window it either closes everything and ignores messages, or only ignores messages. Each line is a start time, end time, day range, month range and date range, in server time by default:

15:28:00, 15:35:00, FRI, FRI, NOV, NOV, 2026.11.06, 2026.11.06

That line blocks one release scheduled for Friday 6 November 2026 at 15:30 server time. The file syntax also takes recurring days and months.

The same file handles the weekend and the daily reset. A Friday-afternoon window gets you flat before the close — the Weekends/Holidays Break section has a ready-made example. A few minutes either side of the firm's reset avoids Trap 1; a window that crosses midnight needs two lines. The EA reads the file at start-up, so edits need a restart — make them after the reset, because of Trap 2.

Server requests and symbol names

FTMO forbids EAs that push an account past 2,000 server requests a day, and every order, modification and close is a request. The usual culprit is the trailing stop. trailstep= sets how far price must move in your favour before the stop moves again, so a step of a few points can modify one position dozens of times in a single move. Use a step that moves the stop in meaningful increments, and set alerts to fire once per bar close rather than on every tick.

Firm servers also name instruments their own way, index and metal CFDs especially. Set Prefix / Suffix for a uniform convention, or a Symbol Map for irregular names — and switch Enable Symbol Map on, because it defaults to off. The map's lots multiplier (EA 2.18 and later) adjusts volume per instrument where contract sizes differ.

One Alert, Several Funded Accounts

Every Trading Router plan sends one alert to all of your connected accounts at once. Each terminal receives the instruction directly, so there is no lead account and no copy lag. What makes this workable on funded accounts is that everything above is per terminal: each account's EA has its own daily loss, cumulative limits, risk source and news file, set to that account's rules. A $100,000 2-Step and a $50,000 1-Step can trade the same alert with different numbers. Where the terminals run does not matter — three accounts on one VPS cost the same as three accounts on three.

Connected accountsPer monthPer account
3$14.99$5.00
5$19.99$4.00
10$34.99$3.50
20$69.99$3.50

Signals and symbols are unlimited on every plan; the number of accounts is the only thing that changes. The trade copier page covers the other direction — copying a manually traded account to others.

Same direction, your own accounts, your own strategy. FTMO forbids manipulative combinations of trades across connected accounts — opposite positions on two accounts is the example it gives. It also warns that if too many clients use the exact same strategy at once, you may run into its maximum capital allocation rule.

Automate your own logic rather than a popular public script, and do not run someone else's signals on an account in your name.

Test It Before the Challenge Clock Starts

Step 1
Copy the whole setup to a demo or free trial account

Same platform, same EA settings, same alert, same news file. Your Trading Router trial covers the routing.

Step 2
Force a halt

Set Daily Loss to something tiny, such as $20, let a small trade go against you, and watch the EA close everything and halt. The on-chart comment says when the EA is halted.

Step 3
Watch one reset

Confirm the EA wakes at the time you expect and that the next signal trades again. If it wakes an hour early or late, your check time is in the wrong time zone.

Step 4
Fire a test message at every account

Use Test Webhook from your dashboard and check that each terminal's Experts tab logs it. Then put the real limits back.

Try the whole setup on a demo account first — 7-day free trial, no credit card required.

Start Free 7-Day Trial   Daily Loss Docs →

Prop Firm Automation — Common Questions

Is automated trading allowed at prop firms?

Many prop firms allow it, some restrict it, and the rules can differ between account types at the same firm. FTMO, for example, states plainly that algorithmic trading is allowed, with limits: Expert Advisors may not push an account past 2,000 server requests a day, and you remain responsible for meeting its trading objectives. Read your own firm's current rules before you start.

Can the EA stop me breaching a prop firm's daily loss limit?

It can close every position and halt when equity falls your chosen amount below its daily benchmark. It cannot guarantee the fill price: in a gap or a fast market the close can complete beyond the level that triggered it, which is why you set the limit below the firm's. Also be flat at the firm's daily reset or allow for open losses in your buffer, and lower the limit after any mid-day restart of the EA.

Do I need a VPS to automate a prop firm account?

The EA runs inside your MetaTrader terminal, so the terminal has to stay open and connected for the whole session. While it is off, alerts do not execute and nothing watches your limits. A VPS or an always-on PC both work, and terminals on different machines cost the same.

Can one TradingView alert trade several prop firm accounts?

Yes. One alert reaches every connected account at once, up to 20 depending on your plan, and each account's EA has its own risk and loss settings. Trade the same direction on all of them, and check your firm's rules on running the same strategy across several accounts.

Does this work on MT4, and on futures prop firms?

The EA settings in this guide are the same on MT4 and MT5. Futures prop firms that use NinjaTrader can be driven from the same TradingView alert, but the risk settings described here are MetaTrader EA settings.

Can I run someone else's TradingView signals on my funded account?

Check your firm's rules first. FTMO forbids any third party from trading for you or in coordination with you, and warns that if too many traders use the exact same strategy you may run into its maximum capital allocation rule. Automating your own strategy is the safe case.

Next Steps