Funded Account Guardian
- Utilitários
-
Augusto Martin D'anna
Olá e bem-vindos ao meu perfil. Meu nome é Augusto Danna, sou trader há 7 anos. Especializo-me na automatização de estratégias de trading, unindo experiência de mercado com programação. Qualquer dúvida, estou à disposição - Versão: 1.0
Funded Account Guardian protects prop firm challenge and funded accounts from breaking the daily loss and maximum loss rules. It does not open trades. Attach it to one chart and it watches the equity of the whole account on every tick and once per second.
What it does
- Daily loss: when equity reaches the daily floor, it closes all positions and pending orders and blocks trading until the next day. The floor can be measured from the initial balance or from the balance at the start of the day.
- Maximum loss: when equity reaches the maximum loss floor, it closes everything and blocks trading until you reset it. Static or trailing floor.
- Profit target (optional): when equity reaches the target, it closes everything and locks the account, so a passed challenge is not given back.
- Safety buffer: it acts a chosen percentage before the real limit (default 0.5%), to leave room for slippage and spread.
- While blocked, any new position (manual or from other EAs) is closed immediately. The terminal global variable PFG_BLOCKED is set to 1 (until the next day) or 2 (permanent), so your own EAs can check it before trading.
- Status on the chart: equity, daily floor, maximum floor, room left to each one, target and state.
Inputs
- Initial account balance
- Daily loss limit, % and how it is measured (initial balance or start-of-day balance)
- Max loss limit, % and mode (static or trailing)
- Profit target, % (0 = off)
- Safety buffer, %
- Day reset hour (server time)
- Also close manual trades (magic 0)
- Show status on the chart
Notes
- Positions are closed at market, so in fast markets the final equity can be slightly below the floor. Use the buffer to stay on the safe side.
- To remove a permanent block, delete the PFG_BLOCKED global variable (F3 in the terminal).
- Prop firms define their limits in different ways. Check the exact rules of your firm and set the inputs to match them.
