For some time I have been using an indicator that I found in a forum. I has two little quirks that I have been unable to solve.
1. from time to time there are arrows just randomly displayed all over the chart.
2. to fix the problem above I have been just bringing up the indi properties and hitting "reset", that solves 1 but it also clears other manually created objects off the chart i.e. trendlines.
The code (below) seems pretty simple but I am at a loss as to what is causing the problems.
Any suggestions???
thanks,
dave
Just change timeframe/period and then change back . . . I have seen a similar thing with one of my Indicators, I'm pretty sure it is when more data is downloaded, for example if you scroll the chart right so new data has to be fetched and the Bars value increases.
Hey thanks for the tip.
After considering your suggestion I decided to change the bar count to see if I could prove your theory.
I have a couple of other indi's I run with this that I only have in an ex4 version, so to restrict their calculation cycle I just run the chart with a limited max bars.
Since the difference between the total bars on the chart and the count limit in this indi wasn't all that much, I though why not just run this on all the bars in the chart.
So I un-commented the counted_bars and substituted counted_bars for the count variable and it has been working great for the past 2 days.
thanks,
dave
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
For some time I have been using an indicator that I found in a forum. I has two little quirks that I have been unable to solve.
1. from time to time there are arrows just randomly displayed all over the chart.
2. to fix the problem above I have been just bringing up the indi properties and hitting "reset", that solves 1 but it also clears other manually created objects off the chart i.e. trendlines.
The code (below) seems pretty simple but I am at a loss as to what is causing the problems.
Any suggestions???
thanks,
dave