OPEN-SOURCE SCRIPT
AS 28.04.2026 - 1 minute Elephant + SMA + FVG + Adaptive Centric

🇬🇧 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
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.