It looks to me that a swing point(high) is defined by this indicator as a high point that has x lower closes either side of it and the opposite for a swing low. What I would prefer is a high point that has x lower highs either side of it.
You can see from my screenshot that I have plotted the swing indicator with a setting of 2. I have place a blue dot above what I would consider to be a valid swing high point that is not picked up by the indicator.
The problem is that in reading the code, I cannot seem to find where this might be altered although it sounds like a simple thing to do.
This indicator obviously affects the plotting of other indicators like auto trend lines etc.
As an aside, I have placed a red diamond on the chart above another high point that I would consider using if placing a trend line manually. This point has only one lower high on the left, but two on the right.
You can see from this screenshot that if using a trend line break to enter a long trade (which I plan on, and currently do manually) the entire move would have been missed using the current swing indicator, however a trend line plotted between the bars of the blue dot and red diamond would have entered you in at a nice point indeed.
If it were possible to code the swing indicator to allow this kind of lopsided swing point it would also be handy.
Is anyone able to point me in the right direction of what to look for to alter in the code?
Comment