Page 1 of 1

Price Range Tool using pine script? (input.price and input.time)

Posted: Sun Nov 14, 2021 2:55 am
by lborges
I would like to know how can I find the percentage difference between two chart points or two candles (HL/2) using pine script?

I know it may be possible using V5 input.time and input.price and I would like to use it in another code I'm trying to create.

Basically I would like to create something like the Price Range tool using pine script and save the percentage value to use in my indicator.

Please help guys!