Support Board
Date/Time: Sat, 05 Jul 2025 07:50:45 +0000
Post From: Ending my Line Drawing
[2021-01-19 12:47:27] |
WHum7812 - Posts: 23 |
Hello: I am using the USETOOL function to draw a line horizontally from a start candle to an end candle. Once I specify a start index and value in UseTool, I want the line to display on the chart and extend to the right until my program specifies an end index. Therefore, initially I set the LineNumber, the startindex and startvalue in the UseTool function. Later, when I want the line to stop, I modify the Line (using UTAM_ADD_OR_ADJUST) to get it to end. The problem is that the line will not display on the chart until such time I specify the endindex in UseTool. Only then, will the drawing appear and display on the chart. It displays correctly, so I assume I am using the UseTool function correctly. Since it reacted that way with the LINE, I then tried the exact same thing with the DRAWING_RAY. In this case, it displayed properly in between the time of the start and the end of the line drawing. However, the problem this time is that the Ray will not end. In the line properties, I can see the two anchor points for the beginning and the end index, which are correct, but the Ray will not stop and continues to the right edge of the chart. I know that is what the DRAWING_HORIZONTAL_RAY is supposed to react like, but is the DRAWING_RAY not different? It does also show a {} symbol above and below the line at the END candle as if it recognizes the end point. However, it just didn't end there. I am really sorry to bother you with this but I have spent considerable time testing all the scenarios to try to make this work and cannot get it. In case you ask... I have also substituted using the index with the DateTimeIn. It reacted exactly the same as the results I explained above for both Line and Ray.... thank you, |