I'm trying to understand why the following code could return the values in the screenshot. The value in question is the "LO_PERIOD" value, it differs from the "SwingLowBar" printout although they should be exactly the same...
HI_PERIOD = Swing(5).SwingHighBar(0, 1, CurrentBar);
LO_PERIOD = Swing(5).SwingLowBar(0, 1, CurrentBar);
Print(Time[0] + " SwingHighBar: " + Swing(5).SwingHighBar(0, 1, CurrentBar) + " SwingHigh: " + Swing(5).SwingHigh[0]);
Print(Time[0] + " SwingLowBar: " + Swing(5).SwingLowBar(0, 1, CurrentBar) + " SwingLow: " + Swing(5).SwingLow[0]);

Comment