Hi All,
First time post, i am trying to code a SR indicator, the main logic are as follow:
1. look back say (400 bars). look at all the turning points using fractals. put into a temp array
2. sort the temp array from low to high.
3. compare each of the SR level, and see if they are close together, using average range of the past 400 bars, countup for each line, enough lines are cluster together,
these level are deemed to be significant, and plot out in chart.
however i have encounter the following problem,
-if i change the input value halfway, it seems like the indicator would give different value than if i reload it.
-the SR levels seems to be at a non-sense level.
-some buffer output values are missing.
any expert in there can give me some direction on how to fix the problem?
thanks.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use