From 4b967c1331706a90dfbeb78d656867db8146bac9 Mon Sep 17 00:00:00 2001 From: Toh4iem9 Date: Tue, 21 Oct 2025 23:28:27 +0200 Subject: [PATCH] refactor: ENUM_APPLIED_PRICE_HA_ALL --- Include/MyIncludes/HeikinAshi_Tools.mqh | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Include/MyIncludes/HeikinAshi_Tools.mqh b/Include/MyIncludes/HeikinAshi_Tools.mqh index 69a6e89..69e14cc 100644 --- a/Include/MyIncludes/HeikinAshi_Tools.mqh +++ b/Include/MyIncludes/HeikinAshi_Tools.mqh @@ -6,6 +6,35 @@ #property copyright "Copyright 2025, xxxxxxxx" #property link "" +//+==================================================================+ +//| | +//| GLOBAL ENUM for Standard & Heikin Ashi Prices | +//| | +//+==================================================================+ + +// This enum provides a unified list for input parameters, allowing users +// to select from both standard and Heikin Ashi price sources. +enum ENUM_APPLIED_PRICE_HA_ALL + { +//--- Heikin Ashi Prices (negative values for easy identification) + PRICE_HA_CLOSE = -1, + PRICE_HA_OPEN = -2, + PRICE_HA_HIGH = -3, + PRICE_HA_LOW = -4, + PRICE_HA_MEDIAN = -5, + PRICE_HA_TYPICAL = -6, + PRICE_HA_WEIGHTED = -7, +//--- Standard Prices (using built-in ENUM_APPLIED_PRICE values) + PRICE_CLOSE_STD = PRICE_CLOSE, + PRICE_OPEN_STD = PRICE_OPEN, + PRICE_HIGH_STD = PRICE_HIGH, + PRICE_LOW_STD = PRICE_LOW, + PRICE_MEDIAN_STD = PRICE_MEDIAN, + PRICE_TYPICAL_STD = PRICE_TYPICAL, + PRICE_WEIGHTED_STD= PRICE_WEIGHTED + }; + + //+==================================================================+ //| | //| CLASS 1: CHeikinAshi_Calculator |