mirror of
https://github.com/softwaredevelop/mql5.git
synced 2026-08-17 22:38:06 +00:00
refactor: Added signal line and fixed state management
This commit is contained in:
@@ -37,9 +37,9 @@ The indicator uses a multi-stage digital signal processing (DSP) pipeline. The c
|
||||
|
||||
## 3. MQL5 Implementation Details
|
||||
|
||||
* **Self-Contained Calculator:** Due to the complexity of the cycle measurement algorithm, this indicator uses a dedicated, self-contained calculator (`Laguerre_RSI_Adaptive_Calculator.mqh`).
|
||||
* **Self-Contained, Stateful Calculator:** Due to the complexity of the cycle measurement algorithm, this indicator uses a dedicated, self-contained calculator (`..._Calculator.mqh`). This calculator is designed as a **stateful class**, where all internal recursive variables (for cycle measurement and filtering) are stored as member variables. This ensures that the indicator's state is correctly maintained between ticks.
|
||||
* **Heikin Ashi Integration:** An inherited `_HA` class allows the entire adaptive calculation to be performed seamlessly on smoothed Heikin Ashi data.
|
||||
* **Stability via Full Recalculation:** The calculation is a highly complex, multi-stage recursive process. To ensure absolute stability, the indicator employs a **full recalculation** on every `OnCalculate` call.
|
||||
* **Stability via Full Recalculation:** The calculation is a highly complex, multi-stage recursive process. To ensure absolute stability and prevent desynchronization, the indicator employs a **full recalculation** on every `OnCalculate` call. This is the only robust method for this type of complex DSP filter.
|
||||
* **Value Clamping:** The final calculated value is mathematically clamped to the 0-100 range.
|
||||
|
||||
## 4. Parameters
|
||||
|
||||
Reference in New Issue
Block a user