Hello,
I'm trying to create an indicator that would, if a straight line could connect 4 or more highs in the last X amount of bars, plot that line. I would then use that script as a definition and create an indicator/scan that would plot if a green bar closes above that line.
Something like the manually drawn line below. It's a perfect resistance line and sure enough, a few green bars closing above it were a tell tale sign for the rest of the day.
I've searched high and low for something like this but can't seem to find such script. Does anyone know of such a script?
I'm trying to create an indicator that would, if a straight line could connect 4 or more highs in the last X amount of bars, plot that line. I would then use that script as a definition and create an indicator/scan that would plot if a green bar closes above that line.
Something like the manually drawn line below. It's a perfect resistance line and sure enough, a few green bars closing above it were a tell tale sign for the rest of the day.

I've searched high and low for something like this but can't seem to find such script. Does anyone know of such a script?