I'm running beta version 12 of NT 7, and I found a problem with the SwingHighBar and SwingLowBar methods of the Swing indicator.
I'm testing those methods with a simple indicator (see attached) called "TestSwingHighBar". It draws a down arrow at the relative bar returned by a call to SwingHighBar.
The problem occurs when I change the test indicator from CalculateOnBarClose from True to False...it prints a double arrow showing that SwingHighBar is returning erroneous values.
I've found the solution to this problem would be to change the Swing indicator by removing the explicit initialization of "CalculateOnBarClose = true" statement. If you take that statement out, then the problem goes away.
Here's a short screencapture video which illustrates the situation.
Let me know if you have any questions!

Comment