Join our fan page
- Published by:
- Amanda Vitoria De Paula Pereira
- Views:
- 286
- Rating:
- Published:
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
In professional quantitative trading, evaluating individual setups is only half the battle. The biggest blind spot for retail traders is invisible systemic correlation. You might think you are diversified by trading EURUSD, GBPUSD, and AUDUSD simultaneously, but in systemic reality, you are heavily stacking risk against the US Dollar. If a major USD news event occurs, your perfectly calculated individual stop losses will all trigger at once.
The Institutional Currency Exposure Monitor is a lightweight on-chart dashboard designed to solve this exact problem. It scans every open position in your account, breaks down the pairs into their base and quote currencies, and calculates your true net exposure in lots.
Core Features:
-
Net Exposure Calculation: If you are Long 1.0 lot of EURUSD and Short 0.5 lots of USDJPY, the monitor calculates your exact net directional exposure for EUR, USD, and JPY independently.
-
Systemic Risk Visualization: Instantly see if your portfolio is dangerously over-leveraged on a single currency, allowing you to hedge or close trades before a systemic shock wipes out your account.
-
Universal Compatibility: Works seamlessly with manual trades and positions opened by any Expert Advisor. It accounts for both Netting and Hedging account types.
How to Read the Dashboard:
-
A positive number (e.g., +2.50) means you are net LONG on that specific currency.
-
A negative number (e.g., -1.00) means you are net SHORT on that specific currency.
-
If the number turns red, it indicates a high exposure warning (customizable in inputs).
Input Parameters:
-
Warning_Threshold_Lots: The net lot size at which a currency's exposure turns red on the dashboard to warn you of high systemic risk.
-
Corner / X_Offset / Y_Offset: Fully customizable dashboard positioning.
To Close All Open Trades of Different Symbols
Technical Details Uses MQL5's OrderSend with TRADE_ACTION_DEAL for instant market closure at current Bid/Ask prices. Includes slippage tolerance (10 points), proper volume matching, and magic number preservation. Loops backward through positions to prevent index shifting during execution.
ZigZag Support and Resistance Detection
ZigZag SNR Detection identifies support and resistance levels using ZigZag pivot points.
Accelerator Oscillator (AC)
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.
MACD Signals
Indicator edition for new platform.
