BalanceStepEA
- Утилиты
-
Sandip R Pawar
Professional software developer since 2007 turned full-time algorithmic trader. Specializing in custom automated infrastructure, data-driven market strategies, and precision execution across derivatives, XAUUSD, and crypto. - Версия: 1.0
Balance Step Pro (BalanceStepEA) is an automated account equity protection, profit-locking, and step-target management utility for MetaTrader 5. Designed to work alongside manual trading or any combination of Expert Advisors, it monitors live account equity tick-by-tick, automatically liquidates open positions when predefined currency profit or loss thresholds are reached, and immediately re-anchors new targets for the next trading cycle.
Core Architecture and Step-Target Workflow
Managing floating drawdown and locking in basket profits across multiple open trades is one of the hardest parts of active account management. Balance Step Pro automates this discipline through a continuous four-stage cycle:
-
Base Balance Anchoring: On initialization, the utility records your current Account Balance and establishes two currency boundaries: Upper TP Target (Base Balance + ProfitStep ) and Lower SL Target (Base Balance - LossStep ).
-
Real-Time Equity Monitoring: Every tick, the engine compares live Account Equity (including floating profit/loss and swap across all open positions) against both boundaries.
-
Multi-Stage Position Liquidation: As soon as live equity reaches either the Upper TP or Lower SL target, the utility liquidates all open positions using an intelligent filling-mode detector (FOK , IOC , or RETURN ) backed by a secondary multi-filling fallback engine for difficult symbols.
-
Automatic Round Reset: Once all positions are closed, the utility logs the completed round analytics, updates your new Account Balance as the fresh Base Balance, and calculates the next Upper TP and Lower SL targets automatically.
Key Features Breakdown
-
Automated Currency Step TP & SL: Locks in account-wide equity gains or caps floating drawdown at exact currency intervals without requiring individual order stop losses.
-
Dynamic On-Chart Price Projection Lines: Calculates net symbol lot exposure and tick value to plot dashed horizontal TP and SL lines directly on your chart, showing the exact symbol price where account equity will trigger a step exit.
-
Interactive One-Click Trade Management: Includes three dedicated execution buttons on the chart—CLOSE ALL (liquidates all open trades), CLOSE PROFIT (closes only profitable positions while keeping others open), and RESET STEP (re-anchors step targets to current balance at any time).
-
Buy vs. Sell Exposure Analytics: Separates open positions into dedicated Buy and Sell cards displaying trade count, aggregate lot volume, and net floating P/L (including swap).
-
Visual Equity Progress Gauge: Features a 360-pixel dynamic progress bar with a center equilibrium marker that tracks real-time equity percentage between your Lower SL and Upper TP boundaries.
-
Multi-Session Round Tracker: Records completed rounds, total closed deals, gross profit, gross loss, and cumulative session net P/L.
-
Anti-Overlap Dark UI with Minimize Mode: Built on a crisp 400x575 two-column card layout that can be collapsed into a compact 42-pixel header bar with a single click.
Visual Dashboard Guide
-
Card 1 — Account & Step Targets: Displays Base Balance, Current Balance, a highlighted Live Equity readout (color-coded green above base balance and red below), Upper TP Target, and Lower SL Target.
-
Card 2 — Step Progress (SL <-> TP): Visualizes where current equity sits between your SL and TP targets (0% to 100%) and shows exact remaining currency distance (To SL and To TP ).
-
Card 3 — Open Positions Exposure: Shows total open trades, combined floating P/L, and separate breakdown boxes for Buy Orders and Sell Orders.
-
Card 4 — Round & Session Analytics: Tracks Rounds Done, Closed Deals, Gross Profit, Gross Loss, and Session Net P/L since attachment.
-
Bottom Control Bar: Houses the CLOSE ALL, CLOSE PROFIT, and RESET STEP interactive buttons.
Input Parameters Guide
Step Target Settings
-
ProfitStep: Target profit distance in account currency above the base balance required to trigger an automatic equity Take Profit close (default is 5000.0).
-
LossStep: Maximum floating loss distance in account currency below the base balance allowed before triggering an automatic equity Stop Loss close (default is 5000.0).
-
MaxRetries: Number of primary order-close attempts per position before engaging the alternative filling-mode closing routine (default is 3).
Visual Pro UI Settings
-
PanelX: Horizontal pixel offset from the top-left corner of the chart (default is 15).
-
PanelY: Vertical pixel offset from the top-left corner of the chart (default is 25).
-
ShowChartLines: Enables or disables plotting of projected Equity Step TP and SL price lines on the active chart symbol (default is true).
-
ClrProfit: Accent color for bullish profit metrics, TP lines, and positive equity states (default is Emerald Green C'0,230,118' ).
-
ClrLoss: Accent color for bearish loss metrics, SL lines, and drawdown states (default is Crimson Red C'255,82,82' ).
-
ClrAccent: Primary highlight color for headers, borders, and active status badges (default is Cyan Blue C'0,176,255' ).
