Support Board
Date/Time: Fri, 07 Feb 2025 18:20:32 +0000
Post From: how to find reference of line crossed by price
[2022-08-29 19:25:45] |
John - SC Support - Posts: 37828 |
Lines that are extended until a future intersection are not available through any built-in study. You can access these through a custom study, however. Refer to the following: sc.GetStudyLineUntilFutureIntersection() Although we are a little confused about what Pivot Point lines you are extending until the future, as the built-in Pivot Point studies draw a line through the entire current day, so there is no need to extend it. With the built-in studies, you would just need to reference the study ID and subgraph of the Pivot Point level you want. You would not need to look at anything other than the last bar, since the Pivot Points are straight lines. Depending on what exactly you want to do with this would determine how you would use it. For example, if this is going into an Alert, then the alert would look like the following: = C > IDx.SGy Where x is the ID number of the Pivot Point study and y is the Subgraph number of the Pivot Point level you want to reference. Note that the above only captures the situation where the last price goes above the pivot point level (i.e. from below it crosses to above). For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |