jozec » Sat May 21, 2016 9:49 pm wrote:Hi everyone, for those who have a problem with the sixth indicator with regards to the zooming issue, i use the attached indicator. I ithink it serves the same purpose.
I've just been setting this up with Squalou's sixth indicator kindly provided by jozec. I've noticed that it does still have a zoom factor in it and will show different levels depending on what level of zoom you've got your chart set to.
The high and low calculations are set to a fixed number of bars (BarCount) but the start point still varies by "shift":
Code: Select all
double high = High[iHighest(NULL,0,MODE_HIGH,_BarCount,shift)];
double low = Low[iLowest(NULL,0,MODE_LOW,_BarCount,shift)];
where shift =
Code: Select all
int shift = MathMax(WindowFirstVisibleBar()-WindowBarsPerChart()*0.8,0);
if you've always got the chart on the same zoom you won't notice but I just thought I'd point it out. It's also worth noting that the length of the lines drawn gives the false impression that you can look back at the painted levels and see past trades - this is not the case. The lines are drawn back far enough that they would have been at different levels back at that time and therefore can't be used.
In true forum ethos, I'm not just coming with problems, here are a few indicators that help to explain what I'm describing:
SIXTHS SQ_mod1 :
- I've set the "shift" to a fixed level of 1 so it's always looking back just BarCount bars and won't change with zoom.
- I've reduced the length of the lines to remove the temptation to look back at past price action - obviously the calcs are still using BarCount.
- I've also added optional trading zones to quickly show the areas to look for reversals
SIXTHS SQ_mod1.mq4
Sixths_As_Bands :
- This is to help with visual back testing as it shows where the lines would have been at each point in time
Sixths_As_Bands.mq4
You do not have the required permissions to view the files attached to this post.