BACAP PRICE STRUCTURE 21 EMA TREND21dma-STRUCTURE
Overview
The 21dma-STRUCTURE indicator is a sophisticated overlay indicator that visualizes price action relative to a triple 21-period exponential moving average structure. Originally developed by BalarezoCapital and enhanced by PrimeTrading, this indicator provides clear visual cues for trend direction and momentum through dynamic bar coloring and EMA structure analysis.
Key Features
Triple EMA Structure
- 21 EMA High: Tracks the exponential moving average of high prices
- 21 EMA Close: Tracks the exponential moving average of closing prices
- 21 EMA Low: Tracks the exponential moving average of low prices
- Dynamic Cloud: Gray fill between high and low EMAs for visual structure reference
Smart Bar Coloring System
- Blue Bars: Price closes above all three EMAs (strong bullish momentum)
- Pink Bars: Daily high falls below the lowest EMA (strong bearish signal)
- Gray Bars: Neutral conditions or transitional phases
- Color Memory: Maintains previous color until new condition is met
Dynamic Center Line
- Trend-Following Color: Green when all EMAs are rising, red when all are falling
- Color Persistence: Maintains trend color during sideways movement
- Visual Clarity: Thicker center line for easy trend identification
Customizable Visual Elements
- Adjustable line thickness for all EMA plots
- Customizable colors for bullish and bearish conditions
- Configurable trend colors for uptrend and downtrend phases
- Optional bar color changes with toggle control
How to Use
Trend Identification
- Rising Green Center Line: All EMAs trending upward (bullish structure)
- Falling Red Center Line: All EMAs trending downward (bearish structure)
- Flat Center Line: Maintains last trend color during consolidation
Momentum Analysis
- Blue Bars: Strong bullish momentum with price above entire EMA structure
- Pink Bars: Strong bearish momentum with high below lowest EMA
- Gray Bars: Neutral or transitional momentum phases
Entry and Exit Signals
- Bullish Setup: Look for blue bars during green center line periods
- Bearish Setup: Look for pink bars during red center line periods
- Exit Consideration: Watch for color changes as potential momentum shifts
Structure Trading
- Support/Resistance: Use EMA cloud as dynamic support and resistance zones
- Breakout Confirmation: Bar color changes can confirm structure breakouts
- Trend Continuation: Color persistence suggests ongoing momentum
Settings
Visual Customization
- Change Bar Color: Toggle to enable/disable bar coloring
- Line Size: Adjust thickness of EMA lines (default: 3)
- Bullish Candle Color: Customize blue bar color
- Bearish Candle Color: Customize pink bar color
Trend Colors
- Uptrend Color: Color for rising EMA center line (default: green)
- Downtrend Color: Color for falling EMA center line (default: red)
- Cloud Color: Fill color between high and low EMAs (default: gray)
Advanced Features
Modified Bar Logic
Unlike traditional EMA systems, this indicator uses refined conditions:
- Bullish signals require close above ALL three EMAs
- Bearish signals require high below the LOWEST EMA
- Enhanced precision reduces false signals compared to single EMA systems
Trend Memory System
- Intelligent color persistence during sideways movement
- Reduces noise from minor EMA fluctuations
- Maintains trend context during consolidation periods
Performance Optimization
- Efficient calculation methods for real-time performance
- Clean visual design that doesn't clutter charts
- Compatible with all timeframes and instruments
Best Practices
Multi-Timeframe Analysis
- Use higher timeframes to identify overall trend direction
- Apply on multiple timeframes for confluence
- Combine with weekly/monthly charts for position trading
Risk Management
- Use bar color changes as early warning signals
- Consider position sizing based on EMA structure strength
- Set stops relative to EMA support/resistance levels
Combination Strategies
- Pair with volume indicators for confirmation
- Use alongside RSI or MACD for momentum confirmation
- Combine with key support/resistance levels
Market Context
- More effective in trending markets than choppy conditions
- Consider overall market environment and sector strength
- Adjust expectations during high volatility periods
Technical Specifications
- Based on 21-period exponential moving averages
- Uses Pine Script v6 for optimal performance
- Overlay indicator that works with any chart type
- Maximum 500 lines for clean performance
Ideal Applications
- Swing trading on daily charts
- Position trading on weekly charts
- Intraday momentum trading (adjust timeframe accordingly)
- Trend following strategies
- Structure-based trading approaches
Disclaimer
This indicator is for educational and informational purposes only. It should not be used as the sole basis for trading decisions. Always combine with other forms of analysis, proper risk management, and consider your individual trading plan and risk tolerance.
Compatible with Pine Script v6 | Works on all timeframes | Optimized for trending markets
Penunjuk dan strategi
21DMA Structure Counter (EMA/SMA Option)21DMA Structure Counter (EMA/SMA Option)
Overview
The 21DMA Structure Counter is an advanced technical indicator that tracks consecutive periods where price action remains above a 21-period moving average structure. This indicator helps traders identify momentum phases and potential trend exhaustion points using statistical analysis.
Key Features
Moving Average Structure
- Configurable MA Type: Choose between EMA (Exponential Moving Average) or SMA (Simple Moving Average)
- 21-Period Default: Optimized for the widely-watched 21-period moving average
- Triple MA Structure: Tracks high, close, and low moving averages for comprehensive analysis
Statistical Analysis
- Cycle Counting: Automatically counts consecutive periods above the MA structure
- Historical Data: Maintains up to 2,500 historical cycles (approximately 10 years of daily data)
- Z-Score Calculation: Provides statistical context using mean and standard deviation
- Multiple Standard Deviation Levels: Displays +1, +2, and +3 standard deviation thresholds
Visual Indicators
Color-Coded Bars:
- Gray: Below 10-year average
- Yellow: Between average and +1 standard deviation
- Orange: Between +1 and +2 standard deviations
- Red: Between +2 and +3 standard deviations
- Fuchsia: Above +3 standard deviations (extreme readings)
Breadth Integration
- Multiple Breadth Options: NDFI, NDTH, NDTW (NASDAQ breadth indicators), or VIX
- Background Shading: Visual alerts when breadth reaches extreme levels
- High/Low Thresholds: Customizable levels for breadth analysis
- Real-time Display: Current breadth value shown in data table
Smart Reset Logic
- High Below Structure Reset: Automatically resets count when daily high falls below the lowest MA
- Flexible Hold Period: Continues counting during temporary weakness as long as structure isn't violated
- Precise Entry/Exit: Strict criteria for starting cycles, flexible for maintaining them
How to Use
Trend Identification
- Rising Counts: Indicate sustained momentum above key moving average structure
- Extreme Readings: Z-scores above +2 or +3 suggest potential trend exhaustion
- Historical Context: Compare current cycles to 10-year statistical averages
Risk Management
- Breadth Confirmation: Use breadth shading to confirm market-wide strength/weakness
- Statistical Extremes: Exercise caution when readings reach +3 standard deviations
- Reset Signals: Pay attention to structure violations for potential trend changes
Multi-Timeframe Application
- Daily Charts: Primary timeframe for swing trading and position management
- Weekly/Monthly: Longer-term trend analysis
- Intraday: Shorter-term momentum assessment (adjust MA period accordingly)
Settings
Moving Average Options
- Type: EMA or SMA selection
- Period: Default 21 (customizable)
- Reset Days: Days below structure required for reset
Visual Customization
- Standard Deviation Lines: Toggle and customize colors for +1, +2, +3 SD
- Breadth Selection: Choose from NDFI, NDTH, NDTW, or VIX
- Threshold Levels: Set custom high/low breadth thresholds
- Table Styling: Customize text colors, background, and font size
Technical Notes
- Data Retention: Maintains 2,500 historical cycles for robust statistical analysis
- Real-time Updates: Calculations update with each new bar
- Breadth Integration: Uses security() function to pull external breadth data
- Performance Optimized: Efficient array management prevents memory issues
Best Practices
1. Combine with Price Action: Use alongside support/resistance and chart patterns
2. Monitor Breadth Divergences: Watch for breadth weakness during strong readings
3. Respect Statistical Extremes: Exercise caution at +2/+3 standard deviation levels
4. Context Matters: Consider overall market environment and sector rotation
5. Risk Management: Use appropriate position sizing, especially at extreme readings
Disclaimer
This indicator is for educational and informational purposes only. It should not be used as the sole basis for trading decisions. Always combine with other forms of analysis and proper risk management techniques.
Compatible with Pine Script v6 | Optimized for daily timeframes | Best used on major indices and liquid stocks
Meth Brothers™ Dynamite FuseEarly entry indicator with based on 5& 9 EMAS, with a visual aid (stick of dynamite) to show the pivot and that both EMAS are in agreement.
Opening Range + Full-Day High/Low + Prev Day LevelsDraws a box around the first 15min range with horizontal lines extending throughout the day, with faded lines of the previous day's highs and lows, also draws arrows for 5m breakouts of those levels
Position Size CalculatorPosition Size Calculator for Futures Trading
A professional position sizing tool designed specifically for futures traders who want to maintain disciplined risk management. This indicator calculates the optimal number of contracts based on your predefined risk amount and provides instant visual feedback.
Key Features:
• Interactive price selection - simply click on the chart to set entry, stop loss, and take profit levels
• Supports all major futures contracts: ES, NQ, GC, RTY, YM, MNQ, MES with accurate contract specifications
• Customizable risk amount (defaults to $500 but fully adjustable)
• Real-time position size calculations that never exceed your risk tolerance
• Visual risk validation with color-coded header (green = valid risk, red = excessive risk)
• Automatic 2:1 risk/reward ratio calculations
• Compact, non-intrusive table display in top-right corner
• Clean interface with no chart clutter
How to Use:
Select your futures instrument from the dropdown
Set your maximum risk amount (default $500)
Click on the chart to set your Entry Price
Click on the chart to set your Stop Loss Price
Optionally click to set your Take Profit Price
The calculator instantly shows maximum contracts, actual risk, expected profit, and R/R ratio
Risk Management:
The indicator enforces strict risk management by calculating the maximum number of contracts you can trade while staying within your specified risk limit. The header turns green when your trade is within acceptable risk parameters and red when the risk is too high, providing instant visual feedback.
Perfect for day traders, swing traders, and anyone trading futures who wants to maintain consistent position sizing and risk management discipline.
TradersPostDeluxeLibrary "TradersPostDeluxe"
TradersPost integration. It's currently not very deluxe
SendEntryAlert(ticker, action, quantity, orderType, takeProfit, stopLoss, id, price, timestamp, timezone)
Sends an alert to TradersPost to trigger an Entry
Parameters:
ticker (string) : Symbol to trade. Default is syminfo.ticker
action (series Action) : TradersPostAction (.buy, .sell) default = buy
quantity (float) : Amount to trade, default = 1
orderType (series OrderType) : TradersPostOrderType, default =e TradersPostOrderType.market
takeProfit (float) : Take profit limit price
stopLoss (float) : Stop loss price
id (string) : id for the trade
price (float) : Expected price
timestamp (int) : Time of the trade for reporting, defaults to timenow
timezone (string) : associated with the time, defaults to syminfo.timezone
Returns: Nothing
SendExitAlert(ticker, price, timestamp, timezone)
Sends an alert to TradersPost to trigger an Exit
Parameters:
ticker (string) : Symbol to flatten
price (float) : Documented planned price
timestamp (int) : Time of the trade for reporting, defaults to timenow
timezone (string) : associated with the time, defaults to syminfo.timezone
Returns: Nothing
TBL Session Highs&LowsBL Session Highs&Lows is a versatile intraday tool that highlights key price levels within up to 11 configurable trading sessions. It displays session highs, lows, and optional open levels, with customizable lines, labels, and boxes — perfect for tracking price behavior across sessions like Asia, London, and New York.
🔧 Key Features
🧩 Up to 11 fully customizable sessions
📍 High, Low, and Open lines with adjustable color, style, and width
🧱 Optional boxes showing session range, dynamically colored based on price movement
🏷️ Session labels for visual orientation
🔁 Extendable lines to project levels beyond the session
🌐 Custom time zone support for each session
🎨 Fully customizable visuals for clear chart integration
📈 Designed for:
Intraday session tracking (e.g., Asia, London, NY)
Session-based strategies (breakouts, reversals, liquidity zones)
Open-level reference (e.g., NY open)
Visual separation of trading periods
Example Scenarios:
🟦 "Asia" session: 18:00–00:00 GMT-4 with full box and lines
🟩 "London" session: 00:00–06:00 with high/low lines only
🟥 Segmented NY sessions (Q1–Q4) for fine-grained intraday tracking
✅ Tip: Enable only the sessions you need to keep your chart clean and focused.
TableRSI and Ichimoku Strength Table
This indicator displays whole-number RSI values (1h, 4h, 1d, 3d, 1w) and Ichimoku strengths (Conversion Line, Base Line, Cloud, Lagging Span) in a customizable table. Toggle between horizontal (9x2) or vertical (2x10) layouts, with adjustable position (e.g., Top Right), text size (Tiny to Large), and colors (border, header, text, RSI: >70 red, <30 green, 30-70 yellow; Ichimoku: >50 green, <50 red). Ichimoku components are plotted on the chart. It offers a clear view of momentum and trend strength for traders.
OHLC_Strategy_LibraryLibrary "OHLC_Strategy_Library"
f_getPriceType(displayOption, openPrice, highPrice, lowPrice, closePrice, prevOpen, prevHigh, prevLow, prevClose)
Parameters:
displayOption (string)
openPrice (float)
highPrice (float)
lowPrice (float)
closePrice (float)
prevOpen (float)
prevHigh (float)
prevLow (float)
prevClose (float)
f_getTimeframeGroup(groupSelector)
Parameters:
groupSelector (string)
f_calculateHeikinAshi(openPrice, highPrice, lowPrice, closePrice, prevHaOpen, prevHaClose)
Parameters:
openPrice (float)
highPrice (float)
lowPrice (float)
closePrice (float)
prevHaOpen (float)
prevHaClose (float)
f_calculateAverages(priceLevels1, priceLevels2)
Parameters:
priceLevels1 (array)
priceLevels2 (array)
f_withinDateRange(currentTime, startDate, endDate)
Parameters:
currentTime (int)
startDate (int)
endDate (int)
f_heikinAshiConditions(haOpen, haHigh, haLow, haClose)
Parameters:
haOpen (float)
haHigh (float)
haLow (float)
haClose (float)
TBL HTF Highs&LowsThis script plots the previous Daily, Weekly, and Monthly High and Low levels directly on your chart, helping you identify key higher-timeframe support and resistance zones.
Features:
Daily, Weekly, Monthly Lines: Toggle visibility for each timeframe's high/low levels.
Customization Options:
Choose color, style (Solid, Dashed, Dotted), width, and transparency for each line type.
Automatic Updates: Lines update at the start of each new session (day, week, or month).
Summary Table: Displays the latest Pre-Daily High/Low (PDH/PDL), Pre-Weekly High/Low (PWH/PWL), and Pre-Monthly High/Low (PMH/PML) in the top-right corner of the chart.
Configurable Table Font Size: Choose between Tiny, Small, Medium, or Large text.
Use Case:
Ideal for traders who rely on key higher-timeframe levels for confluence, breakout trading, or mean-reversion strategies. The visual lines and summary table provide instant context without cluttering your chart.
Fourier Wavelet Hilbert DecompositionFourierWaveletHilbertDecomp is a versatile Pine Script indicator that analyzes price data using four methods: Fourier series for square wave approximation, Wavelet transform for smoothed differences, Hilbert transform for phase analysis, and Decomposition for trend, seasonal, and residual components. Users can select an analysis type and customize parameters to visualize detailed signal breakdowns.
Market Arterial PressureIndicator Description: Pulse-Market – Market Blood Pressure
"I slept and had a dream."
In that dream, I wore a white lab coat and shiny black pointed shoes. I felt like a doctor—not of traditional medicine, but of the financial market itself. My mission was clear: to measure the market's blood pressure and diagnose its health.
With this vision, I decided to turn the dream into code. Thus, Pulse-Market was born: an indicator designed to listen to the heartbeat of the blockchain, capturing signs of vitality or collapse, and anticipating the pulse of the next trend.
But the journey did not stop there. At the core of this creation, I incorporated a profound theory: the cycle of existence — Alpha, Beta, and Omega — concepts that resonate both in science and sacred scriptures.
Alpha (α) represents the beginning: the primary impulse, the market's accelerated pulse.
Beta (β) symbolizes the middle: the vital rhythm, the stabilizing cadence of prices.
Omega (Ω) indicates the end: structural collapse, the exhaustion of a cycle.
This logical and symbolic triad forms the foundation of Pulse-Market — the beginning, middle, and end of every market cycle.
How to Use the Indicator
Pulse-Market works as a dynamic oscillator composed of three main forces:
Alpha Pulse (α)
Measures recent price acceleration. The stronger the pulse, the more intense the market movement.
Beta Rhythm (β)
Controls the smoothing of the price rhythm and can be adjusted in four modes:
Fast – quick reactions with more sensitivity
Normal – standard smoothing (simple moving average)
Slow – slow and consistent movements
Accelerated – Hull method: reactive and smooth
Omega Collapse (Ω)
Combines entropy and reversals to detect structural collapses where the market may be losing strength.
Visual Interpretation
Green line above zero: healthy pulse, buying pressure in control.
Red line below zero: strong selling pressure, possible exhaustion.
Crossing the zero line: potential trend reversal.
Settings and Customization
In the indicator settings panel, you can calibrate the pressure reading sensitivity:
Systolic Pressure (α): controls the reaction to rapid price impulses.
Increase to highlight aggressive moves; decrease to smooth spikes.
Diastolic Pressure (β): regulates the importance of the underlying rhythm.
Increase for smooth trends; decrease for quicker responses.
Pulse Pressure (Ω): sensitivity to structural collapses and volatility.
Increase to detect reversals; decrease to ignore market noise.
Practical Applications
Confirm entry and exit signals based on the balance between Alpha and Omega.
Adjust the indicator to your trading style: scalper, day trader, or swing trader.
Use on any asset: cryptocurrencies, stocks, indices, forex.
Integrated Philosophy
We live limited by time and matter, but markets, like life, follow natural cycles: they are born, mature, collapse, and are reborn.
Pulse-Market is not just a technical indicator — it is a spiritual and analytical stethoscope that listens to the heartbeat of volatility and tries to anticipate what the eyes cannot see, but time always reveals.
Original Creator
This indicator was created by Canhoto-Medium, the sole inventor and namer of this tool. As long as time goes on, no other indicator will exist with this essence or name.
Setup Confidence CheckerSetup Confidence Checker
A simple indicator to track and display your trade confidence and plan adherence with clear color-coded signals, helping improve trading discipline.
Z-Score Mean Reversion (EURUSD)Made by Laila
Works best on 1 min/5 min timeframe ( 68% winrate)
Z-Score Mean Reversion Indicator (EURUSD)
This Pine Script indicator identifies potential buy and sell opportunities based on Z-score mean reversion for the EUR/USD pair.
The Z-score is calculated by comparing the current price to its simple moving average (SMA), measured in terms of standard deviations. If the price deviates significantly from the average—either above or below—it may revert back toward the mean.
A buy signal is generated when the Z-score drops below -2, suggesting the price is abnormally low and may rise. A sell signal is triggered when the Z-score rises above +2, indicating the price is unusually high and may fall.
On the chart, the script plots the Z-score along with horizontal lines at +2, -2, and 0. Green and red arrows highlight potential buy and sell points based on these thresholds.
Kenan Ortalama Göstergesi [16 MA] All averages are in a single indicator, 4 from each average, you can change the colors as you wish.
CGMALibrary "CGMA"
This library provides a function to calculate a moving average based on Chebyshev-Gauss Quadrature. This method samples price data more intensely from the beginning and end of the lookback window, giving it a unique character that responds quickly to recent changes while also having a long "memory" of the trend's start. Inspired by reading rohangautam.github.io
What is Chebyshev-Gauss Quadrature?
It's a numerical method to approximate the integral of a function f(x) that is weighted by 1/sqrt(1-x^2) over the interval . The approximation is a simple sum: ∫ f(x)/sqrt(1-x^2) dx ≈ (π/n) * Σ f(xᵢ) where xᵢ are special points called Chebyshev nodes.
How is this applied to a Moving Average?
A moving average can be seen as the "mean value" of the price over a lookback window. The mean value of a function with the Chebyshev weight is calculated as:
Mean = /
The math simplifies beautifully, resulting in the mean being the simple arithmetic average of the function evaluated at the Chebyshev nodes:
Mean = (1/n) * Σ f(xᵢ)
What's unique about this MA?
The Chebyshev nodes xᵢ are not evenly spaced. They are clustered towards the ends of the interval . We map this interval to our lookback period. This means the moving average samples prices more intensely from the beginning and the end of the lookback window, and less intensely from the middle. This gives it a unique character, responding quickly to recent changes while also having a long "memory" of the start of the trend.
Chebyshev-Gauss Moving AverageThis indicator applies the principles of Chebyshev-Gauss Quadrature to create a novel type of moving average. Inspired by reading rohangautam.github.io
What is Chebyshev-Gauss Quadrature?
It's a numerical method to approximate the integral of a function f(x) that is weighted by 1/sqrt(1-x^2) over the interval . The approximation is a simple sum: ∫ f(x)/sqrt(1-x^2) dx ≈ (π/n) * Σ f(xᵢ) where xᵢ are special points called Chebyshev nodes.
How is this applied to a Moving Average?
A moving average can be seen as the "mean value" of the price over a lookback window. The mean value of a function with the Chebyshev weight is calculated as:
Mean = /
The math simplifies beautifully, resulting in the mean being the simple arithmetic average of the function evaluated at the Chebyshev nodes:
Mean = (1/n) * Σ f(xᵢ)
What's unique about this MA?
The Chebyshev nodes xᵢ are not evenly spaced. They are clustered towards the ends of the interval . We map this interval to our lookback period. This means the moving average samples prices more intensely from the beginning and the end of the lookback window, and less intensely from the middle. This gives it a unique character, responding quickly to recent changes while also having a long "memory" of the start of the trend.
Internal Bar Strength (IBS)This script calculates the Internal Bar Strength (IBS), a mean-reversion indicator defined as (Close - Low) / (High - Low). IBS values range from 0 to 1, with lower values indicating potential oversold conditions and higher values suggesting overbought conditions. Useful for intraday reversal strategies.
Candle Color and Wick Size CounterI had a need to know how many green vs red candles happen during a specific visual window. After usage I decided to add in an extra check for candle wick lengths. The reason for this is I want to know that if it’s a red candle, how many of them retrace back up by 1/3. Conversly I wanted to know if its a green candle did it get push back down by 1/3