Relative Content

Tag Archive for pine-scriptpine-script-v5tradingview-api

Using input.float to Change Timezone

I’m utilizing the ‘D’ variable when selecting the timeframe of my request.security. That by default utilizes UTC daily times. I want my script to run off of UTC-4 instead. Below is the script.

Engulfing pattern for pine script

someone help correct the error on my pine script(tradingview).
When there is a bullish engulfing pattern on higher timeframe and a bearish engulfing on a lower timeframe. it should plot and send a signal.

Box.new not showing on lower timeframe

I am trying to make box.new from a higher timeframe to the current timeframe.
I wrote the following code for plotting weekly box on daily but its not happening.
It is working fine on the same (weekly) timeframe.

Detecting Largest volume in Pine script

I want to be able to detect if today’s volume is the largest in the lifetime of a stock. How to do this. Currently, I manually set the lookback period to do screening. But I want it to be dynamic

Can I use hline for dynamic values?

I am developing an indicator on tradingview. My wish is to have (ohcl) calculations for the dynamic values I receive and use the horizon line. For dynamic values, the new.line function is recommended, and I use it, but I cannot write a direct price to the price bar on the right, like hline, which is not nice when drawing graphs. Label option etc. It’s not very encouraging. Is there a solution to this? I am sharing my sample code script.

Can I use hline for dynamic values? (Pine Script)

I am developing an indicator on tradingview. My wish is to have (ohcl) calculations for the dynamic values I receive and use the horizon line. For dynamic values, the new.line function is recommended and I use it, but I cannot write a direct price to the price bar on the right, like hline, which is not nice when drawing graphs. Label option etc. It’s not very encouraging. Is there a solution to this? I am sharing my sample code script.