OPEN-SOURCE SCRIPT

AS 28.04.2026 - 1 minute Elephant + SMA + FVG + Adaptive Centric

1 110

🇬🇧 ENGLISH DESCRIPTION

AS Indicator – Elephant Bars + SMA Trend + FVG + Sessions + MTF EMA

This is a multi-functional price action and trend indicator that combines volatility detection, trend filtering, liquidity gaps, session analysis, and multi-timeframe levels into one comprehensive tool.

🔹 1. Elephant Bars (Volatility & Momentum)

The indicator detects so-called Elephant Bars — strong impulsive candles defined by:

Range greater than ATR × multiplier
Body size exceeding a minimum percentage of the candle range

These bars signal institutional activity or strong momentum:

🟢 Bullish Elephant → strong buying pressure
🔴 Bearish Elephant → strong selling pressure

Optional labels (🐘) mark these candles directly on the chart.

🔹 2. SMA Trend System

Three Simple Moving Averages are used:

SMA 9 → short-term momentum (also colors candles)
SMA 20 → dynamic trend direction (colored green/red)
SMA 200 → macro trend filter

Trend logic:

Uptrend → SMA20 above SMA200
Downtrend → SMA20 below SMA200
No trend → price too close to SMA200 (range filter)

SMA200 changes color dynamically:

Green → bullish trend
Red → bearish trend
Gray → ranging market
🔹 3. Fair Value Gaps (FVG)

The script identifies inefficiencies in price delivery:

Bullish FVG → current low > high from 2 bars ago
Bearish FVG → current high < low from 2 bars ago

Zones are drawn as colored boxes and extended forward to highlight potential areas of:

liquidity
price rebalancing
institutional interest
🔹 4. Unified Alert System

A single alert triggers when ANY of the following occurs:

Elephant Bar detected
Bullish FVG appears
Bearish FVG appears

This allows efficient monitoring without multiple alert setups.

🔹 5. Market Sessions (Polish Time)

All sessions are calculated in Europe/Warsaw timezone:

Asia
Europe (London proxy)
US
New York
Daily Session (custom Poland session)

For each session:

The Opening Range (first X minutes) is calculated
High/Low is tracked
A dynamic box is drawn and extended in real time

This helps identify:

session liquidity zones
breakout levels
intraday structure
🔹 6. 15-Minute Range Levels (Live & Non-Repainting)

Two independent range systems:

Short lookback (live dynamic range)
Long lookback (strong key levels)

Levels are calculated from 15m data and plotted as horizontal lines:

Resistance (high range)
Support (low range)
🔹 7. Multi-Timeframe EMA (MTF)

Two EMAs from higher timeframes:

EMA 1 (faster HTF)
EMA 2 (slower HTF)

Signals:

EMA crossover up → bullish signal
EMA crossover down → bearish signal

Fully non-repainting (using lookahead_off logic).

🔹 8. Visual Features
Candle coloring based on SMA9
Elephant bars override color for clarity
Clean FVG zones (no borders)
Dynamic session boxes
Strong key levels from HTF data
✅ Summary

This indicator combines:

Momentum (Elephant Bars)
Trend (SMA + EMA)
Liquidity (FVG)
Structure (Opening Ranges & 15m levels)
Time (Sessions in local timezone)

➡️ Designed for intraday traders, price action traders, and smart money concepts users.

🇵🇱 OPIS PO POLSKU

AS Wskaźnik – Elephant Bars + SMA Trend + FVG + Sesje + MTF EMA

To rozbudowany wskaźnik price action, który łączy analizę zmienności, trendu, luk płynności, sesji oraz poziomów z wyższych interwałów w jednym narzędziu.

🔹 1. Elephant Bars (Zmienność i Impuls)

Wskaźnik wykrywa tzw. Elephant Bars:

zakres świecy większy niż ATR × mnożnik
korpus stanowi określony % całej świecy

Interpretacja:

🟢 byczy impuls (silny popyt)
🔴 niedźwiedzi impuls (silna podaż)

Opcjonalnie oznaczane symbolem 🐘 na wykresie.

🔹 2. System SMA (Trend)

Używane średnie:

SMA 9 → krótkoterminowy kierunek (koloruje świece)
SMA 20 → kierunek trendu
SMA 200 → filtr trendu globalnego

Logika:

trend wzrostowy → SMA20 > SMA200
trend spadkowy → SMA20 < SMA200
brak trendu → cena blisko SMA200

Kolory SMA200:

zielony → trend wzrostowy
czerwony → trend spadkowy
szary → konsolidacja
🔹 3. Fair Value Gap (FVG)

Wskaźnik wykrywa luki płynności:

byczy FVG → low > high sprzed 2 świec
niedźwiedzi FVG → high < low sprzed 2 świec

Zaznaczane jako prostokąty:

potencjalne strefy powrotu ceny
miejsca nierównowagi rynku
🔹 4. Jeden wspólny alert

Alert uruchamia się gdy wystąpi:

Elephant Bar
FVG byczy
FVG niedźwiedzi

➡️ Jeden alert zamiast wielu.

🔹 5. Sesje rynkowe (czas polski)

Wszystkie sesje w czasie Europe/Warsaw:

Azja
Europa
USA
New York
DS (sesja dzienna PL)

Dla każdej:

liczony Opening Range (pierwsze minuty)
rysowany box High/Low
aktualizacja w czasie rzeczywistym
🔹 6. Zakresy z 15m (bez repaintu)

Dwa zakresy:

krótkoterminowy (dynamiczny)
długoterminowy (silne poziomy)

Tworzą:

opór (high)
wsparcie (low)
🔹 7. EMA z wyższych TF (MTF)

Dwie EMA z innych interwałów:

szybka
wolna

Sygnały:

przecięcie w górę → kupno
przecięcie w dół → sprzedaż
🔹 8. Wizualizacja
kolorowanie świec
oznaczenia Elephant
czyste FVG (bez ramek)
boxy sesji
linie poziomów HTF
✅ Podsumowanie

Wskaźnik łączy:

impuls (Elephant)
trend (SMA + EMA)
płynność (FVG)
strukturę (range, sesje)
czas (sesje PL)

➡️ Idealny do:

daytradingu
price action
Smart Money Concepts

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.