HOWEVER, I've got a situation in which I need to calculate a trend line price at previous bars reflecting the most recent (revised) slope value. I've tried multiple approaches to doing this with a fixed (at the most recent value) slope but the price of those previous bars always reflects the slope that was in effect at the time the previous bar was formed, and, indeed, those WERE the correct values at the time, but they don't correspond with the revised trend line I now see drawn on my chart. For the most part I'm fine with that as the current trend line price is the main thing, but I've got this ONE other "looking back thing" I want to do.
More specifically this pertains to a MAX/MIN operation in which the slope value is a component of the iSeries<double> input. Is there a way for me to keep the slope value fixed at the most recent value for such a purpose?
In a sense I'm trying to rewrite history, saying "For this purpose, don't use the value that was in effect at the time, use this other value instead."
Comment