Create a vertical line at every Monday from date x to date y
-
Hi, is it possible to write a script that creates a vertical line at every Monday from date x to date y?
I have used the weekday filter and draw line, but nothing happend, so i added once a day, but still nothing in the chart.
Does anyone have a Idea?
https://fxdreema.com/shared/gBR1iV7jd
Thanks in advance
Siggi -
@siggi12345 If I understand it correctly you mean 2 vertical lines, both on Monday but at different times. Is that correct? Are they supposed to be at those same hours every Monday?
-
@l-andorrà nope, just one vertical line on the first candle of monday, but adding lines at specific time on a specific date would also be nice.
-
@siggi12345 Here you have it:

You can try to add other time filters for those additional conditions you mentioned.
-
@l-andorrà looks nice! Thank you very much!!!
-
@siggi12345 You're welcome.
-
@l-andorrà Hi, I have just tested it, but nothing happens. It looks like something is missing?
Is "Script" correct here? Or do I need something else in the code?
-
@siggi12345 Can you please share the new project?
-
-
@siggi12345 Well, you created a script, not an EA. This means the script will only work correctly on Monday and will not work any other weekday. If you want it to be working continuously you need to use this same structure in an EA.
BTW, the first block on top (Pass) is redundant. You can remove it.