COT total by categoriesWill plot the sum of all positions (total) for selected categories
Configure&select:
-futures/futures+options
-plot sum by num_contracts/percent
-plot sum of all spreads positions across all categories
在脚本中搜索"Futures"
COT disaggregatedCFTC COT data is exported by quandl.com to tradingview
COT@quandl:
www.quandl.com
COT@tradingview
www.tradingview.com
How to use this script:
Select and load CFTC COT data for the commodity ticker in the chart
Will by default take current ticker, or allow to avvverride it with another
Traders' categories are those for commodities , not financial futs
Select And Configure :
-categories to be plotted
-Futures/Futures+Options
-by num_contracts/percent
-plot "Tot Spreads %" selection (only when also "Show as % of OI" selected)
will plot the total of spreads positions across all categories
This script supercedes my other "MY_ CFTC GC/SI/CL (Disaggregated)" script
Just changed name
Open Interest:CME e-o-d vs CFTC e-o-wCFTC only publishes total OI on fridays, related to last Tuesday.
But what happened since last Tuesday?
CME Vol & Open Interest data is recorded&exported daily by quandl.com to tradingview
via the che CHRIS/CME datasets
www.quandl.com
Eg. Nat Gas next outstanding cntract n. 20, field n. 7(OI)
@quandl.com:
www.quandl.com
is exported @tradingview:
www.tradingview.com
Every outstanding contract's OI & vol is exported (black column), but not the total (yellow line):
tiny.cc
This script sums up all the existing outstanding contract's OI for the future (the black column), so one can have an idea of the total OI for the day (Yellow line).
As numer of outstanding contracts varies from future to future,Eg:
E-mini (ES) has 4 contracts, Gold(GC) 16 cntrcts, NatGas(NG) has 43, WTI(CL) has 38 etc
the scrips tries to guess how many exist for it and sums them up, to have the total OI for tha day
Number ofoutstanding contracts exported by quandl.com to tradingview is taken from
s3.amazonaws.com
There are 2 params you can enter on the script:
* override the ticket symbol on the chart ,if script cannot guessit or you need a different one
* enter the "preliminary" OI that is published by CME early the next day, butb not yet exported by quandl to tradingview
This script is Open so anyone can copy and modifyit for its use.
Please post comments and ideas if you find it useful
I try to keep a log of my work here:
Colored Volume Bars All Markets: Combining Volume SourcesUsing volume in Forex is potentially misleading as we are only provided the broker volume or futures exchange volume for the currency or commodity in a decentralised market. This code combines the volumes from FXCM, Onanda and futures for the instrument being studied. The combination of the volumes could improve the reliability of the volume being considered. Using this approach other volume indicators can also be improved.
Bitmex Bitcoin BasisInspired by the Ugly Old Goat's articles about the Bitcoin basis - medium.com
with the help of @Plumptoiletduck this indicator was created to show the Bitmex futures premium or discount.
Note you need to add in the new futures ticker every 3 months.
ACM22 not repaintedДелал данный скрипт для FORTS.Идеально подойдет тем,кто использует трейлинг стопы.В основе стратегии лежит RSI.Как по мне,хорошая вещь для проверки стратегии и ее оптимизиации.На скрине 50 контрактов,так что не сильно радуйтесь,а просто делите на 50 и получите показатели на 1 контракт.
Script make for futures on MICEX.U can change paramets of RSI,traling stop and stop loss .On a ps 50 futures USDollar-russian ruble.Use for testing and optimisation.
Vertical Horizontal Filter BacktestVertical Horizontal Filter was initiated by Adam White. It was first published
in a magazine called “Issues of Futures” in August, 1991. The Vertical Horizontal
Filter (VHF) is a very common Indicator used by traders to find out the Phase of
a Price Trend. Normally, a price trend can be in a Trending Phase or a Congestion
Phase/Choppy Movement Phase. Adam White created this particular Technical Indicator
to determine whether prices are trending in a particular direction or are they going
through a transitional period. He used it to measure the range of Futures available
in the market.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Vertical Horizontal Filter Strategy Vertical Horizontal Filter was initiated by Adam White. It was first published
in a magazine called “Issues of Futures” in August, 1991. The Vertical Horizontal
Filter (VHF) is a very common Indicator used by traders to find out the Phase of
a Price Trend. Normally, a price trend can be in a Trending Phase or a Congestion
Phase/Choppy Movement Phase. Adam White created this particular Technical Indicator
to determine whether prices are trending in a particular direction or are they going
through a transitional period. He used it to measure the range of Futures available
in the market.
WARNING:
- This script to change bars colors.
Vertical Horizontal Filter Vertical Horizontal Filter was initiated by Adam White. It was first published
in a magazine called “Issues of Futures” in August, 1991. The Vertical Horizontal
Filter (VHF) is a very common Indicator used by traders to find out the Phase of
a Price Trend. Normally, a price trend can be in a Trending Phase or a Congestion
Phase/Choppy Movement Phase. Adam White created this particular Technical Indicator
to determine whether prices are trending in a particular direction or are they going
through a transitional period. He used it to measure the range of Futures available
in the market.
BKSqueezeThis is a price volatility compression and expansion indicator that uses the ratio of the Bollinger Band and Keltner Ratio.
Red segments indicate extreme price volatility compression that can be ideal entry points for stock/futures/forex and/or options positions.
Aqua segments indicate price volatility is expanding.
Blue segments indicate price volatility is compressing - can be used as an exit point or partial scale out point.
Note that the indicator doesn't indicate direction. One suggestion is to use the DMI indicator for this purpose - really depends on how early you enter the trade.
Suggest using a time period of 15 bars for volatile stocks, such as TSLA for example, otherwise a period of 20 bars suits most stocks/futures/forex symbols.
T7 JNSARJNSAR stands for Just Nifty -0.14% Stop & Reverse. This is a Trend Following Daily Bar Trading System for NIFTY -0.14% . Original idea belongs to ILLANGO @ I coded the pine version of this system based on a request from @stocksonfire. Use it at your own risk after validation at your end. Neither me or my company is responsible for any losses you may incur using this system. Hope you like this system and enjoy trading it !!!
Updated V3 code for the T7 JNSAR system earlier published here V2 and here V1
Following updates made to the code
1. Added a 22 Period Simple moving average filter over and above the standard JNSAR value for generating trading signals. This simple filter reduces the whipsaw trades drastically along with similar improvements in the max draw down and overall profitability of the system. The SMA filter is turned ON by default but can be turned OFF by user through the settings window.
2. Backtest option is now turned ON by default.
Also am republishing the trading rules here again with some modification
1. Go Long when the daily close is above the JNSAR line. Go Short when the daily close is below the JNSAR line. JNSAR line is the varying green line overlayed over the price chart. Once a signal comes at market close enter in the direction of the signal @ market price @ next day market open.
2. Trade only Nifty -0.14% Index. This system was developed and backtested only for NIFTY -0.14% Index. So trade in its Futures or Options, as you may deem fit. My recommendation is to choose futures for simplicity. If you want to reduce the trading cost and go with options, trade with deep in the money options, preferably 2 strikes far from the spot price.
3. Trade all signals. Markets trend only 30-35% of the time and hence the system is only accurate to that extend. But system tends to make enough money, in this small trending window, to keep the overall profitability in good health. But one never knows when a big trend may come and when it comes its absolutely imperative that you take it. To ensure that, trade all signals and don't be choosy about what signals you are going to trade. Also I wouldn't recommend using your own analysis to trade this system. Too many drivers will crash the car.
4. Like all trend following systems, this system will have many whipsaws during flat markets along with large trade and account drawdowns. Also some months and even years may not be profitable. But to trade this system profitably, it is necessary to take these in one's stride and keep trading. As the backtester results from 1990 to 2017 proves, this system is profitable overall thus far. Take confidence from that objective fact.
5. Trade with only that amount of money you can afford to loose. Initial capital that you need to have to trade one lot of NIFTY -0.14% should be atleast - (Margin Money required to take and hold 1 lot position + maximum drawdown amount per lot)*1.2. Be prepared to add more if need be, but the above formula will give a rough idea of what you need to have to start trading and be in the game always.
6. Place an After Market Order @ Market Price with your broker after market close so that you get to execute the trade next trading day @ Market open to capture near similar price as the daily open price seen on the chart. This execution mode will give you the best chance to minimize the slippage and mimic the backtester results as closely as practically possible.
7. Follow all the 6 rules above religiously, as if your life depends on it. If you cant, then don't trade this system; You will certainly loose money.
Happy Trading !!! As always am looking out for your valuable feedback.
T7 JNSARUpdated code for the T7 JNSAR system earlier published here -
Following updates made to the code
1. Buy / Sell arrows now appear when the corresponding conditions are met.
2. Support for Heikin-Ashi Candles added
3. Different Backtesting Position Sizing Algorithms added for evaluation
Also am republishing the trading rules here again with some modification
1. Go Long when the daily close is above the JNSAR line. Go Short when the daily close is below the JNSAR line. JNSAR line is the varying green line overlayed over the price chart. Once a signal comes at market close enter in the direction of the signal @ market price @ next day market open.
2. Trade only Nifty Index. This system was developed and backtested only for NIFTY Index. So trade in its Futures or Options, as you may deem fit. My recommendation is to choose futures for simplicity. If you want to reduce the trading cost and go with options, trade with deep in the money options, preferably 2 strikes far from the spot price.
3. Trade all signals. Markets trend only 30-35% of the time and hence the system is only accurate to that extend. But system tends to make enough money, in this small trending window, to keep the overall profitability in good health. But one never knows when a big trend may come and when it comes its absolutely imperative that you take it. To ensure that, trade all signals and don't be choosy about what signals you are going to trade. Also I wouldn't recommend using your own analysis to trade this system. Too many drivers will crash the car.
4. Like all trend following systems, this system will have many whipsaws during flat markets along with large trade and account drawdowns. Also some months and even years may not be profitable. But to trade this system profitably, it is necessary to take these in one's stride and keep trading. As the backtester results from 1990 to 2016 proves, this system is profitable overall thus far. Take confidence from that objective fact.
5. Trade with only that amount of money you can afford to loose. Initial capital that you need to have to trade one lot of NIFTY should be atleast - (Margin Money required to take and hold 1 lot position + maximum drawdown amount per lot)*1.2. Be prepared to add more if need be, but the above formula will give a rough idea of what you need to have to start trading and be in the game always.
6. Place an After Market Order @ Market Price with your broker after market close so that you get to execute the trade next trading day @ Market open to capture near similar price as the daily open price seen on the chart. This execution mode will give you the best chance to minimise the slippage and mimic the backtester results as closely as practically possible.
7. Follow all the 6 rules above religiously, as if your life depends on it. If you cant, then don't trade this system; You will certainly loose money.
Happy Trading !!! As always am looking out for your valuable feedback.
T7 JNSARJNSAR stands for Just Nifty Stop & Reverse. This is a trend following daily bar trading system for NIFTY. Original idea belongs to ILLANGO @ I coded the pine version of this system based on a request from @stocksonfire. Use it at your own risk after validation at your end. Neither me or my company is responsible for any losses you may incur using this system. Hope you like this system and enjoy trading it !!!
While trading this system you must follow these simple rules.
1. Go Long when the daily close is above the JNSAR line. Go Short when the daily close is below the JNSAR line. JNSAR line is the varying green line overlayed over the price chart. Once a signal comes at market close enter in the direction of the signal @ market price @ next day market open.
2. Trade only Nifty Index. This system was developed and backtested only for NIFTY Index. So trade in its Futures or Options, as you may deem fit. My recommendation is to choose futures for simplicity. If you want to reduce the trading cost and go with options, trade with deep in the money options, preferably 2 strikes far from the spot price.
3. Trade all signals. Markets trend only 30-35% of the time and hence the system is only accurate to that extend. But system tends to make enough money, in this small trending window, to keep the overall profitability in good health. But one never knows when a big trend may come and when it comes its absolutely imperative that you take it. To ensure that, trade all signals and don't be choosy about what signals you are going to trade. Also I wouldn't recommend using your own analysis to trade this system. Too many drivers will crash the car.
4. Like all trend following systems, this system will have many whipsaws during flat markets along with large trade and account drawdowns. Also some months and even years may not be profitable. But to trade this system profitably, it is necessary to take these in one's stride and keep trading. As the backtester results from 1990 to 2016 proves, this system is profitable overall thus far. Take confidence from that objective fact.
5. Initial capital that you need to have to trade one lot of NIFTY should be atleast - (Margin Money required to take and hold 1 lot position + maximum drawdown amount per lot)*1.2. Be prepared to add more if need be, but the above formula will give a rough idea of what you need to have to start trading and be in the game always.
6. Follow all the 5 rules above religiously as if your life depends on it. If you cant, then don't trade this system; You will certainly loose money.
Accumulation Swing Index The Accumulation Swing Index is a cumulative total of the Swing Index.
The Accumulation Swing Index was developed by Welles Wilder.
The SwingIndex function was developed to help cut through the maze of
Open, High, Low and Close prices to indicate the real strength and direction
of the market. The Swing Index function looks at the Open, High, Low and
Close values for a two-bar period. The theory is that there are four cross-bar
and one intra-bar comparisons that are strong indicators of an up or down day.
The Swing Index returns a number between -100 and 100. If the factors point toward
an up day, then the function value will be positive and vice versa. In this way,
the Swing Index gives us definite short-term swing points, and it can be used to
supplement other methods as a breakout indicator. A breakout is indicated when the
value of the Accumulation Swing Index (ASI) exceeds the ASI value on the day when a
previous significant High Swing Point was made. A downside breakout is indicated when
the value of the ASI drops below the ASI value on a day when a previous significant
low swing point was made.
Since only futures have a relative daily limit value, this function only makes sense
when applied to a futures contract. If you use this function and it only plots a zero
flat line, check the Daily Limit value.
Accumulation Swing Index (ASI) The Accumulation Swing Index is a cumulative total of the Swing Index.
The Accumulation Swing Index was developed by Welles Wilder.
The SwingIndex function was developed to help cut through the maze of
Open, High, Low and Close prices to indicate the real strength and direction
of the market. The Swing Index function looks at the Open, High, Low and
Close values for a two-bar period. The theory is that there are four cross-bar
and one intra-bar comparisons that are strong indicators of an up or down day.
The Swing Index returns a number between -100 and 100. If the factors point toward
an up day, then the function value will be positive and vice versa. In this way,
the Swing Index gives us definite short-term swing points, and it can be used to
supplement other methods as a breakout indicator. A breakout is indicated when the
value of the Accumulation Swing Index (ASI) exceeds the ASI value on the day when a
previous significant High Swing Point was made. A downside breakout is indicated when
the value of the ASI drops below the ASI value on a day when a previous significant
low swing point was made.
Since only futures have a relative daily limit value, this function only makes sense
when applied to a futures contract. If you use this function and it only plots a zero
flat line, check the Daily Limit value.
15-Minute ORB Breakout Strategy with VWAP and Volume Filters# 15-Minute ORB Breakout Strategy with VWAP and Volume Filters
## Overview
This strategy implements the 15-minute Opening Range Breakout (ORB) methodology for NASDAQ futures, enhanced with session-anchored VWAP, volume confirmation, and candle strength analysis. The ORB approach waits for the first 15 minutes of the trading session to establish a range, then trades breakouts with defined risk management.
This implementation is based on rules described in a YouTube tutorial by Bull Barbie: www.youtube.com
The strategy was systematically coded and backtested to evaluate performance over an extended period.
**Backtest Disclosure:** Over 1,354 trades from 2010-2026, this systematic implementation produced negative returns. Discretionary traders may achieve different results through real-time adjustments not captured in systematic rules.
---
## How It Works
### Opening Range Calculation
The strategy identifies the high and low of the first 15 minutes after the New York open (first 3 candles on a 5-minute chart). These levels become the breakout triggers for the session.
### Entry Logic
- **Long Entry:** Price closes above the ORB High while meeting all filter conditions
- **Short Entry:** Price closes below the ORB Low while meeting all filter conditions
### Exit Logic
- **Take Profit:** 1x the ORB range beyond the breakout level (approximately 1:1 risk-reward)
- **Stop Loss:** Opposite side of the ORB range
- **Breakeven:** Stop moves to entry when price reaches 50% of the take profit distance
- **Session Close:** All positions closed at end of trading session
### Filters
All filters are toggleable:
1. **Session VWAP Filter:** Price must be above VWAP with upward slope for longs (below with downward slope for shorts). VWAP is anchored to session open and resets daily.
2. **Volume Filter:** Breakout bar must exceed minimum volume threshold (default: 2,500 contracts) to confirm participation.
3. **Candle Strength Filter:** Close must be in the top 30% of the bar range for longs (bottom 30% for shorts), indicating conviction rather than absorption.
---
## Backtest Results
**Instrument:** MNQ (Micro NASDAQ)
**Timeframe:** 5-minute
**Period:** 2010-2026
**Session:** 09:30 - 12:00 ET (Morning)
| Metric | Value |
|--------|-------|
| Total Trades | 1,354 |
| Win Rate | 50.07% |
| Profit Factor | 0.833 |
| Net P&L | -$11,916 (-23.83%) |
| Max Drawdown | $13,119 (26.21%) |
| Avg Win | +0.30% |
| Avg Loss | -0.37% |
| Expected Payoff | -$8.80/trade |
| Long Win Rate | 52.25% (360/689) |
| Short Win Rate | 47.82% (318/665) |
---
## Strategy Properties
These settings match the published backtest:
| Property | Value |
|----------|-------|
| Initial Capital | $50,000 USD |
| Position Size | 1 contract (fixed) |
| Commission | $4.00 per contract (round-trip) |
| Slippage | 2 ticks |
| Margin | 1% (NinjaTrader intraday reference) |
| Pyramiding | Disabled |
**Instrument Note:** MNQ (Micro NASDAQ) was selected because realistic account sizes ($25,000-$50,000) face margin constraints with full NQ contracts during drawdown periods.
---
## Settings Guide
### Main Settings
- **ORB Bars:** Number of bars defining the opening range (3 = 15 minutes on 5-min chart)
- **Trading Session:** Time window for trading (tested: 0930-1200 ET)
- **Take Profit:** Multiple of ORB range for target (1.0 = full range)
- **Breakeven Trigger:** Distance to move stop to entry (0.5 = halfway to TP)
- **Max Trades Per Day:** Daily trade limit (default: 2)
### VWAP Filter
- **Use VWAP Filter:** Enable/disable session VWAP confirmation
- **VWAP Slope Lookback:** Bars to measure VWAP direction (default: 5)
- **Min VWAP Slope:** Minimum slope in points (default: 0.5)
### Volume Filter
- **Use Volume Filter:** Enable/disable volume confirmation
- **Min Breakout Volume:** Minimum contracts required (default: 2,500)
### Candle Strength
- **Use Candle Strength Filter:** Enable/disable close position analysis
- **Min Candle Strength:** Required close position within bar (0.7 = top/bottom 30%)
---
## Visual Elements
- **Orange Background:** ORB forming period (first 15 minutes)
- **Green Background:** Active trading session
- **Green/Red Lines:** ORB High and Low levels
- **VWAP Line:** Color indicates slope direction (green=up, red=down, gray=flat)
- **White Line:** Trade entry price
- **Lime/Red Lines:** Take profit and stop loss levels
- **Orange Line:** Breakeven trigger level
- **Blue Background:** Breakeven activated
- **Triangle Markers:** Candle strength indicators
---
## How to Use
1. Apply to MNQ or NQ on a 5-minute chart
2. Wait for the ORB forming period (orange background) to complete
3. Monitor breakouts above/below ORB levels
4. Check VWAP color for trend alignment
5. Strategy enters automatically when conditions align
---
## Limitations
1. **Systematic vs. Discretionary:** This backtest captures only the mechanical rules. Experienced traders may apply real-time judgment (reading price action, avoiding certain setups, scaling in/out) that improves results but cannot be systematically coded.
2. **Average Loss Exceeds Average Win:** The 0.37% average loss versus 0.30% average win creates negative expectancy even with ~50% win rate.
3. **Commission Impact:** $10,832 in commissions over the test period affects net returns.
4. **Market Regime Variation:** The equity curve shows profitable periods (2023-2025) alongside extended drawdowns, suggesting regime-dependent performance.
5. **Sample Considerations:** While 1,354 trades provides statistical significance, results may vary across different time periods or market conditions.
---
## Research Notes
This strategy was built following rules from Bull Barbie's ORB tutorial video. The systematic backtest could not reproduce the performance figures mentioned in that content. This does not mean the approach is without merit—discretionary execution, trade selection, and real-time adjustments likely play significant roles that systematic backtesting cannot capture.
Traders interested in ORB strategies should consider this as a starting framework for their own research and optimization.
---
## Reference
Original strategy concept: Bull Barbie - "Battle-Tested 15-Minute ORB Trading Strategy for Nasdaq—Rules That Actually Work"
www.youtube.com
Stop Loss Hunting Zones This Pine Script indicator identifies and visualizes potential "stop loss hunting zones" on charts. It marks price levels where institutional traders or market makers might trigger retail stop losses before reversing direction, helping traders avoid false breakouts and better time their entries.
Key Features:
Four Types of Detection Zones-
1.Swing Zones (Red/Green): Identifies swing highs and lows using pivot point analysis where stop losses typically cluster above resistance and below support levels.
2.Breakout Zones (Orange): Detects consolidation periods and marks levels where false breakouts might occur, trapping traders who enter too early.
3.Wick Trap Zones (Purple): Highlights candles with disproportionately large wicks relative to body size, indicating potential stop loss raids with quick reversals.
4.Volume Reversal Zones (Blue): Identifies high-volume reversal patterns where price briefly touches a level before sharply reversing, suggesting stop loss absorption.
Customizable Parameters:
Swing Lookback: Period for pivot point detection (5-100 bars)
Swing Threshold: Minimum percentage move to qualify as a swing (0.5-10%)
Volume Threshold: Multiplier for detecting unusual volume (1-5x average)
Wick Ratio: Minimum wick-to-total range ratio for trap detection (0.3-0.9)
ATR Settings: Length and multiplier for zone buffer calculation
Zone Management: Maximum zones per type and minimum distance between zones
Display Options: Toggle individual zone types, heatmap intensity, labels, and transparency
Visual Features:
Heatmap Mode: Colour intensity reflects how often price has tested each zone
Smart Zone Management: Prevents chart cluttering by limiting zones and removing those too close together
Dynamic Labels: Clear zone identification with customizable display
Adjustable Transparency: Control zone visibility (10-90%)
How It Works:
The indicator uses ATR-based buffers to create zones around detected levels. It tracks price history to calculate "intensity" scores for the heatmap feature, helping identify the most significant hunting zones. The algorithm ensures zones are meaningful by enforcing minimum distances and limiting total zones displayed.
Avoid placing stop losses at obvious levels where hunting is likely
Identify potential reversal points for counter-trend trades
Recognize false breakout patterns before they complete
Time entries after stop loss hunts are absorbed
Technical Details:
Maximum 500 boxes, lines, and labels for comprehensive zone tracking
Compatible with all timeframes
Works on any market (stocks, forex, crypto, futures)
Real-time detection as new bars confirm
This indicator is designed for traders who want to understand where institutional players might target retail stop losses and use that information to their advantage. Please boost & follow for more. Happy trading !!
Disclaimer: This indicator is for educational and informational purposes only. It should not be considered financial advice. Always perform your own analysis and risk management before trading.
Cody Order Block FinderCody Order Block Finder
Free Telegram Trading Community t.me
Overview
A professional order block detection indicator that identifies institutional supply and demand zones on any timeframe. This tool helps traders spot key reversal areas where institutional orders are likely placed, providing strategic levels for limit order entries.
Key Features
🔍 Smart Order Block Detection
Bullish Order Blocks: Identifies the last bearish candle before consecutive bullish candles
Bearish Order Blocks: Identifies the last bullish candle before consecutive bearish candles
Configurable Sensitivity: Adjust the number of consecutive candles required (1-50 periods)
Minimum Move Filter: Set percentage threshold to filter only significant moves
🎨 Visual Customization
Multiple Color Schemes: Choose from DARK, BRIGHT, or NEON themes
Customizable Display: Show/hide bullish/bearish channels
Line Extension: Extend OB lines to current bar for better visibility
Historical View: Toggle between showing all historical OBs or only the latest ones
📊 Advanced Filtering
OB Size Filter: Set minimum and maximum order block size as percentage of price
ATR Filter: Filter OBs based on Average True Range multiples
OB Strength Indicator: Color-coded OBs based on subsequent price move strength
Wick/Body Selection: Choose to mark OBs using whole candle range or body only
🔔 Alert System
Real-time Alerts: Get notified immediately when new order blocks form
Customizable Messages: Set your own alert messages
Once-per-OB Option: Prevent alert spam with single alert per OB
📈 Display Features
Three-Line Channels: Shows high, low, and average levels for each OB
Visual Shapes: Clear triangle markers above/below candles
Info Panel: Displays latest OB statistics in a clean table format
Data Window Info: View OB levels in TradingView's data window
How to Use
Setup
Add indicator to your chart
Configure periods (default: 5) - higher values = fewer but stronger OBs
Set minimum % move (default: 0%) to filter significant moves
Choose color scheme for your preference
Trading Applications
Limit Order Placement: Place buy limits at bullish OB lows, sell limits at bearish OB highs
Stop Loss Reference: Set stops beyond OB extremes
Reversal Confirmation: Use OBs as confluence with other indicators
Support/Resistance: OB levels often act as future support/resistance
Advanced Tips
Combine with volume profile for higher probability zones
Use on higher timeframes (4H, Daily) for more significant levels
Look for OBs at key Fibonacci levels for added confluence
Monitor price reactions when revisiting OBs
Technical Details
Programming Language: Pine Script v6
Overlay: Yes (draws directly on price chart)
Max Lines: 500 (prevents chart clutter)
Timeframe Compatibility: All timeframes (1min to Monthly)
Market Compatibility: Forex, Stocks, Crypto, Futures
Input Parameters
Basic Settings
Relevant Periods: Number of consecutive candles required (1-50)
Min. Percent move: Minimum % move to validate OB (0.0-100.0)
Color Scheme: DARK, BRIGHT, or NEON color themes
Display Options
Show latest Bullish/Bearish Channel: Toggle channel display
Extend OB lines to right: Extend lines to current bar
Show all historical OBs: Display all OBs or only latest
Use whole range: Use High/Low or Open/Close for OB marking
Advanced Filters
Min/Max OB size (%): Filter by order block size
Use ATR filter: Filter based on volatility
Show OB Strength: Color code by subsequent move strength
Alert Configuration
Create alerts directly from the indicator by clicking "Create Alert" button on chart:
Bullish OB alerts when green triangle appears
Bearish OB alerts when red triangle appears
Includes price and OB level information
Best Practices
Higher Timeframes First: Start on daily/4H to identify major levels
Multiple Confluence: Combine with trend lines, Fibonacci, or moving averages
Patience: Wait for price to return to OB levels for entries
Risk Management: Always use appropriate position sizing and stops
Support & Updates
For updates and support, visit the script page. The indicator is regularly maintained for optimal performance across all markets and timeframes.
Perfect for: Swing traders, position traders, institutional traders, and anyone looking to trade with the "smart money" flow using order flow concepts.
Trading Styles: Works with all styles - scalping, day trading, swing trading, and investing.
Experience Level: Suitable for beginners to advanced traders with clear visual cues and customizable settings.
Eclipse Multi-Oscillator [JOAT]Eclipse Multi-Oscillator - Unified Momentum Confluence System
Introduction and Purpose
Eclipse Multi-Oscillator is an open-source indicator that combines four classic oscillators (RSI, Stochastic, CCI, and Williams %R) into a single unified view with confluence detection. The core problem this indicator solves is oscillator disagreement: traders often see RSI oversold while Stochastic is neutral, or CCI overbought while Williams %R is mid-range. This creates confusion about the true momentum state.
This indicator addresses that by displaying all four oscillators together and counting how many agree on overbought or oversold conditions, providing a clear confluence score that cuts through the noise.
Why These Four Oscillators Work Together
Each oscillator measures momentum differently, and their combination provides a more complete picture:
1. RSI (Relative Strength Index) - Measures the magnitude of recent price changes. Best at identifying momentum exhaustion.
2. Stochastic - Compares closing price to the high-low range. Best at identifying where price is within its recent range.
3. CCI (Commodity Channel Index) - Measures price deviation from statistical mean. Best at identifying unusual price movements.
4. Williams %R - Similar to Stochastic but inverted. Provides confirmation of Stochastic readings.
When 3 or more of these oscillators agree on overbought or oversold, the signal is significantly more reliable than any single oscillator alone.
How Confluence Scoring Works
The indicator counts how many oscillators are in extreme territory:
int obCount = 0
if rsi > rsiOB
obCount += 1
if stochK > stochOB
obCount += 1
if cci > cciOB
obCount += 1
if willRScaled > stochOB
obCount += 1
bool strongOverbought = obCount >= 3
bool strongOversold = osCount >= 3
The confluence score ranges from -4 (all oversold) to +4 (all overbought), with 0 being neutral.
Signal Types
Strong Oversold - 3+ oscillators below oversold threshold (potential bounce)
Strong Overbought - 3+ oscillators above overbought threshold (potential pullback)
OB/OS Exit - RSI leaving extreme zone with Stochastic confirmation (potential reversal)
Divergence - Price makes new high/low while RSI does not (potential reversal warning)
Dashboard Information
RSI/Stoch K/CCI/Will %R - Current values with zone status (OB/OS/MID)
Confluence - Overall bias (STRONG OS, STRONG OB, Lean Bull/Bear, Neutral)
OB Count - How many oscillators are overbought (0-4)
OS Count - How many oscillators are oversold (0-4)
How to Use This Indicator
For Reversal Trading:
1. Wait for Strong Oversold (3+ oscillators agree)
2. Look for bullish candlestick pattern or support level
3. Enter long with stop below recent low
4. Take profit when confluence returns to neutral or overbought
For Trend Confirmation:
1. Check confluence direction matches your trade bias
2. Avoid longs when confluence is strongly overbought
3. Avoid shorts when confluence is strongly oversold
For Divergence Trading:
1. Watch for "D" labels indicating RSI divergence
2. Bullish divergence at support = potential long
3. Bearish divergence at resistance = potential short
Input Parameters
RSI Length (14) - Period for RSI calculation
Stochastic K/D Length (14/3) - Periods for Stochastic
CCI Length (20) - Period for CCI
Williams %R Length (14) - Period for Williams %R
OB/OS Thresholds - Customizable levels for each oscillator
Timeframe Recommendations
15m-1H: Good for intraday momentum analysis
4H-Daily: Best for swing trading confluence
Very short timeframes may produce noisy signals
Limitations
All oscillators can remain in extreme territory during strong trends
Confluence does not predict direction, only identifies extremes
Divergence detection is simplified and may miss some patterns
Works best in ranging or moderately trending markets
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. The source code is fully visible and can be studied.
This indicator does not constitute financial advice. Oscillator confluence does not guarantee reversals. Past performance does not guarantee future results. Always use proper risk management.
- Made with passion by officialjackofalltrades
Candle Intelligence🔹 Candle Intelligence (IM-CI)
Candle Intelligence (IM-CI) is a context-only intraday market behavior indicator designed to help traders understand how price is behaving, not where to buy or sell.
This tool classifies individual candles, detects short-term behavioral patterns, and displays a non-blocking market state to improve decision awareness during live trading.
⚠️ IM-CI does NOT generate buy/sell signals.It is strictly intended for market context, confirmation, and study.
🔍 What This Indicator Does
🧠 Candle Intelligence Layer
Each candle is classified based on volatility-adjusted behavior using ATR:
Strong expansion candles
Normal directional candles
Weak / neutral candles
These classifications are shown as compact candle codes (optional) to quickly read price behavior without clutter.
📐 Pattern Recognition (Context Only)
IM-CI detects short, non-predictive behavioral patterns, such as:
Compression
Absorption
Momentum bursts
Distribution
These patterns are displayed as soft zones, not signals, helping traders visually study how price reacts around key moments.
Cooldown logic is used to prevent repetitive pattern noise.
🌐 Market State Engine
The indicator continuously evaluates recent candle behavior and VWAP positioning to describe the current market condition, such as:
Expansion
Extended
Distribution
Balanced
This state is shown in a small HUD panel and is designed to:
Reduce emotional over-trading
Identify unsuitable market conditions
Improve alignment with higher-probability environments
⚙️ Key Features
ATR-aware candle classification
VWAP extension detection
Timeframe-adaptive candle code visibility
Non-repainting logic
Clean, lightweight HUD panel
Designed for intraday futures & index trading
🛠 How to Use
Use IM-CI as a context filter, not a trigger
Combine with your own execution system
Avoid trading during Extended or unclear states
Best suited for lower timeframes (1–5 min)
⚠️ Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice and should not be used as a standalone trading system.
All trading decisions remain the sole responsibility of the user.
Momentum Clarity Engine📘 Description - Momentum Clarity Engine
Momentum Clarity Engine (MC-Engine) is a visual momentum-context indicator designed to help traders clearly identify trend direction, momentum strength, and low-quality market conditions using a disciplined combination of MACD and RSI.
Rather than generating buy or sell signals, MC-Engine focuses on clarity and risk control by visually classifying price action into intuitive momentum states and highlighting periods where trading conditions are unfavorable.
🔍 How it works
The indicator combines:
MACD Histogram → momentum direction and strength
RSI → bullish vs bearish pressure balance
Based on this confluence, price candles are colored to reflect market state:
Strong Bullish Momentum → Dark Green (solid)
Weak Bullish Momentum → Light Green (transparent)
Strong Bearish Momentum → Dark Red (solid)
Weak Bearish Momentum → Light Red (transparent)
No-Trade Zone → Muted Orange (high transparency)
Candle opacity dynamically adapts to MACD histogram strength, allowing traders to visually sense when momentum is expanding, weakening, or lacking conviction.
🟠 No-Trade Zone (Key Feature)
The No-Trade zone highlights periods of:
Low momentum
RSI balance / indecision
Choppy or transitional price action
These conditions often result in poor risk-reward.
The muted orange color is intentionally designed to encourage patience and discipline.
✅ How to use MC-Engine
MC-Engine is best used as a trade filter and context tool, not as a standalone strategy.
Common use cases:
Confirming trend strength before entries
Avoiding trades during low-momentum chop
Filtering breakouts and pullbacks
Intraday trading on 1-minute to 15-minute charts
Futures, indices, equities, and crypto markets
Recommended to pair with:
Market structure
Trendlines
VWAP
Support & resistance
Higher-timeframe context
⚠️ Important Notes
This indicator does not provide buy or sell signals
No repainting or future-looking logic
Designed for educational and analytical purposes only
Always apply proper risk management
🧠 Philosophy
The goal is not to trade more —
the goal is to trade when conditions are clear.
Momentum Clarity Engine helps traders participate during strong momentum and stand aside during uncertainty.
Trend Speed Analyzer with Entries (Zeiierman)📈 Trend Speed Analyzer with Entry Signals (Zeiierman – Modified)
🔹 Overview
This indicator is a trend-following momentum system built around an adaptive (dynamic) moving average and a proprietary trend speed / wave strength engine.
It is designed to identify high-quality continuation entries after price confirms direction, not to predict tops or bottoms.
Best suited for:
Index futures (ES, NQ)
ETFs (SPY, QQQ)
Strongly trending stocks
Intraday or swing trading
🔹 Core Concepts
1️⃣ Dynamic Trend Line (Adaptive EMA)
Instead of using a fixed EMA length, this script dynamically adjusts:
EMA length based on normalized price movement
EMA responsiveness using an accelerator factor
Result:
Fast reaction during strong trends
Smooth behavior during choppy markets
Fewer false flips compared to traditional EMAs
This trend line acts as the primary regime filter.
2️⃣ Trend Speed & Wave Analysis
The indicator tracks trend speed, which represents cumulative directional pressure over time.
It also records:
Bullish wave sizes
Bearish wave sizes
Average vs maximum wave strength
Bull/Bear dominance
These statistics are displayed in an optional table to help assess:
Market bias
Momentum asymmetry
Whether the current move is weak, average, or exceptional
🔹 Entry Signal Logic (One Signal per Trend Shift)
Signals are not spammy.
Only one entry signal is allowed per crossover.
Long Entry Conditions
A long signal is generated when:
Price crosses above the dynamic trend line
A bullish candle forms
The candle body is at least X% of ATR (filters weak/doji candles)
The entire candle body is above the trend line
(Optional) Trend speed is positive
Short Entry Conditions
A short signal is generated when:
Price crosses below the dynamic trend line
A bearish candle forms
The candle body is at least X% of ATR
The entire candle body is below the trend line
(Optional) Trend speed is negative
📌 Once a signal fires, no additional signals will appear until a new crossover occurs.
🔹 What this indicator is NOT
❌ Not a mean-reversion system
❌ Not a prediction tool
❌ Not meant for sideways markets
This tool assumes structure → confirmation → continuation.
🔹 How to Trade It (Suggested Use)
Use higher timeframes (5m–30m) for cleaner signals
Trade in the direction of higher-timeframe bias
Combine with:
VWAP
Key levels (PDH / PDL / PMH / PML)
Market session context
🔹 Customization
Adjust Maximum Length for smoother vs faster trends
Adjust Accelerator Multiplier for sensitivity
Enable/disable speed filter for stricter momentum confirmation
ATR candle filter removes weak signals automatically
⚠️ Disclaimer
This indicator provides technical signals only and does not include trade management, stops, or targets.
Always apply proper risk management.
Aurora Volatility Bands [JOAT]Aurora Volatility Bands - Dynamic ATR-Based Envelope System
Introduction and Purpose
Aurora Volatility Bands is an open-source overlay indicator that creates multi-layered volatility envelopes around price using ATR (Average True Range) calculations. The core problem this indicator solves is that static bands (like fixed percentage envelopes) fail to adapt to changing market conditions. During high volatility, static bands are too tight; during low volatility, they're too wide.
This indicator addresses that by using ATR-based dynamic bands that automatically expand during volatile periods and contract during quiet periods, providing contextually appropriate support/resistance levels at all times.
Why These Components Work Together
The indicator combines three analytical approaches:
1. Triple-Layer Band System - Inner (1x ATR), Outer (2x ATR), and Extreme (3x ATR) bands provide graduated levels of significance
2. Volatility State Detection - Compares current ATR to historical average to classify market regime
3. Multiple MA Types - Allows customization of the center line calculation method
These components complement each other:
The triple-layer system gives traders multiple reference points - inner bands for normal moves, outer for significant moves, extreme for rare events
Volatility state detection tells you WHEN bands are expanding or contracting, helping anticipate breakouts or mean-reversion
MA type selection lets you match the indicator to your trading style (faster EMA vs smoother SMA)
How the Calculation Works
The bands are calculated using ATR multiplied by configurable factors:
float atr = ta.atr(atrPeriod)
float innerUpper = centerMA + (atr * innerMult)
float outerUpper = centerMA + (atr * outerMult)
float extremeUpper = centerMA + (atr * extremeMult)
Volatility state is determined by comparing current ATR percentage to its historical average:
float atrPercent = (atr / close) * 100
float avgAtrPercent = ta.sma(atrPercent, volatilityLookback)
float volatilityRatio = atrPercent / avgAtrPercent
bool isExpanding = volatilityRatio > 1.2 // 20%+ above average
bool isContracting = volatilityRatio < 0.8 // 20%+ below average
Signal Types
Band Touch - Price reaches inner, outer, or extreme bands
Mean Reversion - Price returns to center after touching outer/extreme bands
Breakout - Sustained move beyond outer bands during volatility expansion
Dashboard Information
Volatility - Current state (EXPANDING/CONTRACTING/NORMAL)
Vol Ratio - Current volatility vs average (e.g., 1.5x = 50% above average)
ATR - Current ATR value
ATR % - ATR as percentage of price
Zone - Current price position (EXTREME HIGH/UPPER ZONE/CENTER ZONE/etc.)
Position - Price position as percentage within band structure
Width - Total band width as percentage of price
Using SMA in settings:
How to Use This Indicator
For Mean-Reversion Trading:
1. Wait for price to touch outer or extreme bands
2. Check that volatility state is NORMAL or CONTRACTING (not expanding)
3. Look for reversal candlestick patterns at the band
4. Enter toward center MA with stop beyond the band
For Breakout Trading:
1. Wait for volatility state to show EXPANDING
2. Look for price closing beyond outer bands
3. Enter in direction of breakout
4. Use the band as trailing stop reference
For Volatility Analysis:
1. Monitor volatility ratio for regime changes
2. CONTRACTING often precedes large moves (squeeze)
3. EXPANDING confirms trend strength
Using VWMA and Mean Reversion Signal/MR:
Input Parameters
ATR Period (14) - Period for ATR calculation
Inner/Outer/Extreme Multipliers (1.0/2.0/3.0) - Band distance from center
MA Type (EMA) - Center line calculation method
MA Period (20) - Period for center line
Volatility Comparison Period (20) - Lookback for volatility state
Timeframe Recommendations
15m-1H: Good for intraday mean-reversion
4H-Daily: Best for swing trading and breakout identification
Weekly: Useful for position trading and major level identification
Limitations
ATR-based bands lag during sudden volatility spikes
Mean-reversion signals can fail in strong trends
Breakout signals may whipsaw in ranging markets
Works best on liquid instruments with consistent volatility patterns
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. The source code is fully visible and can be studied to understand how each component works.
This indicator does not constitute financial advice. Band touches do not guarantee reversals. Past performance does not guarantee future results. Always use proper risk management, position sizing, and stop-losses.
- Made with passion by officialjackofalltrades






















