PDA

Zobacz pełną wersję : ObjectCreate Obj_fibo (problem MOVE)



Carbaya31
05-03-2017 04:33, 04:33
Witam, stworzyłem obiekt Fibonacciego bez problemów, ale w każdym nowym pasku współrzędne przesuwają się automatycznie do przodu paska. Wstawiłem ObjectMove, ale to nie działa.

Wstawiony kod if (Count2 == 48) {ObjectCreate (Fibo, OBJ_FIBO, 0, Time # 91; K # 93; High # 91; K # 93;); ObjectCreate (N Y, OBJ_TEXT, 0, Time # 91; K # 93;, iCustom (0,0, Heiken i, 1, K 100 * Point)); ObjectSetString (0, N Y, OBJPROP_TEXT, Numero # 91; Y # 93;); ObjectSet (N Y, OBJPROP_FONTSIZE, 12); ObjectSet (N Y, OBJPROP_COLOR, biały);/właściwość 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,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,84747); 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 # 91; K # 93;, High # 91; K # 93;);/wymuszone odświeżanie wykresu ChartRedraw (current_chart_id); }