I am trying to use the AddVerticalLine function to show me when my time-based exit is for my trade. It works great but all of the other past vertical lines are cluttering up my chart. How to hide all vertical lines from greater than 50 bars ago?
I have tried so many things and I can't get it to work. I also searched and couldn't find the answer. Any help would be appreciated, thanks!
I have tried so many things and I can't get it to work. I also searched and couldn't find the answer. Any help would be appreciated, thanks!
Code:
AddVerticalLine(entryTrigger1[timeBasedExit], timeBasedExit + " bars Exit reached ", Color.ORANGE, curve.SHORT_DASH);