Support Board
Date/Time: Wed, 25 Dec 2024 14:38:58 +0000
Set BarIndex to Highest Volume Bar for N Bars
View Count: 731
[2015-11-24 02:57:02] |
User47579 - Posts: 4 |
Greetings, Would you please tell me how to set the int BarIndex to the Highest Volume Bar over a period of N Bars (N=100 for this example). In my code I have: int BarIndex; BarIndex = ?; // Within 100 Bars from the End of Chart Thank you, Bryan |
[2015-11-24 18:21:35] |
Sierra Chart Engineering - Posts: 104368 |
Assuming you are using Automatic Looping: int BarIndex = sc.GetIndexOfHighestValue(sc.Volume, 100); 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 |
To post a message in this thread, you need to log in with your Sierra Chart account: