I would like to be able to draw support/resistance shape object (Shift + F2), and once all the adjustments are made - once user clicks on an empty place on the chart - I want few things to happen:
1. Strategy or indicator should detect that this drawing object just got finalized and read its upper and lower Y coordinates.
2. Since this drawing object's upper and lower Ys are not rounded to the tick of the chart - it would be nice to either adjust this object to exact tick values on the chart, or as a workaround to get its upper/lower Ys and round them in the strategy/indicator (ideally would be to adjust the whole drawing object to chart's tick closest exact values.)
3. As an alternative - maybe having some button on the chart trader - and when clicking it - it should finalize / lock this drawing object to correct closest tick values...
4. I would like to be able to draw multiple shapes and be able to read upper/lower Ys from each of them. What is the best way to tag them? (maybe associate specific tag once that shape got finalized while reading/adjusting its Ys coordinates).
Any help / samples would be great.
Thanks a lot!
Comment