Indicadores: Fibo Bar MT5

 

Fibo Bar MT5:

Indicador que dibuja los niveles de Fibonacci según la última barra.

2

Autor: Taras Slobodyanik

 

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);

   }

}