Relative Content

Tag Archive for pine-script-v4

Is it possible to refer the past value?

In PineScript (version 4), I’m trying to draw half-straight lines starting from swing high-low pivot points. The challenge is that I can’t figure out how to selectively draw only the lines closest to the current price.

Pine VuManChu B Divergences valuewhen and series

I’m a beginner in pine coding not in “regular coding” and I’m having a hard time understanding what information the highPrev variable holds from the bellow f_findDivs () function.
For reference, this is an extract of the VuManChu Cipher B + Divergences indicator which source can be found here : https://fr.tradingview.com/script/Msm4SjwI-VuManChu-Cipher-B-Divergences/