enumaration custom indicator setting (compilation problem)
-
Hi i want add custom indacator with enuamation. when i compile ea it shows me such errors

-
Are these type names in your indicator inputs when you load to your terminal?
-
@jstap yes

-
Ok, but what is in the value? I only see "RSI" which you don't have in your enumerations...
-
here is the fragment of code i have
input int inpRsiPeriod = 21; // Rsi period enum enRsiTypes { rsi_cut, // Cuttler's RSI rsi_emp, // Trend emphasized RSI rsi_ehl, // Ehlers' smoothed RSI rsi_har, // Harris' RSI rsi_lag, // RSI Laguerre rsi_rap, // Rapid RSI rsi_rsi, // RSI rsi_rsx, // RSX rsi_rsx2, // RSX 2 rsi_slo, // Slow RSI rsi_dse, // Rsi Wilder's DsEma rsi_ere, // Rsi Wilder's efficiency ratio DsEma rsi_ssm, // Super smoother RSI rsi_usie, // Ultimate RSI Ema rsi_usir // Ultimate RSI Rma }; -
Is that from the indicator MQL code? Take a picture of the indicator inputs showing the RSI method values
-
yes it is and below is this code
input enRsiTypes inpRsiMethod = rsi_rsx2; -
What you have done seems to be correct, if you have all these values in the input dropdown I think this would work.
-
im confused, can by there any problems yet which couse these errors?
-
Not that I know of, a coder to look at how it's coded may be able to help. You can add the indicator here but as far as I know, if the used function is in the code it should work.