Dynamische Open/Close Levels mit Historie🎯 Key Features
This indicator provides clean, configurable horizontal lines showing the Open and Close prices of a higher chosen timeframe (e.g., the last 5-minute candle), serving as dynamic support and resistance levels.
Unlike traditional indicators that draw messy "steps" across your entire chart, this tool is designed for clarity and precise control.
Controlled History: Easily define how many of the last completed periods (e.g., 5-minute blocks) should remain visible on the chart. Set to 0 for only the current, active levels.
No Stepladder Effect: Uses advanced drawing methods (line.new and object management) to ensure the historical levels remain static and do not clutter your chart history.
Dynamic Labels: The labels (e.g., "Open (5)") automatically adjust to show the timeframe you configured in the indicator settings, eliminating confusion when switching timeframes.
Customizable: Full control over colors, line length, and label positioning/size.
💡 Ideal Use Case
Perfect for scalpers and day traders operating on lower timeframes (1m, 3m) who want to quickly visualize and respect crucial price action levels from a higher context (e.g., 5m, 15m, 1h).
Indikatoren und Strategien
Lead/Lag Correlation (Quant Lab)How to use it? (Briefly)
• otherSymbol: The asset you think could be the leader
• Example: If you are on a BTC chart → BINANCE:ETHUSDT, TOTAL3, USDT.D etc.
• lagBars:
• If you say 5: You are looking to see if there is a correlation between the movement of the other instrument 5 bars ago and your current movement. • In other words, is the other one leading?
• corr (green/red line):
• Close to +1 → strong positive correlation
• Close to -1 → strong negative correlation
• Close to 0 → no correlation
Lead/Lag interpretation:
• If the correlation is high for a specific lagBars (e.g., 0.7+):
➜ The otherSymbol you chose could be a strong "leader" for your current chart. In other words, its movement 5 bars ago is now explaining yours.
Bar Number IndicatorBar Number Indicator
This Pine Script indicator is designed to help intraday traders by automatically numbering candlesticks within a user-defined trading session. This is particularly useful for strategies that rely on specific bar counts (e.g., tracking the 1st, 18th, or 81st bar of the day).
Key Features:
Session-Based Counting: Automatically resets the count at the start of each new session (default 09:30 - 16:00).
Timezone Flexibility: Includes a dropdown to select your specific trading timezone (e.g., America/New_York), ensuring accurate session start times regardless of your local time or the exchange's default setting.
Smart Display Modes: Choose to show "All" numbers, or filter for "Odd" / "Even" numbers to keep your chart clean.
Custom Positioning: Easily place the numbers Above or Below the candlesticks.
Minimalist Design: Numbers are displayed as floating text without distracting background bubbles.
Rolling Skewness & Kurtosis (Quant Lab)🔹 Skewness (Asymmetric Risk)
• Skew > 0 (green) → Right tail heavier:
• More frequent positive extreme movements
• Higher probability of pump/sharp rally
• Skew < 0 (red) → Left tail heavier:
• Higher risk of crash, dump, liquidation
• Skew ≈ 0 → Distribution is symmetrical, neither right nor left side is dominant
🔹 Excess Kurtosis (Intensity of Extreme Movements)
• Kurt > 0 → Fat tails:
• More extreme movements compared to a normal distribution
• Increased risk of unexpected large spikes, flash moves
• Kurt < 0 → Thin tail:
• More “calm” distribution, fewer extreme movements
This pair tells you:
“Which direction could this instrument explode in right now?
and has the intensity of extreme movements increased?”
ORB Strategy + Backtesting (fixed timestamp) - Lines Adjusted⚡ ORB Strategy + Backtesting (Pine Script v5)
This script implements a complete Opening Range Breakout (ORB) strategy, featuring built-in backtesting, advanced TP/SL visualization, full style customization, and a performance dashboard. It is designed for traders who want to clearly evaluate breakout performance directly on the chart.
🕑 ORB Window Configuration
🔹 Session selection: choose between Market Timezone or Custom Session.
🔹 Timezone support: configurable from UTC-8 to UTC+12.
🔹 Daily limit: option to allow only one trade per day.
🔹 Risk/Reward (RR) settings:
Configurable TP1, TP2, and TP3 levels.
Stop Loss calculated dynamically from the ORB range.
📊 Backtesting Engine
🔹 Interactive dashboard showing trades, wins, losses, and win rate.
🔹 Adjustable partial exits for each TP (TP1, TP2, TP3).
🔹 Automatic calculation of percentage-based profit and loss.
🔹 Tracks total trades, total profit, and average profit per trade.
🎨 Visual Customization
🔹 Fully customizable colors:
ORB high/low lines and range fill.
Buy/Sell entry labels.
TP and SL lines with background zones.
🔹 Line style and thickness options (solid, dotted, dashed).
🔹 Visibility controls for each TP/SL level.
🔹 Clear profit and loss zones drawn directly on the chart.
🚀 Trading Logic
🔹 LONG entries: triggered when price breaks above the ORB high.
🔹 SHORT entries: triggered when price breaks below the ORB low.
🔹 Automatic calculation of Stop Loss and TP1, TP2, TP3 based on ORB range and RR.
🔹 Customizable BUY / SELL labels displayed at entry.
✅ TP / SL Detection
🔹 Real-time detection of TP1, TP2, TP3, and SL hits.
🔹 Prevents double counting of the same level.
🔹 Extended TP/SL lines with shaded zones for better clarity.
📈 Backtesting Dashboard
🔹 Displayed in the top-right corner of the chart.
🔹 Shows:
Total trades
Wins / Losses
Win rate (%)
Total profit (%)
Average profit per trade
🔹 Fully customizable panel color.
✨ Summary
This script combines:
Opening Range detection
Breakout trading logic with advanced risk management
Professional-grade visualizations
Integrated historical performance tracking
High customization for sessions, styles, and colors
💡 Ideal for traders who want to trade ORB setups with clarity, structure, and measurable results.
RSI+Breadth Multi-Factor# RSI+ Breadth Multi-Factor Indicator
**Multi-factor scoring system for US market timing | 美股多因子择时评分系统**
[! (img.shields.io)](www.tradingview.com)
[! (img.shields.io)](www.tradingview.com)
[! (img.shields.io)](LICENSE)
---
## Overview | 概述
A quantitative indicator that combines **RSI**, **market breadth** (% above 20/50-day MA), and **up/down volume ratio** to generate actionable buy/sell signals for SPY, QQQ, and IWM.
这是一个结合 **RSI**、**市场广度**(站上20/50日均线比例)和 **涨跌成交量比** 的量化指标,为 SPY、QQQ 和 IWM 生成可操作的买卖信号。
---
## Features | 功能特点
| Feature | 功能 |
|---------|------|
| 🎯 Multi-factor scoring (-10 to +10) | 多因子评分系统 (-10 到 +10) |
| 📊 RSI + Breadth + Volume integration | RSI + 广度 + 成交量三重验证 |
| 🔀 Three markets: SPY, QQQ, IWM | 三大市场:SPY、QQQ、IWM |
| 🔥 Cross-market resonance detection | 跨市场共振信号检测 |
| 📈 Trend filter (MA-based) | 趋势过滤(均线判断) |
| ⏰ Auto-adapts to intraday timeframes | 自动适配日内时间周期 |
| 🎚️ Three modes: Aggressive/Standard/Conservative | 三种模式:激进/标准/保守 |
---
## Signal Reference | 信号说明
| Score | Emoji | Signal | 中文 | Action |
|:-----:|:-----:|--------|:----:|--------|
| ≥ 6 | 🚀 | **PANIC LOW** | 恐慌低点 | Strong buy 强烈买入 |
| ≥ 4 | 📈 | **BUY ZONE** | 低吸区 | Accumulate 分批建仓 |
| -3~3 | - | **HOLD** | 持有 | Hold position 持仓观望 |
| ≤ -4↑ | ⭐ | **ELEVATED** | 高估 | Hold cautious 持有但谨慎 |
| ≤ -4↓ | ⚡ | **CAUTION** | 观望 | Take profit 止盈 |
| ≤ -6↓ | ⚠️ | **REDUCE** | 减仓 | Reduce position 减少仓位 |
> **↑ = Uptrend** (price > MA) | **↓ = Downtrend** (price < MA)
### Resonance Signals | 共振信号
| Emoji | Signal | Description |
|:-----:|--------|-------------|
| 🔥 | Resonance Buy | Multiple markets in buy zone 多市场同时低吸 |
| ❄️ | Resonance Risk | Multiple markets in risk zone 多市场同时高估 |
---
## Scoring Logic | 评分逻辑
### Factors | 因子
| Factor | Weight | Buy Score | Sell Score |
|--------|--------|-----------|------------|
| **RSI** | 1x | RSI < 30 → +2, < 40 → +1 | RSI > 75 → -2, > 65 → -1 |
| **FI (50D MA%)** | Bottom focus | < 25% → +3, < 35% → +2 | > 85% → -2, > 78% → -1 |
| **TW (20D MA%)** | Top focus | < 30% → +1 | > 82% → -3, > 72% → -2 |
| **Volume Ratio** | 1x | UVOL/DVOL < 0.5 → +2 | > 2.5 → -2 |
### Breadth Symbols | 广度数据
| Market | TW Symbol | FI Symbol | Volume |
|--------|-----------|-----------|--------|
| SPY (S&P 500) | INDEX:S5TW | INDEX:S5FI | USI:UVOL/DVOL |
| QQQ (NASDAQ) | INDEX:NCTW | INDEX:NCFI | USI:UVOLQ/DVOLQ |
| IWM (Russell 2000) | INDEX:R2TW | INDEX:R2FI | USI:UVOL/DVOL |
---
## Settings | 设置说明
### Mode | 模式
- **Aggressive**: Lower thresholds, shorter cooldown (5 bars)
- **Standard**: Balanced defaults (10 bar cooldown)
- **Conservative**: Higher thresholds, longer cooldown (15 bars)
### Key Parameters | 关键参数
| Parameter | Default | Description |
|-----------|---------|-------------|
| RSI Length | 14 | RSI calculation period |
| Trend MA Length | 10 | MA for trend filter |
| Cooldown Bars | 10 | Min bars between same signals |
| Resonance Window | 3 | Bars to check for multi-market agreement |
| Min Markets | 2 | # of markets needed for resonance |
---
## Usage | 使用方法
### Installation | 安装
1. Copy the indicator code
2. In TradingView: **Pine Editor** → **New** → Paste code → **Add to Chart**
### Recommended Setup | 推荐设置
- **Timeframe**: Daily (D) for best accuracy | 推荐日线图
- **Markets**: Apply on SPY, QQQ, or IWM | 应用于SPY/QQQ/IWM
- **Mode**: Start with "Standard" | 建议从"标准"模式开始
### Intraday Mode | 日内模式
The indicator automatically detects intraday timeframes and adjusts:
- Uses only RSI + Volume factors (TW/FI are daily-only data)
- Lowers signal thresholds accordingly
指标会自动检测日内周期并调整:
- 仅使用 RSI + 成交量因子(TW/FI 仅有日线数据)
- 相应降低信号触发阈值
---
## Dashboard | 仪表盘
Displays real-time factor breakdown:
```
┌────────┬───────┬────────┐
│ Factor │ Score │ Weight │
├────────┼───────┼────────┤
│ RSI │ 1.0 │ 1x │
│ FI(50D)│ 2.0 │ Bottom │
│ TW(20D)│ -1.0 │ Top │
│ Vol │ 1.0 │ 1x │
│ Trend │ ↑ │ 10MA │
├────────┼───────┼────────┤
│ Total │ 3.0 │ HOLD │
└────────┴───────┴────────┘
```
---
## Alerts | 警报
Available alerts for each market (SPY/QQQ/IWM):
- Panic Low / Buy Zone (entry signals)
- Reduce / Caution (exit signals)
- Resonance Buy / Risk (cross-market confirmation)
每个市场(SPY/QQQ/IWM)可设置以下警报:
- 恐慌低点 / 低吸区(入场信号)
- 减仓 / 观望(出场信号)
- 共振买入 / 风险(跨市场确认)
---
## Trend Filter | 趋势过滤
**Key feature**: Risk signals (CAUTION/REDUCE) only trigger when **price is below the trend MA**.
When price is above MA (uptrend), the indicator shows **ELEVATED** ⭐ instead, preventing premature exits during strong rallies.
**核心功能**:风险信号(观望/减仓)仅在 **价格跌破趋势均线** 时触发。
当价格在均线之上(上升趋势)时,指标显示 **高估** ⭐,避免在强势上涨中过早离场。
---
## Disclaimer | 免责声明
This indicator is for **educational and informational purposes only**. It is not financial advice. Past performance does not guarantee future results. Always do your own research and consider your risk tolerance before trading.
本指标仅供 **教育和参考用途**,不构成投资建议。历史表现不代表未来收益。交易前请自行研究并考虑风险承受能力。
---
## License | 许可
MIT License - Free to use and modify with attribution.
MIT 许可证 - 可自由使用和修改,请注明出处。
---
## Author | 作者
Built with ❤️ for the trading community.
为交易社区精心打造 ❤️
MACD Trend Count ScoreThis indicator aims to confirm trends in an asset's price. This confirmation is achieved by counting the MACD bars in a calculation using the chosen timeframe. Positive and negative bars are considered in the calculation of the strength index, which indicates the current trend of that asset.
SuperTrend Long/Short Signals With Fibonacci“By using the updated version of the previously published indicator with a Fibonacci extension, you can obtain multiple take-profit levels and make profitable trades.
Wishing you plenty of profits.
Fibonacci Fibonacci automatic drawing - Last 144 barFibonacci automatic drawing:
It automatically plots Fibonacci based on the last 144 bars.
According to the drawing rules, it calculates itself from bottom to top and from top to bottom.
This will answer the most challenging questions about drawing the right thing.
If 144 bar is not reached, it draws using manual input.
This will be a useful and practical perspective.
This is for those who want to see the most valuable Fibonacci values on a chart.
XAUUSD Levels (Sultan Plan)This indicator is a Monday trade-plan overlay for XAUUSD. It automatically marks your pre-defined Buy zones, Sell zone (scalp only), and the Invalidation level directly on the chart so you do not trade in the middle of consolidation.
It also shows EMA 50/200 for trend context and an RSI readout + mini dashboard (Bias, Confidence, current price zone, and invalidation) to keep execution disciplined.
The purpose is simple: wait for price to reach a zone, confirm reaction/rejection, then execute with risk management (TP1 → break-even, then trail).
O.R.B. New York (Opening Range)- Creates open range at New York Open (9:30am - 9:45am)
- Only shows most recent opening range for New York session (prevents clutter)
- Asset Classes: Micro Gold, Micro Silver, Micro ES, Micro NQ.
Unsurpassed Close LevelsThis indicator identifies and visually highlights previous candle close prices that have not yet been surpassed by any subsequent higher high — creating dynamic horizontal resistance levels based purely on closing prices.
How it works:
For every confirmed candle, a dashed horizontal ray is drawn from its close price extending to the right.
The ray remains visible as long as no future candle's high reaches or exceeds that previous close level.
As soon as price makes a new high that touches or surpasses the level, the ray is automatically removed.
Duplicate levels (exact same close price already active) are skipped to keep the chart clean.
A built-in limit of 50 active levels prevents overload on very long timeframes.
Use cases:
Spot potential resistance zones formed by previous closes that price has failed to reclaim on the upside.
Helpful in downtrends or ranging markets to visualize "overhead supply" levels where sellers previously stepped in at the close.
Great complement to traditional swing highs or supply/demand zones — focuses exclusively on close-based resistance.
Works on any timeframe and any instrument.
Visuals:
Dashed red horizontal rays extending right from unsurpassed closes.
Clean and lightweight — lines disappear automatically when invalidated.
Simple, effective, and fully automatic. No inputs required.
Feel free to customize the color, style, or max levels count in the code if desired.
SuperTrend Long/Short Signals“Provides trend-based long and short signals. With regular use while adhering to the entry, stop-loss, and take-profit levels, profits can be achieved.”
Multi-TF Volume Delta Confluencepure volume-delta momentum/participation tool. It computes a normalized (z-score style) volume delta oscillator (zΔ) on your chart and compares it to a higher-timeframe “bias” zΔ. When both timeframes agree, the histogram changes color and the script prints clear entry/exit markers.
Core concepts
zΔ Chart (histogram): fast participation on your current chart.
zΔ Bias (line): higher timeframe control / directional filter.
Confluence: when chart + bias are both bullish or both bearish.
Visual language
Teal histogram: bullish confluence (bias bullish + chart bullish)
Red histogram: bearish confluence (bias bearish + chart bearish)
Gray histogram: mixed/no confluence (avoid or reduce size)
Optional mismatch shading highlights disagreement between timeframes.
Signals (how it triggers)
Entries
0-Cross Entry (optional): triggers when zΔ crosses the zero line and the bias agrees.
Confluence-Edge Entry (optional): triggers the moment confluence turns ON (handles “either order” alignment).
Same-bar flip (optional): allows an exit + new entry on the same bar when flow reverses.
Arming (optional): if a valid trigger happens while you’re in a trade, it can “arm” the next entry to avoid missed flips.
Exits
Instant Flip: exit on the opposite 0-cross.
Confirm Flip: exit only after N confirming bars in the opposite direction (reduces chop).
Optional exit on bias flip if you want faster protection when higher timeframe control reverses.
Optional “No-Trade” filter
A simple quality gate: if |zΔ| is below a threshold, the script can mark conditions as NO-TRADE to reduce low-participation chop.
Precision Trend ScalpingThis indicator is used specifically for heiken ashi candles. It indicates a reversal signal and only appears when a high volume doji candle forms and should develop in real time.
Low Volume Pullback DetectorThis script incorporates the logic of Volume Price Analysis (VPA), identifying potential trend continuations by detecting pullbacks with decreasing volume.
###**Features:**1. **Trend Filtering:** Uses a 50-period EMA to ensure trades align with the dominant market direction.
2. **Structure Identification:** Detects recent highs and lows to confirm that price action is indeed a pullback within a trend.
3. **Volume Analysis:** Checks if the volume during the pullback is below the 20-period average, signaling a lack of conviction from counter-trend traders.
4. **Signal Generation:** Triggers a "Buy" or "Sell" signal when price breaks out of the pullback range, confirming momentum is returning in the direction of the trend.
5. **User Guide:** Detailed comments explaining the strategy, setup, trade execution, and best markets are included directly within the script for easy reference.
###**How to Use:*** **Setup:** Apply the script to a chart (works best on Stocks and Futures).
* **Identify Trend:** Ensure price is above (for Buy) or below (for Sell) the gray 50 EMA line.
* **Wait for Signal:** Look for the **"VOL DRY"** label. This appears when a low-volume pullback is followed by a breakout candle.
* **Execution:** Enter on the close of the signal candle. Set your Stop Loss below/above the pullback swing and target the previous structural high/low.
Smart WhaleOverview The Smart Whale Breakout System is a pure momentum strategy designed for Swing Traders who want to capture high-probability breakouts while managing risk with a mechanical trailing stop.
Unlike indicators that try to guess "bottoms," this system follows the "Smart Money" approach: buying strength when institutional volume enters, and riding the trend until the momentum breaks.
How it Works
1. The Entry (The Hunter) The system identifies a valid BREAKOUT signal only when four specific conditions align:
Trend Filter: Price must be above the 150 SMA. We only trade with the long-term trend.
Momentum: RSI > 50. Ensuring bulls are in control.
Volume Spike (Whale Activity): Current volume must be significantly higher than the average (Default: 1.5x). This filters out weak retail moves.
Price Action: A bullish candle closing higher than it opened.
2. The Exit (The Manager) Once in a trade, the system activates a dynamic Trailing Stop line. You never have to guess when to sell. You can choose between two exit logic modes in the settings:
ATR Trailing (Default): Adapts to volatility. The stop moves up based on a multiple of the Average True Range (ATR). Great for volatile stocks (e.g., TSLA, NVDA).
Percent Trailing: A fixed percentage drop from the highest high. (e.g., "Sell if price drops 10% from peak").
3. The Context (Optional Filter)
Squeeze Filter: Includes a built-in Bollinger/Keltner squeeze detection. If enabled in settings, the system will only signal a buy if the price recently broke out of a consolidation (squeeze). Default is OFF to catch all momentum moves.
Key Features
NO Repainting: Signals are confirmed at candle close.
Visual Risk Management: A Red Trailing Stop line clearly shows where your invalidation point is.
Fully Customizable: Adjust the Volume multiplier, ATR sensitivity, or Percentage drop to fit your asset class (Crypto/Stocks/Forex).
Clean Visuals: Only colors the Breakout and Sell candles to keep your chart clean.
Settings Guide
Trend SMA Length: Define the long-term trend baseline (Default: 150).
Volume Spike (xAvg): How much volume is needed to trigger a buy? (1.5 = 150% of average).
Exit Method: Choose between "ATR Trailing" or "Percent Trailing".
ATR Multiplier: Tighter stop (2.0) vs Looser stop (3.0).
Require Squeeze?: Check this to filter for breakouts that only happen after a consolidation period.
Disclaimer This tool is for educational purposes only. Always use proper risk management.
JAM ORB Algo⚡ ORB Strategy + Backtesting (Pine Script v5)
This script implements a complete Opening Range Breakout (ORB) strategy, featuring built-in backtesting, advanced TP/SL visualization, full style customization, and a performance dashboard. It is designed for traders who want to clearly evaluate breakout performance directly on the chart.
🕑 ORB Window Configuration
🔹 Session selection: choose between Market Timezone or Custom Session.
🔹 Timezone support: configurable from UTC-8 to UTC+12.
🔹 Daily limit: option to allow only one trade per day.
🔹 Risk/Reward (RR) settings:
Configurable TP1, TP2, and TP3 levels.
Stop Loss calculated dynamically from the ORB range.
📊 Backtesting Engine
🔹 Interactive dashboard showing trades, wins, losses, and win rate.
🔹 Adjustable partial exits for each TP (TP1, TP2, TP3).
🔹 Automatic calculation of percentage-based profit and loss.
🔹 Tracks total trades, total profit, and average profit per trade.
🎨 Visual Customization
🔹 Fully customizable colors:
ORB high/low lines and range fill.
Buy/Sell entry labels.
TP and SL lines with background zones.
🔹 Line style and thickness options (solid, dotted, dashed).
🔹 Visibility controls for each TP/SL level.
🔹 Clear profit and loss zones drawn directly on the chart.
🚀 Trading Logic
🔹 LONG entries: triggered when price breaks above the ORB high.
🔹 SHORT entries: triggered when price breaks below the ORB low.
🔹 Automatic calculation of Stop Loss and TP1, TP2, TP3 based on ORB range and RR.
🔹 Customizable BUY / SELL labels displayed at entry.
✅ TP / SL Detection
🔹 Real-time detection of TP1, TP2, TP3, and SL hits.
🔹 Prevents double counting of the same level.
🔹 Extended TP/SL lines with shaded zones for better clarity.
📈 Backtesting Dashboard
🔹 Displayed in the top-right corner of the chart.
🔹 Shows:
Total trades
Wins / Losses
Win rate (%)
Total profit (%)
Average profit per trade
🔹 Fully customizable panel color.
✨ Summary
This script combines:
Opening Range detection
Breakout trading logic with advanced risk management
Professional-grade visualizations
Integrated historical performance tracking
High customization for sessions, styles, and colors
💡 Ideal for traders who want to trade ORB setups with clarity, structure, and measurable results.
MNQ DP Levels and 1m high frequency HP+MP trading signalsidea to trade off QQQ DPs converted to NQ (dont ask me :) )on 1m chart focusing only on MP,HP triggers and scaling in down to a downside DP as an exit.
Disclaimer: This tool is for educational purposes only and does not constitute financial advice. Past performance does not guarantee future results.
Pair Creation🙏🏻 The one and only pair construction tech you need, unlike others:
Applies one consistent operation to all the data features (not only prices). Then, the script outputs these, so you can apply other calculations on these outputs.
calculates a very fast and native volatility based hedge ratio, that also takes into account point value (think SPY vs ES) so you can easily use it in position sizing
Has built-in forward pricing aka cost of carry model , so you can de-drift pairs from cost of carry, discover spot price of oil based on futures, and ofc find arbitrage opportunities
Also allows to make a pair as a product of 2 series, useful for triangular arbitrage
This script can make a pair in 2 ways:
Ratio, by dividing leg 1 by leg 2
Product, by multiplying leg 1 by leg 2
The real mathematically right way to construct a pair is a ratio/product (Spreads are in fact = 2 legged portfolio, but I ain't told ya that ok). Why? Because a pair of 2 entities has a mathematically unique beauty, it allows direct comparisons and relationship analysis, smth you can't do directly with 3 and more components.
Multiplication (think inversions like (EURUSD -> USDEUR), and use cases for triangular arbitrage) is useful sometimes too.
...
Quickguide:
First, "Legs" are pair components: make a pair of related assets. Don’t be guided exclusively by clustering, cointegrations, mutual information etc. Common sense and exogenous info can easily made them all Forward pricing model: is useful when u work with spot vs futures pairs. Otherwise: put financing, storage and yield all on zeros, this way u will turn it off and have a pure ratio/product of 2 legs.
Look at the 2 numbers on the script’s status line: the first one would always be 1), and the second one is a variable.
First number (always 1) is multiplier for your position size on leg 1
The second number is the multiplier for your position size on leg 2 in the opposite direction.
If both legs are related, trading your sizes with these multipliers makes you do statistical arbitrage -> trading ~ volatility in risk free mode, while the relationship between the assets is still in place.
Also guys srsly, nobody ‘ever’ made a universal law that somewhy somehow for whatever secret conspiracy reason one shall only trade pairs in mean reverting style xd. You can do whatever you want:
Tilt hedge ratio significantly based on relative strength of legs
Trade the pair in momentum style
Ignore hedge ratio all together
And more and more, the limit is your imagination, e.g.:
Anticipate hedge ratio changes based on exogenous info and act accordingly
Scalp a pair just like any other asset
Make a pair out of 2 pairs
Like I mean it, whatever you desire
About forward pricing model:
It’s applied only to leg 2;
Direct: takes spot price and finds out implied futures price
Inverse: takes futures price and finds out implied spot price (try on oil)
Pls read online how to choose parameters, it’s open access reliable info
About the hedge ratio I use:
You prolly noticed the way I prefer to use inferred volumes vs the “real” ones. In pairs it’s especially meaningful, because real volumes lose sense in pair creation. And while volumes are closely tied to volatility, the inferred volumes ‘Are’ volatility irl (and later can be converted to currency space by using point value, allowing direct comparisons symbol vs symbol).
This hedge ratio is a good example of how discovering the real nature of entities beats making 100s of inventions, why domain knowledge and proper feature engineering beats difficult bulky models, neural networks etc. How simple data understanding & operations on it is all you need.
This script simply does this:
Takes inferred volume delta of both assets, makes a ratio, normalizes it by tick sizes and points values of both legs, calculates a typical value of this series.
That’s it, no step 2, we’re done. No Kalman filters, no TLS regression, no vine copulas, or whatever new fancy keywords you can come up with etc.
...
^^ comparing real ES prices vs theoretical ones by forward-pricing model. Financing: 0.04, yield 0.0175
^^ EURUSD, 6E futures with theoretical futures price calculated with interest rate differential 0.02 (4% USD - 2% EUR interest rates)
^^4 different pairs (RTY/ES, YM/ES, NQ/ES, ES/ZN) each with different plot style (pick one you like in script's Style settings)
^^ YM/RTY pair, each plot represents ratio of different features: ratio of prices, ratio of inferred volume deltas, ratio of inferred volumes, ratio of inferred tick counts (also can be turned on/off in Style settings)
...
How can u upgrade it and make a step forward yourself:
On tradingview missing values are automatically fixed by backfilling, and this never becomes a thing until you hit high frequency data. You can do better and use Kalman filter for filling missing values.
Script contains the functions I use everywhere to calculate inferred volume delta, inferred volume, and inferred tick count.
...
∞
Buy Sell Strategy By Sultan Of Multan (Breakout/Retest)This is a comprehensive, all-in-one trading system designed for Forex, Crypto, and Stocks. It combines Smart Money Concepts (SMC), Trend Following, and Volatility Analysis into a single, easy-to-use toolkit.
Whether you are a scalper or a day trader, this indicator adapts to your style by allowing you to switch between Aggressive Breakouts and Conservative Retests.
🔥 Key Features:
1. Dual Entry Modes (New Update)
Breakout Mode: Get instant signals when price breaks market structure with momentum (BOS/CHoCH).
Retest Mode: The script waits for price to break and then pull back to the broken level before signaling. This reduces fake-outs and improves entry precision.
2. Smart Money Concepts (SMC)
Auto Fractals & Structure: Automatically detects BOS (Break of Structure) and CHoCH (Change of Character).
Fair Value Gaps (FVG): Detects 3-bar imbalances and alerts on midline taps.
Order Blocks (OB): Highlights valid bullish and bearish order blocks with trend alignment.
3. Trend & Bias Filters
EMA Stack & VWAP: Signals are only generated when the trend is aligned (Price > EMA200 & VWAP).
Multi-Timeframe Analysis: Optional HTF filter to ensure you are trading with the higher trend.
4. Advanced Confidence System
Score HUD: A smart panel that rates every signal (0-100) based on Volume (OBV), RSI, Liquidity, and Trend strength.
Volume Analysis: Integrated OBV slope and RVOL (Relative Volume) filters to confirm valid moves.
5. Complete Trade Management
ATR-Based TP/SL: Automatically calculates Stop Loss and Take Profit levels based on market volatility.
Unified Alerts: Get a single alert that includes Entry, SL, TP1, TP2, and Trade Analysis (Risk/Reward, Context) for easy automation.
Safe/Risky Panel: A dashboard that tells you if the last signal was "Safe" (high confidence) or "Risky".
🛠 How to Use:
Select Entry Method: Go to settings and choose "Breakout" for fast entries or "Retest" for safer entries.
Check the HUD: Look at the bottom center/right panels. Only take trades when the Score is Green/High and Volume is supportive.
Follow the Trend: The background color and VWAP line indicate the current market bias. Trade in the direction of the trend.
Disclaimer:
This tool is designed to assist your analysis, not to replace it. Always manage your risk and test on a demo account first.
MA 50/150 Status Light לקראת שנת 2026. בודק האם אנחנו נמצאים מעל ממוצע 150 ו 50 האם בין והאם מתחת
במידה ואנחנו מעל אז מצב המניה חזק
במידה ובין אז סימן אזהרה, החלשות המניה
במידה ומתחת אז מניה חלשה
“Heading into 2026, we check whether the price is above the 50-day and 150-day moving averages, between them, or below them.
If the price is above both, the stock is in a strong condition.
If the price is between them, it is a warning sign — the stock is weakening.
If the price is below both, the stock is weak.”
DeMarker (DeM)The DeMarker (DeM) indicator is a momentum oscillator designed to identify overbought and oversold conditions by comparing the most recent price extremes (highs and lows) to those of the previous candle. It moves between 0 and 1 and is especially useful for spotting potential trend reversals, exhaustion, and better-timed entries within larger trends.
How the DeMarker works
The DeMarker focuses on the relationship between today’s highs and lows and those of the previous bar:
• When price is pushing to new highs but not making significantly lower lows, DeM tends to rise toward 1, reflecting buying pressure and potential overbought conditions.
• When price is making lower lows but not significantly higher highs, DeM falls toward 0, reflecting selling pressure and potential oversold conditions.
Internally, the indicator measures the positive difference between the current high and the previous high (up-move strength) and the positive difference between the previous low and the current low (down-move strength). These values are smoothed over a user-defined period and combined into a ratio that keeps the output bounded between 0 and 1, making it easy to interpret visually.
Default settings and parameters
Typical default settings are aimed at providing a balance between responsiveness and noise reduction:
• Length: 14
• Overbought level: 0.7
• Oversold level: 0.3
With these settings, readings above 0.7 suggest that the market may be overheated to the upside, while readings below 0.3 suggest potential exhaustion on the downside. Traders can adjust these parameters depending on their style and the volatility of the asset.
Example configurations
Here are a few practical configurations that can be suggested to users:
• Swing trading setup:
• Length: 14–21
• Overbought: 0.7–0.75
• Oversold: 0.25–0.3
This works well on 4H and daily charts for spotting potential swing highs and lows.
• Short-term intraday setup:
• Length: 7–10
• Overbought: 0.8
• Oversold: 0.2
A shorter length increases sensitivity, better for 5–15 minute charts, but also increases the number of signals.
• Trend-following filter:
• Length: 20–30
• Overbought: 0.65–0.7
• Oversold: 0.3–0.35
This smoother configuration can be used together with moving averages to filter trades in the direction of the main trend.
Basic trading usage
Traders commonly use DeMarker in three main ways:
• Mean-reversion entries:
• Look for DeM below the oversold level (for example, 0.3 or 0.25) while price is approaching a support zone.
• Consider long entries when DeM turns back up and crosses above the oversold level, ideally confirmed by a bullish candle pattern or break of minor resistance.
• Taking profits or trimming positions:
• When DeM moves above the overbought level (for example, 0.7–0.8) near a known resistance level, traders may choose to take partial profits or tighten stops.
• A downward turn from overbought after a strong rally often signals momentum exhaustion.
• Divergence signals:
• Bullish divergence: price makes a lower low while DeM makes a higher low. This can hint at weakening downside momentum and a possible reversal upward.
• Bearish divergence: price makes a higher high while DeM makes a lower high. This can warn of weakening upside momentum before a pullback.
Combining with other tools
DeMarker often performs best as part of a confluence-based approach rather than as a standalone signal generator:
• Combine with trend filters:
• Use a moving average (for example, 50 or 200 EMA) to define trend direction and take DeM oversold entries only in uptrends, or overbought entries only in downtrends.
• Use with support/resistance and price action:
• Prioritize DeM signals that occur near well-defined horizontal levels, trendlines, or supply/demand zones.
• Add volume or volatility tools:
• Strong signals tend to appear when DeM reverses from extreme zones in sync with a volume spike or volatility contraction/expansion.






















