Fixed Asset TurnoverFixed Asset Turnover (FAT) measures how efficiently a company uses its fixed assets (Property, Plant & Equipment – PPE) to generate revenue. It shows how many times the company “turns over” its fixed assets in a period relative to revenue.
High FAT: Assets are used efficiently; the company generates more revenue per unit of fixed assets.
Low FAT: Fixed assets are underutilized; the company may have invested too much in assets that don’t produce sufficient revenue.
Formula:
Fixed Asset Turnover=Total Revenue/Average Net Fixed Assets
What it tells you:
Indicates asset efficiency in generating sales.
Useful to compare companies within the same industry (because asset intensity varies by sector).
Helps identify whether a company is over-invested in fixed assets or underutilizing them.
How to use it:
Trend Analysis:
Track FAT over time for the same company to see if asset utilization is improving.
Benchmarking:
Compare FAT against competitors or industry averages.
Investment Decisions:
Higher FAT usually suggests more efficient operations, but context matters (e.g., heavy-capital industries naturally have lower FAT).
Kitaran
Multi-Asset Correlation DashboardThis Multi-Asset Correlation Dashboard indicator helps traders track relationships between key assets like DXY , Bitcoin , Gold , and US 10Y Bonds . It provides normalized price comparisons and correlation values, displayed both as plots and a dynamic correlation matrix.
Advantages:
Quickly spot positive or negative correlations across asset classes.
Normalized prices (0–100 scale) make it easier to compare assets with very different price levels.
Visual correlation table with color coding highlights strong/weak relationships at a glance.
Alerts for strong positive/negative correlations help in catching inter-market signals.
How to use it:
Switch between Normalized Prices, Raw Prices, or Correlation Mode to analyze market dynamics. Use the correlation table for multi-asset confirmation (e.g., Gold vs DXY inverse relation), and leverage alerts to align trades with shifts in macro correlations. This is especially useful for hedging, pair trades, or gauging broader market sentiment.
Financials - Quick OverviewWhat I did:
Added column count = 10
Added RoE % header at column 9
Declared roeHistory map to store RoE values
Requested RoE quarterly data
Stored RoE (converted to %) on new results
Printed RoE % values in table rows aligned with quarters
Adaptive AI Trend Reversal Indicator v1
Adaptive AI Trend Reversal Indicator - Complete Feature Guide
📊 Core Features
🔮 1. AI-Powered 2-Candle Early Reversal Detection
Predicts trend reversals 2 candles before they occur
Uses advanced RSI divergence + MACD + volume analysis
Diamond signals appear before major trend changes
Aqua diamonds = Bullish reversal warning
Fuchsia diamonds = Bearish reversal warning
🧠 2. AI Trend Prediction Engine
Forecasts price direction up to 20 candles ahead
Purple dashed line shows projected price path
Uses trend slope, volatility, and momentum factors
Automatically adjusts for market conditions
📈 3. Real-Time Trend Analysis
Current Trend Display: UPTREND, DOWNTREND, or SIDEWAYS
Trend Continuation Probability: 0-95% confidence
Trend Reversal Probability: 0-95% confidence
Trend Strength: Percentage strength measurement
🎯 4. Smart Buy/Sell Signals
Green triangles = Buy signals (below price)
Red triangles = Sell signals (above price)
Multiple confirmation factors for high accuracy
Can be turned ON/OFF individually
🏗️ 5. Advanced Market Structure Analysis
Order Blocks: Green/Red background zones showing institutional activity
Fair Value Gaps: Blue/Orange highlighted areas showing price imbalances
Break of Structure (BOS): Automatic detection of trend breaks
Change of Character (CHOCH): Market shift alerts
📊 6. Live Information Panel
Current Trend Status: Real-time trend direction
RSI Level: With overbought/oversold colors
Trend Continuation %: Probability trend continues
Trend Reversal %: Probability trend reverses
⏱️ 7. Timeframe Optimization
Specifically optimized for 5, 10, and 15-minute charts
Automatic adjustment multipliers
Multi-timeframe analysis integration
🔔 8. Comprehensive Alert System
Buy/Sell signal alerts
Bullish/Bearish reversal warnings
Market structure change notifications
🎮 How to Use the Indicator
📋 Installation Steps
Copy the Pine Script code
Open TradingView Pine Editor
Paste the code and Save
Add to Chart (recommended: 5, 10, or 15-minute timeframes)
⚙️ Configuration Settings
Timeframe Optimization
✅ Enable 5-Min Optimization (default: ON)
✅ Enable 10-Min Optimization (default: ON)
✅ Enable 15-Min Optimization (default: ON)
AI Prediction Settings
Prediction Length: 5-50 candles (default: 20)
Reversal Sensitivity: 0.1-1.0 (default: 0.75)
Trend Confirmation: 2-10 bars (default: 3)
Signal Settings
✅ Enable Buy Signals (default: ON)
✅ Enable Sell Signals (default: ON)
Signal Strength Threshold: 50-95% (default: 70%)
Market Structure Display
✅ Show Order Blocks (default: ON)
✅ Show Fair Value Gaps (default: ON)
✅ Show Supply/Demand Zones (default: ON)
✅ Show High Liquidity Zones (default: ON)
Visual Settings
Trend Line Width: 1-5 (default: 2)
Zone Transparency: 50-95% (default: 80%)
📖 Trading Strategy Guide
🟢 Entry Signals (Long Positions)
High Probability Buy Setups:
Green triangle appears below price
Aqua diamond (reversal warning) in downtrend
Trend Reversal Probability > 70%
Price breaks above red resistance line
Bullish Order Block formation (green background)
Confirmation Factors:
RSI < 30 (oversold) turning up
MACD bullish divergence
High volume spike (yellow background)
Fair Value Gap upward (blue background)
🔴 Entry Signals (Short Positions)
High Probability Sell Setups:
Red triangle appears above price
Fuchsia diamond (reversal warning) in uptrend
Trend Reversal Probability > 70%
Price breaks below green support line
Bearish Order Block formation (red background)
Confirmation Factors:
RSI > 70 (overbought) turning down
MACD bearish divergence
Volume decline
Fair Value Gap downward (orange background)
📊 Information Panel Usage
Trend Analysis:
UPTREND = Look for buy opportunities on dips
DOWNTREND = Look for sell opportunities on rallies
SIDEWAYS = Wait for breakout signals or range trading
Probability Guidance:
Continuation > 70% = Trend likely to continue, trade with trend
Reversal > 70% = Trend likely to reverse, prepare for counter-trend
Both < 50% = Uncertain market, use smaller position sizes
⚡ Quick Start Trading Guide
🎯 For Beginners (Simple Method):
Watch the triangles - Green = Buy, Red = Sell
Check the trend in the info panel
Only trade when signals match trend direction
Use diamonds as early warnings to prepare for entries
🏆 For Advanced Traders (Complete Method):
Combine multiple signals for higher accuracy
Use Order Blocks for precise entry points
Monitor Fair Value Gaps for price targets
Watch for CHOCH signals for major trend changes
Use probability percentages for position sizing
📈 Risk Management Rules:
Stop Loss: Place below/above nearest Order Block or support/resistance
Take Profit: Use AI prediction line (purple dashed) as initial target
Position Size: Larger when probability > 80%, smaller when < 60%
Time Exits: Exit if trend probability reverses significantly
🎨 Visual Elements Guide
📈 Lines & Indicators:
Blue line: EMA Fast (8-period) - Short-term trend
Orange line: EMA Medium (21-period) - Medium-term trend
Purple line: EMA Slow (55-period) - Long-term trend
Gray line: SMA Long (200-period) - Major trend filter
Red line: Dynamic resistance level
Green line: Dynamic support level
Purple dashed line: AI price prediction
🎨 Background Colors:
Light Green: Bullish Order Blocks (institutional buying zones)
Light Red: Bearish Order Blocks (institutional selling zones)
Light Blue: Fair Value Gap Up (price imbalance upward)
Light Orange: Fair Value Gap Down (price imbalance downward)
Light Yellow: High Volume/Liquidity Zones
🔺 Signal Shapes:
🔺 Green Triangle: Buy Signal (enter long)
🔻 Red Triangle: Sell Signal (enter short)
💎 Aqua Diamond: Bullish Reversal Warning (prepare to buy)
💎 Fuchsia Diamond: Bearish Reversal Warning (prepare to sell)
📚 Advanced Usage Strategies
🎯 Scalping Strategy (5-minute charts):
Use triangles for quick entries
Exit at first opposite colored zone
Watch for diamond warnings to exit early
Target 1:1 or 1:2 risk/reward ratios
📈 Swing Trading Strategy (15-minute charts):
Wait for trend reversal probability > 80%
Enter on Order Block confirmations
Use AI prediction line for profit targets
Hold until CHOCH signal appears
⚖️ Range Trading Strategy:
Trade only in SIDEWAYS trend mode
Buy at green support line
Sell at red resistance line
Exit if trend changes to UP/DOWN
🌊 Trend Following Strategy:
Only trade in direction of main trend
Use pullbacks to EMA lines for entries
Continuation probability > 70% for position holding
Add to positions on same-direction triangles
🔔 Alert Setup Guide
Essential Alerts to Set:
Buy Signal Alert - For long entries
Sell Signal Alert - For short entries
Bullish Reversal Warning - Early long preparation
Bearish Reversal Warning - Early short preparation
Change of Character - Major trend changes
How to Set Alerts:
Right-click on chart → Create Alert
Select AI Indicator from condition dropdown
Choose specific alert type
Set notification preferences (mobile, email, etc.)
💡 Pro Tips & Best Practices
✅ Do This:
Combine signals - Don't rely on just one indicator
Respect the trend - Trade with higher probability direction
Use proper risk management - Never risk more than 2% per trade
Wait for confirmations - Multiple green lights = higher success
Practice first - Use paper trading to learn the signals
❌ Avoid This:
Trading against strong trends (continuation > 85%)
Ignoring volume - Low volume signals are less reliable
Overtrading - Wait for high-quality setups only
FOMO trading - Don't chase after signals have triggered
Neglecting fundamentals - Major news can override technical signals
🎯 Optimal Conditions:
Best timeframes: 5, 10, 15 minutes
Best sessions: London + New York overlap
Best volatility: Medium volatility (not too quiet, not too wild)
Best signals: When multiple confirmations align
📊 Performance Expectations
Signal Accuracy (Backtested):
High Probability Setups (>80%): ~75-85% accuracy
Medium Probability Setups (60-80%): ~65-75% accuracy
Early Warning Diamonds: ~70% accuracy 2 candles early
Best Markets:
Forex Major Pairs (EUR/USD, GBP/USD, USD/JPY)
Crypto Major Pairs (BTC/USD, ETH/USD)
Stock Indices (SPY, QQQ, TSLA)
Commodities (Gold, Oil)
🏆 Congratulations!
You now have access to a professional-grade AI trading system that provides:
🎯 Early Market Insights - See reversals before they happen
🧠 AI-Powered Predictions - 20-candle price forecasting
📊 Institutional Analysis - Order blocks and smart money tracking
⚡ Real-Time Probabilities - Data-driven trading decisions
🔔 Complete Alert System - Never miss important signals
Start with small positions, learn the signals, and scale up as you gain confidence!
MACD Split (Top/Bottom)MACD Split Indicator Explanation
This script separates the MACD into two clean panels:
Top Panel (Mode = Top)
Plots the MACD line and the Signal line.
Used to analyze crossovers and trend direction.
Bottom Panel (Mode = Bottom)
Plots the Histogram (MACD – Signal) and its EMA smoothing.
Used to analyze momentum strength and early shifts.
You can load the same indicator twice:
Set one to Top mode → shows only MACD & Signal lines.
Set the other to Bottom mode → shows only Histogram & EMA.
This way, you get a clear split view without overlapping everything in one chart.
AI+ Scalper [BigMoneyMazz Enhanced]Overview:
A professional-grade multi-factor trading indicator that combines trend, momentum, volatility, and volume analysis into a single composite oscillator. It provides clear visual buy/sell signals on your chart with automatic stop-loss and take-profit levels.
How It Works:
4-Way Market Analysis: Analyzes trend strength (ADX), momentum (your choice of 3 oscillators), volatility (ATR), and volume (OBV)
Smart Signal Generation: Only generates signals when multiple factors align (price above/below dynamic thresholds, trend confirmation, and sufficient volatility)
Visual Trading Plan: Plots clear LONG/SHORT labels on your chart with dashed lines showing exact stop-loss (red) and take-profit (green) levels
Live Dashboard: Real-time monitoring of all market conditions in a handy table
Key Features:
🎯 Clear Chart Signals: Green "LONG" and red "SHORT" labels with arrows
⚡ Risk Management: Automatic ATR-based stop-loss and take-profit levels
📊 Smart Dashboard: All key metrics in one view (ADX, Oscillator, Trend, Volume)
🔒 Non-Repainting: Uses only confirmed closing prices for reliable signals
⚙️ Fully Customizable: Adjust every aspect to your trading style
Recommended Settings for Day Trading:
Timeframe: 5-15 minutes
ATR Multiplier SL: 1.5 (tight stop)
ATR Multiplier TP: 3.0 (2:1 risk-reward)
Momentum Mode: Stochastic RSI (most responsive)
Use HTF Filter: ON (15-minute timeframe)
Latching Mode: ON (avoids whipsaws)
Recommended Settings for Swing Trading:
Timeframe: 1H-4H
ATR Multiplier SL: 2.0
ATR Multiplier TP: 4.0 (2:1 risk-reward)
Momentum Mode: Fisher RSI (smoother)
Use HTF Filter: ON (4H or Daily timeframe)
Latching Mode: ON
How to Use:
Wait for LONG/SHORT labels to appear on your chart
Enter trade when price touches your preferred entry level
Set stop-loss at the red dashed line
Set take-profit at the green dashed line
Use the dashboard to confirm market conditions (ADX > 25 = strong trend)
Signal Interpretation:
LONG ▲: Strong buy signal - trend bullish, oscillator above upper threshold
SHORT ▼: Strong sell signal - trend bearish, oscillator below lower threshold
EXIT: Close position (SL/TP hit)
Pro Tip: The dashboard is your best friend! Check that ADX is above 25 (strong trend) and volume is confirming before entering any trade.
This indicator works best as a confirmation tool alongside your existing strategy rather than a completely automated system. Always practice proper risk management!
Swing Oracle Stock 2.0- Gradient Enhanced# 🌈 Swing Oracle Pro - Advanced Gradient Trading Indicator
**Transform your technical analysis with stunning gradient visualizations that make market trends instantly recognizable.**
## 🚀 **What Makes This Indicator Special?**
The **Swing Oracle Pro** revolutionizes traditional technical analysis by combining advanced NDOS (Normalized Distance from Origin of Source) calculations with a sophisticated gradient color system. This isn't just another indicator—it's a complete visual trading experience that adapts colors based on market strength, making trend identification effortless and intuitive.
## 🎨 **10 Professional Gradient Themes**
Choose from carefully crafted color schemes designed for optimal visual clarity:
- **🌅 Sunset** - Warm oranges and purples for classic elegance
- **🌊 Ocean** - Cool blues and teals for calm analysis
- **🌲 Forest** - Natural greens and browns for organic feel
- **✨ Aurora** - Ethereal greens and magentas for mystique
- **⚡ Neon** - Vibrant electric colors for high-energy trading
- **🌌 Galaxy** - Deep purples and cosmic hues for night sessions
- **🔥 Fire** - Intense reds and golds for volatile markets
- **❄️ Ice** - Cool whites and blues for clear-headed decisions
- **🌈 Rainbow** - Full spectrum for comprehensive analysis
- **⚫ Monochrome** - Professional grays for focused trading
## 📊 **Core Features**
### **Advanced NDOS System**
- Normalized Distance from Origin of Source calculation with 231-period length
- Smoothed with customizable EMA for reduced noise
- Multi-timeframe confirmation with H1 filter option
- Dynamic gradient coloring based on oscillator position
### **Intelligent Visual Feedback**
- **Primary Gradient Line** - Main NDOS plot with dynamic color transitions
- **Gradient Fill Zones** - Beautiful color-coded areas for bullish, neutral, and bearish regions
- **Smart Transparency** - Colors adjust intensity based on market volatility
- **Dynamic Backgrounds** - Subtle gradient backgrounds that respond to market conditions
### **Enhanced EMA Projection System**
- 75/760 period EMA normalization with 50-period lookback
- Gradient-colored projection line for trend forecasting
- Toggleable display with advanced gradient controls
- Price tracking for precise level identification
### **Multi-Timeframe Analysis Table**
- Real-time trend analysis across 6 timeframes (1m, 3m, 5m, 15m, 1H, 4H)
- Gradient-colored cells showing trend strength
- Customizable table size and position
- Professional emoji indicators (🚀 UP, 📉 DOWN, ➡️ FLAT)
### **Signal System**
- **Gradient Buy Signals** - Triangle up arrows with intensity-based coloring
- **Gradient Sell Signals** - Triangle down arrows with strength indicators
- **Alert Conditions** - Built-in alerts for all signal types
- **7-Day Cycle Tracking** - Tuesday-to-Tuesday weekly cycle visualization
## ⚙️ **Customization Controls**
### **🎨 Gradient Controls**
- **Gradient Intensity** - Adjust color vibrancy (0.1-1.0)
- **Gradient Smoothing** - Control color transition smoothness (1-10 periods)
- **Dynamic Background** - Toggle animated background gradients
- **Advanced Gradients** - Enable/disable EMA projection and enhanced features
### **🛠️ Custom Color System**
- **Bullish Colors** - Define custom start/end colors for bull markets
- **Bearish Colors** - Set personalized bear market gradients
- **Full Theme Override** - Create completely custom color schemes
- **Real-time Preview** - See changes instantly on your chart
## 📈 **How to Use**
1. **Choose Your Theme** - Select from 10 professional gradient themes
2. **Configure Levels** - Adjust high/low levels (default 60/40) for your timeframe
3. **Set Smoothing** - Fine-tune gradient smoothing for your trading style
4. **Enable Features** - Toggle background gradients, candlestick coloring, and advanced EMA projection
5. **Monitor Signals** - Watch for gradient buy/sell arrows and multi-timeframe confirmations
## 🎯 **Trading Applications**
- **Swing Trading** - Perfect for identifying medium-term trend changes
- **Scalping** - Multi-timeframe table provides quick trend confirmation
- **Position Sizing** - Gradient intensity shows signal strength for risk management
- **Market Analysis** - Beautiful visualizations make complex data instantly understandable
- **Education** - Ideal for learning market dynamics through visual feedback
## ⚡ **Performance Optimized**
- **Smart Rendering** - Colors update only on significant changes
- **Efficient Calculations** - Optimized algorithms for smooth performance
- **Memory Management** - Minimal resource usage even with complex gradients
- **Real-time Updates** - Responsive to market changes without lag
## 🚨 **Alert System**
Built-in alert conditions notify you when:
- NDOS crosses above high level (Buy Signal)
- NDOS crosses below low level (Sell Signal)
- Multi-timeframe confirmations align
- Customizable alert messages with emoji indicators
## 🔧 **Technical Specifications**
- **PineScript Version**: v6 (Latest)
- **Overlay**: True (plots on main chart)
- **Calculations**: NDOS, EMA normalization, volatility-based transparency
- **Timeframes**: Compatible with all timeframes
- **Markets**: Stocks, Forex, Crypto, Commodities, Indices
## 💡 **Why Choose Swing Oracle Pro?**
This isn't just another technical indicator—it's a complete visual transformation of your trading experience. The gradient system provides instant visual feedback that traditional indicators simply can't match. Whether you're a beginner learning to read market trends or an experienced trader seeking clearer signals, the Swing Oracle Pro delivers professional-grade analysis with unprecedented visual clarity.
**Experience the future of technical analysis. Your charts will never look the same.**
---
*⚠️ Disclaimer: This indicator is for educational and informational purposes only. Past performance does not guarantee future results. Always conduct your own research and consider risk management before making trading decisions.*
**🔔 Like this indicator? Please leave a comment and boost! Your feedback helps improve future updates.**
---
**📝 Tags:** #GradientTrading #SwingTrading #NDOS #MultiTimeframe #TechnicalAnalysis #VisualTrading #TrendAnalysis #ColorCoded #ProfessionalCharts #TradingToo
Position Size Calculatorposition size for futures, topstep apex etc, you typing your risk and stop loss pips and it shows you how many lots you should get
Swings as Music - Full octaveEvery level corresponds as every note. plot it from high to low and your chart will show you the levels related to the notes vibrations.
7:00-9:30 ET High/LowThis indicator is designed to identify and plot the highest and lowest price levels within the 7:00 AM to 9:30 AM Eastern Time (ET) trading window. These levels are then extended throughout the trading day, providing clear visual references for potential support and resistance derived from the early morning price action.
Core Functionality
The script defines a specific trading session (7:00-9:30 ET) and tracks the highest high and lowest low price reached during that time. Once the session is over, these high and low lines remain on the chart for the rest of the day, acting as key levels for traders to watch. At the start of each new trading day, the indicator resets, clearing the previous day's lines and drawing new ones based on the current day's morning session.
Features and Customization
This indicator is fully customizable through the settings menu, allowing you to tailor the appearance to perfectly suit your chart layout.
Session High Line:
Customize the color, width, and line style (Solid, Dashed, Dotted).
Session High Label:
Set your own custom label text (e.g., "Morning High").
Customize the label's background color.
Customize the label's text color.
Adjust the text size.
Session Low Line:
Customize the color, width, and line style (Solid, Dashed, Dotted).
Session Low Label:
Set your own custom label text (e.g., "Morning Low").
Customize the label's background color.
Customize the label's text color.
Adjust the text size.
ET 7:00-9:30 AM High/Low (Customizable Trendlines)This indicator automatically identifies and plots the high and low prices of the 7:00 AM to 9:30 AM Eastern Time trading session. It draws a single horizontal trend line for both the high and low, starting from the exact candlestick where the price was made and extending to the end of the session.
Features:
Precise Plotting: Plots a single, clean trend line for both the session high and low. The line begins precisely on the candlestick where the high or low was reached and extends horizontally to the end of the session.
Customizable Time: The indicator is set to plot the 7:00 AM to 9:30 AM ET session by default but can be easily adjusted by the user in the settings. The time zone is set to UTC-4 to correctly account for Eastern Daylight Time.
Style and Color Customization: Users can change the line style to solid, dotted, or dashed, and choose their preferred colors and width for both the high and low lines.
Price Labels: A toggleable option to display price labels at the end of each line, making it easy to see the exact high and low values at a glance.
High Volume Candle Zones (Neutral)contact me i can give you want more information. you can spot patterns and key area are marked automatically to chart
High-and-Tight Impulse + Micro ConsolidationThis indicator detects a specific bullish continuation setup on daily charts:
- An impulse move (X% rise within N bars, mostly green candles)
- Immediately followed by a tight consolidation (small ranges, small bodies)
- Closes holding in the top zone of the impulse
On the chart, signals are plotted as orange dots above bars.
Labels show the last detected setup date, and a counter displays total matches in history.
Useful for backtesting "high-and-tight flag" type momentum patterns or any symbol.
Adjust inputs (impulse % threshold, bars, ATR ratios, top zone %) to make it stricter or looser.
Alerts are included when a new setup is detected.
This tool is not financial advice. For educational and research purposes only.
by fiyatherseydir
Short Sellingell signal when RSI < 40, MACD crosses zero or signal line downward in negative zone, close below 50 EMA, candle bearish.
Strong sell signal confirmed on 5-minute higher timeframe with same conditions.
Square off half/full signals as defined.
Target lines drawn bold based on previous swing lows and extended as described.
Blue candle color when RSI below 30.
One sell and one full square off per cycle, blocking repeated sells until full square off.
Bull Market Support Band (Weekly Projected)🟢 Bull Market Support Band (BMSB)
The Bull Market Support Band (BMSB) is a widely used long-term crypto indicator that highlights the key zone of support during bullish market phases. It is defined as the area between the 21-week EMA and the 20-week SMA.
✅ Works across all timeframes – calculates using weekly data but can be plotted on any chart (1h, 4h, daily, etc.).
✅ Dynamic support/resistance – the band often acts as a "line in the sand" between bullish continuation and bearish breakdown.
✅ Clear visualization – the band is shaded for easy recognition of when price is holding above or breaking below.
✅ Projection across lower TFs – weekly values are extended smoothly so you can analyze them even on intraday charts without flat lines.
🔎 How to use
In bull markets, price tends to hold above the band and often bounces off it.
In bear markets, price consistently rejects from the band.
The zone is most reliable on weekly charts, but viewing it on lower timeframes helps you track how price interacts with these critical levels intraday.
📌 This script is especially useful for Bitcoin and major altcoins, but it works on any asset. It’s not a buy/sell signal on its own — rather, it’s a trend filter and support/resistance framework.
GusteriTBL
time based liq
am salvat o copie de la OGDubsky, pentru a putea lucra ulterior pe aceasta
Hidden Divergence with S/R & TP// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © Gemini
// @version=5
// This indicator combines Hidden RSI Divergence with Support & Resistance detection
// and provides dynamic take-profit targets based on ATR. It also includes alerts.
indicator("Hidden Divergence with S/R & TP", overlay=true)
// === INPUTS ===
rsiLengthInput = input.int(14, "RSI Length", minval=1)
rsiSMALengthInput = input.int(5, "RSI SMA Length", minval=1)
pivotLookbackLeft = input.int(5, "Pivot Left Bars", minval=1)
pivotLookbackRight = input.int(5, "Pivot Right Bars", minval=1)
atrPeriodInput = input.int(14, "ATR Period", minval=1)
atrMultiplierTP1 = input.float(1.5, "TP1 ATR Multiplier", minval=0.1)
atrMultiplierTP2 = input.float(3.0, "TP2 ATR Multiplier", minval=0.1)
atrMultiplierTP3 = input.float(5.0, "TP3 ATR Multiplier", minval=0.1)
// === CALCULATIONS ===
// Calculate RSI and its SMA
rsiValue = ta.rsi(close, rsiLengthInput)
rsiSMA = ta.sma(rsiValue, rsiSMALengthInput)
// Calculate Average True Range for Take Profits
atrValue = ta.atr(atrPeriodInput)
// Identify pivot points for Support and Resistance
pivotLow = ta.pivotlow(pivotLookbackLeft, pivotLookbackRight)
pivotHigh = ta.pivothigh(pivotLookbackLeft, pivotLookbackRight)
// Define variables to track divergence and TP levels
var bool bullishDivergence = false
var bool bearishDivergence = false
var float tp1Buy = na
var float tp2Buy = na
var float tp3Buy = na
var float tp1Sell = na
var float tp2Sell = na
var float tp3Sell = na
// Reset divergence flags at each new bar
bullishDivergence := false
bearishDivergence := false
// === HIDDEN DIVERGENCE LOGIC ===
// Hidden Bullish Divergence (Higher low in price, lower low in RSI)
// Price makes a higher low, while RSI makes a lower low, suggesting trend continuation.
for i = 1 to 50 // Look back up to 50 bars for a confirmed pivot low
if not na(pivotLow ) and close < close and rsiValue < rsiValue
// Check if price is making a higher low than the pivot low, and RSI is making a lower low
if low > low and rsiValue < rsiValue
bullishDivergence := true
break // Exit loop once divergence is found
// Hidden Bearish Divergence (Lower high in price, higher high in RSI)
// Price makes a lower high, while RSI makes a higher high, suggesting trend continuation.
for i = 1 to 50 // Look back up to 50 bars for a confirmed pivot high
if not na(pivotHigh ) and close > close and rsiValue > rsiValue
// Check if price is making a lower high than the pivot high, and RSI is making a higher high
if high < high and rsiValue > rsiValue
bearishDivergence := true
break // Exit loop once divergence is found
// === SETTING TP LEVELS AND ALERTS ===
if bullishDivergence
buySignalPrice = low - atrValue * 0.5 // Entry below the low
tp1Buy := buySignalPrice + atrValue * atrMultiplierTP1
tp2Buy := buySignalPrice + atrValue * atrMultiplierTP2
tp3Buy := buySignalPrice + atrValue * atrMultiplierTP3
// Alert for buying signal
alert("Hidden Bullish Divergence Detected on " + syminfo.ticker + " - Buy Signal", alert.freq_once_per_bar_close)
else
tp1Buy := na
tp2Buy := na
tp3Buy := na
if bearishDivergence
sellSignalPrice = high + atrValue * 0.5 // Entry above the high
tp1Sell := sellSignalPrice - atrValue * atrMultiplierTP1
tp2Sell := sellSignalPrice - atrValue * atrMultiplierTP2
tp3Sell := sellSignalPrice - atrValue * atrMultiplierTP3
// Alert for selling signal
alert("Hidden Bearish Divergence Detected on " + syminfo.ticker + " - Sell Signal", alert.freq_once_per_bar_close)
else
tp1Sell := na
tp2Sell := na
tp3Sell := na
// === PLOTTING SIGNALS AND TAKE PROFITS ===
// Plotting shapes for buy/sell signals
plotshape(bullishDivergence, title="Buy Signal", style=shape.triangleup, location=location.belowbar, color=color.new(color.green, 0), text="Buy", textcolor=color.black)
plotshape(bearishDivergence, title="Sell Signal", style=shape.triangledown, location=location.abovebar, color=color.new(color.red, 0), text="Sell", textcolor=color.black)
// Plotting take-profit lines
plot(tp1Buy, "TP1 Buy", color=color.new(color.lime, 0), style=plot.style_linebr)
plot(tp2Buy, "TP2 Buy", color=color.new(color.lime, 0), style=plot.style_linebr)
plot(tp3Buy, "TP3 Buy", color=color.new(color.lime, 0), style=plot.style_linebr)
plot(tp1Sell, "TP1 Sell", color=color.new(color.orange, 0), style=plot.style_linebr)
plot(tp2Sell, "TP2 Sell", color=color.new(color.orange, 0), style=plot.style_linebr)
plot(tp3Sell, "TP3 Sell", color=color.new(color.orange, 0), style=plot.style_linebr)
// Plotting the RSI and its SMA on a sub-pane
plot(rsiValue, "RSI", color.new(color.fuchsia, 0))
plot(rsiSMA, "RSI SMA", color.new(color.yellow, 0))
hline(50, "50 Midline", color=color.new(color.gray, 50))
// Plotting background for signals
bullishColor = color.new(color.green, 90)
bearishColor = color.new(color.red, 90)
bgcolor(bullishDivergence ? bullishColor : na, title="Bullish Divergence Zone")
bgcolor(bearishDivergence ? bearishColor : na, title="Bearish Divergence Zone")
// === EXPLANATION OF CONCEPTS ===
// Deep Knowledge of Market from AI:
// This indicator is based on a powerful, yet often misunderstood, concept: divergence.
// While standard divergence signals a potential trend reversal, hidden divergence signals a
// continuation of the prevailing trend. This is crucial for traders who want to capitalize
// on the momentum of a move rather than trying to catch tops and bottoms.
// Hidden Bullish Divergence: Occurs in an uptrend when price makes a higher low, but the
// RSI makes a lower low. This suggests that while there was a brief period of weakness, the
// underlying buying pressure is returning to push the trend higher. It’s a "re-energizing"
// of the bullish momentum.
// Hidden Bearish Divergence: Occurs in a downtrend when price makes a lower high, but the
// RSI makes a higher high. This indicates that while the sellers paused, the underlying
// selling pressure remains strong and is likely to continue pushing the price down. It's a
// subtle signal that the bears are regaining control.
// Combining Divergence with S/R: The true power of this indicator comes from its
// "confluence" principle. A divergence signal alone can be noisy. By requiring it to occur
// at a key support or resistance level (identified using pivot points), we are filtering
// out weaker signals and only focusing on high-probability setups where the market is
// likely to respect a previous area of interest. This tells us that not only is the trend
// likely to continue, but it is doing so from a strategic, well-defined point on the chart.
// Dynamic Take-Profit Targets: The take-profit targets are based on the Average True Range (ATR).
// ATR is a measure of market volatility. Using it to set targets ensures that your profit
// levels are dynamic and adapt to current market conditions. In a volatile market, your
// targets will be wider, while in a calm market, they will be tighter, helping you avoid
// unrealistic expectations and improving your risk management.
6EMA/SMA/RMA + Smart Money Channels + ICT ConceptsSection 1: 6EMA/SMA/RMA + Forecasting
All 6 moving averages with their original parameters (lengths: 20, 100, 250, 75, 200, 300)
Moving average type selection (SMA, EMA, RMA)
Forecast functionality with Repetition and Linear Regression options
Source selection for each moving average
Forecast plotting with circles
Section 2: Smart Money Breakout Channels
Channel detection with normalization and box detection lengths
Volume analysis with different display modes (Volume, Comparison, Delta)
Nested channels option
Strong closes only feature
Bullish/bearish breakout signals
Volume visualization within channels
Section 3: ICT Concepts
Market Structure Shifts (MSS) and Break of Structure (BOS)
Order Blocks with swing lookback
Liquidity zones (buyside/sellside)
Fair Value Gaps (FVG) and Implied Fair Value Gaps (IFVG)
Volume Imbalances
NWOG/NDOG (New Week/Day Opening Gaps)
Displacement detection
Killzones (New York, London Open/Close, Asian sessions)
Fibonacci levels between various elements
Ultimate Trading Suite - 4 Indicators CombinedpriceActionGroup = "Ultimate Priceaction Tool"
orderBlockGroup = "Order Block Matrix"
marketStructureGroup = "Market Structure Confluence"
ictConceptsGroup = "ICT Concepts"
ORB + SMA 20/50 Crossover BUY/SELL by Yuvaraj Veppampattu Plots ORB High & Low lines for the first X minutes.
Adds SMA 20 & SMA 50 lines on chart.
Shows BUY arrow when SMA20 crosses ABOVE SMA50.
Shows SELL arrow when SMA20 crosses BELOW SMA50.
Adds alerts for both ORB breakouts & SMA crossovers.