Category "pine-script"

PineScript: plot a line with custom values

I'm a newbie and I'd like to create a simple indicator I update every day with my numeric values and that plots one line chart. I tried this but it plots 3 sing

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

How to set stop loss at previous bar low of long entry?

I would like to set my stop loss at the previous bar low of long entry. I'm trying value when(your_condition, low[1], 0), but I don't know what "your_condition"

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