Support Board
Date/Time: Tue, 26 Nov 2024 00:24:20 +0000
Post From: Volume by Price - Valleys and Peak data not on spreadsheet
[2020-10-30 22:35:04] |
BreadWinner'sAssoc. - Posts: 7 |
User355030, With the code I supplied above I can only get the first peak or valley to show up on my main price graph. I've been struggling with this for quite some time. The reason I want to access these numbers is so I can have one chart with multiple VbP profiles and just reference the lines on my other charts to reduce the amount of processing required. Currently my only way around this is to add the same VbP to every chart that I want the peaks and valleys overlaid. BUT, this provides an inefficient way to do this because each chart will have to recalculate each VbP study. I am trying to find a way to access all the price levels in the VbP and append them to an array. Then I should be able to go through each index within that array with a for loop and looking for a boolean answer as to weather x price level is a peak or valley then append it to a separate array. If it is not a peak or valley then proceed to the next index and evaluate until there are no more price levels in the original array acquired from the sc.GetStudyPeakValletLine function. @Akin, Do you have any words of advice to send me in the right direction to accomplish what I would like to do. Also, I posted a similar request on your forum. I have lots of experience with languages other than C++, for example, I have done lots of work with C#, .Net, VBA, Python, R, SAS, and limited experience with MATLAB during college. I feel like C++ is a much more simplified language than most, but at the same time very powerful. I'm still trying to adjust to this language. I greatly appreciate any words of advice. |