On this page
Back to tutorials

Prop Firm Consistency EA — No Code

Map consistency habits to Step 5 Account Protection: max daily trades, drawdown buffer, open positions, consecutive losses — export and backtest before funded.

📖 17 min read

📝 3,400 words

🏷️ MQL5 & Expert Advisors

Share this article:

Try the workflow from this guide

Open the live demo first — no signup. Sign up later to save your strategy and export from Code Generator.


Prop Firm Consistency Rules in Your MT5 EA — No Code

Can you encode prop firm consistency rules in an EA without coding?

If your strategy already has signals on Step 3, open Step 5 — Risk in AlfaTactix Strategy Builder and configure Account Protection: Max Daily Drawdown (buffer under firm limit), Max Daily Trades, Max Open Positions, Max Consecutive Losses. Pair with Step 4 news/session filters from News Filter — No Code. Export MQL5 → backtest → Demo on the same symbol and leverage as your evaluation.

Disclosure: Not affiliated with any prop firm. Rules change — read official objectives (e.g. FTMO trading objectives) before live. For full drawdown formulas see Prop Firm EA Rules.

What you leave with: a firm-habit → Step 5 mapping table and one question to ask before your next evaluation purchase: would these caps have stopped my worst day last month?


The Moment Your EA Breaks Consistency

Picture this: your backtest curve looks disciplined. You start a funded evaluation. On day nine you take eleven trades because the Asian session kept firing small crosses. Or you have one huge winner that represents 60% of your monthly profit — and the firm's consistency rule flags you anyway.

Consistency failures are often behaviour rules, not bad indicators:

What happenedWhat the firm cares about
Revenge trading after a lossToo many entries / uneven risk
One lucky trade carries the monthProfit concentration
Trading through red-news spikesRule violations + slippage
Holding five correlated EUR positionsEffective exposure

Your EA will repeat whatever you allow on every tick. If Step 5 is empty, the robot is honest — it has no concept of "enough for today."

Value of this guide: You map habits you would follow manually onto Account Protection fields the product already exports to MQL5 — without hiring someone to write HistoryDealsTotal() guards from scratch.


Prop Rules vs What You Can Encode in an EA

Common firm themeEncode in Strategy Builder?Where
Daily loss limit (~5% example)Yes — bufferStep 5 Max Daily Drawdown %
Max overall lossPartiallyPosition sizing + drawdown stop + discipline
Max trades per dayYesStep 5 Max Daily Trades
Max simultaneous positionsYesStep 5 Max Open Positions
Pause after N losses in a rowYesStep 5 Max Consecutive Losses
No trading high-impact newsYesStep 4 Economic Calendar
"Best day < X% of total profit"Often manualNot a single toggle — see honest limits below
Lot consistency / min hold timeCheck firm + exportStep 5 sizing + your process

Deep MQL5 guard code patterns: Prop Firm EA Rules. Challenge build recipe (signals + filters): FTMO Challenge EA Without Coding.


Account Protection Fields in Strategy Builder

On Step 5 — Risk Management, open Account Protection (Buy/Sell tabs mirror the same idea for directional EAs).

FieldUI rangeDefault (product)What it does in plain English
Max Daily Drawdown1 – 50 %3Stops new trading if today's loss exceeds this % of balance (Pro/Premium tracking)
Max Daily Trades1 – 10010Caps how many deals the EA may open per day
Max Open Positions(UI validated 1+)5Limits concurrent open trades
Max Consecutive Losses(UI validated)3Pauses after a streak of losing trades

The card also shows a risk level chip (Low / Medium / High) from your combination — useful sanity check before export.

Role note: On MetaTrader Basic role, some drawdown fields may be hidden in UI — consistency-focused builds often need Pro/Premium export paths with full Account Protection. Check your plan before relying on daily drawdown in exported code.


Map Firm Habits to Step 5 Settings

Habit 1 — "I won't blow the daily limit"

Firm PDF saysBuilder setting
Max daily loss 5%Max Daily Drawdown: 3–4% (buffer)

