Hello, I have created the Fibonacci object without problems, but at each new Bar, the coordinates slip automatically forward of a Bar. I also inserted ObjectMove but it does not work.
Inserted Code
if(Count2==48){ ObjectCreate ("Fibo",OBJ_FIBO,0,Time[K],iCustom(0,0,"Heiken Ashi",3,K),Time[K],High[K]); ObjectCreate ("N"+Y,OBJ_TEXT,0, Time[K],iCustom(0,0,"Heiken Ashi",1,K+100*Point)); ObjectSetString(0,"N"+Y,OBJPROP_TEXT,Numero[Y]); ObjectSet ("N"+Y,OBJPROP_FONTSIZE,12); ObjectSet ("N"+Y,OBJPROP_COLOR,White); // property Fibo ObjectSet("Fibo",OBJPROP_RAY,true ); ObjectSet("Fibo",OBJPROP_BACK,true); ObjectSet("Fibo",OBJPROP_STYLE, STYLE_SOLID); ObjectSet("Fibo",OBJPROP_FIBOLEVELS, 6); ObjectSet("Fibo",OBJPROP_FIRSTLEVEL+0,0.000); ObjectSet("Fibo",OBJPROP_FIRSTLEVEL+1,1.000); ObjectSet("Fibo",OBJPROP_FIRSTLEVEL+2,1.427); ObjectSet("Fibo",OBJPROP_FIRSTLEVEL+3,4.236); ObjectSet("Fibo",OBJPROP_FIRSTLEVEL+4,-1.382); ObjectSet("Fibo",OBJPROP_FIRSTLEVEL+5,8.472); ObjectSetFiboDescription ("Fibo", 0, "0.0"); ObjectSetFiboDescription ("Fibo", 1, "100"); ObjectSetFiboDescription ("Fibo", 2, "142.7"); ObjectSetFiboDescription ("Fibo", 3, "423.6"); ObjectSetFiboDescription ("Fibo", 4, "Stop"); ObjectSetFiboDescription ("Fibo", 5, "847.2"); ObjectMove(0,"Fibo",K,Time[K],High[K]); // forced chart redraw ChartRedraw(current_chart_id); }