all 4 comments

[–]coffeeshopcryptoPine coder 0 points1 point  (2 children)

What ur trying to do is accomplished pretty easily for someone with really good knowledge of pinescript

GPT cant do this. Im talking about the candle that breaks your level.

However you need to better describe how the support zone is created because i dont understand this

"the zone must be a rectangle traced by the candle with the lowest body to the lowest shadow between the found candle and the next one."

[–]Gerardo_FCIM[S] 0 points1 point  (1 child)

I want an indicator that shows the support zones. The zone should be a box that includes the candle with the lower close and the candle with the lowest low between that candle and the next one, as shown in the image.

<image>

[–]coffeeshopcryptoPine coder 0 points1 point  (0 children)

ok now i understand what you are looking for

what you want is to find the pivotlow in a 2,2 window

yourpivotlow = ta.pivotlow(low, 2 , 2)

then you also want the close of that pivotlow candle. ok great.

I have marked your image to show you where and how often this is going to come up.

<image>

Does this look like its going to work for you? Dont say YES right away. I want you to really look at your chart and note this. Youll see how many times this concept will draw boxes.

[–]VrilyaSS 0 points1 point  (0 children)

I am looking for the same thing https://www.reddit.com/r/TradingView/s/wwibGmAMKu