I would like to know if someone can guide me on the most practical way in which I can know, from a strategy that I am developing in NT8, the new coordinates (meaning, the price and the candle number or candle time, of the two anchor points) of a “ray” object that has been moved on the chart by the user.
Currently, my strategy allows, through a button that I have previously programmed (and that is displayed on the chart), to plot rays, which can be changed position by the user, in a real time execution. When the user modifies the location (or inclination) of a ray, the strategy must update the two anchor points: (x1, y1) and (x2, y2), where “x” is the candlestick number or candlestick time, and “y” is the price. This coordinate information (along with the label assigned to each ray) are recorded in a list.
I was looking in the online help, if there was some event like the one that is called when an order is modified (OnOrderUpdate), that is fired when there has been a change in some chart plotted object (something like “OnChartUpdate” or similar), but I haven't found anything.
I believe that there should be a practical way that does not require the use of events such as “marketDataUpdate”, which impact the performance, to determine which ray was modified by the user, and then update the coordinates of that ray, in the aforementioned list.
Thank you for your response and guidance.
Best regards.

Comment