Highlight After A Signal

Hi,

I am using a Show Bar tool. It is set to line and shades over the bar when a specific signal occurs. I would like the line to shade the chart forward, say 100 bars from the initial signal. How would I do this?

Here is the signal:

V1 = BREADTHDATA(BREADTHSOURCE=Custom, BREADTHTYPE=20DHIGHS) ; 
V1 >= 55

thank you,

Hi Louis,

You can offset the results using square brackets eg for 100 bars:

V1 = BREADTHDATA(BREADTHSOURCE=Custom, BREADTHTYPE=20DHIGHS);
V2 = V1 >= 55;
V2[100]

Hi Darren. Thank you. My apologies for not being clear.

I am looking for a signal to be visible on the chart the day it is triggered and the following following 99 days.

Please see the attached picture. The green line is the initial signal from the show bar tool. The green box is the time I would like be shaded in addition to the shading on the day of each signal. I hope that helps. I can’t find anything in the forum. Sorry, and thank you.

Thanks Louis. To shade the area use this TimeSinceSignal formula in a Show View, and then drag it over the price chart:

V1 = BREADTHDATA(BREADTHSOURCE=Custom, BREADTHTYPE=20DHIGHS);
V2 = V1 CrossesAbove 55;
TIMESINCESIGNAL(V2)<=100

It will count from every time the signal was true, so there may be overlaps if the signals occurred within 100 days of each other. As such, it will extend 100 bars from the last signal:

Capture

Thanks Darren. Works perfectly.