mirror of
https://github.com/softwaredevelop/mql5.git
synced 2026-08-19 23:38:07 +00:00
refactor: Refactored to use centralized enums
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user