Automating a prop firm challenge without breaking the rules
Daily loss limits, maximum drawdown, news rules and trade limits: how to automate TradingView signals on a funded account and stay inside the rules.
A prop firm challenge is mostly a test of discipline. A strategy can be good and still fail the challenge in one bad afternoon, because one rule broken means the account is gone. Automation helps, as long as the limits are automated too.
The rules most firms use
Every firm is different, so read yours carefully. These are the common ones:
- Daily loss limit. Often around 5% of the starting balance for the day.
- Maximum drawdown. Often around 10% overall.
- News restrictions. Some firms forbid opening or holding trades around high-impact news.
- Rules on expert advisors and copy trading. Some allow them, some limit them. Check before you connect an EA.
Limits PipRoute enforces for you
Open Protection for the account. The equity limits are watched inside MT5 all the time, not only when an alert arrives.
- Daily loss limit. When equity falls the set percent below the day's starting balance, everything is closed and the account pauses until the next day.
- Maximum drawdown. When equity falls the set percent below the highest balance, everything is closed and the account pauses until you reset it.
- Daily profit target. Lock in a good day: close everything and pause once the day is up by a set percent.
- Maximum trades per day, maximum lot size and maximum open trades.
- News blackout. Refuse new entries for a set number of minutes around high-impact news.
- Trading hours and Friday close, so nothing is left open over the weekend.

Set them a little inside the firm's numbers
The Prop firm preset fills 4.5% daily and 9% total, a little inside the usual 5% and 10%. That gap matters. Firms measure in different ways (some from the starting balance, some from the highest equity), prices can gap, and a fast market can slip a close beyond the level. A small margin keeps a near miss from becoming a failed challenge.
Size by risk, not by lots
A fixed 1 lot on EURUSD and on gold risk very different amounts. Use vol_pct_bal_loss in your alert so every trade risks the same share of the account at its stop loss:
4F9A2C7B1D0E,buy,{{ticker}},vol_pct_bal_loss=0.5,sl_pips=30,tp_pips=60
What automation cannot promise
Limits close trades at the market price, so a gap over a weekend or a sudden news spike can still move an account past a level before a close completes. Keep risk per trade small, and treat the limits as a seatbelt, not as permission to drive faster.