mirror of
https://github.com/softwaredevelop/mql5.git
synced 2026-08-18 14:58:10 +00:00
refactor(indicators): Updated to use unified V4 calculator
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
//+------------------------------------------------------------------+
|
//+------------------------------------------------------------------+
|
||||||
//| MACD_Pro.mq5 |
|
//| MACD_Pro.mq5 |
|
||||||
//| Copyright 2025, xxxxxxxx|
|
//| Copyright 2026, xxxxxxxx|
|
||||||
//+------------------------------------------------------------------+
|
//+------------------------------------------------------------------+
|
||||||
#property copyright "Copyright 2025, xxxxxxxx"
|
#property copyright "Copyright 2026, xxxxxxxx"
|
||||||
#property version "3.00" // Refactored to use MovingAverage_Engine
|
#property version "4.00" // Updated to use unified V4 calculator
|
||||||
#property description "Professional MACD with selectable MA types and price source"
|
#property description "Professional MACD with selectable MA types and price source"
|
||||||
#property description "(Standard and Heikin Ashi)."
|
#property description "(Standard and Heikin Ashi)."
|
||||||
|
|
||||||
@@ -40,7 +40,6 @@ input int InpFastPeriod = 12;
|
|||||||
input int InpSlowPeriod = 26;
|
input int InpSlowPeriod = 26;
|
||||||
input int InpSignalPeriod = 9;
|
input int InpSignalPeriod = 9;
|
||||||
input ENUM_APPLIED_PRICE_HA_ALL InpSourcePrice = PRICE_CLOSE_STD;
|
input ENUM_APPLIED_PRICE_HA_ALL InpSourcePrice = PRICE_CLOSE_STD;
|
||||||
// UPDATED: Use ENUM_MA_TYPE
|
|
||||||
input ENUM_MA_TYPE InpSourceMAType = EMA; // MA Type for Fast and Slow lines
|
input ENUM_MA_TYPE InpSourceMAType = EMA; // MA Type for Fast and Slow lines
|
||||||
input ENUM_MA_TYPE InpSignalMAType = EMA; // MA Type for Signal line
|
input ENUM_MA_TYPE InpSignalMAType = EMA; // MA Type for Signal line
|
||||||
|
|
||||||
@@ -130,4 +129,4 @@ int OnCalculate(const int rates_total,
|
|||||||
return(rates_total);
|
return(rates_total);
|
||||||
}
|
}
|
||||||
//+------------------------------------------------------------------+
|
//+------------------------------------------------------------------+
|
||||||
//+------------------------------------------------------------------+
|
//+------------------------------------------------------------------+
|
||||||
Reference in New Issue
Block a user