Having trouble changing size of arrow on screen

To add comments, please log in or register
ed
394
ed  
ObjectCreate("SignalDot",OBJ_ARROW,0,0,0);
ObjectSet("SignalDot",OBJPROP_ARROWCODE,108);
ObjectSet("SignalDot",OBJPROP_COLOR,Gray);
SetIndexStyle("SignalDot",OBJPROP_WIDTH,1);

makes the same size dot as:

ObjectCreate("SignalDot",OBJ_ARROW,0,0,0);
ObjectSet("SignalDot",OBJPROP_ARROWCODE,108);
ObjectSet("SignalDot",OBJPROP_COLOR,Gray);
SetIndexStyle("SignalDot",OBJPROP_WIDTH,6000);

anybody know how to make it work?

Viffer
614
Viffer  

Are you sure SetIndexStyle is correct there? I would have thought it needed to be ObjectSet. I've not worked with objects much but SetIndexstyle is for an indicator buffer I think.

V

ed
394
ed  

Yes, that was exactly the problem. Thanks Viffer!

To add comments, please log in or register