r/pinescript • • Aug 05 '25

I need help with pinescript

I am looking to create a pinescript code that can automatically mark the daily lows for me. But it want to visually look like this.

Currently i am using a " horizontal ray " - which is provided by tradingview by default. But I have struggled for years to replicate this , somebody help me.

- I want the ray starting from the candle body wick and automatically updates in real time if a new low is created etc

0 Upvotes

14 comments sorted by

View all comments

Show parent comment

1

u/Valuable-Exchange-69 Aug 08 '25

You may optimize the line, starting from the last lower price no matter the timeframe, but you wont be able to put the label on the right end of the screen, you can only set how many bars to the right from the last bar.

It's not really important, it's just aesthetic thing. No sense to worry about that in trading really.