From accd84899cd232ed922ca21fb30695e224d2cd4c Mon Sep 17 00:00:00 2001 From: Toh4iem9 Date: Mon, 20 Oct 2025 23:30:19 +0200 Subject: [PATCH] refactor: indicator_color --- Indicators/MyIndicators/RSIH_Pro.mq5 | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/Indicators/MyIndicators/RSIH_Pro.mq5 b/Indicators/MyIndicators/RSIH_Pro.mq5 index 5225777..ec233a4 100644 --- a/Indicators/MyIndicators/RSIH_Pro.mq5 +++ b/Indicators/MyIndicators/RSIH_Pro.mq5 @@ -12,7 +12,7 @@ #property indicator_plots 1 #property indicator_label1 "RSIH" #property indicator_type1 DRAW_LINE -#property indicator_color1 clrYellow +#property indicator_color1 clrGray #property indicator_style1 STYLE_SOLID #property indicator_width1 1 @@ -26,13 +26,25 @@ #include +//--- Custom Enum for Price Source, including Heikin Ashi enum ENUM_APPLIED_PRICE_HA_ALL { - 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, - 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 +//--- Heikin Ashi Prices + 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 + 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 }; //--- Input Parameters ---