Support Board
Date/Time: Sat, 23 Nov 2024 02:21:36 +0000
Unable to draw Line extended untill future intersection. Any help?
View Count: 126
[2024-09-15 18:14:06] |
User293951 - Posts: 15 |
Hello! I am facing a strange problem, I cannot draw any horizontal line that lasts (maximum) until day's close and extends until future intersection. Although it seems to be very simple, I have lost so much time without success. More specifically: I have drawn the Opening Ranges for the first 5, 30 & 60 minutes with colored background as you see in the attached picture. Purple, yellow and orange respectively. These backgrounds stop their development at 9:34:59, 9:59:59 and 10:29:59 respectively in order to keep the chart as clean as possible. I have added the +/-50% and +/-100% opening range extensions as horizontal segments, as shown in the picture, with the same colors. These segments stop their development at the end of each corresponding period. So far so good. Now I want to add line extensions to all these +/-50% and +/-100% line segments, but not infinitely. The development of these new lines should evolve until future intersection. I have tried anything without success. Studies tried: - Horizontal Line at time - Swing High and Low - Study subgraph reference The horizontal line at time can be based on the <Main Price Graph> but cannot be based on any of the studies I have used for the calculation of these levels. Displays nothing Maybe some specific formula could be used but do not know anything about it... Could anybody help me? Many thanks in advance. |
Problem.png / V - Attached On 2024-09-15 18:13:12 UTC - Size: 107.48 KB - 35 views Attachment Deleted. |
[2024-09-15 20:14:54] |
Sawtooth - Posts: 4118 |
I want to add line extensions to all these +/-50% and +/-100% line segments
You can do it with the Color Bar Based On Alert Condition study.You'll need an instance for each line. Basic idea: - Set the 'Output When Condition True' to 'Study Subgraph Reference' - Set the 'Study Subgraph Reference Value When True' to the OR study and its subgraph. - Set the 'Draw Extension Lines at Color Bar Value' to 'Extend to Future Intersection'. - On the Subgraphs tab, set SG1 to Hidden draw style - On the Alerts tab, enter =IDx.SGx of the OR study and its subgraph. |
[2024-09-15 22:08:08] |
JohnR - User831573 - Posts: 306 |
If you want to draw your extending horizontal lines using any value, not just bar values there is this ability sc.AddLineUntilFutureIntersection() Hope this helps, JohnR |
To post a message in this thread, you need to log in with your Sierra Chart account: