OPEN-SOURCE SCRIPT

MSS, BOS, and FVG Trend Confirmation

159
Swing High and Swing Low Detection:

We're identifying the swing high and swing low using a length parameter that helps us find significant peaks and troughs. This is essential for both the MSS and BOS checks.

Market Structure Shift (MSS):

We check if the recent swing high is greater than the previous swing high (for an uptrend) and if the recent swing low is higher than the previous swing low. The same logic applies for a downtrend.

Break of Structure (BOS):

The script checks if the current price breaks above the last swing high for an uptrend or below the last swing low for a downtrend.

Fair Value Gap (FVG):

A FVG is detected when there's a significant imbalance. The script looks for cases where the price has moved sharply, and there might be a gap to fill.

Candle Color:

If MSS, BOS, and FVG all align to confirm an uptrend, the candle will turn blue.

If all three indicators align to confirm a downtrend, the candle will turn grey.

Signals:

For visual confirmation, we plot shapes above or below bars indicating when the uptrend or downtrend is confirmed.

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.