@santoshgauda7, either search for it in the library else copy paste it in pine editor and save it by different name and add to chart
dgtrd
⋅
just a little note,
trend value will have values between 0 and 1 for all instruments
but volshift may have totally different values, i.e for some instrumnets may have values from -200 to +200 and some instruments from -0.05 to + 0.05
please check below the outputs, how it effects visulization.
if i may suggest one alternative to overcome this is to change the color of volshift based on trend and there will be no need to plot trend it will be codded as color on volshift. Just a suggestion ;-)
plot(volshift, color = trend ? blue : silver, title = "NandyVolShift", style = line, linewidth = 2)
Thank you so much mate for taking time out to give such a wonderful explanation. It makes much more sense now. I saw all your scripts here at TradingView. You are doing an excellent job.
My gratitude!
Regards.
dgtrd
⋅
Thanks @RajeshV, I am glad if you find value in them ;-)