Support Board
Date/Time: Wed, 27 Nov 2024 10:42:03 +0000
Post From: Code help, using a string instead of a constant
[2023-08-28 08:47:20] |
User431178 - Posts: 544 |
What is the significance of that? Seems weird to me to multiply whatever the final result is, by the number of the current input plus 1.
The purpose of that was to make the visual representation of each formula result easier to distinguish in the image that was attached, i.e. cleary show that each formula was there were being evaluated. The demo image had 4 formula set, each yielding a true/false (1.0/0.0) output, rather than display all at 1.0, the results were adjusted to display the result of each at a different value. Adding 1 to the input index is necessary as the inputs are indexed from 0. Input 1: 1.0 * (0 + 1) = 1.0 Input 2: 1.0 * (1 + 1) = 2.0 etc... Outside of what I wanted to demonstrate, the * (InputIndex + 1) part serves no purpose - remove it. See attached image with offending code removed. |
formula string ohlc.png / V - Attached On 2023-08-28 08:46:57 UTC - Size: 86.23 KB - 80 views |