From 4c26b6c855f5327a16a091785e240c04bf47d2c3 Mon Sep 17 00:00:00 2001 From: kenorb Date: Sat, 24 Jun 2023 00:19:04 +0100 Subject: [PATCH] Indi_ADXW: Fixes logic for SetCustomIndicatorName() --- Indicators/Indi_ADXW.mqh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Indicators/Indi_ADXW.mqh b/Indicators/Indi_ADXW.mqh index 3a9c657a4..8506f24f1 100644 --- a/Indicators/Indi_ADXW.mqh +++ b/Indicators/Indi_ADXW.mqh @@ -39,7 +39,7 @@ struct IndiADXWParams : IndiADXParams { IndiADXWParams(int _period = 14, ENUM_APPLIED_PRICE _ap = PRICE_TYPICAL, int _shift = 0) : IndiADXParams(_period, _ap, _shift) { itype = itype == INDI_NONE || itype == INDI_ADX ? INDI_ADXW : itype; - if (custom_indi_name == "") { + if (custom_indi_name == "" || custom_indi_name == "Examples\\ADX") { SetCustomIndicatorName("Examples\\ADXW"); } };