OPEN-SOURCE SCRIPT

Leno Logic Stack: BOS & CHoCH

236
The current script uses a fixed lookback. For your specific volume-based setups, you may want to add a volume > ta.sma(volume, 20) condition within the if statements to ensure that the structure break is "validated" by institutional participation.

Integration: Since you are tracking the interaction between price action and the VWMA 20, you could add a condition where a BOS label only prints if the close is above the ta.vwma(close, 20).

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.