Gold AI RSI Monitor [Stacked + KNN]Here is a comprehensive description and user guide for the Gold AI RSI Monitor. You can copy and paste this into the "Description" field if you publish the script on TradingView, or save it for your own reference.
Gold AI RSI Monitor
🚀 Overview
The Gold AI RSI Monitor is a next-generation dashboard designed specifically for trading volatile assets like Gold (XAUUSD). It completely reimagines the traditional RSI by "stacking" 10 different timeframes (from 1-minute to Monthly) into a single, vertical view.
Integrated into this dashboard is a K-Nearest Neighbors (KNN) Machine Learning algorithm. This AI analyzes historical price action to find patterns similar to the current market and predicts the next likely move with a confidence score.
📊 Visual Guide: How to Read the Chart
1. The "Stacked" Lanes Instead of switching timeframes constantly, this indicator displays them all at once using vertical offsets.
Bottom Lane (0-100): 1-Minute RSI
Middle Lanes: 5m, 15m, 30m, 1H, 2H, 4H, Daily
Top Lane (900-1000): Monthly RSI
2. Gradient Color System The RSI lines change color based on momentum strength:
🔴 Red: Oversold / Bearish (Approaching 30 or lower)
🟡 Yellow: Neutral (Around 50)
🟢 Green: Overbought / Bullish (Approaching 70 or higher)
3. Tracker Lines Each timeframe has a dotted horizontal line extending to the right. This allows you to instantly see the exact RSI value for every timeframe without squinting.
🤖 The AI Engine (KNN)
The "AI" component uses a K-Nearest Neighbors algorithm.
Learning: It scans the last 1,000 bars of history.
Matching: It finds the 5 historical moments that look mathematically identical to the current market conditions (based on RSI and Volatility).
Predicting: It checks if price went UP or DOWN after those historical matches.
The Signals:
Buying Signal: If the majority of historical matches resulted in a price increase, the AI triggers a BUY.
Selling Signal: If the majority resulted in a drop, the AI triggers a SELL.
🎯 How to Trade with This Indicator
1. The "Crosshair" Signal
When the AI detects a high-probability setup, a massive Crosshair appears on your chart:
Green Crosshair: Strong BUY signal.
Red Crosshair: Strong SELL signal.
Note: The crosshair consists of a thick vertical line and a dashed horizontal line intersecting at the signal candle.
2. Timeframe Alignment (Confluence)
Do not rely on the AI alone. Look at the stacked RSIs:
Strong Long: The AI shows a Green Crosshair AND the lower timeframes (1m, 5m, 15m) are all turning Green/upward.
Strong Short: The AI shows a Red Crosshair AND the lower timeframes are turning Red/downward.
3. Support & Resistance Zones
Bottom Dotted Line (30): Support. If RSI hits this and turns up, it's a buying opportunity.
Top Dotted Line (70): Resistance. If RSI hits this and turns down, it's a selling opportunity.
⚙️ Settings Guide
RSI Length: Default is 14. Lower (e.g., 7) makes it faster/choppier; higher (e.g., 21) makes it smoother.
Enable AI Signals: Toggles the KNN calculation on/off.
Neighbors (K): How many historical matches to check. Default is 5.
Increase to 9-10 for fewer, more conservative signals.
Decrease to 3 for faster, more aggressive signals.
AI Timeframe: CRITICAL SETTING.
If left empty, the AI calculates based on your current chart.
Recommendation: For Gold scalping, set this to 15m or 1h. This ensures the AI looks at the bigger trend even if you are zooming in on the 1-minute chart.
⚠️ Disclaimer
This tool is for educational and analytical purposes. The "AI" is a statistical probability algorithm based on past performance, which is not indicative of future results. Always manage your risk.
نماذج فنيه
Today Low ± 50 LevelsThis script plots two dynamic horizontal lines based on today’s daily low. One line is placed 50 points above the low and the other 50 points below it. The lines update automatically each new day and appear on any timeframe
Simple GapsSimple gaps indicator that shows gap downs or gap up.
It contains two filter
atr filter
To filter out small gaps from bigger gaps.
This is an extra option and is best left false.
Session filter
To remove gaps from lower time frames (outside of regular hours).
Aroon + Chaiki OscillatorThis is an Chaiki Oscillator that facilitates more straightforward trendline analysis utilizing the Aroon setup for bars.
This is a simple Pinescript designed for incorporation into your charting analysis.
As always, none of this is investment or financial advice. Please do your own due diligence and research.
Combined EMA (5, 9, 21)A single code to combine the 5 9 and 21 EMA's. This script colour codes the different EMAs, yellow orage and red. This is editable if you prefer a different combination. The tie frae is "as chart"
Algo ۞ Halo 7MAs WonderA complete trend following and important MA crossing tool.
The indicator is self-explanatory. You decide where you want the triggers to go.
Enjoy!
Volume detection trigger📌 Indicator Overview ** Capture a Moment of Market Attention **
This indicator combines abnormal volume (volume explosion) and price reversal patterns to capture a “signal-flare moment.”
In other words, it is designed to detect moments when strong activity enters the market and a trend reversal or the start of a major uptrend/downtrend becomes likely.
✅ Strengths (Short Summary)
Detects meaningful volume spikes rather than random volume increases
Includes bottoming patterns such as long lower wicks & liquidity sweep lows
Filters with EMA alignment / RSI / Stochastic to avoid overheated signals → catches early entries rather than tops
4H/Daily timing filter to detect signals only during high-liquidity market windows
Designed as a rare-signal model for high reliability, not a noisy alert tool
➡ Summary: “The indicator fires only when volume, price structure, momentum, and timing align perfectly at the same moment.”
🎯 How to Use
A signal does not mean you should instantly buy or sell.
Treat it as a sign that “the market’s attention is now concentrated here.”
After a signal appears, check:
Whether price stays above EMA21
Whether there is room to the previous high (upside space)
Whether a minor pullback or retest finds support
🔍 Practical Applications
Use Case Description
Swing Trading Detecting early-stage trend reversals
Day Trading Spotting volume-driven shift points
🧠 Core Summary
📌 “A signal-flare indicator that automatically detects the exact moment when real volume hits the market.”
→ Not a tool to predict direction
→ A tool to recognize timing and concentration zones where major movement is likely to form
⚠ Important Note
A surge in volume or a positive delta does NOT necessarily mean institutions are buying.
The “institution/whale inflow” in the indicator is a model-based estimation, and it cannot identify buyers and sellers with 100% certainty.
Volume, delta, cumulative flow, and VWAP breakout may all imply “strong participation,”
but in some cases, the dominant side may still be sellers, such as:
High volume at a peak (distribution)
Heavy selling into strength
Long upper wick after high delta
Price failing to advance despite massive orders
Elliott Wave Full Fractal System CleanElliott Wave: Full Fractal System (Automated)
This script is a complete Fractal Trading System that automates Elliott Wave analysis. It moves beyond simple wave counting by combining multi-degree wave detection (Primary, Intermediate, Minor) with an automated "Sniper" entry strategy based on high-probability Wave 4 pullbacks.
1. Idea of the Script This tool acts as an educational Elliott Wave assistant that automatically:
Detects Swings: Uses a pivot engine (ZigZag-like logic) to identify key market structure.
Identifies Impulses: Scans for valid 1–5 motive waves across multiple timeframes.
Visualizes Corrections: Detects and labels A-B-C corrective phases after an impulse.
Executes Strategy: Adds a strategy layer on the Intermediate degree to backtest optimal entry zones.
2. How it Works: The "Fractal Sniper" Strategy The script applies strict algorithmic logic to Elliott Wave Theory. It analyzes the Intermediate (Green) degree to generate signals:
Step 1: The Setup (Wave 3 Identification) The script scans for a valid Wave 3 impulse. It ensures Wave 3 is not the shortest and the structure respects fractal rules.
Step 2: The "Wait" Phase (Target Zone) Once Wave 3 is confirmed, the script projects a Box (Green for Long, Red for Short). You will see a label: WAIT FOR DIP. Logic: We wait for price to retrace to the 50% Fibonacci level (The Golden Zone). We do not chase the top of Wave 3.
Step 3: The Trigger ("Sniper" Entry) A trade is triggered only when price touches the specific entry zone while maintaining structure. Signal: Sniper Long 🚀 or Sniper Short 🔻.
Step 4: Automated Risk Management
Stop Loss (SL): Placed at the extremum of Wave 1 (Theory: Wave 4 cannot overlap Wave 1).
Take Profit (TP): Placed at the 1.618 Fibonacci Extension of Wave 5.
3. 📊 Visual Legend (Fractal Degrees) The script analyzes three timeframes simultaneously. Use this guide to read the chart:
🔵 Blue (Primary Degree): Macro Trend. Marked with Circles (①, ②...). Use this for overall market bias.
🟢 Green (Intermediate Degree): The Trading Layer. Marked with Parentheses ((1), (2)...). All Strategy Signals are generated from this degree.
🔴 Red (Minor Degree): Micro Structure. Marked with Roman Numerals (i, ii...). Useful for seeing the sub-waves inside larger moves.
4. 📉 A-B-C Corrections (Visual Only) The script automatically detects and labels corrective phases (A, B, C) following a 5-wave impulse.
Function: These labels indicate that the trend is correcting or resting.
Note: The "Strategy" (Buy/Sell logic) ignores these A-B-C labels. It sees the correction and draws it for your awareness, but it does not risk money on counter-trend moves.
5. ⚠️ CRITICAL NOTE ON BACKTESTING & LAG This strategy uses ta.pivothigh and ta.pivotlow to identify wave structures.
The Lag: Pivot points are lagging indicators. A pivot is only mathematically confirmed X bars after the peak or valley has occurred.
The Backtest: While the labels are drawn historically on the correct bars, the strategy logic strictly waits for the pivot confirmation before generating a signal. This prevents "repainting" in live trading, but users must understand that the signal occurs after the pivot is locked in.
6. Settings Included
Degrees: Customizable lookback lengths for Primary, Intermediate, and Minor waves.
Strict Rules: Toggle to enforce standard Elliott rules (e.g., No Overlap).
Realistic Simulation: Commission and slippage are enabled in the strategy settings to provide realistic results.
Disclaimer: This script is for educational and research purposes only. It applies strict algorithmic logic to Elliott Wave Theory, but wave counting is inherently subjective. Past performance does not guarantee future results.
Volume Momentum Strategy [MA/VWAP Cross]Deconstructing the Volume Momentum Strategy: An Analysis of MA-VWAP Cross Mechanics
Introduction
The "Volume Momentum Strategy " is a technical trading algorithm programmed in Pine Script v6 for the TradingView platform. At its core, the strategy is a trend-following system that utilizes the interaction between a specific Moving Average (MA) and the Volume Weighted Average Price (VWAP) to generate trade signals. While the primary execution logic relies on price crossovers, the strategy incorporates a sophisticated secondary layer of analysis using the Commodity Channel Index (CCI) and Stochastic Oscillator. Uniquely, these secondary indicators are applied to volume data rather than price, serving as a gauge for market participation and momentum intensity.
The Core Engine: MA and VWAP Crossover
The primary engine driving the strategy's buy and sell decisions is the crossover relationship between a user-defined Moving Average and the VWAP.
1. The Anchor (VWAP): The strategy calculates the Volume Weighted Average Price based on the HLC3 (High, Low, Close divided by 3) source. VWAP serves as the dynamic benchmark for "fair value" throughout the trading session.
2. The Trigger (Moving Average): The script allows for flexibility in defining the "fast" line, offering options such as Simple (SMA), Exponential (EMA), or Hull Moving Averages.
3. The Signal:
o A Long (Buy) signal is generated when the chosen MA crosses over the VWAP. This suggests that short-term price momentum is exceeding the average volume-weighted price of the session, indicating bullish sentiment.
o A Short (Sell) signal is generated when the MA crosses under the VWAP, indicating bearish pressure where price is being pushed below the session's volume-weighted average.
The Role of CCI and Stochastic: Analyzing Volume Momentum
The prompt specifically inquires about how the CCI and Stochastic indicators fit into this process. In standard technical analysis, these oscillators are used to identify overbought or oversold price conditions. However, this strategy repurposes them to analyze Volume Momentum.
1. The Calculation
Instead of using close prices as the input source, the script passes volume data into both indicator functions:
• Volume CCI: Calculated as ta.cci(volume, cciLength). This measures the deviation of current volume from its statistical average.
• Volume Stochastic: Calculated as ta.stoch(volume, volume, volume, stochLength). This gauges the current volume relative to its recent range.
2. The "Volume Spike" Condition
The strategy combines these two indicators to define a specific market condition labeled isVolumeSpike. A volume spike is confirmed only when both conditions are met simultaneously:
• The Volume CCI must be greater than a defined threshold (default: 100).
• The Volume Stochastic must be greater than a defined threshold (default: 80).
3. Integration into the Process
It is critical to note how this script currently applies this "Volume Spike" logic:
• Visual Confirmation: In the current version of the code, the isVolumeSpike boolean is used strictly for visual feedback. When a spike is detected, the script paints the specific price bar yellow and plots a small triangle marker below the bar.
• Strategic Implication: While the code calculates these metrics, the variables long_condition and short_condition currently rely solely on the MA/VWAP crossover. The developer has left the volume logic as a visual overlay, noting in the comments that it serves as a "visual/alert" or a potential filter.
• Potential Alpha: Conceptually, this setup implies that a trader should look for the MA/VWAP crossover to occur coincidentally with—or shortly after—a "Volume Spike" (yellow bar). This would confirm that the price move is backed by significant institutional participation (volume) rather than just retail noise.
Risk Management and Time Constraints
The strategy wraps these technical signals in a robust risk management framework. It includes hard-coded time windows (start/stop trading times) and a "Close All" function to prevent holding positions overnight. Furthermore, it employs both percentage-based and dollar-based Stop Loss and Take Profit mechanisms, ensuring that every entry—whether generated by a high-momentum crossover or a standard trend move—has a predefined exit plan.
Conclusion
The "Volume Momentum Strategy" is a hybrid system. It executes trades based on the reliable trend signal of MA crossing VWAP but informs the trader with advanced volume analytics. By processing volume through the CCI and Stochastic calculations, it provides a "heads-up" display regarding the intensity of market participation, allowing the trader to distinguish between low-volume drifts and high-volume breakout moves.
sugarol sa goldthis indicator is only for those who have itchy hands who cannot wait for the zone. so, if you see the buy or sell indicator just press the buy and sell button and wait for your luck.
5 DMA Entry Plus5 DMA Entry Plus - Multi-Strategy Entry Signal Indicator
Overview:
The 5 DMA Entry Plus is a versatile entry signal indicator that combines multiple proven technical analysis methods to identify potential buy opportunities. This indicator is designed to be highly customizable, allowing traders to toggle between different entry strategies or combine them for confluence-based entries.
Key Features:
1. Multiple Entry Strategy Options:
Default Close Above Entry: Triggers when price closes above the 5-day moving average (with optional HMA filter)
Green Wick Candle Signal: Identifies bullish candles where the wick pierces above key moving averages, indicating rejection of lower prices
5DMA Zero/Upslope Entry: Generates signals when the 5DMA is flat or sloping upward, confirming momentum
HMA Cross Entry: Triggers when price crosses above the Hull Moving Average, a responsive momentum indicator
2. Adaptive HMA Filter:
Toggle the HMA (Hull Moving Average) filter on or off to adjust signal sensitivity. When enabled, price must be above both the 5DMA and 20 HMA for confirmation. When disabled, only the 5DMA is required, generating more frequent signals.
3. Smart Reset Logic:
The indicator includes intelligent reset functionality that prevents signal spam. Once an entry signal is generated, no new signals appear until price closes below the moving average(s), ensuring clean, actionable entries without clutter.
4. Visual Components:
5-Day Moving Average (Blue Line): The primary trend reference
20-Period Hull Moving Average (Orange Line): Fast-responding momentum filter
Buy Signals (Green Labels): Clear "Buy" labels appear below candles when entry conditions are met
Built-in Alerts: Set up custom alerts to be notified when entry signals trigger
Customizable Inputs:
Use HMA Filter: Enable/disable the 20 HMA confirmation requirement
Include Green Wick Candle Signal: Toggle wick-based entry detection
Use 5DMA Zero/Upslope Entry: Enable slope-based entry logic
Use HMA Cross Entry: Enable HMA crossover signals
HMA Length: Adjust the Hull Moving Average period (default: 20)
Best Use Cases:
Swing trading on daily and 4-hour timeframes
Identifying pullback entries in uptrends
Combining multiple confirmation signals for high-probability setups
Filtering entries in momentum-based strategies
Strategy Flexibility:
This indicator allows you to use each entry method independently or combine multiple methods for confluence. Test different combinations to find what works best for your trading style and the instruments you trade.
Risk Management Note:
This indicator identifies potential entry points but does not provide exit signals or stop-loss levels. Always use proper risk management and combine with your own exit strategy.
Slow Stochastic 3-Minute Signalsdisplay B for buy signal, s for sell signal for slow stochastic 3 minute time frame
Sugarol Strategythis strategy is only use for friends indicator purposes. it is not recommended to use for trading as it has a small winning percentage
SPY Overlay on ES/SPXEnhanced version of @ptgambler's for drawing SPY levels over ES/SPX.
lines/labels are configurable. The levels updates only when ES/SPX price moves by two dollars. That reduces jitter, and makes the code efficient.
Rakesh's Ultimate Trading SystemKey Features:
1. Multi-Confirmation System
5 total signals working together:
MTF Supertrend (Monthly + Weekly + Daily alignment)
Ichimoku Cloud (Price vs Cloud + Tenkan/Kijun cross)
Gann HiLo Activator (Trend direction)
Darvas Box (Breakout/Breakdown)
Current timeframe Supertrend
2. Smart Signal Generation
You set minimum confirmations (1-5) needed for a signal
STRONG BUY = When X out of 5 indicators confirm bullish
STRONG SELL = When X out of 5 indicators confirm bearish
Shows confirmation count on each signal label (e.g., "4/5")
3. Comprehensive Dashboard
Shows real-time status of:
✓ Each indicator's current signal
✓ Overall market direction
✓ Bullish vs Bearish confirmation count
✓ Color-coded for quick decision making
4. All Indicators Plotted
Ichimoku Cloud - Green/Red cloud with Tenkan/Kijun lines
Gann HiLo - Dynamic support/resistance line
Darvas Box - Top and bottom box levels
Background colors - Show breakouts and overall trend
5. Built-in Alerts
Automatic alerts when strong buy/sell signals trigger
Shows how many confirmations fired
How to Use:
Conservative Trading (Recommended):
Set "Minimum Confirmations" to 4 or 5
Only trade when almost all indicators align
Fewer signals but higher probability
Moderate Trading:
Set to 3 confirmations
Balanced approach - good signals, not too rare
Aggressive Trading:
Set to 2 confirmations
More signals but require your own filtering
Customization Options:
All indicators can be toggled on/off:
Show/hide individual Supertrend timeframes
Show/hide Ichimoku Cloud
Show/hide Gann HiLo
Show/hide Darvas Box
Show/hide Dashboard
Adjustable parameters for each indicator:
Supertrend: ATR period, Factor
Ichimoku: Tenkan, Kijun, Senkou periods
Gann: HiLo period
Darvas: Box length
Trading Strategy Examples:
1. Ultra-Safe Entry:
Wait for 5/5 confirmations
Enter on next candle
Use Gann line as stop-loss
2. Breakout Trading:
Watch for Darvas Box breakout
Confirm with 3+ other indicators
Ride the trend
3. Trend Following:
MTF Supertrend shows main trend
Use Ichimoku cloud for support/resistance
Enter on Gann/Darvas confirmations
This is a professional-grade system, Rakesh! It filters out false signals by requiring multiple confirmations. Much more refined than single-indicator systems! 🚀
Want me to adjust anything or add more features?Ris this also for tradingviewYes, absolutely! This is 100% for TradingView, just like the first one!
How to Add This to TradingView:
Same steps as before:
Copy the code from the artifact above
Go to TradingView.com
Open Pine Editor (bottom of chart)
Click "Open" → "New blank indicator"
Paste the code
Click "Save" and name it (e.g., "Advanced MTF System")
Click "Add to Chart"
What You'll See on Your Chart:
✅ Ichimoku Cloud - Green/Red cloud visualization
✅ Gann HiLo Line - Green when bullish, Red when bearish
✅ Darvas Box - Box top and bottom levels
✅ Buy/Sell Labels - "STRONG BUY 4/5" or "STRONG SELL 3/5"
✅ Dashboard Table - Top right corner showing all indicator statuses
✅ Background colors - Subtle green/red when strong signals appear
It Works With:
✅ Stocks (NSE, BSE, US markets)
✅ Forex
✅ Crypto
✅ Commodities
✅ Indices (Nifty, Bank Nifty, etc.)
Settings Panel:
When you add it to chart, click the ⚙️ settings icon to customize:
Toggle indicators on/off
Adjust minimum confirmations (2, 3, 4, or 5)
Fine-tune each indicator's parameters
Weekly Open + Monday High/Low (After Monday Close)b]Description
This indicator marks key weekly reference levels based on Monday’s price behavior.
It automatically detects each trading week and tracks:
• Weekly Open – the first traded price of the new week
• Monday High – the highest price reached on Monday
• Monday Low – the lowest price reached on Monday
Logic
The Monday range is fully captured only after Monday has closed .
No levels are plotted during Monday.
Starting from Tuesday, the indicator displays thin dots showing the completed Monday High, Monday Low, and Weekly Open for the remainder of the week.
When a new week begins, the indicator resets automatically and begins tracking the new week’s Monday.
Customization
The user can choose colors for:
• Monday High/Low
• Weekly Open
Purpose
This indicator helps traders visualize weekly structure, monitor weekly opening levels, and quickly identify Monday’s range for weekly bias analysis or strategy development.
It can also be used to manually backtest Monday range strategies .
Kịch bản của tôi//@version=6
indicator(title="Relative Strength Index", shorttitle="Gấu Trọc RSI", format=format.price, precision=2, timeframe="", timeframe_gaps=true)
rsiLengthInput = input.int(14, minval=1, title="RSI Length", group="RSI Settings")
rsiSourceInput = input.source(close, "Source", group="RSI Settings")
calculateDivergence = input.bool(false, title="Calculate Divergence", group="RSI Settings", display = display.data_window, tooltip = "Calculating divergences is needed in order for divergence alerts to fire.")
change = ta.change(rsiSourceInput)
up = ta.rma(math.max(change, 0), rsiLengthInput)
down = ta.rma(-math.min(change, 0), rsiLengthInput)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
rsiPlot = plot(rsi, "RSI", color=#7E57C2)
rsiUpperBand1 = hline(98, "RSI Upper Band1", color=#787B86)
rsiUpperBand = hline(70, "RSI Upper Band", color=#787B86)
midline = hline(50, "RSI Middle Band", color=color.new(#787B86, 50))
rsiLowerBand = hline(30, "RSI Lower Band", color=#787B86)
rsiLowerBand2 = hline(14, "RSI Lower Band2", color=#787B86)
fill(rsiUpperBand, rsiLowerBand, color=color.rgb(126, 87, 194, 90), title="RSI Background Fill")
midLinePlot = plot(50, color = na, editable = false, display = display.none)
fill(rsiPlot, midLinePlot, 100, 70, top_color = color.new(color.green, 0), bottom_color = color.new(color.green, 100), title = "Overbought Gradient Fill")
fill(rsiPlot, midLinePlot, 30, 0, top_color = color.new(color.red, 100), bottom_color = color.new(color.red, 0), title = "Oversold Gradient Fill")
// Smoothing MA inputs
GRP = "Smoothing"
TT_BB = "Only applies when 'SMA + Bollinger Bands' is selected. Determines the distance between the SMA and the bands."
maTypeInput = input.string("SMA", "Type", options = , group = GRP, display = display.data_window)
var isBB = maTypeInput == "SMA + Bollinger Bands"
maLengthInput = input.int(14, "Length", group = GRP, display = display.data_window, active = maTypeInput != "None")
bbMultInput = input.float(2.0, "BB StdDev", minval = 0.001, maxval = 50, step = 0.5, tooltip = TT_BB, group = GRP, display = display.data_window, active = isBB)
var enableMA = maTypeInput != "None"
// Smoothing MA Calculation
ma(source, length, MAtype) =>
switch MAtype
"SMA" => ta.sma(source, length)
"SMA + Bollinger Bands" => ta.sma(source, length)
"EMA" => ta.ema(source, length)
"SMMA (RMA)" => ta.rma(source, length)
"WMA" => ta.wma(source, length)
"VWMA" => ta.vwma(source, length)
// Smoothing MA plots
smoothingMA = enableMA ? ma(rsi, maLengthInput, maTypeInput) : na
smoothingStDev = isBB ? ta.stdev(rsi, maLengthInput) * bbMultInput : na
plot(smoothingMA, "RSI-based MA", color=color.yellow, display = enableMA ? display.all : display.none, editable = enableMA)
bbUpperBand = plot(smoothingMA + smoothingStDev, title = "Upper Bollinger Band", color=color.green, display = isBB ? display.all : display.none, editable = isBB)
bbLowerBand = plot(smoothingMA - smoothingStDev, title = "Lower Bollinger Band", color=color.green, display = isBB ? display.all : display.none, editable = isBB)
fill(bbUpperBand, bbLowerBand, color= isBB ? color.new(color.green, 90) : na, title="Bollinger Bands Background Fill", display = isBB ? display.all : display.none, editable = isBB)
// Divergence
lookbackRight = 5
lookbackLeft = 5
rangeUpper = 60
rangeLower = 5
bearColor = color.red
bullColor = color.green
textColor = color.white
noneColor = color.new(color.white, 100)
_inRange(bool cond) =>
bars = ta.barssince(cond)
rangeLower <= bars and bars <= rangeUpper
plFound = false
phFound = false
bullCond = false
bearCond = false
rsiLBR = rsi
if calculateDivergence
//------------------------------------------------------------------------------
// Regular Bullish
// rsi: Higher Low
plFound := not na(ta.pivotlow(rsi, lookbackLeft, lookbackRight))
rsiHL = rsiLBR > ta.valuewhen(plFound, rsiLBR, 1) and _inRange(plFound )
// Price: Lower Low
lowLBR = low
priceLL = lowLBR < ta.valuewhen(plFound, lowLBR, 1)
bullCond := priceLL and rsiHL and plFound
//------------------------------------------------------------------------------
// Regular Bearish
// rsi: Lower High
phFound := not na(ta.pivothigh(rsi, lookbackLeft, lookbackRight))
rsiLH = rsiLBR < ta.valuewhen(phFound, rsiLBR, 1) and _inRange(phFound )
// Price: Higher High
highLBR = high
priceHH = highLBR > ta.valuewhen(phFound, highLBR, 1)
bearCond := priceHH and rsiLH and phFound
plot(
plFound ? rsiLBR : na,
offset = -lookbackRight,
title = "Regular Bullish",
linewidth = 2,
color = (bullCond ? bullColor : noneColor),
display = display.pane,
editable = calculateDivergence)
plotshape(
bullCond ? rsiLBR : na,
offset = -lookbackRight,
title = "Regular Bullish Label",
text = " Bull ",
style = shape.labelup,
location = location.absolute,
color = bullColor,
textcolor = textColor,
display = display.pane,
editable = calculateDivergence)
plot(
phFound ? rsiLBR : na,
offset = -lookbackRight,
title = "Regular Bearish",
linewidth = 2,
color = (bearCond ? bearColor : noneColor),
display = display.pane,
editable = calculateDivergence)
plotshape(
bearCond ? rsiLBR : na,
offset = -lookbackRight,
title = "Regular Bearish Label",
text = " Bear ",
style = shape.labeldown,
location = location.absolute,
color = bearColor,
textcolor = textColor,
display = display.pane,
editable = calculateDivergence)
alertcondition(bullCond, title='Regular Bullish Divergence', message="Found a new Regular Bullish Divergence, `Pivot Lookback Right` number of bars to the left of the current bar.")
alertcondition(bearCond, title='Regular Bearish Divergence', message='Found a new Regular Bearish Divergence, `Pivot Lookback Right` number of bars to the left of the current bar.')
FRAN CRASH PLAY RULESPurpose
It creates a fixed information panel in the top right corner of your chart that shows the "FRAN CRASH PLAY RULES" - a checklist of criteria for identifying potential crash play setups.
Key Features
Display Panel:
Shows 5 trading rules as bullet points
Permanently visible in the top right corner
Stays fixed while you scroll or zoom the chart
Current Rules Displayed:
DYNAMIC 3 TO 5 LEG RUN
NEAR VERTICAL ACCELERATION
FINAL BAR OF THE RUN UP MUST BE THE BIGGEST
3 FINGER SPREAD / DUAL SPACE
ATLEAST 2 OF 5 CRITERIA NEEDS TO HIT
Customization Options:
Editable Text - Change any of the 5 rules through the settings
Text Color - Adjust the color of the text
Text Size - Choose from tiny, small, normal, large, or huge
Background Color - Customize the panel background and transparency
Frame Color - Change the border color
Show/Hide Frame - Toggle the border on or off
Use Case
This indicator serves as a constant visual reminder of your trading strategy criteria, helping you stay disciplined and only take trades that meet your specific crash play requirements. It's essentially a "cheat sheet" that lives on your chart so you don't have to memorize or look elsewhere for your trading rules.
ATOMO SNRAUTO plot 1 hour support to resistencce and resistance to support levels as break out line with red levels for shorts and yellow level for long
designed to mark htf snr structure while we executed entries on a 5 mins time frame
Combined EMA (5, 9, 21)Updated script to add up and down arrows when EMAS cross. Prints a green down arrow when the 5 ema crosses below the 9 Ema and a black down arrow when the 5 crosses below the 21. It also prints a red up arrow when the 9 crosses above the 5 and when the 5 crosses above the 21
🚀 Enhanced BUY & SELL Pullback ScannerThis script help to find the scan the script. this sis dor testing
MACD nothing newThere’s nothing new in this indicator, but I strongly recommend hiding the signal line and the histogram.
EMA CrossEMA Cross indicator is a multi-EMA indicator that saves indicator quota when you need several EMAs.






















