Support Board
Date/Time: Mon, 25 Nov 2024 04:25:49 +0000
Post From: ACSIL - How to draw multiple lines on the chart and read price of line from another study
[2024-04-03 04:39:26] |
TraderSiva - Posts: 1 |
My requirement is as follows: 1. Draw multiple lines on the chart based on my own condition. 2. Retain line handles or something similar in a persistent array to delete lines when candle body closes through the lines. 3. I want to expose the remaining lines to another study in another chart. So far, I figured out the following 1. I can draw multiple lines using sc.AddLineUntilFutureIntersection and delete sc.DeleteLineUntilFutureIntersection. But, I need to store the handle of these lines and delete when candle body closes not when it intersects with a wick. 2. I don't see a way to store an array with any of the in-built persistent methods. 3. I have written few studies to read subgraph from other studies from another chart. I also see this method sc.GetPersistentSCStringFromChartStudy to read persistent variables from another study. But, I'm figuring out a way to store the line/price array in the persistent storage first to read from another study. Worst case I will store the price array as a delimited string using sc.GetPersistentSCString Any help would be greatly appreciated, Thanks! |