Login Page - Create Account

Support Board


Date/Time: Fri, 14 Mar 2025 15:07:10 +0000



Post From: Accessing all horizontal lines on a chart for all symbols

[2024-12-29 17:14:03]
sean3000 - Posts: 65
I'm trying to access all horizontal line drawings on a chart, including for symbols that are not the currently displayed symbol.

GetUserDrawnChartDrawing() seems to only return drawings that match the current chart's displayed symbol.

Example:
1. Chart 1 currently displaying NVDA with a horizontal line at 141
2. Chart 2 currently displaying MSFT with a horizontal line for NVDA at 139

When using GetUserDrawnChartDrawing() on Chart 1:
- Returns the 141 line since chart is displaying NVDA

When using GetUserDrawnChartDrawing() on Chart 2:
- Returns nothing, even though there is an NVDA line at 139

As a workaround, I'm using GetUserDrawnDrawingByLineNumber() and looping through a large range of negative numbers like -1 to -9999. This is inefficient but will find all lines regardless of which chart/symbol is currently displayed.

Is this intended behavior of GetUserDrawnChartDrawing()? If so, is there a way to access all drawings across charts besides iterating through line numbers?