Category "pine-script"

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