Prior sessions High/Low/MidThis indicator highlights the High, Low, and Midpoint of the most recently completed trading sessions. It helps traders visualize key price levels from the previous session that often act as support, resistance, or reaction zones.
It draws horizontal lines for the high and low of the last completed session, as well as the midpoint, which is calculated as the average of the high and low. These lines extend to the right side of the chart, remaining visible as reference levels throughout the day.
You can independently enable or disable the Tokyo, London, and New York sessions depending on your preferences. Each session has adjustable start and end times, as well as time zone settings, so you can align them accurately with your trading strategy.
This indicator is particularly useful for intraday and swing traders who use session-based levels to define market structure, bias, or areas of interest. Session highs and lows often align with institutional activity and can be key turning points in price action.
Please note that this script is designed to be used only on intraday timeframes such as 1-minute to 4-hour charts. It will not function on daily or higher timeframes.
Chỉ báo và chiến lược
Crosby Ratio | QuantumResearch ⚖️ Crosby Ratio | QuantumResearch
A Heikin-Ashi Smoothed Momentum Oscillator for Trend Strength & Market Rotation
Inspired by the Original Work of Bitcoin Magazine Pro
🔗 www.bitcoinmagazinepro.com
📘 Overview
The Crosby Ratio, as originally conceptualized by Bitcoin Magazine Pro, is a powerful tool used to evaluate the momentum and directional strength of price movement by analyzing the slope of market trends in degrees.
This enhanced implementation by QuantumResearch builds on the original concept with a Pine Script version tailored for trading charts, integrating Heikin-Ashi smoothing, ATR scaling, and customizable visual modes to fit traders' unique styles.
🧠 What Is the Crosby Ratio?
At its core, the Crosby Ratio uses angular measurement to quantify price movement — translating price trend strength into degrees. This approach allows traders to:
📈 Identify when the market is exhibiting strong upward or downward pressure
🚨 Spot overextended or overheated trend conditions
⚖ Filter out short-term noise and focus on macro momentum
🔍 1. Key Innovations by QuantumResearch
✅ Heikin-Ashi Smoothing: Reduces noise and stabilizes price action before computing momentum angles
✅ Custom atan2() Angular Function: Measures the directional angle between smoothed price changes and ATR-based scaling
✅ Dynamic Threshold Bands: Color-coded zones highlight overbought/oversold momentum regions
✅ Fully Customizable Palette: Choose from 8 visual themes with automatic color adaptation
📊 2. Interpretation Guide
Crosby Value Interpretation
> +18° 🚀 Strong bullish trend acceleration
+13° to +18° 📈 Moderate upward momentum
-9° to +13° ⚖ Neutral/transition phase
-15° to -9° 📉 Moderate bearish pressure
< -15° 🛑 Strong bearish acceleration
The indicator also features background shading when values exceed key thresholds, improving visual clarity during trend inflection points.
📌 Ideal Use Cases
🔄 Rotational Momentum Strategies: Spot the strongest assets during rapid shifts
⚡ Breakout Filtering: Confirm whether breakouts have directional strength
🧘 Noise Reduction: Heikin-Ashi smoothing filters chaotic wicks, especially in crypto
📉 Bearish Exhaustion Detection: Quickly identify when bearish momentum might be overdone
🔗 Original Inspiration & Acknowledgment
This indicator draws its core idea and naming convention from the original Crosby Ratio developed and introduced by Bitcoin Magazine Pro in their excellent write-up:
🔗 The Crosby Ratio – Bitcoin Magazine Pro
Their work on quantifying market sentiment via angle-based momentum inspired this script adaptation for TradingView with added visual features, smoothing techniques, and alerts.
⚠️ Disclaimer
This indicator is a momentum oscillator and should be used in conjunction with other confirmation tools. Market dynamics can vary, and no single metric ensures profitable trades. Always apply proper risk management.
Footprint Optimizer [Auto Settings]This indicator shows Footprint Confluence Signals based on delta, bid/ask ratio, volume, and cluster logic. It auto-adjusts based on session (London/US) and timeframe. Optional integration with a Footprint Optimizer tool.
Manual Buy/Sell Price Level Alertsmiple idea once you set the price levels the secript is going to send the alerts to webhock
Pivot detector🧠 Pivot Detector – Multi-condition Reversal Signal with Trend & Time Filters
This indicator is specifically optimized for Bitcoin trading, combining classic reversal patterns with volume, trend, and session filters.
🟢 Long signals:
- RSI crossing up from oversold (RSI < 30)
- MACD histogram crossing above zero
- Price touching the lower Bollinger Band with OBV reversal
- Bullish engulfing pattern + volume spike
🔴 Short signals:
- RSI crossing down from overbought (RSI > 70)
- MACD histogram crossing below zero
- Price touching upper Bollinger Band + OBV failure
- Bearish engulfing pattern + volume spike
⚙️ Additional filters:
- ❌ Signals are blocked during low-volatility range zones (ADX < 20 or narrow standard deviation)
- ✅ Longs only allowed during active hours: 00–02, 07–09, 13–15 UTC
- ✅ Shorts only triggered outside strong uptrend (ADX > 25 with DI+ dominance)
📊 Best used on:
- ✅ Bitcoin / BTCUSDT
- ✅ 15m, 30m, 1H, 4H charts
🎯 Strategy focus:
- Captures short-term reversals in volatile but trendable markets
- Filters out traps and low-quality signals during sideways conditions
- Best used with manual confirmation or as part of a composite system
Alerts are built-in for both long and short triggers.
⚠️ This tool is still in its experimental phase and may require further adjustments as it's tested and improved.
BTC/XAUT Rotational Strategy ✅Relative inverse proportionality for Gold Vs. BTC I used tokenized gold XAUT paired with gold price. The goal of this indicator is assuming that the leader of the crypto world is BTC and dumps or bumps affects severely the alt coins in a direct proportionality basis.
To prevent losses rotating to safer assets as gold in its blockchain form, in a specific moment, could be one of the best options. There is a relative inverse proportionality between Gold and BTC, that occurs in some ratios in particular. The goal of this tool is to detect them and advise us to rotate from one kind of assets to the other. The moist accurate time frame is weekly or monthly. Enjoy the ride
IRUS: % stocks above SMA 50 / 100 / 200
📊 IRUS Breadth Indicators (MOEX Market Breadth)
This script shows market breadth conditions based on the percentage of stocks or sectors trading above selected moving averages (SMA or EMA) with customizable periods (50 / 100 / 200).
There are two modes available:
IRUS Ticker-Based Breadth
Calculates the % of liquid Russian stocks (IRUS group) trading above a selected MA.
Great for detailed breadth analysis based on individual stock participation.
Sector-Based Breadth
Calculates the % of major MOEX sector indices above their MAs.
A clean, high-level view of market strength across sectors.
Use these indicators to assess market health, detect divergences, and filter
Lunar Cycle Tracker - (Moon + 3 Mercury Retrogrades)This script overlays the lunar and Mercury retrograde cycles directly onto your chart, helping traders visualize natural timing intervals that may influence market behavior.
Key Features:
🌑 New Moon & Full Moon Markers:
Vertical lines and labels indicate new and full moon events each month. You can fully customize their colors.
🌗 Last Quarter Moon Fill:
A soft pink background highlights the last quarter moon phase (from 7.4 days after the full moon to the next new moon).
🪐 Three Mercury Retrograde Zones:
Highlight up to three retrograde periods per year with customizable date inputs and background color. Great for spotting potential reversal or volatility windows.
Customization:
Moon event dates and colors
Manual input for Mercury retrograde periods (year, month, day)
Full compatibility with all timeframes (1H, 4H, daily, etc.)
Great for astro-cycle traders, Gann-based analysts, or anyone who respects time symmetry in the markets.
Fully customizable & works across all timeframes.
This tool was created by AngelArt as part of a larger astro-market model using lunar timing and planetary retrogrades for cycle-based market analysis.
Accurate Position Size (with Exchange Offset)live size reading , it reads the price live all you need enter SL , good for momentum
Zig Zag + Fibonacci PROPlots ZigZag structure with optional Fibonacci retracement levels.
Helps identify recent highs/lows and possible support/resistance zones.
Customizable levels and alert on price cross.
Phoenix Master Strategy (PMI)Phoenix Master Strategy (PMI) - Documentation
🧠 Overview
Phoenix Master Strategy (PMI) is a comprehensive Pine Script strategy combining trend detection, buy/sell signals, volatility, sentiment estimation, liquidity zones, and position sizing—all in one powerful package. It supports both visual chart analysis and strategy backtesting.
⚙️ Inputs
Parameter Description
timeframeTrend Timeframe used to determine trend (e.g., "D" for Daily).
showBackground Enables background coloring based on trend direction.
riskPercent Risk percentage per trade.
accountSize Total account size in USD. Used to calculate position size.
📈 Trend Detection - EMA
Uses two EMAs: emaFast (default: 9) and emaSlow (default: 21).
Trend Direction:
Uptrend: Fast EMA > Slow EMA
Downtrend: Fast EMA < Slow EMA
Optional background coloring to visually indicate trend.
💹 Momentum Indicators
RSI (Relative Strength Index)
Custom period (rsiLength) and overbought/oversold thresholds.
Used for momentum filtering.
MACD
Standard MACD (12, 26, 9) applied to selected source.
MACD histogram value used to assess momentum direction.
Stoch RSI
Calculates %K and %D values to detect short-term overbought/oversold areas.
Helps fine-tune signal entries.
☁️ Ichimoku Cloud
Calculates full Ichimoku components: Tenkan, Kijun, Senkou A/B, and Chikou Span.
Trend Inference:
CloudUp: Senkou A > Senkou B → Bullish Cloud
CloudDown: Senkou A < Senkou B → Bearish Cloud
Cloud visuals are included but commented out by default.
📊 Volatility Indicator
Uses ATR (Average True Range) to measure volatility.
Position size is adjusted based on ATR value.
Detects volume explosions if current volume is 2x the 20-period SMA.
📌 Support / Resistance Zones (Pivots)
Automatically plots recent pivot highs and pivot lows for dynamic support/resistance visualization.
🧭 Sentiment & Liquidity Indicators
Sentiment (News Placeholder)
Uses 50-period SMA as a placeholder sentiment indicator.
Above SMA → Bullish Sentiment
Below SMA → Bearish Sentiment
Can be replaced with live news API in future versions.
Liquidity Heatmap
Uses 20-period SMA of volume as a proxy for liquidity concentration.
Displayed using bar-style plots.
🟢🔴 Buy/Sell Signal Logic
Long Signal Conditions:
EMA Trend Up
RSI < 50
MACD Histogram > 0
Stoch RSI %K < 80
Ichimoku Cloud Bullish (CloudUp)
Short Signal Conditions:
EMA Trend Down
RSI > 50
MACD Histogram < 0
Stoch RSI %K > 20
Ichimoku Cloud Bearish (CloudDown)
🚨 Alert Conditions
longSignal → "Phoenix - BUY Signal"
shortSignal → "Phoenix - SELL Signal"
volumeExplode → "Phoenix - Volume Explosion Detected"
These alerts are compatible with TradingView's alert system for notifications.
💼 Position Sizing Calculation
Formula:
plaintext
Kopyala
Düzenle
Position Size = (Account Size × Risk %) / ATR
Adjusts trade size based on volatility and risk tolerance.
Visualized with a fuchsia line on the chart.
🧪 Strategy Execution
Uses Pine Script’s strategy.entry and strategy.close:
Opens long position when longSignal is true.
Opens short position when shortSignal is true.
Closes each position when the opposite signal appears.
📌 Extra Notes
Script uses Pine Script v5 and is optimized for max efficiency (max_lines_count=500).
Multiple market dynamics are integrated:
Trend
Momentum
Volume/Volatility
Sentiment
Liquidity
Risk Management
✅ Suggestions for Improvement
Integrate real news sentiment via APIs (e.g., BloombergHT RSS).
Add Take Profit / Stop Loss / Trailing Stop options.
Enhance visuals using label.new or table.new for clearer alerts.
Adapt position size logic for crypto/futures lot sizing.
Add multi-timeframe confirmation features.
Export strategy results or signals to a Telegram bot or external system.
Relative ATRThis indicator enhances the standard Average True Range (ATR) by providing context about current volatility relative to its recent historical average. It highlights periods where ATR is significantly higher or lower than its own recent norm.
MOEX Sectors: % Above MA 50/100/200 (EMA/SMA)📊 Indicator Name:
MOEX Sector Breadth: % Above MA 50/100/200 (EMA/SMA)
📝 Description:
This indicator tracks market breadth across sector indices of the Moscow Exchange (MOEX). It calculates the percentage of sectors trading above selected moving averages (SMA or EMA) with user-defined periods (50, 100, or 200).
It provides a high-level view of market participation and internal strength, helping to identify broad trends, divergences, and potential reversals.
📦 Tracked MOEX Sector Indices:
mathematica
Copy
Edit
MOEXOG — Oil & Gas
MOEXCH — Chemicals
MOEXMM — Metals & Mining
MOEXTN — Transport
MOEXCN — Consumer
MOEXFN — Financials
MOEXTL — Telecom
MOEXEU — Utilities
MOEXIT — Information Technology
MOEXRE — Real Estate
📈 How to Use:
>50% above MA 200 → Bullish market regime
<50% above MA 200 → Weak breadth, caution advised
>90% above MA 50 → Market may be overbought
<10% above MA 200 → Market oversold, possible bottom
Combine with the IMOEX index to assess participation behind major moves
Use as a trend filter or divergence detector
Stock metrics and valueThis indicator shows:
- the valuation metrics for a stock on a table on top right: PE, EPS, dividend, ROIC, ROE, ROA, EPS growth, FCF growth, Equity growth, revenue Growth
- the fair value and the value with 50% margin of safety as chart lines
The lines will be red when they are above the current price and red when they are below the current price.
The colors on the table will be red when the values are below 10% and green when they are above, that means when everything is green the metrics for the stock are good.
Triple Confirmación Forex (Señales en Tiempo Real)//@version=5
indicator("Triple Confirmación Forex (Señales en Tiempo Real)", overlay=true)
// ==== RSI ====
rsi = ta.rsi(close, 14)
rsi_1m = request.security(syminfo.tickerid, "1", rsi)
rsi_5m = request.security(syminfo.tickerid, "5", rsi)
// ==== Estocástico ====
length = input(14, "Stoch Length")
smoothK = input(1, "%K Smoothing")
smoothD = input(3, "%D Smoothing")
highestHigh = ta.highest(high, length)
lowestLow = ta.lowest(low, length)
k = ta.sma((close - lowestLow) / (highestHigh - lowestLow) * 100, smoothK)
d = ta.sma(k, smoothD)
k_cross_up = ta.crossover(k, d) and k < 20
k_cross_down = ta.crossunder(k, d) and k > 80
// ==== MAs ====
ema45 = ta.ema(close, 45)
ma50 = ta.sma(close, 50)
// ==== Condiciones de Entrada ====
longCondition = rsi_1m < 30 and rsi_5m < 30 and k_cross_up and close > ema45 and close > ma50 and close > open
shortCondition = rsi_1m > 70 and rsi_5m > 70 and k_cross_down and close < ema45 and close < ma50 and close < open
// ==== Flechas de señal ====
plotshape(longCondition, title="Señal Compra", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(shortCondition, title="Señal Venta", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// ==== ALERTAS EN TIEMPO REAL ====
alertcondition(longCondition, title="Alerta de COMPRA", message="¡Señal de COMPRA en {{ticker}}!")
alertcondition(shortCondition, title="Alerta de VENTA", message="¡Señal de VENTA en {{ticker}}!")
// ==== MA Plots ====
plot(ema45, color=color.red, title="EMA 45")
plot(ma50, color=color.green, title="MA 50")
CSCMultiTimeframeToolsLibrary "CSCMultiTimeframeTools"
Calculates instant higher timeframe values for higher timeframe analysis with zero lag.
getAdjustedLookback(current_tf_minutes, higher_tf_minutes, length)
Calculate adjusted lookback period for higher timeframe conversion.
Parameters:
current_tf_minutes (int) : Current chart timeframe in minutes (e.g., 5 for 5m).
higher_tf_minutes (int) : Target higher timeframe in minutes (e.g., 15 for 15m).
length (int) : Base length value (e.g., 14 for RSI/MFI).
Returns: Adjusted lookback period (length × multiplier).
Purpose and Benefits of the TimeframeTools Library
This library is designed to solve a critical pain point for traders who rely on higher timeframe (HTF) indicator values while analyzing lower timeframe (LTF) charts. Traditional methods require waiting for multiple candles to close—for example, to see a 1-hour RSI on a 5-minute chart, you’d need 12 closed candles (5m × 12 = 60m) before the value updates. This lag means missed opportunities, delayed signals, and inefficient decision-making.
Why Traders Need This
Whether you’re scalping (5M/15M) or swing trading (1H/4H), this library bridges the gap between timeframes, giving you HTF context in real time—so you can act faster, with confidence.
How This Library Eliminates the Waiting Game
By dynamically calculating the adjusted lookback period, the library allows:
Real-time HTF values on LTF charts – No waiting for candle closes.
Accurate conversions – A 14-period RSI on a 1-hour chart translates to 168 periods (14 × 12) on a 5-minute chart, ensuring mathematical precision.
Flexible application – Works with common indicators like RSI, MFI, CCI, and moving averages (though confirmations should be done before publishing under your own secondary use).
Key Advantages Over Manual Methods
Speed: Instantly reflects HTF values without waiting for candle resolutions.
Adaptability: Adjusts automatically if the user changes timeframes or lengths.
Consistency: Removes human error in manual period calculations.
Limitations to Note
Not a magic bullet – While it solves the lag issue, traders should still:
Validate signals with price action or additional confirmations.
Be mindful of extreme lookback lengths (e.g., a 200-period daily SMA on a 1-minute chart requires 28,800 periods, which may strain performance).
OI for Miamo (Horizon - Tonsi)Stochastic format style RSI combined with Open interest to get accurate data and to identify divergences.
Features
-Rsi
- Open interest
- Stochastic format
- Divergence/Trend identification
Intended for @real_miamo
Wick Anomaly DetectorWick Anomaly Detector
This script helps identify candles with unusually large wicks compared to their body size — a common sign of price anomalies, false prints, or low-liquidity moves.
🔍 What it does:
Flags candles with upper or lower wicks that exceed a user-defined ratio (default: 3x the body size)
Helps traders spot suspicious spikes or “bad ticks,” especially in pre-market or illiquid stocks
📈 Use it to:
Avoid fake breakouts
Confirm real price action
Clean up your technical analysis
Customize the wick-to-body threshold as needed. Add volume filters or time filters for more precision.
Created for educational purposes — use with proper risk management!
Frans' Bot - StratFrans' Bot Strategy is a trend-following trading system that uses a Hull Moving Average (HMA) and Exponential Moving Average (EMA) to identify entry points for long and short positions. Designed to work in conjunction with Frans' Bot Indicator, it incorporates optional filters such as RSI, Stochastic, and Pivot Points to enhance signal accuracy. The strategy supports customizable profit targets, stop-loss levels, and an optional trailing stop. Traders can enable reversal trades based on proximity to the EMA and choose to close positions when the HMA changes color.
Frans' Bot - IndicatorFrans' Bot Indicator uses a Hull Moving Average (HMA) and Exponential Moving Average (EMA) to generate entry and exit signals. It offers optional filters like RSI, Stochastic, and Pivot Points to refine trade setups. Features include adjustable profit targets, stop-loss levels, and support for reversal trades based on EMA proximity.
Distance from EMA 800 (%)Plots a measure of how far away from 800 EMA the price is in %. It is considered a measure of above 8% to be overbought/oversold, and price must go back to the mean.
Market Open Options Strategytrades directionally whatever first 90 seconds of trading day are for either 10 minutes or a reversal whatever comes first
All-Time, Yearly & Monthly High/LowThis indicator visually tracks and displays:
• All-Time High (ATH) – The highest price the asset has ever reached
• All-Time Low (ATL) – The lowest price the asset has ever reached
• Yearly High/Low – The highest and lowest prices recorded in the current calendar year
• Monthly High/Low – The highest and lowest prices in the current calendar month
It helps traders quickly identify major support/resistance levels and historical price extremes across different timeframes. Level
Color
Updates When
All-Time High
Red
A new highest price ever is reached
All-Time Low
Green
A new lowest price ever is reached
Yearly High
Orange
New yearly high occurs or changes with new year
Yearly Low
Teal
New yearly low occurs or changes with new year
Monthly High
Fuchsia
New monthly high or at the start of each new month
Monthly Low
Navy Blue
New monthly low or at the start of each new month This indicator is especially useful for:
• Swing traders watching monthly or yearly trend zones
• Breakout traders looking to spot price levels where breakouts might occur
• Reversal traders using all-time levels for high-risk reward zones
• Long-term investors gauging historical extremes for entries/exits
Break of Structure - 1:1 RRSTILL IN TESTING PHASE FOLKS!!!! I have created a strategy script in TradingView using the basic TTA tenets. I am unable to figure out lot sizes and it doesn't work as well when I increase the winrate to 1:2 or 1:3. I used Chatgpt and Deepseek to build out a script. Iterated it and it gives me a high number of profitable trades = of course the RR is 1:1 so not getting too excited yet. Backtested for the 2024 on 4H timeframe. It tests well on GBPUSD and USDJPY (60% profitability across 18 trades in the year).
I'm struggling to code the right lot size. It keeps trading small values (my drawdown was approx 0.15% so you can imagine how low the lot size is). I will share the code and some screenshots.