Category "pinescript-v5"

Pine Script - ternary operator in "display" parameter in plot call causes invalid argument error

//@version=5 strategy(title='Test',overlay=true) i_hide_eq = input.bool(true, title='Hide Equity Curve') plot(strategy.equity, display=i_hide_eq ? display.none

Tradingview - Pinescript and strategy issues

I'm not a coder but doing my best :) I have made some code for tradingview where I use ema's and hoffman strategy to open and close orders. First it was an indi

How to implement a Super trend crossover

I am new to pine script. I am trying to create strategy with below condition. if current price is greater than supertrend(5,1) and current price is greater than

How to convert strategy to study pinescript V5

I need to figure out how to turn my strategy into a study for V5 Pinescript. I cannot seem to find any info about it online. Im pretty sure for v3 you have to c

Price crossing levels in both directions, in realtime bar, not activating subsequent alerts

My code is configured to initiate an alert whenever the current price crosses a predetermined buy/sell level. This part works. However, in certain time frames (

plotting Candles as Seconds Timefame/ Chart(TradingView/Pinescript)

is there a way to plot candles as Seconds Timeframe, without using a timeframe.isseconds. found a calculation but i cant plot candle on it. // calculate bar tim

Multi-TF Volume Table (Pine Script)

I'm making an indicator to calculate two EMAs, compare which one is greater, and then deliver the user a bias of bullish or bearish (by coloring the second row