P/S Ratio vs Median + Bollinger Band- 📝 This indicator highlights potential buying opportunities by analyzing the Price-to-Sales (P/S) ratio in relation to Bollinger Bands and its historical median.
- 🎯 The goal is to provide a visually intuitive signal for value-oriented entries, especially when valuation compression aligns with historical context.
- 💡 Vertical green shading is applied when the P/S ratio drops below the lower Bollinger Band, which is calculated directly from the P/S ratio itself — not price. This condition often signals the ticker may be oversold.
- 🟢 Lighter green appears when the ratio is below the lower band but above the median, suggesting a possible shorter-term entry with slightly more risk.
- 🟢 Darker green appears when the ratio is both below the lower band and below the median, pointing to a potentially stronger, longer-term value entry.
- ⚠️ This logic was tested using 1 and 2-day time frames. It may not be as helpful in longer time frames, as the financial data TradingView pulls in begins in Q4 2017.
- ⚠️ Note: This script relies on financial data availability through TradingView. It may not function properly with certain tickers — especially ETFs, IPOs, or thinly tracked assets — where P/S ratio data is missing or incomplete.
- ⚠️ This indicator will not guarantee successful results. Use in conjunction with other indicators and do your due diligence.
- 🤖 This script was iteratively refined with the help of AI to ensure clean logic, minimalist design, and actionable signal clarity.
- 📢 Idea is based on the script "Historical PE ratio vs median" by @haribotagada
- 💬 Questions, feedback, or suggestions? Drop a comment — I’d love to hear how you’re using it or what you'd like to see changed.
圖表形態
Spreads CCC/BBB/AAA vs Treasury 10Y//@version=5
indicator("Spreads CCC/BBB/AAA vs Treasury 10Y", overlay=false)
// Tickes de ejemplo (debes reemplazar con los que tengas disponibles en TradingView)
ccc = request.security("XCCC", "D", close) // High Yield CCC
bbb = request.security("LQD", "D", close) // Investment Grade BBB
aaa = request.security("QLTA", "D", close) // AAA
treasury = request.security("US10Y", "D", close) // US Treasury 10Y
// Cálculo del spread (yield bono - yield Treasury)
spread_ccc = ccc - treasury
spread_bbb = bbb - treasury
spread_aaa = aaa - treasury
// Umbral para alerta de riesgo
umbral = input.float(2.0, "Umbral spread (%)")
// Plot de los spreads
plot(spread_ccc, color=color.red, title="Spread CCC")
plot(spread_bbb, color=color.orange, title="Spread BBB")
plot(spread_aaa, color=color.green, title="Spread AAA")
// Señal visual cuando el spread supera el umbral
plotshape(spread_ccc > umbral, title="Alerta CCC", color=color.red, style=shape.triangledown, location=location.abovebar, size=size.tiny)
plotshape(spread_bbb > umbral, title="Alerta BBB", color=color.orange, style=shape.triangledown, location=location.abovebar, size=size.tiny)
plotshape(spread_aaa > umbral, title="Alerta AAA", color=color.green, style=shape.triangledown, location=location.abovebar, size=size.tiny)
EMA 5/25 Cross Signals with AlertsIt is EMA 5/25 Cross Signals with Alerts
So you can find Golden Cross and Dead Cross
Pegasus – SMT Divergence (Hybrid: Sync/Async NQ Optimized)This script automatically identifies Smart Money Technique (SMT) divergences between two selected symbols (e.g., NQ & ES) and marks them visually on the chart.
Key Features:
Hybrid detection: supports both synchronous and asynchronous divergences
Multi-market support: optimized for NASDAQ (NQ) and S&P500 (ES), but also applicable to Forex, Crypto, and other markets
Visual controls: optional display or hiding of divergence lines, labels, and primary pivot links
Precise signal logic: detection of equal highs and equal lows with subsequent confirmation through SMT divergence
Specifically designed for intraday futures trading
Use Case:
The tool supports traders in analyzing SMT divergences as confluence for their strategies.
Disclaimer:
This script is not an automated trading system but is intended solely for analysis and decision support.
© 2025 Project Pegasus
fero.Laplace + MA TP/SL Strategy (10m)//@version=5Labne is a good technique for generating logic or theory.
Optimised XAU/USD (Gold, IC Markets, 30m)The Illyad Strategy 1.0 optimised for XAU/USD (Gold) on the 30-minute timeframe (IC Markets feed).
📊 Backtest Results (Jan 2024 – Aug 2025):
✅ Total P&L: +30,143.28 USD (+30.14%)
📉 Max Drawdown: 3.60% (3,945.84 USD)
🔁 Total Trades: 57
📈 Win Rate: 42.11% (24/57 trades)
⚖️ Profit Factor: 1.91
This setup shows steady performance and low drawdown on Gold — ideal for traders wanting to capture volatility while maintaining consistency.
🔧 Optimisation Notes:
Works best on the 30m timeframe.
Each instrument (forex, indices, commodities, stocks) has unique behaviour.
To maximise results, always optimise the parameters per symbol — e.g., Gold requires a different configuration than GBP/USD or NASDAQ.
💡 Best Use Cases:
Prop firm challenges & scaling funded accounts.
Long-term compounding with low risk.
Automated execution via TradingView alerts → MT5 for hands-free trading.
⚠️ Disclaimer:
This strategy is for educational purposes only. Past results do not guarantee future performance. Always backtest and forward-test before going live.
📲 Next Steps:
This example demonstrates the Gold (XAU/USD) optimisation. The Illyad Strategy can be tuned for any forex pair, index, or commodity with proper optimisation.
👉 Visit my profile for full automation solutions.
Optimised GBP/USD (IC Markets, 30m)This is the Illyad Strategy 1.0 optimised for GBP/USD on the 30-minute timeframe (IC Markets feed).
📊 Backtest Results (Jan 2024 – Aug 2025):
✅ Total P&L: +19,501.97 USD (+19.50%)
📉 Max Drawdown: 3.57% (3,607.64 USD)
🔁 Total Trades: 37
📈 Win Rate: 51.35% (19/37 trades)
⚖️ Profit Factor: 2.08
This version shows steady profitability with controlled drawdown, making it highly effective for prop firm evaluations and scaling accounts.
🔧 Optimisation Notes:
Works best on the 30-minute timeframe.
Each symbol behaves differently — always optimise the algo per instrument (e.g. GBP/USD vs EUR/GBP vs Gold).
Parameters such as moving averages, risk, and SL/TP ratios can be tuned to maximise performance.
💡 Best Use Cases:
Prop firm challenges (FTMO, AquaFunded, MyForexFunds, etc.).
Scaling funded capital by trading multiple accounts simultaneously.
Full automation via TradingView alerts → MT5 integration.
⚠️ Disclaimer:
This script is for educational purposes only. Past results do not guarantee future performance. Always backtest and forward-test on demo before going live.
📲 Next Steps:
This setup demonstrates the GBP/USD optimisation. The Illyad Strategy can be adjusted to perform across any forex pair, index, or stock with proper optimisation.
👉 Check my profile for full automation solutions.
Optimised GBP/CAD (IC Markets, 30m) - Automated TradingHere’s the Illyad Strategy 1.0 optimised for GBP/CAD on the 30-minute timeframe (IC Markets feed).
📊 Backtest Results (Jan 2024 – Aug 2025):
✅ Total P&L: +28,529.35 CAD (+28.53%)
📉 Max Drawdown: 3.61% (3,822.27 CAD)
🔁 Total Trades: 38
📈 Win Rate: 50.00% (19/38 trades)
⚖️ Profit Factor: 2.49
This setup shows strong performance with low drawdown, making it well-suited for prop firm trading and long-term portfolio compounding.
🔧 Optimisation Notes:
Works best on the 30-minute timeframe.
Each symbol has unique volatility and structure. To maximise results, you must optimise the algo per symbol (e.g., GBP/CAD vs EUR/USD vs NASDAQ).
Parameters such as moving averages, signal intensity, and SL/TP levels should be tuned to the instrument.
💡 Best Use Cases:
Prop firm challenges (FTMO, AquaFunded, MyForexFunds alternatives).
Running across multiple accounts simultaneously for compounding.
Automated execution via TradingView alerts → MT5 integration.
⚠️ Disclaimer:
This script is provided for educational purposes only. Past results do not guarantee future performance. Always backtest and forward-test on demo before live trading.
📲 Next Steps:
This version demonstrates the GBP/CAD optimisation. The Illyad Strategy can be tuned to work on any symbol (forex, indices, or stocks).
👉 Visit my profile for full automation solutions (TradingView → MT5)
fero.karma algoUnderstand what stocks, currencies (forex), and cryptocurrencies are. Learn common terms like bull market, bear market, volatility, and liquidity.
Study Analysis: There are two main types of analysis:
Premarket Breakout Painter (08:00-09:29 ET) — First Break Only**Pre-Market Breakout Indicator**
This indicator is designed to help traders identify and trade **pre-market breakout levels**. It automatically marks the pre-market high and low range, then extends those levels into the regular session so you can see when price breaks above or below them.
---
## 🔑 **How It Works**
1. **Pre-Market Range**
* During extended hours (before the 09:30 ET open), the indicator tracks the **highest high** and **lowest low**.
* These levels form the **pre-market range**.
2. **Breakout Levels**
* At the market open, the pre-market high and low are plotted as horizontal lines.
* When price breaks above the pre-market high → potential **bullish breakout**.
* When price breaks below the pre-market low → potential **bearish breakout**.
3. **Optional Midline / VWAP**
---
🎨 **Visuals**
* **Horizontal lines** marking pre-market high and low.
* Lines extend into the regular session for easy tracking.
* Colors can be customized for bullish/bearish clarity.
---
⚙️ **Inputs**
* **Session Times** (default: 04:00–09:30 ET for U.S. equities).
* **Show/Hide Midline** (optional).
* **Line Styles & Colors**.
* **Alerts** (optional, e.g., alert when price crosses pre-market high or low).
---
🚨 **Practical Use**
* Look for **high volume breakouts** through pre-market high/low after the bell.
* Use levels as **support/resistance** for pullback entries.
* Combine with EMA trend filters, VWAP, or market internals for confirmation.
---
✅ This indicator doesn’t give buy/sell signals on its own — it’s a **visual framework** to highlight where the market may make its first decisive move of the day.
Trendline + Bull/Bear Flag + EMA 9/21 Buy-Sell Signalseasy scalping and buy sell signals on 9-21 ema cross and trendline breakout
ICT KEY LEVELS (L3J)📊 Overview
The ICT KEY LEVELS (L3J) indicator is a tool designed to automatically identify and display key levels based on Inner Circle Trader (ICT) concepts.
This indicator combines session-based levels with multi-timeframe highs/lows analysis to provide traders with critical price zones for decision-making.
Developed by L3J - This indicator can be used in conjunction with other indicators I have developed for enhanced market analysis.
🎯 Key Features
Session-Based Levels
- Previous Day High/Low (PDH/PDL): Automatically identifies and displays the previous trading day's high and low levels
- Asian Session Levels: Tracks high and low during Asian trading hours (20:00-03:00 GMT+4)
- European Session Levels: Captures London session high and low levels (03:00-08:30 GMT+4)
Multi-Timeframe Analysis
- H1 Pivot Levels: Identifies 2-candle reversal patterns on 1-hour timeframe
- H4 Pivot Levels: Detects 4-hour pivot points using advanced pattern recognition
- Smart Visibility: Levels are only shown on appropriate timeframes (H1 levels on H1, H4 levels on H4)
Advanced Features
- Priority System: Automatically hides overlapping levels based on importance (Previous Day > Sessions > H4 > H1)
- Dynamic Labels: Real-time labels that update with price action
- Intelligent Cleanup: Removes crossed or outdated levels to maintain chart clarity
- Customizable Anchoring: Choose between precise timestamp anchoring or candle middle anchoring
- Performance Optimized: Built with efficient code structure for smooth chart performance
⚙️ Configuration Options
Note: Currently, the user interface settings are displayed in French. This will be updated to English in a future version.
General Settings
- Timezone: Configurable timezone for session calculations (default: GMT+4)
- Trading Days: Number of trading days to analyze (1-20 days)
- Extension: Right extension length for level lines
- Anchoring Mode: Precise timestamp or candle middle anchoring
Visual Customization
Each level type (Asia, Europe, Previous Day, H1, H4) includes:
- Color Selection: Separate colors for highs and lows
- Line Styles: Solid, Dotted, or Dashed lines
- Line Width: Adjustable thickness (1-4 pixels)
- Show/Hide Toggle: Individual control for each level type
🕒 Session Times
- Trading Day: 18:00-16:00 (CME session)
- Asian Session: 20:00-03:00 GMT+4
- European Session: 03:00-08:30 GMT+4
All times are configurable and timezone-aware
📈 How It Works
Level Detection
1. Session Levels: Continuously tracks price action during specific trading sessions
2. Pivot Detection: Uses 2-candle reversal patterns (bullish then bearish for highs, bearish then bullish for lows)
3. Multi-Timeframe Data: Requests higher timeframe data for H1 and H4 analysis
Smart Management
- Automatic Cleanup: Removes levels that have been crossed or are too old
- Priority Filtering: Hides duplicate levels based on importance hierarchy
- Dynamic Updates: Real-time adjustment of level positions and labels
🎨 Visual Elements
- Horizontal Lines: Extend from level creation point to the right
- Dynamic Labels: Show level type and session information
- Color Coding: Different colors for each session and timeframe
- Transparency: Automatically hides overlapping or less important levels
🔧 Technical Specifications
- Pine Script Version: v6
- Chart Overlay: True
- Max Lines: 500
- Max Labels: 50
- Performance: Optimized with intelligent memory management
📋 Usage Tips
1. Best Timeframe: Works on all timeframes, but H1 and lower provide optimal detail
2. Combine with Price Action: Use levels as confluence zones for entry/exit decisions
3. Risk Management: Levels can serve as stop-loss and take-profit targets
4. Market Structure: Helps identify key support/resistance in market structure analysis
🔄 Compatibility
This indicator is designed to work alongside other L3J indicators for comprehensive market analysis.
📞 Support & Updates
For questions, suggestions, or updates, please contact L3J through TradingView messaging.
---
Disclaimer : This indicator is for educational and analysis purposes. Always practice proper risk management and never risk more than you can afford to lose.
Version: 1.0
Author: L3J
Last Updated: 30/08/2025
Open High Low Close & Pivot Points [Prakash Kannan]Best Indicator to have previous day OHLC and Pivot Points
KING4R_swingGeneral
This script is called "KING4R_swing", designed to identify high-probability swing trading entries based on technical setups. It overlays the chart and uses conditions based on volume, EMAs, SPY index trend, and price structure.
Main Features
User Options:
Enable/disable SPY EMA conditions.
Show/hide checklist and final message.
Adjust label positions (vertical/horizontal).
Local EMAs:
Calculates 13-EMA and 48-EMA on the current symbol.
Flags whether EMA13 is above EMA48 and whether price is above EMA48.
Volume Spike Detection:
Searches for unusual volume spikes in the last 30 candles.
Then checks 60 candles after the spike for either:
Lateral movement (no new lows).
Higher lows (suggesting a change in structure).
Visual Tags:
When a volume spike is detected, it adds:
“📦 Post-volume Lateral” label if price goes sideways.
“📈 Structure Change” if higher lows are confirmed.
SPY Conditions:
Pulls EMAs from SPY on the daily timeframe.
Two optional conditions: EMA13 > EMA48 and EMA8 > EMA21.
Stopping Volume:
Checks if there's stopping volume in the last 30 candles (volume 1.5x above average).
Checklist + Scoring:
Assigns up to 6 points based on:
EMA13 > EMA48
Lateral structure after high volume
Price above EMA48
Stopping volume
SPY EMA13 > EMA48
SPY EMA8 > EMA21
Each condition adds 1 point.
Dynamic Labels:
Shows a red checklist, a final message with score, and a warning (“NO SETUP, NO TRADE”).
If score is 6/6, shows a 🚀 rocket icon above the bar.
Alert:
Triggers an alert when score = 6/6, indicating a possible high-probability entry.
Signifikante HochsThis indicator was created to highlight significant highs in the price chart. It is intentionally kept simple and lightweight, since its primary purpose is to serve as a test and learning tool for exploring the functions of the TradingView platform.
How it works:
A user-defined lookback period is applied to check whether a local high has been formed.
A minimum percentage change threshold is used as an additional filter, so that only highs with a certain level of significance are marked.
Once such a high is detected, a visual marker is plotted above the corresponding candle.
The main goal of this script is not to provide a complete trading strategy, but rather to help users understand the basic elements of Pine Script, chart visualization, and platform workflows. In particular, this script is a practical way to test and demonstrate:
The use of input parameters.
Core functions such as ta.pivothigh.
Conditional checks for price significance.
Simple plotting of signals directly on the chart.
At the same time, this test indicator can serve as a foundation for further development. The logic can easily be extended to:
Display significant lows as well as highs.
Draw connecting trendlines between pivots.
Generate alerts whenever a new significant high appears.
Incorporate multi-timeframe logic for deeper analysis.
Important note:
This script is not intended to be a full trading strategy in its current form. Instead, it acts as a test environment for learning how to publish, manage, and experiment with indicators on TradingView.
For the TradingView community, this simple tool can still be valuable, as it provides a quick visual reference for key highs that traders may use as additional context in their market analysis.
THE LION OB V1.0O melhor script para binárias baseada nos padrões de martelo e estrela cadente (com backtest)
Gap Detector (Body and Candle)Finds/Detects gaps between candles and candle bodies for any chart/timeframe with O(n+delta) performance.
Candle Gaps (between wicks) act as strong support or resistance. They are drawn as solid boxes.
Body Gaps (ignores wicks) act as mild support or resistance. They are depicted with lines.
Adjust the settings for candle/body gap width, smaller the time frame, smaller the gap.
Adjust max historical bars to fine tune performance on your system/setup. The more historical bars the script scans, more time required to load the chart. At times based on system configuration, TradingView may timeout the script due to too many bars. Reducing the max bars helps in this scenario.
This is a revamped version of "Body Gap Detector".
Happy charting !
MEMA X-OL9+A. 5, 10, 20, 50 ema's
B. When the 10 goes below the 20 it has shades of red between the 10 and 20.
C. When there is a downward crossover, There will be a Red arrow pointing down.
D. When the 10 is moving closer (upward) towards the 20 it has orange shading. I use this to catch 10 over 20 crossovers.
E. When there is a crossover 10 over 20 it will shade green and have a gold arrow pointing upward. A little redundant, because you'll see the crossover from the shading.
F. Finally there will be smaller blue arrows that represent when there is a close of a candle, if it is lower than the prior candle.
All customizable and defaults should work.
DodgyDD IndicatorIFVG setup indicator. I have not added support for IFVG with major liquidity sweep. The idea is if the price breaks previous swing and the quickly retract forming IFVG it will notify
Advanced Crypto Trading Dashboard📊 Advanced Crypto Trading Dashboard
🎯 FULL DESCRIPTION FOR TRADINGVIEW POST:
🚀 WHAT IS THIS DASHBOARD?
This is an advanced multi-timeframe technical analysis dashboard designed specifically for cryptocurrency trading. Unlike basic indicators, this script combines 8 essential metrics into a single visual table, providing a 360º market overview across 4 simultaneous timeframes.
📈 ANALYZED TIMEFRAMES:
- 15M: For scalping and precise entries
- 1H: For short-term swing trades
- 4H: For intermediate analysis and confirmations
- 1D: For macro view and main trend
🎯 ADVANCED METRICS EXPLAINED:
1. 📊 MOMENTUM
- Calculation: Combines RSI (40%) + MACD (30%) + Volume (30%)
- Ratings: Bullish | Neutral ↗ | Neutral ↘ | Bearish
- Use: Identifies the strength of the current movement
2. 📈 TREND
- Calculation: Alignment of EMAs (8, 21, 55) + ADX for strength
- Signals: Strong ↗ | Strong ↘ | Trending | Ranging
- Use: Confirms trend direction and intensity
3. 💰 MONEY FLOW
- Calculation: Money Flow Index (MFI) - advanced RSI with volume
- States: Bullish | Bearish | Overbought | Oversold
- Use: Detects real buying/selling pressure (not just candle color)
4. 🎯 RSI
- Calculation: Traditional 14-period RSI
- Zones: > 70 (Overbought) | < 30 (Oversold) | Neutral
- Use: Identifies price extremes and opportunities
5. ⚡ VOLATILITY
- Calculation: ATR in percentage + state classification
- States: High | Medium | Low + exact %
- Use: Assesses risk and movement potential
6. 🔔 BB SIGNAL
- Calculation: Price position in Bollinger Bands
- Signals: Overbought | Oversold | Neutral
- Use: Confirms extremes and reversal points
7. 🎲 SCORE
- Calculation: Composite score from 0-100 based on all indicators
- Colors: Green (>75) | Yellow (40-75) | Red (<40)
- Use: Quick overall assessment of asset strength
🎨 VISUAL FEATURES:
🌈 SMART COLOR SYSTEM:
- Green: Bullish signals/buy opportunities
- Red: Bearish signals/sell opportunities
- Yellow: Neutral zones/wait for confirmation
- Blue: Neutral technical information
📍 FULL CUSTOMIZATION:
- Position: Left | Center | Right
- Size: Small | Normal | Large
- Emojis: On/Off for professional settings
- Parameters: All periods adjustable
📋 HOW TO INTERPRET:
✅ STRONG BUY SIGNAL:
- Momentum: Bullish
- Trend: Strong ↗
- Money Flow: Bullish
- RSI: 30-70 (healthy zone)
- Score: >60
❌ STRONG SELL SIGNAL:
- Momentum: Bearish
- Trend: Strong ↘
- Money Flow: Bearish
- RSI: >70 or <30 (extremes)
- Score: <40
⚠️ CAUTION ZONE:
- Conflicting signals across timeframes
- Money Flow vs. Trend divergence
- RSI at extremes with average Score
💡 USAGE STRATEGIES:
🎯 SCALPING (15M-1H):
- Check alignment between 15M and 1H
- Enter when both show the same signal
- Use Stop Loss based on volatility
📈 SWING TRADING (1H-4H):
- Confirm trend on 4H
- Enter on pullbacks in 1H
- Target based on overall Score
🏦 POSITION TRADING (4H-1D):
- Focus on 1D analysis
- Use 4H for entry timing
- Hold position until Score reverses
🔧 RECOMMENDED SETTINGS:
👨💼 FOR PROFESSIONAL TRADERS:
- Position: Center
- Size: Normal
- Emojis: Off
- Chart Timeframe: 1H
🎮 FOR BEGINNERS:
- Position: Right
- Size: Large
- Emojis: On
- Chart Timeframe: 4H
⚡ ADVANTAGES OVER OTHER DASHBOARDS:
✅ Precise Calculations: Real MFI vs. "fake buyer volume"
✅ Multi-Timeframe: 4 simultaneous analyses
✅ Composite Score: Overall view in one number
✅ Intuitive Visuals: Clear colors and symbols
✅ Fully Customizable: Adapts to any setup
✅ Zero Repaint: Reliable and stable data
✅ Optimized Performance: Doesn’t lag the chart
🎓 PRACTICAL EXAMPLE:
Asset: BTCUSDT | Timeframe: 1H
| TF | Momentum | Trend | Money Flow | RSI | Score |
|------|----------|------------|------------|-----|-------|
| 15M | Bullish | Strong ↗ | Bullish | 65 | 78 |
| 1H | Neutral↗ | Strong ↗ | Bullish | 58 | 68 |
| 4H | Neutral↘ | Trending | Bearish | 45 | 52 |
| 1D | Bearish | Strong ↘ | Bearish | 35 | 32 |
📊 Interpretation:
- Short-term: Bullish (15M-1H aligned)
- Mid-term: Conflict (4H neutral)
- Long-term: Bearish (1D negative)
- Strategy: Short-term bullish trade with tight stop
🚨 IMPORTANT NOTES:
- This indicator is a support tool, not an automated system
- Always combine with traditional chart analysis
- Test in paper trading before using real money
- Always manage risk with appropriate stop loss
- Not a holy grail - no indicator is 100% accurate
📞 SUPPORT AND FEEDBACK:
Leave your rating and comments! Your feedback helps continuously improve this tool.