Thanks Cja, this is exactly what im looking for!
Cja,
This little vertical line is very helpful. Can you please modify it with a "shift" function? I need it to stand by N bars to its left, instead of standing at the current bar.
Also I probably need more than one vertical line on my chart, so I hope this indicator can be loaded more than once?
Thank you very much Cja.
Cja,
This little vertical line is very helpful. Can you please modify it with a "shift" function? I need it to stand by N bars to its left, instead of standing at the current bar.
Also I probably need more than one vertical line on my chart, so I hope this indicator can be loaded more than once?
Thank you very much Cja.
vertical_line.mq4wccmcd
Try out this version : you can have positive as well as negative shifts (into the future) with this version : vertical_line__shift.mq4
Oh my dearest Mladen... you are so kind...
It's just perfect except I can't load it twice on the same chart... I tried to load 2 lines with different shift value and different color, but the 2nd line won't listen to me.
Do you have time to improve it?
Thanks!!!
wccmcd Try out this version : you can have positive as well as negative shifts (into the future) with this version : vertical_line__shift.mq4
Oh my dearest Mladen... you are so kind...
It's just perfect except I can't load it twice on the same chart... I tried to load 2 lines with different shift value and different color, but the 2nd line won't listen to me.
Do you have time to improve it?
Thanks!!!wccmcd
Here you go : vertical_line__shift_2.mq4
Set the UniqueID filed to unique value for each new instance and you can have as much instances on the same chart as you wish
Mladen,
I also found something strange: the line in the picture is set to shift 5 to the left. this is a M1 chart. when price bar moves, the line moves too... I then changed the timefram to M5 and changed back, the line then set to the right place... looks like a refresh problem... Could you check it as well?
wccmcd Try out this version : you can have positive as well as negative shifts (into the future) with this version : vertical_line__shift.mq4
Mladen,
I also found something strange: the line in the picture is set to shift 5 to the left. this is a M1 chart. when price bar moves, the line moves too... I then changed the timefram to M5 and changed back, the line then set to the right place... looks like a refresh problem... Could you check it as well?
![](https://c.mql5.com/forextsd/forum/133/shift.png)
Yes, you are right
Updated the one at the original post - no need to keep the faulty one there Download it from there and it will work OK now
YEAH~~~
Yes, you are right Updated the one at the original post - no need to keep the faulty one there
![](https://c.mql5.com/forextsd/smiles/smile.png)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Not sure if this is the place to ask, but I'm looking for an indicator that plots a vertical line only on the current bar of whatever timeframe the chart is set to. This indicator should show a vertical line from the chart to the indicators below and should overlay over the indicators where I can see the point the line intersects with the indicators. Can someone point me to where I could find this, thanks!