Support Board
Date/Time: Wed, 27 Nov 2024 21:42:41 +0000
Post From: Reading/Calculating "Valley" prices from VbP Study
[2023-07-07 07:43:49] |
User407375 - Posts: 10 |
Dean, in case you didn't notice - when implementing this you will likely want a loop to increment the "PeakValleyIndex" argument to sc.GetStudyPeakValleyLine to extract all of the valleys. For example: for (int i = 0; ; i++) {
if (sc.GetStudyPeakValleyLine(sc.ChartNumber, sc.Input[0].GetStudyID(0), PeakValleyLinePrice, PeakValleyType, StartIndex, PeakValleyExtensionChartColumnEndIndex, -1, i)) { if (PeakValleyType == PEAKVALLEYTYPE_VALLEY) { // Do whatever you want with PeakValleyLinePrice } } else break; } Date Time Of Last Edit: 2023-07-07 10:54:10
|