mirror of
https://github.com/softwaredevelop/mql5.git
synced 2026-07-27 20:47:44 +00:00
refactor: Added visibility toggles
This commit is contained in:
@@ -25,7 +25,7 @@ By using percentage change, the indicator allows for a direct "apples-to-apples"
|
||||
|
||||
## 3. MQL5 Implementation Details
|
||||
|
||||
* **Universal Engine (`Symbol_Strength_Calculator.mqh`):** The core logic is encapsulated in a flexible engine that can handle any symbol string provided by the user. It includes robust error handling for missing data or synchronization delays, ensuring the indicator doesn't freeze the terminal while waiting for data.
|
||||
* **Universal Engine (`Symbol_Strength_Calculator.mqh`):** The core logic is encapsulated in a flexible engine that can handle any symbol string provided by the user. It includes robust error handling for missing data or synchronization delays.
|
||||
* **Dynamic Dashboard:** A custom-drawn dashboard panel in the indicator window provides a real-time, sorted list of the active symbols with their exact strength values (to 3 decimal places), color-coded to match the chart lines.
|
||||
* **Optimized Performance:** The indicator employs smart history limiting on the first load to prevent lag, and subsequent updates are incremental.
|
||||
|
||||
@@ -37,6 +37,7 @@ By using percentage change, the indicator allows for a direct "apples-to-apples"
|
||||
* **`InpSmoothPer`:** The period for the smoothing. Default is `5`.
|
||||
* **Symbols & Colors:**
|
||||
* **`InpSymbol1` - `InpSymbol8`:** The names of the symbols to analyze (e.g., "US500", "Gold", "BTCUSD"). Leave empty to disable a slot.
|
||||
* **`InpShow1` - `InpShow8`:** Toggles the visibility of each symbol's line and label.
|
||||
* **`InpColor1` - `InpColor8`:** The color for each symbol's line and label.
|
||||
|
||||
## 5. Usage and Interpretation
|
||||
@@ -48,7 +49,6 @@ This indicator is the "Strategic Compass" for multi-asset traders.
|
||||
1. **Risk On / Risk Off:**
|
||||
* **Risk On:** Equity indices (US500, USTEC, DE40) are rising and are at the top of the matrix. Safe havens (Gold, JPY) are falling or at the bottom.
|
||||
* **Risk Off:** Equities are falling. Safe havens (Gold, JPY) are rising and leading the matrix.
|
||||
* *Action:* If Gold spikes while Stocks drop, look for short setups on indices.
|
||||
|
||||
2. **Sector Rotation (US Indices):**
|
||||
* Compare **USTEC (Nasdaq)** vs. **US30 (Dow)**.
|
||||
@@ -57,7 +57,11 @@ This indicator is the "Strategic Compass" for multi-asset traders.
|
||||
|
||||
3. **Regional Rotation:**
|
||||
* Compare **US500 (USA)** vs. **DE40 (Europe)** vs. **JP225 (Asia)**.
|
||||
* Trade the index of the strongest region against the weakest region (if your broker allows) or simply focus your intraday trading on the strongest market.
|
||||
|
||||
4. **Commodity Correlations:**
|
||||
* Rising **Oil (WTI)** often supports energy-heavy indices (like UK100) but can weigh on consumer/tech sectors due to inflation fears.
|
||||
## 6. Troubleshooting
|
||||
|
||||
If a line appears flat at 0.000% or shows "N/A":
|
||||
|
||||
1. **Check Symbol Name:** Ensure the symbol name entered in the parameters matches **exactly** what is listed in your Market Watch window (e.g., your broker might use "XAUUSD" instead of "Gold", or "SPX500" instead of "US500").
|
||||
2. **Check Experts Tab:** Look at the "Experts" tab in the Terminal toolbox. The indicator will print an error message if it cannot find a symbol (e.g., `Symbol 'Gold' not found!`).
|
||||
3. **Data Loading:** On the first load, it might take a few seconds for the indicator to download history for all 8 symbols.
|
||||
|
||||
Reference in New Issue
Block a user