Support Board
Date/Time: Wed, 05 Feb 2025 00:45:59 +0000
ASCIL Finding Previous High/Low
View Count: 648
[2020-02-21 17:41:05] |
User439067 - Posts: 48 |
I use sc.GetIndexOfHighestValue and sc.GetIndexOfLowestValue to get the bar of the last high. Is there sample code available to show me how I would use the current bar of sc.GetIndexOfLowestValue/sc.GetIndexOfHighestValue as the starting point for finding the previous HL? Thanks. |
[2020-02-21 19:07:12] |
Sierra Chart Engineering - Posts: 104368 |
Those functions do use the current bar when looking for the highest/lowest value. And they also take a Length parameter to specify how far back to look.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2020-02-21 20:30:51] |
User439067 - Posts: 48 |
Right I know how that works natively. What I need to see is how to start the length parameter over, at the bar where the normal function would find the HIGH/LOW. I tried to explain it with attached image. Date Time Of Last Edit: 2020-02-21 20:33:50
|
highlow-example.jpg / V - Attached On 2020-02-21 20:30:21 UTC - Size: 59.53 KB - 254 views |
[2020-02-24 01:22:31] |
Sierra Chart Engineering - Posts: 104368 |
You need to specify the Index parameter with that function with the bar index from where you want the function to start checking.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2020-02-24 01:22:43
|
To post a message in this thread, you need to log in with your Sierra Chart account: