I would like to calculate the 'duration' (in number of bars) of a swing.
On a swing low, I have the current low and I have saved the previous high.
Subtracting one from the other gives me a weird number...and converting it
to 'int' doesn't seem to help.
swing_duration =Math.Abs(Convert.ToInt32(curHigh - curLow));
What did I miss?
Thanks..............
Comment