Support Board
Date/Time: Mon, 22 Dec 2025 13:18:07 +0000
Post From: Setting drawing LineNumber to price in ticks, then erasing if price met
| [2016-09-28 06:34:18] |
| binaryduke - Posts: 387 |
|
Hi SierraChart I'm stuck on a simple problem and would appreciate a quick steer in the correct direction. I wish to draw a marker at a price level, then erase it if the price trades again. I am setting the LineNumber of the marker to the price - an int which should be the price in ticks - I'm not multiplying by sc.TickSize. The code to draw the marker works fine. Each time the routine is called, I call: sc.DeleteACSChartDrawing (0, TOOL_DELETE_CHARTDRAWING, sc.LastTradePrice); I would presume that if no drawing exists with a LineNumber of sc.LastTradePrice there's no harm done, however, the previously drawn markers do not erase. From this I presume the LineNumber is not set to what I'm expecting. I'd appreciate a steer as to what I'm missing. Many thanks Lee. |
