VWAP + EMAs + 3-Min Crossover Arrows + Volume Pulseadjust to your colors that you want the emas to be and use with key levels. i use this on the 5 min chart
this marks the emas and lets you know when there is increasing volume and when there is a bullish or bearish cross over happening which is based on
Penunjuk dan strategi
Master Simple IndicatorThe streamlined Pine Script, created by masterbtcltc, is a technical analysis indicator that overlays on a price chart to provide buy and sell signals based on a dynamic 120-day simple moving average (SMA). Here's how it works:
Dynamic Moving Average: Calculates a 120-day SMA (ma_dynamic) using closing prices to smooth out price fluctuations and identify trends.
Buy/Sell Signals:
Buy Signal: Triggered when the closing price crosses above the 120-day SMA (longSignal), indicating potential bullish momentum. A white triangle with "close" text appears below the bar.
Sell Signal: Triggered when the closing price crosses below the 120-day SMA (shortSignal), suggesting bearish momentum. A yellow triangle with "Short" text appears above the bar.
Alerts: Generates alerts for buy (Long Signal Alert) and sell (Short Signal Alert) signals, notifying users when the price crosses the SMA.
Visual Highlights:
Price vs. SMA: The area between the closing price and the 120-day SMA is filled with yellow if the price is above the SMA (bullish) or blue if below (bearish).
50-day vs. 120-day SMA: The area between the 50-day SMA and 120-day SMA is filled green when the 50-day SMA is above the 120-day SMA, indicating a stronger bullish trend.
Created by masterbtcltc, this indicator helps traders identify trend changes and potential entry/exit points based on price interactions with the 120-day SMA, with clear visual cues and alerts for decision-making.
EMA6–EMA18 Trend Signal SystemThis is a dual-timeframe trend-following indicator designed for intraday traders.
It combines exponential moving averages (EMAs) from two timeframes:
1-hour EMA6 and EMA18 are used to define the major trend direction.
If EMA6 > EMA18 on the hourly chart, the background turns green (indicating an uptrend).
If EMA6 < EMA18, the background turns red (indicating a downtrend).
Entry signals are triggered only on the 15-minute chart:
A long signal appears when EMA6 crosses above EMA18 during an hourly uptrend.
A short signal appears when EMA6 crosses below EMA18 during an hourly downtrend.
Signal arrows are plotted directly on the chart:
Green triangle up = Long signal
Red triangle down = Short signal
Both EMA6 and EMA18 are plotted for visual reference.
This setup helps align lower timeframe entries with higher timeframe trend confirmation, offering traders more precise entry points and reducing noise.
—
The script is intended for use on 15-minute charts and works best in trending markets.
© All rights reserved. Author: hank552
Bounty SeekerBounty Seeker - Advanced Market Structure & Order Block Detection
A sophisticated indicator that identifies high-probability reversal zones through the analysis of market structure, volume patterns, and institutional order blocks. This tool helps traders spot potential reversals and fake-outs with precision.
Core Components:
1. Pivot Detection System
• Smart pivot high/low identification
• Volume-enhanced confirmation
• RSI confluence validation
• Real-time market structure analysis
2. Order Block Detection
• Institutional buying/selling zones
• Historical support/resistance levels
• Smart volume threshold analysis
• Dynamic level adaptation
Signal Types:
1. Bull Pivots (White X)
• Strong volume confirmation
• RSI oversold conditions
• Price action validation
• Order block confluence
2. Bear Pivots (Purple X)
• Volume surge confirmation
• RSI overbought alignment
• Bearish price action
• Resistance zone validation
3. Fake Pivots (Orange X)
• Low volume warning signals
• Trap zone identification
• False breakout detection
• Risk management guide
Visual Elements:
• Dashed Lines: Order block zones
• White/Purple X's: Major pivot points
• Orange X's: Potential fake moves
• Dynamic support/resistance levels
Best Usage Practices:
• Most effective on 1H+ timeframes
• Focus on major market pairs
• Wait for complete signal formation
• Combine with trend direction
• Monitor volume confirmation
• Use proper position sizing
The indicator excels at:
1. Identifying potential reversal zones
2. Detecting institutional order blocks
3. Warning of potential fake moves
4. Providing clear entry/exit levels
5. Highlighting strong volume zones
Risk Management:
• Always wait for signal confirmation
• Use appropriate stop loss levels
• Consider multiple timeframe analysis
• Don't trade against major trends
• Monitor volume for validation
This indicator combines advanced market structure analysis with volume profiling to help traders identify high-probability trading opportunities while warning of potential traps and fake-outs.
Note: Past performance does not guarantee future results. Always use proper risk management techniques.
[Kpt-Ahab] PnL-calculatorThe PnL-Cal shows how much you’re up or down in your own currency, based on the current exchange rate.
Let’s say your home currency is EUR.
On October 10, 2022, you bought 10 Tesla stocks at $219 apiece.
Back then, with an exchange rate of 0.9701, you spent €2,257.40.
If you sold the 10 Tesla shares on April 17, 2025 for $241.37 each, that’s around a 10% gain in USD.
But if you converted the USD back to EUR on the same day at an exchange rate of 1.1398, you’d actually end up with an overall loss of about 6.2%.
Right now, only a single entry point is supported.
If you bought shares on different days with different exchange rates, you’ll unfortunately have to enter an average for now.
For viewing on a phone, the table can be simplified.
3 EMAs w G/D Cross// This script plots three Exponential Moving Averages (EMAs): 20, 50, and 200.
// It highlights key trend signals by detecting:
// 🔹 Golden Cross – when the 50 EMA crosses above the 200 EMA (bullish signal)
// 🔹 Death Cross – when the 50 EMA crosses below the 200 EMA (bearish signal)
//
// A green cross will appear above the bar for a Golden Cross,
// and a red cross will appear below the bar for a Death Cross.
//
// These crossovers are commonly used to identify long-term trend shifts in the market.
// Suitable for trend-following strategies and identifying entry/exit zones.
//
// Script developed for educational and analytical use on TradingView. bu BusMart
Volume Range Profile with Fair Value (SWAROOPRAM29)This indicator overlays a custom volume profile across two dynamic price zones (upper and lower) within a defined lookback range. It highlights the Point of Control (POC) for each zone — the price level with the highest traded volume — and tracks its movement over time to help identify fair value areas.
🔍 Features:
Dynamic Volume Zones: Automatically calculates upper/lower zones based on a % of the high-low range.
Granular Volume Distribution: Visualizes buy/sell volume using histogram bins inside each zone.
Point of Control (POC): Shows the most active volume bin with optional percentage breakdown (Buy %, Sell %, Total).
Fair Value Drift Line: Plots a moving average of POC to track fair value shifts.
Total Volume Labels: Optionally display total buy/sell volume in each zone.
Trade Entry Logic (Strategy):
Entry on POC touch or midline level.
Supports long, short, or both directions.
Customizable take profit and stop loss levels.
This tool helps traders spot high-volume price acceptance areas, potential reversals, and trend continuations based on volume-weighted logic — ideal for scalping, swing, and volume-based strategies.
brings Smart Money Concept (ICT) session logic to life by plotting key global trading sessions with volume and delta analytics. It not only highlights session ranges but also tracks their midpoints — which often act as intraday support/resistance levels.
KEY FEATURES
Visual session boxes: Plots boxes for Tokyo, London, New York, and Sydney sessions based on user-defined UTC+0 time ranges.
Volume & delta metrics: Displays total volume and delta volume (buy–sell difference) within each session.
Mid, High & Low Range Extension: Once a session ends, the high, low, and midpoint levels automatically extend — ideal for detecting SR zones.
Session labels: Each box includes a label with session name, time, volume, and delta for quick reference.
Custom session control: Enable or disable sessions individually and configure start/end times.
Clean aesthetics: Transparent shaded boxes with subtle borders make it easy to overlay without clutter.
Sessions Dashboard: Shows the time range of each session and tells you whether the session is currently active.
🔵 USAGE
Enable the sessions you want to monitor (e.g., New York or Tokyo) from the settings.
Use session volume and delta values to gauge the strength and direction of institutional activity.
Watch for price interaction with the extended range — it often acts as dynamic support/resistance after the session ends.
Overlay it with liquidity tools or breaker blocks for intraday strategy alignment.
🔵 EXAMPLES
Extended Future Range acted as resistance/support.
Estrategia EMAs + RSI + MACD con SL y TPestrategia para enlazar con bitget. en pruebas para saber si es rentable
🔥 PratikMoneyCPTY – AI Crypto Swing SignalCreated by Pratik Patel, this advanced crypto trading tool fuses AI logic with technical indicators—EMA, SuperTrend, MACD, RSI, and candlestick patterns—to identify profitable swing entries. Built for crypto markets like BTC, ETH, and top altcoins on 4H/1D charts. Includes smart alerts, BUY/SELL tags, and popup notifications for actionable insights.
200/800 EMA Retest StrategyWe don't chase every EMA cross. We wait for the market to prove it's ready by pulling back to the 200 EMA — and then we strike, with smart risk control.
MTF Trend Fusion - V2MTF Trend Fusion - V2 (Pine Script® v5)
Description
This indicator is developed to support trading decisions by performing trend analysis based on multiple timeframes. An EMA (Exponential Moving Average) is calculated for three different timeframes (15 minutes, 1 hour, and 4 hours). Each of these EMAs is visualized separately, and buy and sell signals are generated based on these indicators. It provides users with information about trend direction and strong buying/selling opportunities.
Features
EMA Calculations: Three EMAs are calculated and plotted for different timeframes (15 minutes, 1 hour, 4 hours).
Trend Direction Detection: The trend direction is determined based on whether the price is above or below the three EMAs.
Trend Strength: The trend strength is calculated based on price movement relative to the EMAs.
Signals:
Buy Signal: When the price is above all the EMAs in all timeframes, a buy signal is generated.
Sell Signal: When the price is below all the EMAs in all timeframes, a sell signal is generated.
Background Color: The background color changes based on trend strength (green, lime, teal, red, etc.).
Usage
EMA Length: The length of the EMA to be calculated by the indicator is defined. The default value is 50.
Timeframes:
Timeframe 1: 15 minutes (tf1)
Timeframe 2: 1 hour (tf2)
Timeframe 3: 4 hours (tf3)
Buy and Sell Signals:
Buy Signal: A buy signal is generated when the price is above the EMAs in all three timeframes.
Sell Signal: A sell signal is generated when the price is below the EMAs in all three timeframes.
Background Color:
Green: Strong uptrend.
Lime: Medium strength uptrend.
Teal: Weak uptrend.
Red: Strong downtrend.
Maroon: Medium strength downtrend.
Gray: Uncertain trend.
Benefits to the User
Multiple Timeframe Analysis: This indicator uses EMAs calculated across three different timeframes, increasing the accuracy of trading decisions.
Easy Trend Detection: It's easy to determine whether the price is above or below the EMAs, allowing clear identification of the trend direction.
Signal Generation: Buy and sell signals are generated based on the trend strength, helping users make more accurate decisions.
Visual Aids: Background colors and signals are visually easy to track, enabling quick decision-making.
Code Explanations
EMA Calculations:
pinescript
Kopyala
Düzenle
ema1 = request.security(syminfo.tickerid, tf1, ta.ema(price, emaLength))
This code snippet calculates the EMA for the specified timeframe (tf1).
Trend Direction Detection:
pinescript
Kopyala
Düzenle
isAbove1 = price >= ema1
This checks if the price is greater than or equal to the EMA1.
Background Color Change: The background color is assigned based on trend strength:
pinescript
Kopyala
Düzenle
if aboveCount == 3
bgColor := color.new(color.green, 70)
When the trend is upward in all three timeframes, the background turns green.
Signal Generation: Buy and sell signals are generated based on specific conditions:
pinescript
Kopyala
Düzenle
bullishSignal = aboveCount == 3
bearishSignal = belowCount == 3
Alerts and Notifications
Buy Signal: A notification message titled "📈 Buy Signal" is sent to the user.
Sell Signal: A notification message titled "📉 Sell Signal" is sent to the user.
Use Cases of the Indicator
Trading Strategies: This indicator is especially useful in trend-following strategies. The EMAs and trend signals help identify entry and exit points.
Advanced Trading Decisions: Thanks to the multiple timeframe analysis, users get a broader perspective, rather than relying on just one timeframe.
Automated Trading: It can be integrated into automated trading strategies by using Pine Script's alert conditions.
Important Notes
Data Latency: Pine Script works only with available data. Therefore, the speed of data transitions can impact trading decisions.
Optimization: The indicator should be tested on longer timeframes. Caution is advised when using it for short-term trading.
This documentation can be shared with others or made public in compliance with TradingView policies.
Custom Time Range Boxes + Fibs + ExtensionThis script draws two customizable time-range boxes per day, helping traders visualize key market sessions or activity windows. Each box is defined by start and end times that can be adjusted in the settings. You can also choose a custom color and extend the visual width of the box independently from the actual session time. Within each box, the indicator plots three Fibonacci levels: 0.3, 0.5, and 0.7. These levels are useful for identifying potential support, resistance, or retracement zones inside the session range. The script supports two separate time blocks, allowing you to track sessions like the New York Open and Power Hour simultaneously. All lines and boxes are drawn using bar_index for precision and control. The levels and box colors match for visual consistency. Perfect for intraday traders who want to track price behavior around key times. Clean, minimal, and performance-friendly — this tool adds clarity to your session-based strategy.
Highlight Candle Body ≤ 10 Ticks (Clean & Subtle)Purpose:
This indicator highlights candlesticks where the body size (difference between open and close) is 10 ticks or less, specifically for instruments like Crude Oil futures (CL) where 1 tick = 0.01.
How it works:
It calculates the body size: abs(close - open)
If the body is ≤ 0.10 (10 ticks), the candle is softly colored in muted orange.
Wicks are ignored — only the body is considered.
No additional shapes or markers — clean and minimal.
Use case:
Helps identify periods of indecision or low momentum — such as potential pause candles, traps, or setups just before volatility returns.
MÈGAS ALGO : CNA (Cognitio Analysis) [INDICATOR]Overview
The CNA (Cognitio Analysis) is a comprehensive financial analysis tool designed to evaluate the overall health and potential of a market or company based on fundamental metrics. It aggregates data across five key metric groups—**Growth**, **Profitability**, **Cash Flow**, **Income**, and **Valuation**—to provide a final interpretation of market conditions. The indicator dynamically adapts to the selected fiscal period (Quarter, Year, or Trailing Twelve Months) and delivers insights into dominant trends and conflicting signals.
Key Features
1. Customizable Fiscal Period:
- Users can select between "Quarter", "Year", or "Trailing Twelve Months" (TTM) to analyze data for their desired timeframe.
2. Dynamic Table Visualization:
- Displays raw metric values, aggregated scores, and the final interpretation in an intuitive
table.
- Highlights the final interpretation with dynamic background colors (`color.teal` for bullish,
`color.red` for bearish, etc.).
3. Comprehensive Data Integration:
- Pulls financial data using TradingView's `request.financial()` function for metrics like
revenue, earnings, margins, and valuation ratios.
4. Normalization and Scoring:
- Normalizes data to create a consistent scoring system, ensuring accurate comparisons across
metrics.
How It Works
1. Metric Group Analysis
- Growth Metrics: Measures revenue growth, earnings per share (EPS) growth, and tax
efficiency.
- Profitability Metrics: Analyzes net profit margin, return on equity (ROE), and EBITDA margin.
- Cash Metrics: Assesses operating cash flow margin, free cash flow to operating cash flow
ratio, and cash flow coverage.
- Income Metrics: Examines gross profit margin, operating profit margin, and EBIT margin.
- Valuation Metrics: Evaluates price-to-earnings (P/E), price-to-sales (P/S), and enterprise
value-to-EBITDA (EV/EBITDA).
2. Dynamic Scoring System
- Metrics are normalized to ensure consistency across different scales.
- A geometric mean is used to calculate scores for each metric group, ensuring that all metrics
within a group contribute equally to the final score.
3. Dominant Trend Identification
- Scores from all five metric groups are aggregated to determine the **dominant trend** of the
market.
- The dominant trend is categorized as:
- Bullish: Strong fundamentals across most metrics.
- Bearish: Weak fundamentals across most metrics.
- Neutral: Balanced conditions with no clear direction.
- Unclear: Mixed signals dominate, requiring further monitoring.
4. Conflicting Signals Interpretation
- The indicator identifies scenarios where metrics conflict (e.g., high growth but low valuation).
- These conflicting signals provide nuanced insights into market conditions, highlighting rare opportunities or potential risks.
How to Use the Indicator
1. Select Fiscal Period:
- Choose between "FQ", "FY", or "TTM" to analyze data for the desired timeframe.
2. Review Metric Scores:
- Examine the scores for each metric group (Growth, Profitability, Cash, Income, Valuation) to
understand the underlying performance.
3. Interpret Final Output:
- The final interpretation provides a summary of the dominant trend and conflicting signals,
helping users make informed decisions.
4. Dynamic Coloring:
- Use the dynamic background colors in the table to quickly identify market sentiment
(bullish, bearish, neutral, or mixed).
Applications
- Identifying Opportunities:
- Look for bullish dominant trends combined with undervalued growth opportunities for
potential long positions.
- Avoiding Risks:
- Watch out for bearish dominant trends with overvaluation alerts to avoid potential losses.
- Monitoring Neutral Markets:
- Use the indicator to identify neutral markets and wait for clearer signals before making
decisions.
Conclusion
The CNA (Cognitio Analysis) is a powerful tool for traders and investors seeking to make informed decisions based on fundamental analysis. By combining detailed metric evaluations, dynamic scoring, and sentiment-based interpretations, this indicator provides a comprehensive view of market conditions. Whether you're identifying undervalued opportunities, avoiding overvalued risks, or monitoring neutral markets, this indicator equips you with the insights needed to navigate complex financial landscapes.
Please Note:
This indicator is provided for informational and educational purposes only. It is not financial advice, and it should not be considered a recommendation to buy, sell, or trade any financial instrument. Trading involves significant risks, including the potential loss of your entire investment. Always conduct your own research and consult with a licensed financial advisor before making any trading decisions.
The results and images provided are based on algorithms and historical/paid real-time market data but do not guarantee future results or accuracy. Use this tool at your own risk, and understand that past performance is not indicative of future outc
All-Time, Yearly & Monthly High/LowThis indicator visually tracks and displays:
• All-Time High (ATH) – The highest price the asset has ever reached
• All-Time Low (ATL) – The lowest price the asset has ever reached
• Yearly High/Low – The highest and lowest prices recorded in the current calendar year
• Monthly High/Low – The highest and lowest prices in the current calendar month
It helps traders quickly identify major support/resistance levels and historical price extremes across different timeframes. Level
Color
Updates When
All-Time High
Red
A new highest price ever is reached
All-Time Low
Green
A new lowest price ever is reached
Yearly High
Orange
New yearly high occurs or changes with new year
Yearly Low
Teal
New yearly low occurs or changes with new year
Monthly High
Fuchsia
New monthly high or at the start of each new month
Monthly Low
Navy Blue
New monthly low or at the start of each new month This indicator is especially useful for:
• Swing traders watching monthly or yearly trend zones
• Breakout traders looking to spot price levels where breakouts might occur
• Reversal traders using all-time levels for high-risk reward zones
• Long-term investors gauging historical extremes for entries/exits
Relative ATRThis indicator enhances the standard Average True Range (ATR) by providing context about current volatility relative to its recent historical average. It highlights periods where ATR is significantly higher or lower than its own recent norm.
Vietnamese Stocks: Multi-Ticker Fibonacci AlertThis Pine Script™ indicator is designed specifically for traders monitoring the Vietnamese stock market (HOSE, HNX). Its primary goal is to automate the tracking of Fibonacci retracement levels across a large list of stocks, alerting you when prices breach key support zones.
Core Functionality:
The script calculates Fibonacci retracement levels (23.6%, 38.2%, 50%, 61.8%, 78.6%) for up to 40 tickers simultaneously. The calculation is based on the highest high and lowest low identified since a user-defined Start Time. This allows you to anchor the Fibonacci analysis to a specific market event, trend start, or time period relevant to your strategy.
What it Does For You:
Automated Watchlist Scanning: Instead of drawing Fib levels on dozens of charts, select one of the two pre-configured watchlists (up to 40 symbols each, customizable in settings) populated with popular Vietnamese stocks.
Time-Based Fibonacci: Define a Start Time in the settings. The script uses this date to find the subsequent highest high and lowest low for each symbol in your chosen watchlist, forming the basis for the Fib calculation.
Intelligent Alerts: Get notified via TradingView's alerts when the candle closing price of any stock in your active watchlist falls below the critical 38.2%, 50%, 61.8%, or 78.6% levels relative to its own high/low range since the start time. Alerts are consolidated for efficiency.
Visual Aids:
- Plots the same time-based Fibonacci levels directly on your current chart symbol for quick reference.
- Includes an optional on-chart table showing which monitored stocks are currently below key Fib levels (enable "Show Debug Info").
- Features experimental background coloring to highlight potential bullish signals on the current chart.
Configuration:
Start Time: Crucial input – sets the anchor point for Fib calculations.
WatchList Selection: Choose between WatchList #1 (Bluechip/Midcap focus) or WatchList #2 (Defensive/Other focus) using the boolean toggles.
Symbol Customization: Easily replace the default symbols with your preferred Vietnamese stocks directly in the indicator settings.
Notification Prefix: Add custom text to the beginning of your alert messages.
Alert Setup: Remember to create an alert in TradingView, selecting this indicator and the alert() condition, usually with "Once Per Bar Close" frequency.
This tool is open-source under the MPL 2.0 license. Feel free to use, modify, and learn from it.
Ultimate Moving Average Crossover Indicator by SAMQUANT📈 Ultimate Moving Average Crossover Indicator | All-in-One MA Strategy
Unlock the power of multiple moving averages in one versatile indicator designed to give you clear, actionable signals in any market condition.
📌 Key Features:
- Supports **all major moving averages**:
- **SMA, EMA, WMA, HMA, RMA, DEMA, TEMA**, and more.
- Each MA is **fully customizable** with different lengths and types for ultimate flexibility.
- **Binary Long/Short signals** based on crossover logic—perfect for alerts, strategies, or discretionary trading.
- **Dynamic background coloring**:
- **Green** for bullish trends
- **Red** for bearish trends
Quickly gauge market direction at a glance.
---
🚀 Why Use This Indicator?
✅ Combines the strength of all major MA types
✅ Customizable to fit any trading style—scalping, swing, or trend following
✅ Built-in alerts ready for your next trade
✅ Visually intuitive with built-in signal clarity
✅ Excellent tool for **confluence-based** strategies
---
Great trades start with great tools. Clarity, precision, and flexibility—this indicator brings it all to your charts. Trade smarter, not harder.
---
> ⚠️ **Disclaimer:**
This script is intended for **educational and informational purposes only**. It does not constitute financial advice. Past performance is not indicative of future results. Always practice sound risk management and test strategies thoroughly before using real capital.
SignalCore Widodo Budi v1.0SignalCore Widodo Budi v1.0 is an all-in-one breakout and trend signal suite, designed to help traders detect high-probability trade setups using a fusion of price action, momentum, and volume.
✅ Combines breakout & breakdown detection using:
Donchian Channel (20)
Moving Averages (SMA 20 & 50)
MACD momentum confirmation
Volume spike detection
ADX trend strength
Heikin Ashi trend filter
🧠 Additional tools:
Conditional Stochastic %K/%D
RSI (Overbought/Oversold levels)
ADX visual + DI+/DI- alerts
Auto labels for breakout and pre-breakdown levels
🔔 Built-in alerts:
Breakout & Pre-Breakout
Breakdown & Pre-Breakdown
RSI signals
Stochastic crossovers
ADX directional strength
🎯 Best used on liquid instruments with defined ranges or trending behavior. Suitable for swing traders, momentum traders, and intraday scalpers alike.
Created by: Widodo Budi, 2025
Version: v1.0
NAGRAJ 15-Min Opening Range Breakout (ORB)This indicator will give you the range of first 15 min of opening.
EMA ConditionsThis indicator was developed with the intention to display current market conditions according to the EMAs. There's a little box in the top right to display the conditions. I wanted to design something that shows already established market conditions, which is why I chose to use EMAs and candle closes as the source for identifying market conditions.
Personally, I scalp momentum in trending market conditions, so having an already established trend lets me know when it's appropriate for me to apply my edge on my lower time frame. I use a 5m time frame for my setups and this is where I apply this indicator. I designed the indicator to function off any time frame, so you can use this indicator with whatever time frame you want.
There are 5 conditions that I've set in place for this indicator, they're as follows:
1. Bullish conditions are met when price has closed 3+ consecutive candles over both EMAs (9 and 20 EMAs by default, but you can also choose what EMAs you want).
2. Bearish conditions are met when price has closed 3+ consecutive candles below both EMAs.
3. Reversal conditions are met when EMAs have crossed, and it will show those reversal conditions for the following 4 bars after the EMA cross over has taken place. Once there have been 4 bars closed, it will then show whatever condition is currently present.
4. Wait conditions are met when price is above/below (depending on direction of trend) the 9 ema.
- So in a bull trend, if price is below the 9 ema, it'll show "Wait"
5. Flat conditions are met when both EMAs are showing minimal changes in value over a specified number of candles. This indicates that EMAs are moving sideways and volatility is low. Likely in range bound or chop environments.
- The Flat threshold is adjustable. I have it set to 0.03% with a candle look back of 2 bars. This works the best for my edge, but you can set them to what you want.
The Flat and Wait conditions will override all other conditions. The Reversal conditions will override both Bullish and Bearish conditions. This way, when the indicator is showing Bullish or Bearish conditions, you'll know that nothing else is present.
Since I only trade in trending market conditions, I only trade when Bullish or Bearish conditions are met. If anything else is there then I'm not looking for my setups at that time. But you can use this however you'd like. If you like trading ranges, then trade when EMAs show flat. If you want to fade reversals and trade mean reversion, wait for a reversal condition to show and then look to fade that move. Get creative with it and with your edge. Don't put yourself in a box.
This indicator was made using Grok AI since I have no clue how to write code. I'll make the script available for everyone, so you can make adjustments yourself and do your own thing with it if you want.
If you have any questions or suggestions on how to improve the indicator, feel free to contact me on X: x.com