Hi,
what can you do against repainting of indicators? When you do a visual mode backtest of an empty EA and you drop the indicator on the chart, you really see how it performs (repainting or not),
opposed to simply putting it on a live chart (too slow to evaluate repainting). So if you have seen that it does repaint, what can you do against that?
Is there a general rule that you need to follow? Or do you have to go through the code, step by step?
As an example I have attached a Hodrick-Prescott filter, an econometric method to split timeseries in a trend part and a cycle part. I like it a lot,
but only it repaints... How do I clean up this code so I get a "realistic" view of where it will have been on the past bars?
thx for the feedback guys, this forum is great!
what can you do against repainting of indicators? When you do a visual mode backtest of an empty EA and you drop the indicator on the chart, you really see how it performs (repainting or not),
opposed to simply putting it on a live chart (too slow to evaluate repainting). So if you have seen that it does repaint, what can you do against that?
Is there a general rule that you need to follow? Or do you have to go through the code, step by step?
As an example I have attached a Hodrick-Prescott filter, an econometric method to split timeseries in a trend part and a cycle part. I like it a lot,
but only it repaints... How do I clean up this code so I get a "realistic" view of where it will have been on the past bars?
thx for the feedback guys, this forum is great!
Attached File(s)
HP.mq4
2 KB
|
638 downloads