Fibo Channel issue

 

Hello,

I have found out that I cannot read LEVEL related properties of Fibo Channel programmatically. Other channels and other Fibos look ok.

This is a sample script to reproduce.

 

int start()



{



   string nm="My Fibo Channel";



   ObjectCreate(nm,OBJ_FIBOCHANNEL,0,Time[20],Low[20],Time[10],Low[10],Time[0],Low[0]);



   if(ObjectFind(nm)>=0)



   {



      ObjectSet(nm,OBJPROP_LEVELCOLOR,Purple);



      ObjectSet(nm,OBJPROP_LEVELWIDTH,5);



      Print(" Level color : ",ObjectGet(nm,OBJPROP_LEVELCOLOR)); //Will be 0



      Print(" Level width : ",ObjectGet(nm,OBJPROP_LEVELWIDTH)); //Will be 0



   }



   return(0);



} 


 

Level style cannot be read either.

Does anyone know a good workaround?

Is there any point to report a bug to a broker to speed up fixing? It looks like MQ4 -related, not broker related issue.

Any advises will be highly appreciated.

 
mt4programming:

Hello,

I have found out that I cannot read LEVEL related properties of Fibo Channel programmatically. Other channels and other Fibos look ok.

This is a sample script to reproduce.

Level style cannot be read either.

Does anyone know a good workaround?

I'm sure I have seen something like this before . . .  if memory servers me,  you need to define all the Fib channel parameters rather than relying on the defaults,  and bear in mind the defaults can be changed.  try setting the number of evels and also the level values,  then see if you can read the level color.

It was this I was thinking of:  https://www.mql5.com/en/code

 
RaptorUK:

I'm sure I have seen something like this before . . .  if memory servers me,  you need to define all the Fib channel parameters  . . .

Maybe I was wrong,  I can't get it to work.  :-(
 

RaptorUK, thank you for the suggestion. I’ve tried defining levels, it does not look help.

Besides, they get assigned ok. They only cannot be read for some reason. That is why I think it could be MQ4 bug.

 
mt4programming:

RaptorUK, thank you for the suggestion. I’ve tried defining levels, it does not look help.

Besides, they get assigned ok. They only cannot be read for some reason. That is why I think it could be MQ4 bug.

Yeah, I tried it as well and couldn't get it to work.  If you have a profile at the mql5 forum you could log a ticket with the Service Desk about it.  The Service Desk is available from your Profile.