Overview
Prop Agency Danger Safety is an built-in danger administration system designed to routinely implement each day loss and most drawdown limits. It repeatedly displays the account Fairness in actual time and takes rapid motion if a configured restrict is reached.
This technique helps defend the account and ensures compliance with strict danger guidelines generally utilized by proprietary buying and selling companies. All calculations are primarily based on Fairness, not Stability. This implies floating revenue and loss from open trades is included. The system works totally routinely and doesn’t require guide intervention.
How the Safety Works
The system displays two impartial limits:
1. Every day Loss Restrict
2. Whole Drawdown Restrict
If both restrict is reached:
All open positions are instantly closed.
All pending orders are eliminated.
Buying and selling is paused till the following day.
Buying and selling resumes routinely after the each day reset.
No restart is required.
Every day Loss Restrict % (0 = Off)
Defines the utmost allowed loss throughout a single day.
Worth is expressed as a share.
Instance:
5.0 = most allowed each day loss is 5%
0.0 = disabled
The each day restrict is calculated utilizing certainly one of two modes:
Strict Mode
Loss restrict relies on the Preliminary Stability.
Relative Mode
Loss restrict relies on the stability at the beginning of the present day.
This conduct is managed by the Strict Mode setting.
The each day restrict resets routinely at the beginning of every new day.
Whole Drawdown Restrict % (0 = Off)
Defines the utmost allowed drawdown from the Preliminary Stability.
Instance:
10.0 = most allowed whole loss is 10%
0.0 = disabled
This restrict protects the whole account and doesn’t reset each day.
If Fairness falls under the allowed degree, safety is triggered instantly.
Preliminary Stability (0 = Auto)
Defines the Preliminary Stability used for drawdown calculations.
If set to 0.0
The system routinely makes use of the account stability at first launch.
If set to a hard and fast worth
The system all the time makes use of that worth for danger calculations.
Instance:
If account measurement is 10000, set Preliminary Stability to 10000.
That is really useful for prop agency accounts.
Strict Mode: Preliminary Stability / Every day Stability
Controls how the Every day Loss Restrict is calculated.
Strict Mode = true
Every day loss restrict is calculated from the Preliminary Stability.
This matches strict prop agency danger fashions.
Relative Mode = false
Every day loss restrict is calculated from the stability at the beginning of the present day.
This permits the loss restrict to develop because the account grows.
Strict Mode is really useful for prop agency compliance.
Relative Mode is extra versatile and appropriate for private accounts.
Every day Reset Time Offset (UTC)
Defines when a brand new buying and selling day begins.
Instance:
1 = CET (winter)
2 = CEST (summer time)
This impacts when the Every day Loss Restrict resets.
Set in line with your prop agency’s timezone.
Shut All Trades on Restrict
Defines which trades are closed when a restrict is reached.
true
All trades on the account are closed, together with:
Handbook trades
Trades from different Skilled Advisors
Trades on different symbols
false
Solely trades opened by this EA are closed.
For prop agency compliance, true is really useful.
Present Safety Standing Logs
Controls whether or not safety messages are proven within the terminal Journal.
true
Shows standing messages resembling:
New day baseline
Drawdown utilization
Safety activation
false
Safety nonetheless works, however no messages are proven.
Essential Notes
Safety relies on Fairness, not Stability.
This implies floating losses are included.
Safety works in actual time.
Safety continues working after terminal restart or VPS reboot.
Safety doesn’t intervene with buying and selling until limits are reached.
Instance Configuration for Prop Agency Account
Every day Loss Restrict % (0 = Off) = 5.0
Whole Drawdown Restrict % (0 = Off) = 10.0
Preliminary Stability (0 = Auto) = 10000
Strict Mode: Preliminary Stability / Every day Stability = true
Every day Reset Time Offset (UTC) = 1
Shut All Trades on Restrict = true
Present Safety Standing Logs = true
Instance Configuration for Private Buying and selling
Every day Loss Restrict % (0 = Off) = 5.0
Whole Drawdown Restrict % (0 = Off) = 20.0
Preliminary Stability (0 = Auto) = 0.0
Strict Mode: Preliminary Stability / Every day Stability = false
Every day Reset Time Offset (UTC) = 1
Shut All Trades on Restrict = true
Present Safety Standing Logs = true
Steadily Requested Questions (FAQ)
Q: Why have been my trades closed although my account stability is excessive?
As a result of the loss restrict was reached primarily based on Fairness. Safety makes use of Fairness, not Stability.
—
Q: What’s the distinction between Strict Mode and Relative Mode?
Strict Mode makes use of the Preliminary Stability to calculate each day loss limits.
Relative Mode makes use of the stability at the beginning of the present day.
Strict Mode gives mounted safety.
Relative Mode gives adaptive safety.
—
Q: Which mode ought to I exploit for prop agency accounts?
Strict Mode is really useful for prop agency accounts.
—
Q: Will buying and selling resume routinely?
Sure. Buying and selling resumes routinely after the each day reset.
—
Q: Does safety work after terminal restart?
Sure. Safety state is saved and restored routinely.
—
Q: Can I disable safety utterly?
Sure. Set each limits to 0.0
Every day Loss Restrict % (0 = Off) = 0.0
Whole Drawdown Restrict % (0 = Off) = 0.0
—
Q: Will it shut trades opened manually or by different EAs?
If Shut All Trades on Restrict = true, sure.
If set to false, solely this EA’s trades are closed.
—
Q: Why do I see detrimental drawdown share in logs?
Damaging values point out revenue, not loss.
That is regular.
—
Q: Does safety decelerate buying and selling?
No. Safety runs effectively and doesn’t have an effect on efficiency.
—
Q: Is this method secure to make use of with prop agency accounts?
Sure. It’s designed particularly to implement strict danger limits routinely.
—
Finish of Information