OPEN-SOURCE SCRIPT

Current and Prior Inside Bar Coloring

166
Description
This script colors bars that are inside the prior bar's high and low range. Inside is defined as ≤ the high, and ≥ the low of the prior bar. You can choose to color only the current inside bar or all inside bars on the chart.

Utility
This gives a quick visual indication of inside bars across your chart. Inside bars, by definition, indicate consolidation and non-trending price action. By highlighting both current and historical inside bars, you can quickly identify periods of market indecision and potential breakout zones. Seeing the frequency and clustering of inside bars helps assess overall market conditions.

Function
Colors distinguish if the close is above or below the opening price of each inside bar. You can set different colors for current vs prior inside bars to visually separate real-time signals from historical patterns. If you prefer no distinction, simply use the same colors for both. The "Color prior inside bars?" toggle allows you to show only the current inside bar or all inside bars on your chart.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.