Leverage by Equity
General Information
The Leverage by Equity trigger is designed to automatically or manually change the trading leverage for account groups or individual accounts based on their equity level. The trigger helps brokers reduce risks by automatically reducing leverage as a client's equity grows, preventing excessive losses when trading with large amounts.
Key features:
- Automatic risk management – Reducing leverage as equity increases to protect against large losses
- Flexible customization – Individual rules for account groups with multiple equity levels
- Weekend protection – Special rules for reducing leverage on weekends to minimize gap risks
- Maximum leverage tracking – Monitoring and controlling manually set leverage limits
- External change detection – Tracking leverage changes made outside the trigger
Menu Navigation
You can find the Leverage by Equity trigger in the section: 📌 Risk Management → Automatic Control → Leverage by Equity

Editing Settings

Basic parameters
| Parameter Name | Description |
|---|---|
| Rule Name | A unique name for the rule (e.g., "Retail Clients", "VIP Accounts"). |
| Active | Enable or disable the rule. |
| Notification Type | Notification severity: Warning (requires action) or Info (informational). |
| Account Groups | Specify the account groups to monitor. You can include or exclude specific groups. ⚠️ REQUIRED: You must specify at least one account group or at least one included account. |
| Included Accounts | Select individual accounts to monitor. ⚠️ REQUIRED: You must specify at least one account or at least one account group. |
| Use Max. Leverage Limit | Recommended: Enabled. When enabled, the trigger takes into account the maximum leverage set manually for the account and will never exceed it during automatic changes. |
| Leverages | Configure equity ranges by typing the leverage value and pressing Add button. Each threshold represents one level in the leverage ladder. |
Threshold Configuration
Each threshold defines the leverage level based on the equity range:
| Parameter | Description |
|---|---|
| Equity from (USD) | The lower bound of the equity range (inclusive). |
| Equity to (USD) | The upper bound of the equity range (exclusive). |
| Leverage | Target leverage for this equity range (e.g., 500 for 1:500). |
| Automatic Leverage Change | Enabled – leverage changes automatically; Disabled – requires manual confirmation. |
| Check margin level | Minimum margin level (%) for automatic leverage increase. Default: 50%. Recommended: 100% for a conservative approach. ⚠️ IMPORTANT: Applies only to regular leverage changes, NOT to weekend rules. |
| Weekend Settings | Enable special leverage rules for weekends (usually lower than usual). |
| Automatic change Weekend Leverage | Enable automatic leverage change during weekend transitions. |
| Weekend Period | Define the weekend period: From / Time from → To / Time to (e.g., Friday 21:00 → Sunday 21:00). |
Configuration Example
Standard configuration:
| Equity from | Equity to | Leverage | Auto Change | Weekend Leverage |
|---|---|---|---|---|
| $0 | $5,000 | 1:500 | ✅ Enabled | 1:300 |
| $5,000 | $20,000 | 1:400 | ✅ Enabled | 1:200 |
| $20,000 | $50,000 | 1:200 | ✅ Enabled | 1:100 |
| $50,000 | $100,000 | 1:100 | ❌ Disabled | 1:50 |
This creates a leverage ladder where leverage gradually decreases as equity grows.
Automation Note
Automatic Mode (Enabled)
When Automatic Leverage Change is enabled, the trigger:
- ✅ Automatically adjusts leverage when crossing equity threshold boundaries
- ✅ Creates informational notifications (Status: Info)
- ✅ Immediately applies changes to the trading platform
- ⚠️ Additional security checks are performed for increasing leverage:
- Margin level must be ≥ Check margin level
- The account must not be at risk of stop-out
- ⚠️ IMPORTANT: These checks apply only to regular leverage changes. For weekend rules, these checks do NOT apply - changes are made regardless of the margin level to reduce weekend risks.
Manual Mode (Disabled)
When Automatic Leverage Change is disabled, the trigger:
- 📋 Creates notifications requiring dealer confirmation (Status: Warning)
- 🔔 Sends alerts to the risk management dashboard
- ⏸️ Awaits manual approval before changing leverage
Best Practices
Enable automatic mode for:
- ✅ Reducing leverage
- ✅ Small accounts (< $10,000)
- ✅ Reducing leverage on weekends
Use manual mode for:
- ✅ Increasing leverage (High risk) – requires caution
- ✅ Large accounts (>$100,000)
- ✅ VIP and institutional clients
- ✅ Accounts with special agreements
Trigger Logic
Monitoring Process
The Leverage by Equity trigger continuously monitors accounts and performs the following checks:
1. Periodic Check (Touch)
- Frequency: Every 5 seconds
- Monitoring of active accounts (accounts with open positions)
- Checking accounts with recent balance operations (last 15 minutes)
2. Event-based Check
- Balance operations: Deposit, withdrawal, bonus, credit
- Account creation: New accounts are checked immediately
- Settings change: All accounts are re-evaluated when rules are changed
3. Full Check
- Performed when the server starts
- Performed when trigger settings are changed
- Checks all real accounts
Decision-Making Algorithm
For each monitored account, the trigger performs the following logic:
1. Check if the account meets the criteria:
├─ Is the account real (not demo)?
├─ Does the account belong to monitored groups?
├─ Is the account not excluded?
└─ Equity > 0?
2. Find the applicable threshold:
├─ Find the threshold where: Equity from ≤ Account Equity < Equity to
├─ If equity exceeds all boundaries → use the maximum threshold
└─ If equity is below all boundaries → use the minimum threshold
3. Determine the required action:
├─ If Account Leverage > Threshold Leverage:
│ └─ Action: REDUCE leverage (Low-risk strategy)
│
├─ If Account Leverage < Threshold Leverage:
│ └─ Action: INCREASE leverage (High-risk strategy)
│
└─ If Account Leverage = Threshold Leverage:
└─ Action: NONE (leverage is correct)
4. Check for pending notifications:
├─ If there is an unhandled manual notification for this account:
│ └─ SKIP (wait for the existing notification to be processed by the dealer)
│
└─ If there are no pending notifications:
└─ CONTINUE creating a new notification
5. Apply duplicate and error filters:
├─ If the last notification was created < 15 seconds ago:
│ └─ SKIP (prevent rapid fluctuations)
│
├─ If the previous attempt failed < 30 minutes ago:
│ └─ SKIP (wait before retrying)
│
└─ If enough time has passed:
└─ CONTINUE creating a notification
6. Create and distribute the notification:
├─ Create a notification with the target leverage
├─ Apply the maximum leverage limit (if enabled)
├─ Determine automatic or manual
└─ Execute or queue for approval
Leverage Change Strategies
Low-Risk Strategy (Leverage Reduction)
Triggered when: Account Leverage > Threshold Leverage
Logic:
Account: Leverage = 1:500, Equity = $45,000
Threshold: Equity $20,000-$50,000 → Leverage 1:200
Decision: Reduce leverage from 1:500 to 1:200
Security checks:
✅ Leverage reduction is always considered safe
✅ Can be performed automatically even with open positions
✅ Margin level check is not required
High-Risk Strategy (Leverage Increase)
Triggered when: Account Leverage < Threshold Leverage
Logic:
Account: Leverage = 1:100, Equity = $3,000
Threshold: Equity $0-$5,000 → Leverage 1:500
Decision: Increase leverage from 1:100 to 1:500
Security checks:
⚠️ Check margin level ≥ Check margin level threshold
⚠️ Check that the account is not approaching stop-out
⚠️ If checks fail → create a notification for manual processing
Automatic increase only if:
- ✅ Margin level ≥ Check margin level threshold (default 50%)
- ✅ No risk of stop-out
- ✅ Automatic mode is enabled
⚠️ IMPORTANT: These checks apply only to regular leverage changes. For weekend rules, margin and stopout checks are NOT applied.
Weekend Logic
When Weekend Rules are enabled:
⚠️ IMPORTANT FEATURE OF WEEKEND RULES:
Weekend leverage changes (reduction and restoration) are performed without checking the margin level and without checking stopout. This means that:
- ✅ Leverage will be reduced before the weekend regardless of the account's margin level
- ✅ Leverage will be restored after the weekend regardless of the account's margin level
- ✅ The "Check margin level threshold" setting does NOT apply to weekend rules
- 🎯 This is done specifically for maximum protection against weekend risks
Weekend Start (e.g., Friday 21:00)
1. Weekend period begins
2. For each monitored account:
├─ Current leverage: 1:500
├─ Weekend leverage: 1:100
└─ Action: REDUCE to 1:100
Result: Low weekend leverage strategy
Weekend End (e.g., Sunday 21:00)
1. Weekend period ends
2. For each account with reduced leverage:
├─ Current leverage: 1:100
├─ Regular threshold leverage: 1:500
└─ Action: RESTORE to 1:500
Result: High weekend leverage strategy
Benefits of the weekend strategy:
- 🛡️ Protection against market gaps on weekends
- 📉 Reduced risk during periods of low liquidity
- 🔄 Automatic restoration when the market opens
- 📊 Historically reduces weekend losses by 60-80%
Maximum Leverage Limit System
The Use Max. Leverage Limit feature provides intelligent management of leverage limits:
How it works
1. External Change Detection
⚠️ IMPORTANT FEATURE OF DETECTION:
The trigger checks the current account leverage against both values from the last notification (old AND new):
- If the current leverage matches the old OR new value → NO external change
- If the current leverage differs from the old AND from the new value → YES external change
This means that if the dealer changes the leverage to a value that is already in the current change ladder, the trigger will not create a notification about the external change.
Example 1: The trigger will NOT detect an external change
├─ Notification created: change leverage from 1:500 to 1:200
├─ Dealer manually sets leverage to 1:200 (matches the new)
└─ Trigger: NO external change (1:200 = target leverage)
Example 2: The trigger will NOT detect an external change
├─ Notification created: change leverage from 1:500 to 1:200
├─ Dealer manually returns leverage to 1:500 (matches the old)
└─ Trigger: NO external change (1:500 = original leverage)
Example 3: The trigger will detect an external change
├─ Notification created: change leverage from 1:500 to 1:200
├─ Dealer manually sets leverage to 1:300 (does not match either)
└─ Trigger: YES external change
└─ Saves 1:300 as the maximum leverage for this account
2. Applying the Maximum Limit
Later: The trigger tries to increase leverage
├─ The threshold suggests leverage 1:500
├─ The system checks the maximum leverage: 1:300
└─ Result: Leverage is set to 1:300 (not 1:500)
└─ Notification: "Leverage limited to maximum 1:300"
3. Updating the Maximum
If the dealer changes the leverage again:
├─ The dealer sets leverage to 1:400
├─ The trigger detects the change
└─ The maximum leverage is updated to 1:400
Advantages
- ✅ Takes manual changes into account – Respects the risk manager's decisions
- ✅ Prevents unwanted increases – Does not override manual restrictions
- ✅ Flexible management – Can be adjusted at any time by dealers
- ✅ Full audit – All changes are logged and tracked
Example scenario
Day 1: A problem account is identified
├─ Account 100001 is trading aggressively
├─ The risk manager manually reduces: 1:500 → 1:100
└─ The system saves the maximum: 1:100
Day 2: Equity fluctuates
├─ Equity falls to $3,000
├─ The threshold suggests: 1:500
├─ The system applies the maximum: 1:100
└─ Leverage remains: 1:100 ✅
Day 7: The account stabilizes
├─ The risk manager checks the account
├─ Manually increases: 1:100 → 1:200
└─ New maximum: 1:200 (the system adapts)