//+------------------------------------------------------------------+ //| Params.mqh | //| Copyright 2026, Allan Niñal | //+------------------------------------------------------------------+ //| Build an indicator handle from a path and a parameter string | //| "d:1.5|i:10|b:false|s:alert.wav" (d double, i int/enum, b bool, | //| s string, c color), so test tools can drive any indicator. | //+------------------------------------------------------------------+ // SPDX-License-Identifier: LicenseRef-PolyForm-Noncommercial-1.0.0 (see LICENSE) int MakeHandle(const string sym,const ENUM_TIMEFRAMES tf,const string path,const string spec) { string parts[]; int n=(spec=="" ? 0 : StringSplit(spec,'|',parts)); MqlParam p[]; ArrayResize(p,n+1); p[0].type=TYPE_STRING; p[0].string_value=path; for(int i=0; i