Leave headroom for slippage and spread — programming exactly 5.0% is brittle.

Habit 2 — "I won't overtrade on boredom days"

Firm PDF / psychologyBuilder setting
No more than 3–8 intentional trades/dayMax Daily Trades: 5–8

Start conservative; raise only if backtest shows too few opportunities.

Habit 3 — "I won't stack correlated risk"

RiskBuilder setting
One EUR idea becomes five positionsMax Open Positions: 1–2 on challenge accounts

Habit 4 — "I stop after a bad streak"

HabitBuilder setting
Walk away after 3 lossesMax Consecutive Losses: 3

Habit 5 — Pair with filters (not Step 5, but consistency-adjacent)

Add Step 4 news filter and session filter — see Advanced MTF & Filters.


Build a Consistency-Aware EA Step by Step

Assume you already have a low-frequency signal (e.g. MA Crossover H1).

  1. Step 1–3 — Keep your signal; do not add more indicators to "fix" discipline.
  2. Step 4 — News noEvent + London/NY session if applicable.
  3. Step 5 — Account Protection — Apply the table above on Buy and Sell risk tabs.
  4. Step 5 — Position sizing0.25%–0.75% risk per trade is a common challenge range (not advice — your math).
  5. SaveCode Generator → compile → Strategy Tester with realistic spread.

Mini win to feel in Demo: Deliberately set Max Daily Trades = 2, run a volatile week in tester — watch the EA stop opening after the second trade. That is consistency logic working, not a marketing slogan.


Export, Backtest, and Demo on Firm Terms

StepWhy it matters
Tester with Every tickOvertrading rules react to deal count
Same symbol & leverage as challengeDifferent margin changes behaviour
Demo forward testFirm dashboards ≠ Strategy Tester equity

Strategy Tester vs Live · EA Risk Management.


What the Builder Cannot Automate (Honest List)

Be upfront with yourself — and with readers you teach:

  • Profit consistency % ("no single day > 30% of total profit") — often evaluated on closed P/L history, not a standard Step 5 toggle. Track in a spreadsheet during Demo.
  • Minimum trading days — process rule, not EA logic.
  • Firm compliance bots — may flag manual trades, copy trading, or hedging across accounts — outside Strategy Builder scope.

Encoding what you can still removes the most common EA failure mode: unlimited repetition of entries.


Next Steps

Before you pay for another evaluation: Spend fifteen minutes in the live Strategy Builder demo — no signup. Open Step 5, set Max Daily Trades to the number you wish you had followed last month, and ask: would this have stopped the day that broke my rules? If yes, save the strategy and export when you are ready for a full account.

References: FTMO FAQ objectives · MetaTrader Strategy Tester.

Build this EA in Strategy Builder

Start in the live demo — no signup required. Walk through signals, filters, and risk. Create a free account only when you want to save and export MQL5.

Frequently Asked Questions

Many habit rules yes: daily trade caps, max open positions, consecutive loss pauses, and daily drawdown buffers live in Step 5 Account Protection in Strategy Builder. Percent-of-profit consistency scores and firm-specific compliance bots are not fully replicated — verify your firm PDF and use Demo.

Prop Firm EA Rules explains drawdown math and MQL5 guards. FTMO challenge article is a build recipe. This guide focuses on consistency habits (overtrading, revenge days) mapped to Step 5 Account Protection fields in the visual builder.

Set a buffer under your firm limit — e.g. 3–4% in Account Protection if the firm allows 5% daily loss. The UI accepts 1–50% on Pro/Premium roles. Always confirm live terms on the firm site.

It limits how many times your EA can open new trades per day (1–100 in UI), which addresses overtrading and some firms flag excessive activity. It does not replace profit-consistency percentage rules some evaluations use.

No. Educational workflow only. Backtest logic in Strategy Tester, then Demo on challenge conditions. See Strategy Tester vs Live.

Try Strategy Builder — no signup

Try Strategy Builder — No Signup