RSI & MFI Indexed -100 to 100 With Better DivergencesRSI & MFI Indexed -100 to 100 With Enhanced Divergence Detection
This script displays both the Relative Strength Index (RSI) and Money Flow Index (MFI) on the same scale for better comparison of momentum and volume-based overbought/oversold conditions.
Key features include:
✅ RSI & MFI Display – Both indicators are plotted together to easily identify confluence and divergences.
✅ Gradient Fill for Overbought/Oversold Levels – Each indicator (RSI and MFI) has its own gradient fill applied to its overbought and oversold zones, making it visually intuitive to see how deeply an indicator has entered extreme conditions.
✅ Customizable Combined Overbought/Oversold Levels – Adjust threshold levels separately for RSI and MFI to fit different trading styles.
Receive alerts when both RSI and MFI reach your threshold levels.
✅ Midline & Zero Line Reference – Includes a midline (50) for RSI and MFI to help gauge trend direction and strength.
✅ Custom Colors & Styling – Allows users to modify line colors, gradient intensity, and overall appearance to match their preferences.
✅ Multi-Type Moving Average Smoothing
Option to apply SMA, EMA, SMMA, WMA, or VWMA to RSI values.
Bollinger Bands option allows for detecting volatility-based shifts.
✅ Superior Divergence Detection
Traditional divergence detection often struggles with accuracy due to single-lookback periods. This indicator uses two separate lookback periods (A & B) for RSI and MFI:
Shorter Lookback (A) – Captures smaller trend shifts.
Longer Lookback (B) – Identifies more significant trend reversals.
This dual-approach increases divergence detection accuracy while filtering out noise.
✅ Alerts for Divergences
Automatically detects bullish and bearish divergences for both RSI and MFI.
Generates alerts when divergences occur, helping traders identify potential reversals early.
Why This Indicator Stands Out
Unlike other RSI-MFI combinations, this indicator:
✅ Uses a symmetrical scale (-100 to 100) for RSI & MFI, making direct comparisons easier.
✅ Introduces gradient-filled overbought/oversold zones for better visualization.
✅ Implements a dual-lookback divergence system, leading to far more accurate divergence detection than standard methods.
This is not just a simple overlay of two indicators—it is a refined, enhanced, and more actionable momentum analysis tool. 🚀
Indicadores e estratégias
VolatilityThis is a filtering indicator Volatility in the CTA contract of BG Exchange. According to their introduction, it should be calculated using this simple method.
However, you may have seen the problem. According to the exchange's introduction, the threshold should still be divided by 100, which is in percentage form. The result I calculated, even if not divided by 100, still shows a significant difference, which may be due to the exchange's mistake. Smart netizens, do you know how the volatility of BG Exchange is calculated.
The official introduction of BG Exchange is as follows: Volatility (K, Fluctuation) is an additional indicator used to filter out positions triggered by CTA strategy signals in low volatility markets. Usage: Select the fluctuation range composed of the nearest K candlesticks, and choose the highest and lowest closing prices. Calculation: 100 * (highest closing price - lowest closing price) divided by the lowest closing price to obtain the recent amplitude. When the recent amplitude is greater than Fluctuation, it is considered that the current market volatility meets the requirements. When the CTA strategy's position building signal is triggered, position building can be executed. Otherwise, warehouse building cannot be executed.
Major Moving Averages EMA SMA Fill And Cross With AlertsMajor Moving Averages EMA/SMA Fill and Cross With Alerts
This indicator provides a comprehensive visualization of major moving averages (EMAs and SMAs) with optional fill zones between them. It helps traders identify trend shifts, confluence areas, and price positioning relative to key moving averages.
Features:
✅ Multiple Moving Averages:
Includes four major moving average pairs with customizable periods:
Slowest: 200 EMA & 200 SMA
Slow: 50 EMA & 50 SMA
Fast: 21 EMA & 20 SMA (Bollinger Band Center)
Fastest: 10 EMA & 7 SMA
✅ Cross Alerts:
Get notified when the EMAs or SMAs cross, helping to identify trend changes.
✅ Fill Zones (Optional):
Highlights the gaps between moving averages for better trend clarity.
✅ Bollinger Bands Integration:
Plots standard Bollinger Bands (20 SMA with customizable standard deviation).
✅ Price in Fill Zone Alerts:
Notifies when price is trading within the filled regions, helping to spot areas of confluence.
This tool is ideal for traders who rely on moving averages for trend analysis, dynamic support/resistance, and confluence zones.
Multi-Timeframe Stochastic & EMA Cross AlertThis is just to text my script. to see if it works. I am backtesting
Spaceman BTC Key Levels Alerts v1.1Building upon the featurs of Key Levels SpacemanBTC IDWM (), provides the ability to determine, draw levels on the chart, and set alerts if price crosses any of the the following:
Daily Open
Previous Day High
Previous Day Mid
Previous Day Low
Asia 2H Opening range H/L and mid
London 1H Opening range
Weekly Open
Previous Week High
Previous Week Mid
Previous Week Low
Monthly Open
Previous Month High
Previous Month Low
Quarterly Open
Previous Quarter Mid
Yearly Open
ICT SMC Comprehensive Indicator with Signal Strength cet indicateur vous donne des signaux dachat et de vente en fonction du mouvement du marche
SIOVERSE EMA 15 with Buy/Sell Signals, Support & ResistanceThis Pine Script indicator is designed for TradingView and combines Exponential Moving Averages (EMAs), support and resistance levels, buy/sell signals, and volume percentage labels filtered by buy/sell conditions. It is a comprehensive tool for traders who want to analyze price trends, identify key levels, and make informed decisions based on volume and EMA crossovers.
Key Features of the Indicator
EMA 15 (Purple Dashed Line):
A 15-period Exponential Moving Average (EMA) is plotted on the chart as a dashed purple line.
This EMA helps traders identify short-term trends and potential entry/exit points.
Hidden EMA 21 and EMA 34:
The 21-period and 34-period EMAs are calculated but not displayed on the chart.
These EMAs are used to generate buy and sell signals based on crossovers.
Buy/Sell Signals:
Buy Signal: Occurs when the EMA 21 crosses above the EMA 34. A green "BUY" label is displayed below the candle.
Sell Signal: Occurs when the EMA 21 crosses below the EMA 34. A red "SELL" label is displayed above the candle.
These signals help traders identify potential trend reversals or continuations.
Support and Resistance Levels:
Support: The lowest price level over the last lookback_period candles, plotted as a green dashed horizontal line.
Resistance: The highest price level over the last lookback_period candles, plotted as a red dashed horizontal line.
These levels help traders identify key price zones for potential breakouts or reversals.
Volume Percentage Labels (Filtered by Buy/Sell Signals):
The volume percentage is calculated relative to the average volume over the last volume_lookback candles.
Buy Volume Label: When a buy signal occurs, a green label is displayed above the candle with the text "Buy Vol: X.XX%", where X.XX is the volume percentage.
Sell Volume Label: When a sell signal occurs, a red label is displayed below the candle with the text "Sell Vol: X.XX%", where X.XX is the volume percentage.
These labels help traders assess the strength of the buy/sell signals based on volume.
Alerts:
Alerts are triggered when buy or sell signals occur, notifying traders of potential trading opportunities.
Adaptive 12/48 EMAThe Adaptive 12/48 EMA is a trend-following indicator that dynamically changes color based on price positioning relative to key exponential moving averages (EMAs).
EMA Calculation:
The script calculates three EMAs—9 EMA (white), 12 EMA (adaptive color), and 48 EMA (adaptive color).
Trend Confirmation:
The 12 EMA turns green when the price (open, close, and low) is fully above it, indicating bullish momentum. The 12 EMA turns red when the price is fully below it, signaling bearish conditions.
Long-Term Trend (48 EMA):
The 48 EMA turns purple when the 12 EMA is above it, confirming an uptrend. The 48 EMA turns pink when the 12 EMA is below it, confirming a downtrend. Both EMAs turn gray when there's no clear trend.
How to Benefit from It:
Trend Trading: Use green/red shifts in the 12 EMA to time entries in the direction of momentum.
Trend Strength Confirmation: The 48 EMA color change helps determine the longer-term trend direction.
Confluence with Other Indicators: Works well with volume indicators or RSI for confirmation before entering trades.
This indicator provides a clear visual representation of trend strength and direction, helping traders make informed decisions based on price structure.
WSGTA IndicatorsThis script was built for the Wall Street Global Trading Academy system. The script contains the ema's used in the system... the 9, 15, 30, 65, and 200. They are color coded to match the default's in the WSGTA system. In hopes that an explanation keeps this publication from getting removed, an ema is an exponential moving average. It is an average of a prior time period that has the values weighted towards the current time. This indicator also includes pivot points, vwap (volume weighted average price) and prior day high, low, and close.... Please stop taking the script down, those that know what it is will use it and appreciate it, those that don't, won't care what it is.
ATT method by will(1m)ATT method by will , plots the circles above and below the candle stick close. AI cant plot it based on significant high or low from the bar before and after so it'll plot above both exact candles and i use those circles as area of multiple support and resistances combined with actual support and resistance found in lux algos liquidity swings indicator . i also use trendlines in congruence . i use my own personal indicator the hourly vertical lines so i can also distinguish the times those numbers are plotted . only works on the one minute but if people like this one . ill make the multi time frame indicator for att.
Relative Performance SuiteOverview
The Relative Performance Suite (RPS) is a versatile and comprehensive indicator designed to evaluate an asset's performance relative to a benchmark. By offering multiple methods to measure performance, including Relative Performance, Alpha, and Price Ratio, this tool helps traders and investors assess asset strength, resilience, and overall behavior in different market conditions.
Key Features:
✅ Multiple Performance Measures:
Choose from various relative performance calculations, including:
Relative Performance:
Measures how much an asset has outperformed or underperformed its benchmark over a given period.
Relative Performance (Proportional):
A proportional version of relative performance,
factoring in scaling effects.
Relative Performance (MA Based):
Uses moving averages to smooth performance fluctuations.
Alpha:
A measure of an asset’s performance relative to what would be expected based on its beta and the benchmark’s return. It represents the excess return above the risk-free rate after adjusting for market risk.
Price Ratio:
Compares asset prices directly to determine relative value over time.
✅ Customizable Moving Averages:
Apply different moving average types (SMA, EMA, SMMA, WMA, VWMA) to smooth price inputs and refine calculations.
✅ Beta Calculation:
Includes a Beta measure used in Alpha calculation, which users can toggle the visibility of helping users understand an asset's sensitivity to market movements.
✅ Risk-Free Rate Adjustment:
Incorporate risk-free rates (e.g., US Treasury yields, Fed Funds Rate) for a more accurate calculation of Alpha.
✅ Logarithmic Returns Option:
Users can switch between standard returns and log returns for more refined performance analysis.
✅ Dynamic Color Coding:
Identify outperformance or underperformance with intuitive color coding.
Option to color bars based on relative strength, making chart analysis easier.
✅ Customizable Tables for Data Display:
Overview table summarizing key metrics.
Explanation table offering insights into how values are derived.
How to Use:
Select a Benchmark: Choose a comparison symbol (e.g., TOTAL or SPX ).
Pick a Performance Metric: Use different modes to analyze relative performance.
Customize Calculation Methods: Adjust moving averages, timeframes, and log returns based on preference.
Interpret the Colors & Tables: Utilize the dynamic coloring and tables to quickly assess market conditions.
Ideal For:
Traders looking to compare individual asset performance against an index or benchmark.
Investors analyzing Alpha & Beta to understand risk-adjusted returns.
Market analysts who want a visually intuitive and data-rich performance tracking tool.
This indicator provides a powerful and flexible way to track relative asset strength, helping users make more informed trading decisions.
Simple Base Screener with PowerTrend & AlertsTo integrate the PowerTrend indicator with your existing Simple Base Screener script, we can add the conditions from the IBD PowerTrend strategy, which relies on moving averages and price action to confirm a strong uptrend.
Here’s how to combine both the Simple Base Screener and the PowerTrend conditions:
Steps:
Add PowerTrend conditions to the script.
Combine the PowerTrend conditions with the existing Simple Base conditions.
Plot the buy signal when both conditions are met.
Updated Script:
pinescript
Copy
Edit
//@version=5
indicator("Simple Base Screener with PowerTrend & Alerts", overlay=true)
// --- Simple Base Screener Conditions ---
// Moving Averages
ema21 = ta.ema(close, 21)
sma50 = ta.sma(close, 50)
sma200 = ta.sma(close, 200)
// Tight Price Action (Low Volatility)
range10 = ta.highest(high, 10) - ta.lowest(low, 10)
tightBase = (range10 / close) < 0.07
// Volume Dry-Up
volAvg50 = ta.sma(volume, 50)
lowVolume = volume < (volAvg50 * 0.75)
// Strong Uptrend (Already in the script)
uptrend = ema21 > sma50 and sma50 > sma200
// Near 52-Week High
high52 = ta.highest(high, 252)
nearHigh = close > (0.85 * high52)
// Simple Base Confirmation
simpleBase = tightBase and lowVolume and uptrend and nearHigh
// --- PowerTrend Indicator Conditions ---
// PowerTrend Condition 1: The low is above the 21-day EMA for at least 10 days
condition1 = ta.lowest(low, 10) >= ta.lowest(ema21, 10)
// PowerTrend Condition 2: The 21-day EMA is above the 50-day SMA for at least five days
condition2 = ta.barssince(ema21 < sma50) >= 5
// PowerTrend Condition 3: The 50-day SMA is in an uptrend (one day is sufficient)
condition3 = sma50 > sma50
// PowerTrend Condition 4: The market closes up for the day
condition4 = close > close
// Combine all PowerTrend conditions
start_trend = condition1 and condition2 and condition3 and condition4
// --- Final Combined Condition ---
// Buy Signal when both Simple Base and PowerTrend conditions are met
finalCondition = simpleBase and start_trend
// --- Plotting ---
// Plot Simple Base Signal (Blue Label)
plotshape(series=simpleBase, location=location.belowbar, color=color.blue, style=shape.labelup, title="Simple Base Signal")
// Plot Buy Signal (Green Triangle) when both conditions are met
plotshape(series=finalCondition, location=location.belowbar, color=color.green, style=shape.triangleup, title="Buy Signal")
// Highlight Bars with Simple Base Condition
barcolor(simpleBase ? color.blue : na)
// Background Highlight for Simple Base Condition
bgcolor(simpleBase ? color.blue : na, transp=90)
// Alerts for Buy Signal
alertcondition(finalCondition, title="Buy Signal", message="Buy signal based on Simple Base and PowerTrend confirmation.")
Key Changes:
PowerTrend Conditions:
Condition 1: The low price must be above the 21-day EMA for at least 10 days.
Condition 2: The 21-day EMA must be above the 50-day SMA for at least 5 days.
Condition 3: The 50-day SMA must be in an uptrend (compared to the previous day).
Condition 4: The market must close higher than the previous day.
Combining Simple Base and PowerTrend:
A final buy signal is generated when both the Simple Base and PowerTrend conditions are true.
Plotting:
Blue label below bars to indicate a Simple Base.
Green triangle below bars when the buy signal (both Simple Base and PowerTrend) occurs.
Alerts:
An alert condition is added to notify when the buy signal is triggered based on both the Simple Base and PowerTrend conditions.
Summary:
This combined script will:
Identify Simple Base conditions such as low volatility, low volume, and a strong uptrend.
Confirm the PowerTrend conditions indicating a solid market trend.
Mark buy signals with a green triangle when both conditions are met, helping you spot strong breakout opportunities in uptrending stocks.
Let me know if you need further adjustments or additional features!
Simple Base Screener with PowerTrend & AlertsSimple Base Screener with PowerTrend & Alerts
To integrate the PowerTrend indicator with your existing Simple Base Screener script, we can add the conditions from the IBD PowerTrend strategy, which relies on moving averages and price action to confirm a strong uptrend.
Here’s how to combine both the Simple Base Screener and the PowerTrend conditions:
Steps:
Add PowerTrend conditions to the script.
Combine the PowerTrend conditions with the existing Simple Base conditions.
Plot the buy signal when both conditions are met.
Updated Script:
pinescript
Copy
Edit
//@version=5
indicator("Simple Base Screener with PowerTrend & Alerts", overlay=true)
// --- Simple Base Screener Conditions ---
// Moving Averages
ema21 = ta.ema(close, 21)
sma50 = ta.sma(close, 50)
sma200 = ta.sma(close, 200)
// Tight Price Action (Low Volatility)
range10 = ta.highest(high, 10) - ta.lowest(low, 10)
tightBase = (range10 / close) < 0.07
// Volume Dry-Up
volAvg50 = ta.sma(volume, 50)
lowVolume = volume < (volAvg50 * 0.75)
// Strong Uptrend (Already in the script)
uptrend = ema21 > sma50 and sma50 > sma200
// Near 52-Week High
high52 = ta.highest(high, 252)
nearHigh = close > (0.85 * high52)
// Simple Base Confirmation
simpleBase = tightBase and lowVolume and uptrend and nearHigh
// --- PowerTrend Indicator Conditions ---
// PowerTrend Condition 1: The low is above the 21-day EMA for at least 10 days
condition1 = ta.lowest(low, 10) >= ta.lowest(ema21, 10)
// PowerTrend Condition 2: The 21-day EMA is above the 50-day SMA for at least five days
condition2 = ta.barssince(ema21 < sma50) >= 5
// PowerTrend Condition 3: The 50-day SMA is in an uptrend (one day is sufficient)
condition3 = sma50 > sma50
// PowerTrend Condition 4: The market closes up for the day
condition4 = close > close
// Combine all PowerTrend conditions
start_trend = condition1 and condition2 and condition3 and condition4
// --- Final Combined Condition ---
// Buy Signal when both Simple Base and PowerTrend conditions are met
finalCondition = simpleBase and start_trend
// --- Plotting ---
// Plot Simple Base Signal (Blue Label)
plotshape(series=simpleBase, location=location.belowbar, color=color.blue, style=shape.labelup, title="Simple Base Signal")
// Plot Buy Signal (Green Triangle) when both conditions are met
plotshape(series=finalCondition, location=location.belowbar, color=color.green, style=shape.triangleup, title="Buy Signal")
// Highlight Bars with Simple Base Condition
barcolor(simpleBase ? color.blue : na)
// Background Highlight for Simple Base Condition
bgcolor(simpleBase ? color.blue : na, transp=90)
// Alerts for Buy Signal
alertcondition(finalCondition, title="Buy Signal", message="Buy signal based on Simple Base and PowerTrend confirmation.")
Key Changes:
PowerTrend Conditions:
Condition 1: The low price must be above the 21-day EMA for at least 10 days.
Condition 2: The 21-day EMA must be above the 50-day SMA for at least 5 days.
Condition 3: The 50-day SMA must be in an uptrend (compared to the previous day).
Condition 4: The market must close higher than the previous day.
Combining Simple Base and PowerTrend:
A final buy signal is generated when both the Simple Base and PowerTrend conditions are true.
Plotting:
Blue label below bars to indicate a Simple Base.
Green triangle below bars when the buy signal (both Simple Base and PowerTrend) occurs.
Alerts:
An alert condition is added to notify when the buy signal is triggered based on both the Simple Base and PowerTrend conditions.
Summary:
This combined script will:
Identify Simple Base conditions such as low volatility, low volume, and a strong uptrend.
Confirm the PowerTrend conditions indicating a solid market trend.
Mark buy signals with a green triangle when both conditions are met, helping you spot strong breakout opportunities in uptrending stocks.
Let me know if you need further adjustments or additional features!
Responsive Moving Average with Trend Detection - MissouriTimThis indicator calculates a responsive moving average (RMA) that dynamically adjusts its sensitivity based on market volatility. This indicator is more responsive that SMAs, EMAs, WMAs, and HMAs. Here's how it functions:
Dynamic Length Adjustment: Utilizes the Average True Range (ATR) to adjust the length of the moving average. In times of increased volatility, the length decreases to make the average more responsive to price changes, and in quieter markets, it increases to reduce noise.
Responsive and Smoothed Moving Averages:
Responsive EMA: An initial Exponential Moving Average (EMA) is calculated with a dynamically adjusted length for responsiveness.
Smoothing: A secondary layer of smoothing is applied to this responsive EMA to further smooth out price fluctuations.
Trend Detection:
Detects trends by comparing the current smoothed EMA with its previous values:
Uptrend is identified when the current smoothed EMA is higher than the last two periods.
Downtrend is recognized when the current smoothed EMA is lower than the last two periods.
Consolidation occurs when neither an uptrend nor a downtrend is present.
Visual Representation:
The moving average line changes color:
Green for an uptrend.
Red for a downtrend.
Orange for consolidation.
Significant Trend Labels:
Labels are displayed when there's a significant change in the moving average:
Uptrend Labels appear when the EMA increases by more than the user-defined "Uptrend Label on % Change" threshold, placed at the high of the bar with green background.
Downtrend Labels are shown when the EMA decreases by more than the "Downtrend Label on % Change" threshold, positioned at the low of the bar with a red background.
Users can enable or disable these labels, and the thresholds for labeling uptrends and downtrends can be adjusted separately to match market conditions or user preferences.
This indicator is tailored for traders needing a moving average that adapts to market dynamics while providing clear visual feedback on significant trend changes via color-coded lines and labels.
Dynamic Currency Strength IndexDescription:
This indicator calculates the relative strength of the base currency and quote currency of the currently selected forex pair. Instead of just using a single pair comparison (e.g., GBPUSD - AUDUSD), it determines currency strength using a basket of related pairs, making it more accurate and useful for trading decisions.
How It Works:
Extracts the base and quote currencies from the selected forex pair.
Calculates their individual strengths using multiple related forex pairs.
Displays the strength difference between the base and quote currencies.
How to Use:
✔️ If the strength difference is positive, the base currency is stronger → Bullish signal.
✔️ If the strength difference is negative, the quote currency is stronger → Bearish signal.
✔️ Use it to confirm trends, filter trades, and improve entry timing in forex trading.
💡 Ideal for traders using trend-based strategies (Dow Theory, HH-HL patterns, breakouts, etc.).
ai//@version=5
indicator("Scalping Master", overlay=true, shorttitle="SCALP_PRO")
// Input Parameters
input fastLength = 9
input slowLength = 21
input rsiLength = 14
input rsiOverbought = 70
input rsiOversold = 30
input volumeThreshold = 1.5
// Calculate Indicators
fastMA = ta.sma(close, fastLength)
slowMA = ta.sma(close, slowLength)
rsi = ta.rsi(close, rsiLength)
= ta.macd(close, 12, 26, 9)
volumeAvg = ta.sma(volume, 20)
volumeSpike = volume > volumeAvg * volumeThreshold
// Trend Direction Conditions
bullishTrend = fastMA > slowMA and fastMA > fastMA
bearishTrend = fastMA < slowMA and fastMA < fastMA
// Entry Signals
longCondition =
ta.crossover(fastMA, slowMA) and
rsi < rsiOversold and
macdLine > signalLine and
volumeSpike
shortCondition =
ta.crossunder(fastMA, slowMA) and
rsi > rsiOverbought and
macdLine < signalLine and
volumeSpike
// Exit Signals
exitLong = ta.crossunder(fastMA, slowMA) or rsi >= rsiOverbought
exitShort = ta.crossover(fastMA, slowMA) or rsi <= rsiOversold
// Visual Alerts
plotshape(series=longCondition, style=shape.triangleup, color=color.new(color.green, 0), location=location.belowbar, size=size.small)
plotshape(series=shortCondition, style=shape.triangledown, color=color.new(color.red, 0), location=location.abovebar, size=size.small)
// Plot Moving Averages
plot(fastMA, color=color.blue, linewidth=2)
plot(slowMA, color=color.orange, linewidth=2)
// Alert Conditions
alertcondition(longCondition, title="Long Entry", message="Bullish Entry Signal")
alertcondition(shortCondition, title="Short Entry", message="Bearish Entry Signal")
// Strategy Configuration (for backtesting)
if (longCondition)
strategy.entry("Long", strategy.long)
if (shortCondition)
strategy.entry("Short", strategy.short)
if (exitLong)
strategy.close("Long")
if (exitShort)
strategy.close("Short")