So I have a stupid problem. I am trying to draw a dot, at a specific point. It sounds pretty easy, but when it gets drawn, the object gets put at a seemingly random place within a few points away from the actual price. For instance the code below should put the object at 96.35, but instead it will appear somewhere between 96.32 and 96.38. Of course if you look at the object from the "object list" dialogue box the right value is shown.
In addition, if I hover over the object, it shows the place on the chart and not the price value. I am pretty sure the last problem would be easy to fix with a property setting, but the first issue, placing the dot at the exact location is causing me issues.
I was thinking about trying this through buffers, but the limit of 8 may pose a problem, as I will need more "dots" than that.
Thanks for your help, here is my code, UJ was used for the chart to show the arrow.
In addition, if I hover over the object, it shows the place on the chart and not the price value. I am pretty sure the last problem would be easy to fix with a property setting, but the first issue, placing the dot at the exact location is causing me issues.
I was thinking about trying this through buffers, but the limit of 8 may pose a problem, as I will need more "dots" than that.
Thanks for your help, here is my code, UJ was used for the chart to show the arrow.
Inserted Code
//+-----------------------------------------------+ //| Dale Test | //| | //| | //+-----------------------------------------------+ #property indicator_chart_window //+------------------------------------------------------------------+ int init() { ObjectCreate("Test", OBJ_ARROW ,0, CurTime(),95.55); ObjectSet("Test", OBJPROP_COLOR, Blue); ObjectSet ("Test", OBJPROP_ARROWCODE, 167); WindowRedraw(); return(0); } //+------------------------------------------------------------------+ int deinit() { ObjectsDeleteAll(); return(0); } //+------------------------------------------------------------------+ int start() { } //+------------------------------------------------------------------+
Makin my way, the only way I know how...