refactor: Refactored to use centralized enums

This commit is contained in:
Toh4iem9
2025-11-06 14:41:02 +01:00
parent d92f9d624b
commit e9652ead31
@@ -4,7 +4,7 @@
//| |
//+------------------------------------------------------------------+
#property copyright "Copyright 2025, xxxxxxxx"
#property version "1.00"
#property version "1.10" // Refactored to use centralized enums
#property description "Gaussian-smoothed Momentum Oscillator based on Ehlers' concepts."
#property indicator_separate_window
@@ -22,8 +22,6 @@
#include <MyIncludes\Gaussian_Filter_Calculator.mqh>
enum ENUM_CANDLE_SOURCE { SOURCE_STD, SOURCE_HA };
//--- Input Parameters ---
input int InpPeriod = 20; // Cutoff Period for the filter
input ENUM_CANDLE_SOURCE InpCandleSource = SOURCE_STD;
@@ -76,7 +74,6 @@ int OnCalculate(const int rates_total, const int, const datetime&[], const doubl
if(CheckPointer(g_calculator) == POINTER_INVALID)
return 0;
// price_type is not used in momentum mode, but we pass a default value
g_calculator.Calculate(rates_total, PRICE_CLOSE, open, high, low, close, BufferMomentum);
return(rates_total);
}