Hi all,
Im sure this is pretty simple. Just trying to setup a Price line for a moving average, the closest i can get is a horizontal line which updates at the close of each bar, what id like to do is get it to change at each tick.
Currently doing it like this:
Clearly my coding is lame, anybody care to oblige?
Im sure this is pretty simple. Just trying to setup a Price line for a moving average, the closest i can get is a horizontal line which updates at the close of each bar, what id like to do is get it to change at each tick.
Currently doing it like this:
Inserted Code
double MA = iMA(NULL,0,period,0,_0SMA_1EMA_2SMMA_3LWMA,_0C_1O_2H_3L_4M_5T_6W,i+shift); ExtMapBuffer1[i]= MA; ObjectDelete("HLine"); ObjectCreate("HLine", OBJ_HLINE , 0,Time[i], ExtMapBuffer1[i]); ObjectSet("HLine", OBJPROP_STYLE, STYLE_SOLID); ObjectSet("HLine", OBJPROP_COLOR, Colour); ObjectSet("HLine", OBJPROP_WIDTH, 0);
Clearly my coding is lame, anybody care to oblige?
Long live dynamic range