Multi-Timeframe 20 EMA Horizontal LinesThis script plots horizontal lines at the 20 EMA values across multiple timeframes:
Daily, Weekly, Monthly, 3-Month, and 6-Month.
Each line is displayed in semi-transparent orange to keep the chart clean and minimal.
무빙 애버리지
MAEngineLibLibrary "MAEngineLib"
ma_sma(source, length)
Parameters:
source (float)
length (int)
ma_ema(source, length)
Parameters:
source (float)
length (simple int)
ma_dema(source, length)
Parameters:
source (float)
length (simple int)
ma_tema(source, length)
Parameters:
source (float)
length (simple int)
ma_wma(source, length)
Parameters:
source (float)
length (int)
ma_hma(source, length)
Parameters:
source (float)
length (simple int)
ma_vwma(source, length)
Parameters:
source (float)
length (int)
ma_kijun(length)
Parameters:
length (int)
ma_alma(source, length)
Parameters:
source (float)
length (int)
ma_kama(source, length)
Parameters:
source (float)
length (int)
ma_hullmod(source, length)
Parameters:
source (float)
length (int)
selectMA(type, source, length)
Parameters:
type (string)
source (float)
length (simple int)
Multi-Timeframe Market Structure Bars v2Summary
This script presents a real‑time dashboard of market structure across multiple user‑defined horizons, using color‑coded bars to signal bullish or bearish bias on each timeframe. Traders gain an instant, consolidated view of market sentiment—from longer‑term to ultra‑short‑term—without switching charts, enabling faster, more informed decisions.
What It Is
The Multi‑Timeframe Market Structure Bars indicator displays a row of bold bars—one per timeframe—in a dedicated panel, each bar changing color to reflect the underlying market bias on that timeframe.
Rather than plotting price or overlays on your main chart, it offers a snapshot‑style layout, with the topmost bar representing your longest timeframe and the bottom bar your shortest.
Core Functionality
Unified Trend Vision: By stacking multiple bars vertically, the script condenses what would otherwise be separate trend analyses into a single glance.
Configurable Horizons: Each bar’s timeframe is fully adjustable, so you can tailor the display to any set of periods—e.g., weekly down to one‑minute—matching your trading style.
Instant Bias Signals: As market conditions shift, individual bars switch color immediately, revealing structure shifts across all monitored timeframes.
Benefits to Traders
Speedy Decision‑Making: Quickly confirm whether short‑term moves align with the broader trend, reducing hesitation and late entries.
Avoids Context Switching: No need to flip between multiple charts—everything you need is in one concise panel.
Enhanced Trade Filters: Use the dashboard as a pre‑filter, only taking setups when multiple bars indicate the same bias.
Visual Clarity: The bold, high‑contrast design ensures even rapid chart scrolling or zooming won’t obscure your read on the market.
How to Use
Set Your Timeframes
Input your preferred periods for each bar (e.g., “Daily,” “4H,” “1H,” “15m,” “5m”).
Monitor Bar Colors
Green (or your bullish color) means that timeframe’s structure supports upward bias; red (or bearish) means downward.
Align with Your Strategy
Only initiate trades when the majority (or all) of bars point in your intended direction, ensuring multi‑horizon agreement.
Set Alerts on Flips
Create alerts tied to bar‑color changes to be notified the moment a key timeframe shifts, keeping you on top of evolving conditions.
Practical Tips & Considerations
Non‑Repainting Behavior: Signals reflect confirmed shifts and will not retroactively change once drawn, giving you confidence in their reliability.
Lag Awareness: Like any structure‑based tool, rapid spikes or whipsaws can lead to delayed flips; consider coupling with price‑action checks.
Panel Placement: Since this indicator runs in a separate pane, you can stack it above or below other context tools (e.g., volume profiles) for a layered analysis.
Complementary Use: Best employed as a confirmation layer rather than a standalone signal generator—combine it with entry triggers or risk‑management rules for optimal results.
By abstracting complex, multi‑timeframe analysis into a simple, intuitive interface, this indicator empowers you to maintain a clear, consolidated view of market structure—helping you spot alignment, filter trades, and react quickly without revealing every calculation detail under the hood.
Box with RSI Div(Dynamic Adjustment + MA)Script Description: Dynamic Box Range with RSI Divergence and MA Ribbon Strategy
This script is a comprehensive trading strategy combining RSI divergence, a box range breakout system, and a moving average ribbon strategy. It is designed to generate dynamic entries and exits for both long and short positions while enabling integration with OKX trading bots for automated signal execution. Below is a detailed breakdown of the script's components:
1. General Overview
Name: Box Range with RSI Divergence and Dynamic Adjustment + MA Ribbon Strategy
Purpose:
To identify trade opportunities using a combination of RSI divergence, price action within a box range, and moving average conditions.
To dynamically adjust position sizes and integrate with OKX trading bots for automated trade execution.
Features:
Dynamic position sizing for entries and exits.
Customizable parameters for box range length, RSI settings, and moving averages.
Alert generation for integration with OKX bots.
2. Key Components
A. Box Range Logic
Definition:
The box range is defined by the highest high and lowest low of the price over a customizable lookback period (boxLength).
Used to detect potential breakout or breakdown levels.
Components:
highestHigh: The highest high over the box range period.
lowestLow: The lowest low over the box range period.
Visualization:
The box range's upper and lower bounds are plotted on the chart with green (upper) and red (lower) lines.
B. RSI Divergence Detection
RSI Calculation:
The Relative Strength Index (RSI) is calculated using a customizable period (rsiLength).
Divergence Conditions:
Bullish Divergence:
Price forms lower lows, but RSI forms higher lows.
Bearish Divergence:
Price forms higher highs, but RSI forms lower highs.
Purpose:
Divergences indicate potential trend reversals and are used as trade entry signals.
C. Moving Average Ribbon Strategy
Moving Averages:
Includes 4 moving averages: MA20, MA50, MA100, and MA200.
Users can customize the type (SMA, EMA, etc.) and period of these moving averages.
The moving averages are calculated using a customizable timeframe (e.g., 4H).
Trend Conditions:
Uptrend:
MA20 > MA50 > MA100 > MA200, and price is above MA20.
Downtrend:
MA20 < MA50 < MA100 < MA200, and price is below MA20.
D. Dynamic Position Sizing
Dynamic Adjustment:
The script dynamically adjusts position size (entry and exit percentages) based on the difference between the current price and the average entry price (avgPrice).
Long Position:
Adds to the position if the price drops below the average price.
Reduces the position if the price rises significantly above the average price.
Short Position:
Closes part of the position if the price falls significantly below the average price.
Adds to the position if the price rises above the average price.
E. OKX Bot Integration
Signal Configuration:
The script generates alerts compatible with OKX trading bots.
Signals include parameters such as:
action: Indicates whether to enter or exit a position.
instrument: The trading pair (symbol).
orderType: Market or limit orders.
investmentType: Specifies how the trade size is calculated (e.g., percentage of balance or equity).
amount: The size of the trade.
Alerts are sent via alert() for automated trading.
3. Signal Logic
A. Long Signals
Conditions:
Price is at or below the lower box range (lowestLow).
A bullish RSI divergence is detected.
An uptrend is confirmed by the moving averages (MA20 > MA50 > MA100 > MA200).
Actions:
Enter a long position with dynamically calculated size.
Display a "BUY" label on the chart.
Trigger an alert for OKX integration.
B. Short Signals
Conditions:
Price is at or above the upper box range (highestHigh).
A bearish RSI divergence is detected.
A downtrend is confirmed by the moving averages (MA20 < MA50 < MA100 < MA200).
Actions:
Enter a short position with dynamically calculated size.
Display a "SELL" label on the chart.
Trigger an alert for OKX integration.
C. Position Adjustments
Long Adjustments:
Increase position size if the price drops below the average entry price.
Reduce position size if the price rises above the average entry price.
Short Adjustments:
Increase position size if the price rises above the average entry price.
Reduce position size if the price falls below the average entry price.
4. Visualization
Box Range:
Green line for the upper range (resistance).
Red line for the lower range (support).
Moving Averages:
MA20 (yellow), MA50 (orange), MA100 (red), MA200 (maroon).
Signal Labels:
"BUY" label for long signals (green).
"SELL" label for short signals (red).
Dynamic Position Info:
Displays entry/exit percentages and price levels.
5. Customizable Parameters
Box Range:
boxLength: The lookback period for the box range.
RSI:
rsiLength: The calculation period for RSI.
divergenceLookback: The number of bars to check for divergence.
Moving Averages:
Type (SMA, EMA, etc.).
Periods for MA20, MA50, MA100, and MA200.
Timeframe for moving average calculations (e.g., 4H).
Position Sizing:
Minimum and maximum percentage limits for entry and exit adjustments.
6. Alerts
Alerts are generated for:
Long entry signals.
Short entry signals.
Long and short position exits.
Alert messages are formatted for OKX bot compatibility, including all necessary parameters.
7. Use Cases
This script is ideal for:
Automated Trading:
Integrates easily with OKX bots for hands-free trading.
Trend and Range Trading:
Combines breakout strategies with trend confirmation.
Dynamic Risk Management:
Adjusts position sizes dynamically based on market conditions.
This script provides a powerful combination of indicators and logic, enabling traders to capitalize on both trend-following and counter-trend opportunities while dynamically managing positions.
Combined EMA/Smiley & DEM System## 🔷 General Overview
This script creates an advanced technical analysis system for TradingView, combining multiple Exponential Moving Averages (EMAs), Simple Moving Averages (SMAs), dynamic Fibonacci levels, and ATR (Average True Range) analysis. It presents the results clearly through interactive, real-time tables directly on the chart.
---
## 🔹 Indicator Structure
The script consists of two main parts:
### **1. EMA & SMA Combined System with Fibonacci**
- **Purpose:**
Provides visual insights by comparing multiple EMA/SMA periods and identifying significant dynamic price levels using Fibonacci ratios around a calculated "Golden" line.
- **Components:**
- **Moving Averages (MAs)**:
- 20 EMAs (periods from 20 to 400)
- 20 SMAs (also from 20 to 400)
- **Golden Line:**
Calculated as the average of all EMAs and SMAs.
- **Dynamic Fibonacci Levels:**
Key ratios around the Golden line (0.5, 0.618, 0.786, 1.0, 1.272, 1.414, 1.618, 2.0) dynamically adjust based on market conditions.
- **Fibonacci Labels:**
Labels are shown next to Fibonacci lines, indicating their numeric value clearly on the chart.
- **Table (Top Right Corner):**
- Displays:
- **Input:** EMA/SMA periods sorted by their current average price levels.
- **AVG:** The average of corresponding EMA & SMA pairs.
- **EMA & SMA Values:** Individual EMA/SMA values clearly marked.
- **Dynamic Highlighting:** Highlights the row whose average (EMA+SMA)/2 is closest to the current price, helping identify immediate price action significance.
- **Sorting Logic:**
Each EMA/SMA pair is dynamically sorted based on their average values. Color coding (red/green) is used:
- **Green:** EMA/SMA pairs with shorter periods when their average is lower.
- **Red:** EMA/SMA pairs with longer periods when their average is lower.
- **Star (⭐):** Represents the "Golden" average clearly.
---
### **2. DEM System (Dynamic EMA/ATR Metrics)**
- **Purpose:**
Provides detailed ATR statistics to assess market volatility clearly and quickly.
- **Components:**
- **Moving Averages:**
- SMA lines: 25, 50, 100, 200.
- **Bollinger Bands:**
- Based on 20-period SMA of highs and standard deviation of lows.
- **ATR Analysis:**
- ATR calculations for multiple periods (1-day, 10, 20, 30, 40, 50).
- **ATR Premium:** Average ATR of all calculated periods, providing an overarching volatility indicator.
- **ATR Table (Bottom Right Corner):**
- Displays clearly structured ATR values and percentages relative to the current close price:
- Columns: **ATR Period**, **Value**, and **% of Close**.
- Rows: Each specific ATR (1D, 10, 20, 30, 40, 50), plus ATR premium.
- The ATR premium is highlighted in yellow to signify its importance clearly.
---
## 🔹 Key Features and Logic Explained
- **Dynamic EMA/SMA Sorting:**
The script computes the average of each EMA/SMA pair and sorts them dynamically on each bar, highlighting their relative importance visually. This allows traders to easily interpret the strength of current support/resistance levels based on moving averages.
- **Closest EMA/SMA Pair to Current Price:**
Calculates the absolute difference between the current price and all EMA/SMA averages, highlighting the closest one for quick reference.
- **Fibonacci Ratios:**
- Dynamically calculated Fibonacci levels based on the "Golden" EMA/SMA average give clear visual guidance for potential targets, supports, and resistances.
- Labels are continuously updated and placed next to levels for clarity.
- **ATR Volatility Analysis:**
- Provides immediate insight into market volatility with absolute and relative (percentage-based) ATR values.
- ATR premium summarizes volatility across multiple timeframes clearly.
---
## 🔹 Practical Use Case:
- Traders can quickly identify support/resistance and critical price zones through EMA/SMA and Fibonacci combinations.
- Useful in assessing immediate volatility, guiding stop-loss and take-profit levels through detailed ATR metrics.
- The dynamic highlighting in tables provides intuitive, real-time decision support for active traders.
---
## 🔹 How to Use this Script:
1. **Adjust EMA & SMA Lengths** from indicator settings if different periods are preferred.
2. **Monitor dynamic Fibonacci levels** around the "Golden" average to identify possible reversal or continuation points.
3. **Check EMA/SMA table:** Rows highlighted indicate immediate significance concerning current market price.
4. **ATR table:** Use volatility metrics for better risk management.
---
## 🔷 Conclusion
This advanced Pine Script indicator efficiently combines multiple EMAs, SMAs, dynamic Fibonacci retracement levels, and volatility analysis using ATR into a comprehensive real-time analytical tool, enhancing traders' decision-making capabilities by providing clear and actionable insights directly on the TradingView chart.
Shanto Trend Signal🔔 Shanto Trend Signal is a custom trend-following indicator designed to give early and clean Buy/Sell signals based on RSI momentum and EMA trend direction.
📊 Key Features:
Buy signals when RSI shows strength above a key level with EMA confirmation.
Sell signals when RSI breaks down below a threshold with bearish EMA slope.
Optional visual highlights (bull/bear zones) on chart.
Customizable RSI sensitivity, signal levels, and visual styles.
Alerts included: never miss a momentum shift.
✅ Ideal for: XAUUSD, BTCUSD, Forex, Indices, and more.
🔧 Settings can be tuned for different assets and timeframes.
Created by: Rakibul Hassan
Please leave feedback or suggestions for future improvements!
WB TRADING ATR [Version 2]the indicator calculates the average true range (ATR) of the previous trading day. specifically measuring the price movement for whatever time you choose. it helps traders gauge overnight volatility and identify potential price range expectations for early market sessions.
The Delta with EMAs - Version 2 | CaptJackSparrow📊 The Delta with EMAs - Version 2 16th April 25 working copy it is not finished yet!!!!!!!| CaptJackSparrow
This updated script takes your trading to the next level by merging dynamic volume delta with customizable EMAs and Fibonacci levels, all enhanced with session-based background highlights.
🧩 Cumulative Volume Delta (CVD):
Visualize market sentiment and volume flow with step-line candles, showing the tug-of-war between buyers and sellers.
Real-time tracking of volume dynamics with customizable timeframes and session-specific calculations.
📈 Exponential Moving Averages (EMAs):
EMAs (3, 5, 8, 9, 15, 24, 30, 60, 90) plotted on CVD to reveal trend direction and momentum shifts.
Customizable visibility settings for each EMA, with background coloring when the EMAs align to highlight momentum zones.
📊 Fibonacci Levels:
Overnight and New York sessions: Track the high, low, and midpoint (equilibrium) for each session to gauge market sentiment.
Weekly Fibonacci: See the high, low, and midpoint for the week, with dynamic labels updating as the week progresses.
🌍 Session Highlights:
Display colored backgrounds for New York, Overnight, Europe, Asia, and After Hours sessions, helping you identify active market periods.
Customizable start/end times for each session with visual color options.
🔔 Alerts & Visuals:
EMA crossovers and background colors help spot key momentum shifts.
Tailored alerts based on the crossover of the EMAs, helping you track potential entries or exits.
🧠 Ideal for traders who love:
Understanding market structure through volume analysis.
Using multiple session contexts for more precise trading decisions.
Anticipating breakouts or divergences with dynamic Fibonacci and EMA support.
🏴☠️ Disclaimer: This script is for educational purposes only and is not financial advice. Always trade responsibly and consider market risks.
Scalping Trend Power per MT51. Overview
Scalping Trend Power per MT5 is a short‑term scalping strategy designed to capture small price movements while effectively managing risk. The strategy uses a combination of exponential moving averages (EMAs), the Relative Strength Index (RSI), and the Average True Range (ATR) to generate trade signals and manage exits with dynamic stop‑losses and multiple profit targets. Additionally, it includes inputs that adjust for realistic trading costs such as manual spread, commission, and slippage. All parameters are fully customizable so that traders may fine‑tune the strategy to match their risk tolerance and market conditions.
2. Trade Management Settings
Lot Size (lotSize):
– Default Value: 0.1
– This input determines the base lot size for each trade. It defines the proportional amount of the asset that the strategy will trade.
Lot Multiplier (lotMultiplier):
– Default Value: 1.0 (with a minimum of 0.1 and incremental steps of 0.1)
– This multiplier scales the base lot size. For example, if the Lot Size is 0.1 and the multiplier is set to 1.0, the resulting lot size is 0.1. Increasing the multiplier increases the position size proportionally.
Contract Type (contractType):
– Default Value: "FX" (options include FX, CFD, Futures)
– This text input identifies the type of instrument. Although it does not alter the calculations, it is included in the alert messages and documentation for clarity.
Risk per Trade (%) (riskPercentage):
– Default Value: 1.0
– This parameter represents the fraction (as a percentage) of your account that you are willing to risk on each trade. It is referenced in the alerts but does not directly calculate position sizing in the script.
Risk/Reward Ratio (riskRewardRatio):
– Default Value: 1.2, with steps of 0.1
– This ratio determines the distance for the take profit (TP) levels relative to the ATR-based stop loss. A ratio of 1.2 means that the profit target is 1.2 times the stop-loss distance.
Trailing Stop Multiplier (trailingStopMultiplier):
– Default Value: 1.2, with steps of 0.1
– This multiplier determines the base distance for the trailing stop based on the ATR value. It helps capture additional profit by adjusting the stop dynamically as the price moves favorably.
3. Indicator Inputs
EMA Short Length (emaShortLength):
– Default Value: 9
– Defines the period for the short exponential moving average. A lower number makes the indicator more sensitive to recent price changes.
EMA Long Length (emaLongLength):
– Default Value: 21
– Sets the period for the long exponential moving average, which smooths out price data over a longer period to define the prevailing trend.
RSI Length (rsiLength):
– Default Value: 14
– This defines the number of periods used in calculating the Relative Strength Index. A value of 14 is standard and helps gauge overbought/oversold conditions.
ATR Length (atrLength):
– Default Value: 14
– The number of periods used to calculate the Average True Range, which measures market volatility and is used to determine dynamic stop-loss distances.
RSI Overbought (rsiOverbought):
– Default Value: 70
– When the RSI exceeds this value, the market is considered potentially overbought, serving as a filter to avoid entering long trades in such conditions.
RSI Oversold (rsiOversold):
– Default Value: 30
– When the RSI falls below this level, the market is considered potentially oversold, assisting in filtering short trades or early exit signals.
4. Multi-Timeframe Exit Inputs
Higher Timeframe for Exit (higherTF):
– Default Value: "30" (can be set to any valid timeframe such as "D", "W", etc.)
– This input allows the strategy to reference a higher timeframe for additional exit logic. For instance, a 30‑minute or daily RSI can provide broader market context when managing an open position.
Higher TF RSI Overbought (higherRsiOverbought):
– Default Value: 70
– The RSI threshold on the higher timeframe above which long positions might be exited to avoid prolonged reversals.
Higher TF RSI Oversold (higherRsiOversold):
– Default Value: 30
– The RSI threshold on the higher timeframe below which short positions might be exited.
5. Advanced Trailing Stop and Volume Filter Inputs
Pivot Lookback Period (pivotLookback):
– Default Value: 5
– This period is used to detect local price pivots (highs and lows) which can guide the trailing stop placement.
Volume Lookback Period (volumeLookback):
– Default Value: 20
– The number of bars used to calculate the average volume, which is then used to scale the stop-loss based on volume conditions.
Volume Multiplier (volumeMultiplier):
– Default Value: 1.0 (minimum 0.1, incremental steps of 0.1)
– This multiplier adjusts the volume scaling factor when computing the adjusted stop-loss, allowing you to fine‑tune stop adjustments relative to recent volume.
6. Partial Exit (Multi-TP) Inputs
Enable Partial Exit (enablePartialExit):
– Default Value: true
– Activates the option for exiting portions of an open position at distinct profit targets.
TP1 Profit Multiplier (tp1ProfitMult):
– Default Value: 1.0
– Determines the distance for the first profit target (TP1) as a multiple of the ATR-based profit measure.
TP2 Profit Multiplier (tp2ProfitMult):
– Default Value: 1.5
– Sets the distance for the second profit target (TP2). A higher value means TP2 is further from the entry price.
TP3 Profit Multiplier (tp3ProfitMult):
– Default Value: 2.0
– Sets the distance for the third profit target (TP3).
TP1 Exit (%) (tp1ExitPercentage):
– Default Value: 33%
– The percentage of the position to exit when TP1 is hit.
TP2 Exit (%) (tp2ExitPercentage):
– Default Value: 33%
– The percentage of the position to exit when TP2 is hit.
TP3 Exit (%) (tp3ExitPercentage):
– Default Value: 34%
– The remaining percentage of the position to exit at TP3.
7. Confirmation Bars
Confirmation Bars (confirmBars):
– Default Value: 2
– This input sets how many consecutive bars must satisfy the long or short condition before a trade is considered valid. It helps filter out false signals by requiring persistent conditions.
8. Trade Decrease Factor
Trade Decrease Factor (tradeDecreaseFactor):
– Default Value: 0 (with baseLongTrades set to 5)
– Each increment in this factor reduces the maximum allowable long trades per trend. For example, if the base is 5 and the factor is set to 2, then the strategy is limited to 3 long trades in a single trend. The minimum allowable value is 1 trade per trend.
9. Cost Buffer
Cost Buffer (costBuffer):
– Default Value: 0.0
– This value widens the stop-loss by a fixed amount to account for commission costs and slippage, reducing premature stop-outs when realistic trading costs are applied.
10. Manual Spread Calculation Inputs
Since the built‑in spread variable is not used in this version, the strategy calculates a manual effective spread:
Fallback Spread (ticks) (fallbackSpread):
– Default Value: 1 tick
– Represents the number of ticks to use if no built‑in spread is available.
Manual Mintick (manualMintick):
– Default Value: 0.0001
– This input represents the tick size (minimum movement) for the instrument. The effective spread is then computed as:
effectiveSpread = fallbackSpread * manualMintick
This effective spread is used to adjust the entry prices:
For long trades, the effective entry price becomes:
close + effectiveSpread / 2
For short trades, it becomes:
close - effectiveSpread / 2
11. PineConnector Inputs
Activate PineConnector (activatePineConnector):
– Default Value: false
– When enabled, the strategy sends alerts in a format that supports integration with an external order routing tool, such as PineConnector.
PineConnector License Code (pineConnectorLicense):
– Default Value: (an empty string)
– Used to include your license or identifier in alert messages if PineConnector is activated.
12. Additional Calculations and Functionality
Dynamic TP and SL:
The script calculates dynamicTP as ATR multiplied by the riskRewardRatio.
dynamicSL is computed as ATR multiplied by trailingStopMultiplier.
The final stop-loss (adjustedSL) is calculated by adding the cost buffer to dynamicSL and then scaling it by recent volume (using a simple moving average of volume and a user-defined volume multiplier).
Trend Detection and Confirmation:
The strategy defines rawLongSignal and rawShortSignal based on the comparison of the short and long EMAs and corresponding RSI thresholds.
These conditions are then confirmed over a number of bars (set by confirmBars) to produce the final long and short signals.
Trade Management:
Once a trade is active, the strategy prevents new entries and will close the existing trade if an opposing signal is generated.
The script also tracks the number of long trades in a continuous trend and limits them based on the maxLongTradesPerTrend value.
Partial Exits and Visual Aids:
Multiple profit targets (TP1, TP2, TP3) are calculated and drawn as horizontal lines with labels.
Partial exits are triggered when the price reaches these levels for a specified number of bars.
Background colors and candlestick colors are used to visually indicate the prevailing trend and active trade direction.
Backtesting Settings:
The strategy is designed to backtest on a 10,000-unit initial capital environment.
It uses realistic commission (0.1% per trade) and slippage (1 tick) values to simulate a more practical trading scenario.
Conclusion
This detailed description covers each adjustable parameter of the Scalping Trend Power per MT5 (Manual Spread) strategy. By tuning the inputs—from risk settings and indicator lengths to spread, cost buffer, and volume multipliers—traders can optimize the strategy according to their specific market conditions and risk management preferences. This self-contained explanation ensures that all necessary details are provided without external references, aligning with best practices for transparent, realistic backtesting and publication.
Feel free to modify any input values or parameters to better match your personal trading requirements before applying the strategy in a live environment.
Scalping Strategy Final (Secured)Get rich very quickly!
Only signals in the direction of the market trend are displayed, enter the position when the signal is issued and stay in the position until the exit signal is issued, usually you can easily reach goal 2. Be profitable.
muraThe indicator shows important levels for trading on different TF, you can select levels for intraday, intraweek and intra-month trading. Also added clearly visible trends: local trend and global trend, but depends on your TF.
I personally recommend trading following the global trend from 4 hour TF and above. If you have a bullish global trend and the local trend changes from bearish to bullish, it is a buy signal.
The indicator works well with the trend at 4h and 12h TF
Multi-currency TSI & Trend Dashboard (V1)This indicator aggregates momentum data from multiple currency pairs to calculate a True Strength Index (TSI) for eight major currencies. It then derives a trend for each currency by comparing the TSI to an exponential moving average (EMA) calculated over a user-defined period. The result is presented in a dashboard of tables, each showing the currency's name, its TSI value, and whether it is in an uptrend, downtrend, or flat state. This provides traders with a clear, at-a-glance overview of currency strength without the need for complex analysis.
Stochastic with EMA + BOS FOR XAUUSD 5MThis indicator combines multi-timeframe Stochastic signals (from M1, M5, M15, M30) with an EMA-based trend filter on M1 to generate bullish and bearish signals. It applies dynamic Stochastic thresholds depending on the M1 EMA trend (fast vs. slow), so the trigger levels for oversold/overbought conditions adjust according to recent market bias. Additionally, it blocks signals if price is too close to the 4H (or ~24H on a 5-minute chart) high or low, helping to avoid entries at potential extremes.
A simple Break of Structure (BOS) check tracks if a bullish or bearish break happened within the last few hours. Signals become stricter if a recent BOS favors the opposite side. The script also looks at the current 3-hour range to classify swing levels as low, medium, or high. Each valid signal is plotted (triangle on the chart) and tied to an alert condition that includes the swing classification. This makes it easier to spot potential high-conviction setups versus more conservative or lower-volatility ones.
Beware NEWS!
VWAP + EMA Retracement Indicator SwiftEdgeVWAP + EMA Retracement Indicator
Overview
The VWAP + EMA Retracement Indicator is a powerful and visually engaging tool designed to help traders identify high-probability buy and sell opportunities in trending markets. By combining the Volume Weighted Average Price (VWAP) with two Exponential Moving Averages (EMAs) and a unique retracement-based signal logic, this indicator pinpoints moments when the price pulls back to a key zone before resuming its trend. Its modern, AI-inspired visuals and customizable features make it both intuitive and adaptable for traders of all levels.
What It Does
This indicator generates buy and sell signals based on a sophisticated yet straightforward strategy:
Buy Signals: Triggered when the price is above VWAP, has recently retraced to the zone between two EMAs (default 12 and 21 periods), and a strong bullish candle closes above both EMAs.
Sell Signals: Triggered when the price is below VWAP, has retraced to the EMA zone, and a strong bearish candle closes below both EMAs.
Signal Filtering: A customizable cooldown period ensures that only the first signal in a sequence is shown, reducing noise while preserving opportunities for new trends.
Confidence Scores: Each signal includes an AI-inspired confidence score (0-100%), calculated from candle strength and price distance to VWAP, helping traders gauge signal reliability.
The indicator’s visuals enhance decision-making with dynamic gradient lines, a highlighted retracement zone, and clear signal labels, all customizable to suit your preferences.
How It Works
The indicator integrates several components that work together to create a cohesive trading tool:
VWAP: Acts as a dynamic support/resistance level, reflecting the average price weighted by volume. It filters signals to ensure buys occur in uptrends (price above VWAP) and sells in downtrends (price below VWAP).
Dual EMAs: Two EMAs (default 12 and 21 periods) define a retracement zone where the price is likely to consolidate before continuing its trend. Signals are generated only after the price exits this zone with conviction.
Retracement Logic: The indicator looks for price pullbacks to the EMA zone within a user-defined lookback window (default 5 candles), ensuring signals align with trend continuation patterns.
Candle Strength: Signals require strong candles (bullish for buys, bearish for sells) with a minimum body size based on the Average True Range (ATR), filtering out weak or indecisive moves.
Cooldown Mechanism: A unique feature that prevents signal clutter by allowing only the first signal within a user-defined period (default 3 candles), balancing responsiveness with clarity.
Confidence Score: Combines candle body size and price distance to VWAP to assign a score, giving traders an at-a-glance measure of signal strength without needing external analysis.
These components are carefully combined to capture high-probability setups while minimizing false signals, making the indicator suitable for both short-term and swing trading.
How to Use It
Add to Chart: Apply the indicator to a 15-minute chart (recommended) or your preferred timeframe.
Customize Settings:
VWAP Source: Choose the price source (default: hlc3).
EMA Periods: Adjust the fast and slow EMA periods (default: 12 and 21).
Retracement Window: Set how many candles to look back for retracement (default: 5).
ATR Period & Body Size: Define candle strength requirements (default: 14 ATR period, 0.3 multiplier).
Cooldown Period: Control the minimum candles between signals (default: 3; set to 0 to disable).
Candle Requirements: Toggle whether signals require bullish/bearish candles or entire candle above/below EMAs.
Visuals: Enable/disable gradient colors, retracement zone, confidence scores, and choose a color scheme (Neon, Light, or Dark).
Interpret Signals:
Buy: A green "Buy" label with a confidence score appears below the candle when conditions are met.
Sell: A red "Sell" label with a confidence score appears above the candle.
Use the confidence score to prioritize higher-probability signals (e.g., above 80%).
Trade Management: Combine signals with your risk management strategy, such as setting stop-loss below the retracement zone and targeting a 1:2 risk-reward ratio.
Why It’s Unique
The VWAP + EMA Retracement Indicator stands out due to its thoughtful integration of classic indicators with modern enhancements:
Balanced Signal Filtering: The cooldown mechanism ensures clarity without missing key opportunities, unlike many indicators that overwhelm with frequent signals.
AI-Inspired Confidence: The confidence score simplifies decision-making by quantifying signal strength, mimicking advanced analytical tools in an accessible way.
Elegant Visuals: Dynamic gradients, a highlighted retracement zone, and customizable color schemes (Neon, Light, Dark) create a sleek, futuristic interface that’s both functional and visually appealing.
Flexibility: Extensive customization options let traders tailor the indicator to their style, from conservative swing trading to aggressive scalping.
21 EMA Multi-Timeframe + VWAPMultiple timeframe EMA for 21 EMA. allows you to see 5, 15, 30m and 1 hr 4hr + daily on one chart. Benefit to this is you can easily see when your means are stacked bearish. And if you are on mobile and only have one screen
Day Trading Composite IndicatorThis is a simple script I developed for Day/Scalp Trading.
This tracks several key points for viewing potential reversals or resistance/support levels, including:
-Intraday high/low
-Opening Range high/low (5-min default)
-Prior day high/low
Additionally, there are 5 tradition indicators built in (fully customizable):
-8 EMA
-21 EMA
-48 EMA
-200 EMA
-VWAP
Please let me know if the script needs any update, and I hope it works as well for you as it did for me. Thanks!
Autocorrelation Adaptive EMAThe Autocorrelation Adaptive EMA (AAEMA) is a dynamic, overlay indicator designed to adapt its smoothing period based on market conditions. It analyzes the autocorrelation of price returns to adjust the lookback window, ensuring responsiveness to changing trends while maintaining stability during consolidation. The indicator also incorporates rate-of-change (ROC) and volatility metrics to fine-tune its sensitivity, making it suitable for various timeframes and market environments. The AAEMA plots a single, smooth line over the price chart, providing a clear visual guide for trend direction without revealing proprietary calculations. Ideal for traders seeking an adaptive moving average that balances speed and reliability.
Quantum Flow Navigator @DaviddTechQuantum Flow Navigator – DaviddTech
Precision Strategy Builder Powered by Adaptive Filters, Statistical Noise Reduction & Multi-Modal Confirmation
🚀 Bullish Signal : Enter when ALMA, FluxWave, and QuickSilver all confirm bullish trend, with high volume and valid noise filter state.
🔻 Bearish Signal : Enter short when all components align bearishly and filters validate the signal.
🚪 Exit : Automatically managed by dynamic SL/TP or indicator-based reversal logic.
✅ Overview & DaviddTech Methodology
Quantum Flow Navigator is an advanced, multi-component trading system engineered around the strict modular logic of the DaviddTech methodology .
It integrates every core component required for a fully rule-based and signal-driven strategy—baseline, confirmations, volume filter, exit system, and noise filter.
Designed for traders who demand structure, clarity, and data-backed decision-making on 15M, 1H, and 4H charts.
🔍 Indicator Components
Baseline: Adaptive ALMA Filter
Smooth and responsive dynamic trend detection, with momentum validation and optional filled zones for enhanced visual feedback.
Confirmation #1: FluxWave Oscillator
Developed from an enhanced Trendlio concept by @dudeowns , FluxWave uses ALMA-smoothed rate-of-change logic with configurable signal behavior.
Confirmation #2: QuickSilver Band System
Custom breakout engine that maps volatility envelopes using multi-layered deviation bands for clear confirmation of structure breaks and trend direction.
Volume Filter: Normalized Volume Energy
Innovative volume filter inspired by @ceyhun 's work. Filters trades by classifying energy into High, Normal, or Low based on normalized volume context.
Exit System: Dynamic Momentum Stop Loss
Choose from Smart Adaptive, Trailing, Stepped, Percentage, ATR, or Volatility-adjusted logic. Supports TP via risk/reward, ATR multiples, or percentage targets.
Noise Filtration: Quantum Statistical Noise Reduction
Fuses Kalman smoothing with wavelet decomposition to eliminate non-signal noise and improve trade quality and confidence.
🎨 Visual System & Dashboard
🚀/🔻/🚪 Emoji Labels : Buy, sell, and exit trades clearly marked for instant recognition.
Color-Shifting Bars : Reflect FluxWave’s trend bias in real-time.
ALMA Fill Zone : Visual trend envelope between price and ALMA baseline.
QuickSilver Bands : Volatility envelopes with graduated depth for support/resistance awareness.
SL & TP Visuals : Dynamic stop-loss and take-profit zones plotted directly on chart.
Navigator Panel : In-chart dashboard displays real-time trend status, volume energy, noise filter state, signal strength, and active position tracking.
📈 How to Trade with It
Entry Mode Selection : Choose between Combined, ALMA, FluxWave, QuickSilver, or Custom scoring logic.
Final Signals : Trigger only when confirmations align, volume energy is valid, and noise is low.
Dashboard Summary : Use real-time signal display to validate entry strength.
Timeframes : 15M–1H recommended for swing/intraday setups; 5M–15M for automation.
💡 Advanced Features
Entry Strength Scoring: Composite weight of all active components + filters.
Cooldown System: Limits excessive signals in volatile periods.
Multiple Exit Strategies: SL & TP modes with optional indicator-based exits.
Statistical Filtering: Wavelet + Kalman combination optimizes entry confidence.
Full Alert Suite: Covers entries, exits, filter triggers, volume states, and more.
🧠 Suggested Strategy Usage
Wait for full confirmation from ALMA, FluxWave, and QuickSilver.
Ensure volume energy is High and noise filter confirms trend clarity.
Use adaptive SL/TP or indicator-based exits.
Monitor dashboard for live signal strength ≥ threshold.
Use “Balanced” mode for general use; switch to “Aggressive” for tighter signals.
📝 Credits & Originality
Concept based on DaviddTech’s component-driven methodology .
FluxWave Oscillator built as an evolved version of Trendlio with full signal customization — credit @dudeowns .
Volume Energy Filter adapted from the work of @ceyhun .
Noise filtration and system architecture developed independently using Pine Script v6.
All code and logic is original, non-rehashed, and completely refactored to ensure uniqueness.
Quantum Flow Navigator fuses adaptive baselines, confirmation logic, energy-based filters, and statistical refinement into a precision signal engine—optimized for traders who value structure, clarity, and control.
AllMA Trend Radar [trade_lexx]📈 AllMA Trend Radar is your universal trend analysis tool!
📊 What is AllMA Trend Radar?
AllMA Trend Radar is a powerful indicator that uses various types of Moving Averages (MA) to analyze trends and generate trading signals. The indicator allows you to choose from more than 30 different types of moving averages and adjust their parameters to suit your trading style.
💡 The main components of the indicator
📈 Fast and slow moving averages
The indicator uses two main lines:
- Fast MA (blue line): reacts faster to price changes
- Slow MA (red line): smoother, reflects a long-term trend
The combined use of fast and slow MA allows you to get trend confirmation and entry/exit points from the market.
🔄 Wide range of moving averages
There are more than 30 types of moving averages at your disposal:
- SMA: Simple moving average
- EMA: Exponential moving average
- WMA: Weighted moving average
- DEMA: double exponential MA
- TEMA: triple exponential MA
- HMA: Hull Moving Average
- LSMA: Moving average of least squares
- JMA: Eureka Moving Average
- ALMA: Arnaud Legoux Moving Average
- ZLEMA: moving average with zero delay
- And many others!
🔍 Indicator signals
1️⃣ Fast 🆚 Slow MA signals (intersection and ratio of fast and slow MA)
Up/Down signals (intersection)
- Buy (Up) signal:
- What happens: the fast MA crosses the slow MA from bottom to top
- What does the green triangle with the "Buy" label under the candle look
like - What does it mean: a likely upward trend reversal or an uptrend strengthening
- Sell signal (Down):
- What happens: the fast MA crosses the slow MA from top to bottom
- What does it look like: a red triangle with a "Sell" mark above the candle
- What does it mean: a likely downtrend reversal or an increase in the downtrend
Greater/Less signals (ratio)
- Buy signal (Greater):
- What happens: the fast MA becomes higher than the slow MA
- What does it look like: a green triangle with a "Buy" label under the candle
- What does it mean: the formation or confirmation of an uptrend
- Sell signal (Less):
- What happens: the fast MA becomes lower than the slow MA
- What does it look like: a red triangle with a "Sell" mark above the candle
- What does it mean: the formation or confirmation of a downtrend
2️⃣ Signals ⚡️ Fast MA (fast MA and price)
Up/Down signals (intersection)
- Buy signal (Up Fast):
- What happens: the price crosses the fast MA from bottom to top
- What does it look like: a green triangle with a "Buy" label under the candle
- What does it mean: a short-term price growth signal
- Sell signal (Down Fast):
- What happens: the price crosses the fast MA from top to bottom
- What does it look like: a red triangle with a "Sell" label above the candle
- What does it mean: a short-term price drop signal
Greater/Less signals (ratio)
- Buy signal (Greater Fast):
- What happens: the price is getting higher than the fast MA
- What does it look like: a green triangle with a "Buy" label under the candle
- What does it mean: the price is above the fast MA, which indicates an upward movement
- Sell signal (Less Fast):
- What happens: the price is getting lower than the fast MA
- What does it look like: a red triangle with a "Sell" mark above the candle
- What does it mean: the price is under the fast MA, which indicates a downward movement
3️⃣ Signals 🐢 Slow MA (slow MA and price)
Up/Down signals (intersection)
- Buy signal (Up Slow):
- What happens: the price crosses the slow MA from bottom to top
- What does it look like: a green triangle with a "Buy" label under the candle
- What does it mean: a potential medium-term upward trend reversal
- Sell signal (Down Slow):
- What happens: the price crosses the slow MA from top to bottom
- What does it look like: a red triangle with a "Sell" label above the candle
- What does it mean: a potential medium-term downward trend reversal
Greater/Less signals (ratio)
- Buy signal (Greater Slow):
- What happens: the price is getting above the slow MA
- What does it look like: a green triangle with a "Buy" label under the candle
- What does it mean: the price is above the slow MA, which indicates a strong upward movement
- Sell signal (Less Slow):
- What is happening: the price is getting below the slow MA
- What does it look like: a red triangle with a "Sell" mark above the candle
- What does it mean: the price is under the slow MA, which indicates a strong downward movement
🛠 Filters to filter out false signals
1️⃣ Minimum distance between the signals
- What it does: sets the minimum number of candles between signals of the same type
- Why it is needed: it prevents the appearance of too frequent signals, especially during periods of high volatility
- How to set it up: Set a different value for each signal type (default: 3-5 bars)
- Example: if the value is 3 for Up/Down signals, after the buy signal appears, the next buy signal may appear no earlier than 3 bars later
2️⃣ Advanced indicator filters
🔍 RSI Filter
- What it does: Checks the Relative Strength Index (RSI) value before generating a signal
- Why it is needed: it helps to avoid countertrend entries and catch reversal points
- How to set up:
- For buy signals (🔋 Buy): set the RSI range, usually in the oversold zone (for example, 1-30)
- For sell signals (🪫 Sell): set the RSI range, usually in the overbought zone (for example, 70-100)
- Example: if the RSI = 25 (in the range 1-30), the buy signal will be confirmed
📊 MFI Filter (Cash Flow Index)
- What it does: analyzes volumes and the direction of price movement
- Why it is needed: confirms signals with data on the activity of cash flows
- How to set up:
- For buy signals (🔋 Buy): set the MFI range in the oversold zone (for example, 1-25)
- For sell signals (🪫 Sell): set the MFI range in the overbought zone (for example, 75-100)
- Example: if MFI = 80 (in the range of 75-100), the sell signal will be confirmed
📈 Stochastic Filter
- What it does: analyzes the position of the current price relative to the price range
- Why it is needed: confirms signals based on overbought/oversold conditions
- How to configure:
- You can configure the K Length, D Length and Smoothing parameters
- For buy signals (🔋 Buy): set the stochastic range in the oversold zone (for example, 1-20)
- For sell signals (🪫 Sell): set the stochastic range in the overbought zone (for example, 80-100)
- Example: if stochastic = 15 (is in the range of 1-20), the buy signal will be confirmed
🔌 Connecting to trading strategies
The indicator provides various connectors to connect to your trading strategies.:
1️⃣ Individual connectors for each type of signal
- 🔌Fast vs Slow Up/Down MA Signal🔌: signals for the intersection of fast and slow MA
- 🔌Fast vs Slow Greater/Less MA Signal🔌: signals of the ratio of fast and slow MA
- 🔌Fast Up/Down MA Signal🔌: signals of the intersection of price and fast MA
- 🔌Fast Greater/Less MA Signal🔌: signals of the ratio of price and fast MA
- 🔌Slow Up/Down MA Signal🔌: signals of the intersection of price and slow MA
- 🔌Slow Greater/Less MA Signal🔌: Price versus slow MA signals
2️⃣ Combined connectors
- 🔌Combined Up/Down MA Signal🔌: combines all the crossing signals (Up/Down)
- 🔌Combined Greater/Less MA Signal🔌: combines all the signals of the ratio (Greater/Less)
- 🔌Combined All MA Signals🔌: combines all signals (Up/Down and Greater/Less)
❗️ All connectors return values:
- 1: buy signal
- -1: sell signal
- 0: no signal
📚 How to start using AllMA Trend Radar
1️⃣ Selection of types of moving averages
- Add an indicator to the chart
- Select the type and period for the fast MA (default: DEMA with a period of 14)
- Select the type and period for the slow MA (default: SMA with a period of 14)
- Experiment with different types of MA to find the best combination for your trading style
2️⃣ Signal settings
- Turn on the desired signal types (Up/Down, Greater/Less)
- Set the minimum distance between the signals
- Activate and configure the necessary filters (RSI, MFI, Stochastic)
3️⃣ Checking on historical data
- Analyze how the indicator works based on historical data
- Pay attention to the accuracy of the signals and the presence of false alarms
- Adjust the settings if necessary
4️⃣ Introduction to the trading strategy
- Decide which signals will be used to enter the position.
- Determine which signals will be used to exit the position.
- Connect the indicator to your trading strategy through the appropriate connectors
🌟 Practical application examples
Scalping strategy
- Fast MA: TEMA with a period of 8
- Slow MA: EMA with a period of 21
- Active signals: Fast MA Up/Down
- Filters: RSI (range 1-40 for purchases, 60-100 for sales)
- Signal spacing: 3 bars
Strategy for day trading
- Fast MA: TEMA with a period of 10
- Slow MA: SMA with a period of 20
- Active signals: Fast MA Up/Down and Fast vs Slow Greater/Less
- Filters: MFI (range 1-25 for purchases, 75-100 for sales)
- Signal spacing: 5 bars
Swing Trading Strategy
- Fast MA: DEMA with a period of 14
- Slow MA: VWMA with a period of 30
- Active signals: Fast vs Slow Up/Down and Slow MA Greater/Less
- Filters: Stochastic (range 1-20 for purchases, 80-100 for sales)
- Signal spacing: 8 bars
A strategy for positional trading
- Fast MA: HMA with a period of 21
- Slow MA: SMA with a period of 50
- Active signals: Slow MA Up/Down and Fast vs Slow Greater/Less
- Filters: RSI and MFI at the same time
- The distance between the signals: 10 bars
💡 Tips for using AllMA Trend Radar
1. Select the types of MA for market conditions:
- For trending markets: DEMA, TEMA, HMA (fast MA)
- For sideways markets: SMA, WMA, VWMA (smoothed MA)
- For volatile markets: KAMA, AMA, VAMA (adaptive MA)
2. Combine different types of signals:
- Up/Down signals work better when moving from a sideways trend to a directional
one - Greater/Less signals are optimal for fixing a stable trend
3. Use filters effectively:
- The RSI filter works great in trending markets
- MFI filter helps to confirm the strength of volume movement
- Stochastic filter works well in lateral ranges
4. Adjust the minimum distance between the signals:
- Small values (2-3 bars) for short-term trading
- Average values (5-8 bars) for medium-term trading
- Large values (10+ bars) for long-term trading
5. Use combination connectors:
- For more reliable signals, connect the indicator through the combined connectors
💰 With the AllMA Trend Radar indicator, you get a universal trend analysis tool that can be customized for any trading style and timeframe. The combination of different types of moving averages and advanced filters allows you to significantly improve the accuracy of signals and the effectiveness of your trading strategy!
Forexsom EMA + RSI StrategyThis indicator combines a classic EMA crossover technique with an RSI filter and a trend visualization tool, aiming to help traders identify momentum-based trade signals in line with broader market direction.
🔍 What This Script Does
This script plots:
A Fast EMA (default: 9)
A Slow EMA (default: 21)
A 50-period EMA as a visual trend filter
Buy/Sell signal labels based on EMA crossovers confirmed by RSI
It highlights Buy signals when the fast EMA crosses above the slow EMA, and RSI is below the overbought threshold (default: 70). Sell signals occur when the fast EMA crosses below the slow EMA and RSI is above the oversold threshold (default: 30). A 50 EMA line is included to help visually assess the current trend.
This setup is designed to reduce false signals by avoiding trades when RSI shows overextended conditions, while also encouraging trades aligned with the general trend direction.
⚙️ User Inputs
Fast EMA Length – length of the fast-moving average (default: 9)
Slow EMA Length – length of the slow-moving average (default: 21)
RSI Length – length of the RSI oscillator (default: 14)
RSI Overbought – RSI threshold above which long signals are filtered out (default: 70)
RSI Oversold – RSI threshold below which short signals are filtered out (default: 30)
Trend EMA Length – used for the visual trend filter (default: 50)
🧠 Why This is Useful
This script provides a structured and minimalistic approach to trend-following strategies. By combining price-based crossovers with momentum confirmation from RSI, it aims to:
Avoid entering trades in overbought/oversold conditions
Provide visually clean and directional setups
Help newer traders understand how different indicators can complement each other
⚠️ Notes
This is not a trading strategy or backtest — it is a visual tool to assist discretionary decisions.
It is intended for educational and informational purposes only.
It does not repaint, and it works on any standard chart type (not intended for use on Heikin Ashi, Renko, etc.).
Built by @Forexsom to support traders seeking clearer technical confluence in trend-based trading environments.
DC History & Daily Cross CountOkay, here is a technical document for the Pine Script indicator we developed. This can be used as a guide or description when publishing the script on TradingView or elsewhere.
Technical Document: SMA Cross Signals & Static DC History (Death Cross)
Version: 1.0
Date: April 14, 2025
Indicator Name: Specific Static DC History + Live Signals
Pine Script Version: 5
1. Overview
This TradingView indicator is designed to provide traders with visual signals for Simple Moving Average (SMA) crossovers, specifically focusing on the "Death Cross", while also presenting relevant historical context via a static data table and a real-time daily cross counter.
It combines several features:
Plotting of a fast and a slow Simple Moving Average (SMA).
Visual identification and marking of "Death Cross" events (Fast SMA crossing below Slow SMA) directly on the price chart.
A customizable table displaying static, pre-defined historical performance data of the S&P 500 following specific Death Crosses that occurred between 2016 and 2022.
An optional label that counts the total number of SMA crosses (both Golden Crosses and Death Crosses) occurring during the current trading day/session, including extended hours if enabled by the user on their chart.
2. Features
Customizable SMA Lengths: User-defined periods for both the Fast (default 50) and Slow (default 200) SMAs.
Death Cross Signals: Clear visual markers (red triangles above the bar and optional background shading) when the Fast SMA closes below the Slow SMA.
Optional SMA Plotting: Ability to show or hide the SMA lines themselves.
Static Historical Performance Table: Displays fixed historical return data (1 Week, 1 Month, 3 Months, 6 Months, 1 Year) following specific S&P 500 Death Crosses that occurred on 1/11/2016, 12/7/2018, 3/30/2020, and 3/14/2022. Note: This data is static and does not change based on the current chart.
Customizable Table Position: User can select the on-screen corner for the data table.
Daily SMA Cross Counter: Optionally displays a label showing the cumulative number of times the Fast SMA has crossed above (Golden Cross) or below (Death Cross) the Slow SMA during the current trading day/session.
Extended Hours Compatibility: The Daily Cross Counter includes crosses from pre-market and after-hours sessions if the user has "Extended Trading Hours" enabled on their TradingView chart settings.
3. Technical Explanation
SMA Calculation: The script uses the built-in ta.sma(source, length) function, calculating the Simple Moving Average based on the close price of each bar for the user-defined fastLen and slowLen.
Death Cross Detection: A Death Cross is detected using ta.crossunder(fastMA, slowMA). This function returns true on the first bar where the value of fastMA is less than the value of slowMA, after previously being greater than or equal to it. The comparison is based on the calculated SMA values at the close of each bar.
Golden Cross Detection: Similarly, ta.crossover(fastMA, slowMA) is used to detect Golden Crosses for the daily counter.
Visual Signals: The plotshape() function draws a red triangle above the bar where deathCross is true. The bgcolor() function applies a transparent red background to the bar where deathCross is true.
Static Table Data: The historical performance data for the 4 specified dates (Jan 2016 - Mar 2022) is hardcoded into array variables within the script. This data was derived from a prior analysis (based on the initially provided image, source likely Dow Jones Market Data or similar) and is not calculated dynamically from the chart. The script iterates through these arrays and populates a table object on the last bar.
Daily Cross Counter:
A var int dailyCrossCount variable holds the count, ensuring persistence across bars within a day.
ta.change(time("D")) detects the start of a new daily session based on the chart's symbol and session settings. When true, the dailyCrossCount is reset to 0.
On each bar, if either deathCross or goldenCross is true, the dailyCrossCount is incremented.
A label object displays the dailyCrossCount and is updated on the last bar (barstate.islast).
Extended Hours Inclusion: The script inherently uses the data series provided by the chart. If the chart is configured to include Extended Trading Hours (ETH), the close prices used for SMA calculations will reflect ETH data, and crosses occurring during ETH will be detected and counted.
4. Settings (Inputs)
Show Static Data Table (2016-2022) (Checkbox): Toggles the visibility of the table containing the fixed historical performance data. (Default: On)
Table Position (Dropdown): Selects the corner or side of the chart where the static data table will be displayed. (Default: top_right)
Plot 50/200 SMAs (Checkbox): Toggles the visibility of the Fast and Slow SMA lines on the chart. (Default: On)
Fast MA Length (Integer Input): Sets the lookback period for the Fast Simple Moving Average. (Default: 50)
Slow MA Length (Integer Input): Sets the lookback period for the Slow Simple Moving Average. (Default: 200)
Show Daily Cross Count (Checkbox): Toggles the visibility of the label displaying the number of SMA crosses detected during the current day's session. (Default: On)
5. How to Use / Interpretation
Apply the indicator to your desired chart (e.g., SPY, QQQ, /ES).
Use the plotted SMA lines (if enabled) and the red triangle/background signals to identify potential trend changes indicated by Death Crosses based on your chosen MA lengths. Remember that these are lagging indicators.
Refer to the static data table for historical context only. It shows how the S&P 500 performed following specific Death Crosses between 2016 and 2022. This data is fixed and does not predict future performance.
Use the "Today's SMA Crosses" label (if enabled) to gauge the frequency of interaction between the chosen SMAs during the current session. A higher number might indicate choppier conditions or potential shifts on the chart's timeframe.
Important: For the Daily Cross Counter to reflect pre-market/after-hours activity, ensure "Extended Trading Hours" (ETH) is enabled in your TradingView chart settings.
Be aware that the number of crosses detected by the script (based on bar closes) may differ from visual interpretations of lines touching intraday, especially on lower timeframes.
6. Limitations
Static Table Data: The performance data in the table is fixed to the 4 provided historical instances (2016-2022) and is not calculated dynamically or updated. It serves only as a historical reference point.
Lagging Indicators: Moving Averages and their crosses are lagging indicators and may not signal trend changes precisely at tops or bottoms.
Cross Calculation: Crosses are based on the closing price of each bar. Intraday price movements briefly piercing an SMA may not register as a confirmed cross.
Daily Counter Definition: The definition of "Today" depends on the chart's session timing, which might not align perfectly with a calendar day.
Whipsaws: On lower timeframes or during volatile periods, MA crosses can generate frequent signals (whipsaws) which may be less reliable.
7. Disclaimer
This indicator is provided for informational and educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any security. Trading involves significant risk, and past performance (including the historical data presented in the table) is not indicative of future results. Always conduct your own thorough research and consult with a qualified financial advisor before making any trading decisions.
15 ORB Breakout-Retest with Pivot Points Standard1. 15 Minute Opening Range Breakout
2. Entry on Successful Breakout and Retest Confirmation
3. Pivot Points Standard
4. 21 EMA Trend table on different time frames
V6 Trend Validator by zorlacwarezV6 Trend Validator
The V6 Trend Validator helps you spot the current market trend by combining popular indicators like MACD, EMA, volume levels, and more into one simple score.
It also includes a Stoch RSI status at the top-right corner for extra confirmation (shows if the market is overbought or oversold).
How to Use:
1.Set your bias (Bullish or Bearish) — optional.
2.Wait for the score to go above your chosen threshold (example: 60%) — this confirms the trend.
3.Double-check with Stoch RSI, MACD, and Volume Profile before taking a trade.
54N Krypto TradingChart Analysis Made Easy – Your All-in-One Trend & Momentum Indicator
This indicator brings together key elements of technical analysis in one powerful tool – perfect for both beginners and advanced traders:
🔹 Multi-EMA System
Display up to three Exponential Moving Averages (EMAs) simultaneously – on the current timeframe, as well as on the Daily and Weekly charts. Instantly spot short-, mid-, and long-term trends at a glance.
🔹 Vector Candles
Vector candles highlight potential high-momentum price moves and volume impulses – ideal for identifying areas where new trends may emerge or reversals could occur.
With this indicator, you gain a clear, structured view of the market – supporting smarter, data-driven decisions directly on the chart.