I tried to use two indicators, but One Delete the others plots, so only we have to add a random in Label_prefix, and add the variable to the function DeleteObjects. Now you can use two indicators at the same time
int OnInit()
{
Label_prefix = (MathRand()%12 +1) + Label_prefix;
//if (Fibo_Bar==PERIOD_CURRENT) Fibo_Bar=(ENUM_TIMEFRAMES)Period();
return(INIT_SUCCEEDED);
}
void DeleteObjects ()
{
for (int i=ObjectsTotal(0,0,-1)-1;i>=0;i--)
{
string name=ObjectName(0,i,0,-1);
if (StringFind(name,Label_prefix,0)>=0)
ObjectDelete(0,name);
}
}

Está perdiendo oportunidades comerciales:
- Aplicaciones de trading gratuitas
- 8 000+ señales para copiar
- Noticias económicas para analizar los mercados financieros
Registro
Entrada
Usted acepta la política del sitio web y las condiciones de uso
Si no tiene cuenta de usuario, regístrese
Fibo Bar MT5:
Indicador que dibuja los niveles de Fibonacci según la última barra.
Autor: Taras Slobodyanik