Hi guy. For some reason it refuses to appear on the chart. I removed the '5 Days' indicator, and altered the name, but it still hides itself!

Jeeves:
Hi guy. For some reason it refuses to appear on the chart. I removed the '5 Days' indicator, and altered the name, but it still hides itself!

Jeeves

Set some of the showDay parameters to true (like on the example picture) :

Files:
7_days.gif  90 kb

It paints all of the days up to number 5, but not 6 or 7. Could it be that even though my broker has a Sunday bar, there is no Saturday bar? I have tried 1,2,3,4,5,7 no good - & I tried 1.2.3.4.5.6, the same. Only the original five days can be used !?

Jeeves:
It paints all of the days up to number 5, but not 6 or 7. Could it be that even though my broker has a Sunday bar, there is no Saturday bar? I have tried 1,2,3,4,5,7 no good - & I tried 1.2.3.4.5.6, the same. Only the original five days can be used !?

Jeves

Sunday is day 0 in metatrader

Change this :

if (!ShowDay[day-1]) continue;

to this

if (!ShowDay[day]) continue;

and it should work (days for metatrader go like this 0,1,2,3,4,5,6 - where 0 is Sunday and 6 is Saturday)

Sorry Guy...now I get an error message!

Jeeves:
Sorry Guy...now I get an error message!

All works OK for me

This is the version I tested (the line changed is line 112) : 7days_2.mq4

Files:
7days_2.mq4  3 kb

Were do I start learning coding

drunkpips:
Were do I start learning coding

This is a good starting point : https://www.mql5.com/en/forum/172969

drunkpips:
Were do I start learning coding

Drunkpips, also here: https://www.mql5.com/en/forum/173230

mladen:
All works OK for me This is the version I tested (the line changed is line 112) : 7days_2.mq4

Many, many thanks mladen. Sorry for disappearing so quickly yesterday. I was highjacked by the grandchildren!!