pinescripts
pinescripts copied to clipboard
Allow users to decide whether to use the `high` price or the actual `close` for breakout indication.
Allow users to decide whether to use the high price or the actual close for breakout indication.
closeOrHigh = close
bool useCloseForBandCrosses = true
closeOrHigh := useCloseForBandCrosses ? close : high