Support Board
Date/Time: Fri, 29 Nov 2024 08:22:39 +0000
Horizontal line at time. Can’t have a different line for same time multiple days back?
View Count: 389
[2023-02-19 03:21:39] |
quinatt - Posts: 9 |
Is there a way to set a number of days back to draw from? To have 30 lines showing the price at session open extending the whole chart? Don’t want the line to update everyday and have the old ones disappear
|
[2023-02-20 19:04:57] |
John - SC Support - Posts: 36350 |
There is not a way to specify the number of days, but if you set the Input for Limit Horizontal Line from Time to 1 Day to No, then you will get the lines for all days in the chart.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-02-21 21:56:30] |
quinatt - Posts: 9 |
thanks for reply. i can work with that. still not seeing how to extend each line from origin price to last bar in chart. even full chart left to right just makes it turn into one line im assuming using the last days time. the extend till further intersection is kinda what i want but i want it to cut through candles and not stop when intersected. just switching the line to bar or dash shows all the lines but they dont extend past the origin day.
|
[2023-02-21 23:03:42] |
John - SC Support - Posts: 36350 |
The easiest way to solve this is to change the code for this study such that when you add the Extension Lines Until Future Intersection, those lines are extended the full way across the chart. You can do this by changing the function for AddLineUntilFutureIntersection() to AddLineUntilFutureIntersectionEx() and when putting together the structure for s_LineUntilFutureIntersection be sure to set AlwaysExtendToEndOfChart to true. Refer to the information here: sc.AddLineUntilFutureIntersectionEx() But, if you are not up for programming, then you could probably make this work with the Spreadsheet Study, but it will take some work to get it setup. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-02-23 03:38:38] |
User90125 - Posts: 715 |
John, could SC consider updating the study to add this as an option then?
|
[2023-02-23 13:29:45] |
Sawtooth - Posts: 4120 |
To have 30 lines showing the price at session open extending the whole chart?
Try this:1. Add the Horizontal Line At Time study - set the Start Time to the Opening bar time. - Set the Input Data to Open. - Hide the study. 2. Add the Color Bar Based On Alert Condition study - Set the Output When Condition True to Use Input Data - Set the Input Data to Open - Set Draw Extension Lines At Color Bar Value to your choice of line type. - Use the Number of Bars to Calculate to limit the number of lines. - Use a formula like this on the Alerts tab: =ID1.SG1<>ID1.SG1[-1] where ID1 is the Horizontal Line At Time study Date Time Of Last Edit: 2023-02-23 22:22:25
|
To post a message in this thread, you need to log in with your Sierra Chart account: