using the Market Reply I'm getting errors in the calculation of Swing.
On FirstTickOfBar, I print on Output Window the values of the Swing indicator (strength=3) for the last 3 bars [0], [1] and [2]
As you can see in image below, I do not get the correct values of the indicator of Swing.
for example, at 08:14 in Output Window
Swing[0] = 11949.5 but the correct value is 11948.0
Swing[1] = 11949.5 but the correct value is 11948.0
Swing[2] = 11949.5 and this is the correct value!
Why?
Comment