AleSaira

Encapsulation Box

AleSaira Aggiornato   
The “Encapsulation Box” indicator is designed to locate areas of the chart where the highs and lows of candlesticks are “embedded” or enclosed within the body of a previous candlestick. This setup indicates a significant contraction in the market and can provide important trading signals. Here's how it works in more detail:

Detecting contraction: The indicator looks for situations where the price range of the candles is very narrow, i.e. when subsequent candles have highs and lows that are contained within the range of a previous candle. This condition indicates a contraction in the market before a possible directional move.

When a contraction is detected, the indicator draws a rectangle around the area where the highs and lows of the candles are embedded. The rectangle has its upper vertex corresponding to the maximum of the candles involved and its lower vertex corresponding to the minimum. The width of the rectangle is defined by can be customized by the user.

A key feature of this indicator is the horizontal line drawn outside the rectangle. This line is positioned in the middle of the rectangle and represents 50% of the range of the rectangle itself. This line acts as a significant support or resistance level depending on the direction the contraction breaks.

The indicator can generate buy or sell signals when a break in the rectangle or horizontal line occurs. For example, if the price breaks above the rectangle and the horizontal line, it could generate a buy signal, indicating a possible uptrend. Conversely, if the price breaks below the rectangle and the horizontal line, it could generate a sell signal, indicating a possible downtrend.







Note di rilascio:
Added Alert
Note di rilascio:
Optimized Alert, in this version it includes the bar index where the new box is formed in the alert message

Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

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.

Vuoi usare questo script sui tuoi grafici?