Is there anyway to have an inline if within iCustom? New comment JSON Statham 2022.02.23 16:10 Hi, Don't know if I'm trying to push the boundaries of MQL5 here, but is there anyway to have an inline if within iCustom to determine the correct type for the parameter in MQL5? return iCustom(Symbol(),Period(),"Testing\\"+customInputs[1],CheckIfNumeric(paramValues[0])?StringToInteger(paramValues[0]):paramValues[0]); paramValues is a string array. CheckIfNumeric looks like this: bool CheckIfNumeric(string value) { int char1=StringGetCharacter(value,0); if(char1>=48 && char1<=57) return true; return false; } Thanks for any advice in advance. Edit: I should probably change 'StringToInteger' to 'StringToDouble'. What is the easiest way to display clickable button? confusing in backtest Run indicators without openning charts New comment
Hi,
Don't know if I'm trying to push the boundaries of MQL5 here, but is there anyway to have an inline if within iCustom to determine the correct type for the parameter in MQL5?
paramValues is a string array.
CheckIfNumeric looks like this:
Thanks for any advice in advance.
Edit: I should probably change 'StringToInteger' to 'StringToDouble'.