I have a strategy that is using OnPriceChange() to place the Exit Orders based on some information from a Swing Indicator that needs to calculate OnBarClose(). Is there an easy way to modify the Swing Indicator so that it runs all its calculations on Bar Close? Or I need to modify the indicator so that every element that uses [0] now uses [1]? I tried to modify some of the values but it does not plot correctly anymore.
High, Close and Low values are correct when I change this section but not the plotting.
double high0 = !(Input is PriceSeries || Input is Bars) ? Input[0] : High[1];
double low0 = !(Input is PriceSeries || Input is Bars) ? Input[0] : Low[1];
double close0 = !(Input is PriceSeries || Input is Bars) ? Input[0] : Close[1];
Thanks in advance,

Comment