Support Board
Date/Time: Wed, 27 Nov 2024 19:51:59 +0000
Post From: [Programming Help] - Horizontal Lines Cumulative Increment Levels
[2023-07-24 13:15:00] |
User688525 - Posts: 259 |
Hello, I am modifying the Horizontal Lines at Increment study (scsf_HorizontalLinesAtIncrement) and would appreciate some assistance with increasing the increment in an additive way. For example, the current study requests the "Start Value" (base price) and the "Line Increment" (amount to increase each level by), however, this is a fixed increase. For example, if the "Start Value" is "1000" and the "Line Increment" is "25", the plotted levels will be: 1025, 1050, 1075, 1100, 1125, etc. Assuming the final line of code "CurrentLineValue += Input_LineIncrement.GetFloat();" is the code that requires modifying, what code is required for each plotted level to increment the cumulative increment total? For example, instead of plotting levels every 25 points, how can levels be plotted as follows: 1025, 1075, 1150, 1250, 1375, etc. I understand some sort of loop is required to plot each level based on adding the increment amount to the cumulative increment total, but am unsure how this would be coded. Thank you |