Drawing Fibo using MQL4

 

Hi


I cant seem to set the Fibo levels once I draw it using code. I am on Version 4 Build 224


ObjectCreate ("MyFibo", OBJ_FIBO,0,left, bottom, right,top)

ObjectSet("MyFibo",OBJPROP_FIBOLEVELS,4);


The above 2 lines work fine.

The below lines for setting the Level and Description do absolutely nothing.

Can someone let me know what I am doing wrong here.


ObjectSet("MyFibo",OBJPROP_FIRSTLEVEL+0,0.382);
ObjectSet("MyFibo",OBJPROP_FIRSTLEVEL+1,0.50);
ObjectSet("MyFibo",OBJPROP_FIRSTLEVEL+2,0.618);
ObjectSet("MyFibo",OBJPROP_FIRSTLEVEL+3,0.854);


ObjectSetFiboDescription( "MyFibo", 0,"38.2");
ObjectSetFiboDescription( "MyFibo", 1,"50.0");
ObjectSetFiboDescription( "MyFibo", 2,"61.8");
ObjectSetFiboDescription( "MyFibo", 3,"85.4");

Reason: