swing indicator Installation & Configuration - swing Indicator
⚙️ Parameter Configuration
"Settings" Group (General Parameters)
Show Moving Average: Show/hide the OI moving average
✅ Recommended: Enabled to visualize the trend
Helps identify if OI is above or below its average
MA Period: Moving average period (default: 20)
📊 Common values:
20: Short/medium term trend (responsive)
50: Medium term trend (balanced)
100: Long term trend (stable)
Compare with Volume: Display normalized volume in background
💡 Useful to compare OI evolution with volume
Helps identify divergences between Open interest (oi) and Volume
OI Significant Change Threshold: Detection threshold for significant changes
Available options: 10%, 15%, 20%, 25%, 30%, 40%
🎯 10-15%: High sensitivity (many signals, possible noise)
🎯 20-25%: Normal sensitivity (moderate signals, recommended)
🎯 30-40%: Low sensitivity (rare but very significant signals)
⚡ This threshold determines when green/red triangles appear
Manual OI Symbol (optional): Manually enter the OI symbol
📝 Leave empty for automatic detection
⚙️ Use only if your symbol is not automatically recognized
Manual example: COMEX:GC1!_OI for gold
"Visual Signals" Group
Show Triangles (Significant Changes): Show/hide triangles
▲ GREEN Triangle = Significant OI increase (> configured threshold)
▼ RED Triangle = Significant OI decrease (< -configured threshold)
✅ Recommended: Enabled to see important changes
💡 Disable if you find the chart too cluttered
Show Circles (MA Crossovers): Show/hide circles
● GREEN Circle = OI crosses MA upward
● RED Circle = OI crosses MA downward
✅ Recommended: Enabled if you use MA crossover strategy
💡 Disable if you focus only on OI variations
"Style" Group (Color Customization)
OI Color: Main Open Interest histogram color
Default: Blue
🎨 Customize according to your visual preferences
OI Rising: Histogram color when OI increases
Default: Transparent green
Subtle display of direction
OI Falling: Histogram color when OI decreases
Default: Transparent red
Subtle display of direction
MA Color: Moving average color
Default: Orange
Should contrast with OI color
Volume Color: Normalized volume background color
Default: Transparent gray
Discreet enough not to hinder reading
📊 Reading the Information Panel
The panel at the top right of the chart displays:
By: Alphaomega18
Indicator creator's signature
⚠️ WARNING: OI symbol not detected
Only appears if OI symbol is not automatically detected
Action: Check symbol or enter manually
Open Interest
Current Open Interest value
Format: number of contracts (e.g., 485.2K = 485,200 contracts)
Change
OI % change from previous bar
🟢 Green = OI increase
🔴 Red = OI decrease
Ex: +2.45% = OI increased by 2.45%
Threshold
Displays configured threshold for alerts
Ex: "25%" = alerts triggered at +25% or -25%
Yellow color for visibility
MA(20)
Current moving average value
Number in parentheses indicates period
Ex: MA(50) if you configured a 50 period
Signal
🟢 Strong Trend: OI > MA → Strong participation, solid trend
🔴 Weak Trend: OI < MA → Weak participation, fragile trend
🎯 Visual Signals on Chart
Triangles (Significant Changes)
▲ GREEN Triangle (bottom of chart)
Meaning: Significant OI increase
Trigger: OI increases more than configured threshold
Example: If threshold = 25%, triangle appears when OI +25% or more
📈 Interpretation: New contracts opened = growing interest
▼ RED Triangle (bottom of chart)
Meaning: Significant OI decrease
Trigger: OI decreases more than configured threshold
Example: If threshold = 25%, triangle appears when OI -25% or less
📉 Interpretation: Massive position closing = disengagement
Circles (Moving Average Crossovers)
🟢 GREEN Circle (bottom of chart)
Meaning: OI just crossed MA upward
Signal: Open interest back above its average
📊 Interpretation: Interest returning, potential trend start
🔴 RED Circle (top of chart)
Meaning: OI just crossed MA downward
Signal: Open interest back below its average
📊 Interpretation: Decreasing interest, potential weakening
🔔 Alert Configuration
Create an alert:
Right-click on chart → "Add Alert" (or ALT + A)
In "Condition", select "Open Interest"
Choose alert type from 4 available
Configure notification options
Click "Create"
Available alert types:
OI Significant Increase
Triggers when OI increases beyond configured threshold
Example: Threshold 25% → Alert if OI +25% or more
Use: Detect massive influx of new contracts
OI Significant Decrease
Triggers when OI decreases beyond configured threshold
Example: Threshold 25% → Alert if OI -25% or less
Use: Detect massive position closing
OI crosses MA up
Triggers when OI crosses its moving average upward
Condition: OI was below MA and crosses above
Use: Identify interest returning
OI crosses MA down
Triggers when OI crosses its moving average downward
Condition: OI was above MA and crosses below
Use: Identify decreasing interest
Notification configuration:
✉️ Email: Receive alert via email
📱 SMS: Receive alert via SMS (subscription required)
🔔 Popup: Notification on TradingView
📲 App: Notification on TradingView mobile app
🔗 Webhook: Send alert to external system
💡 Advanced Interpretation
Combined OI + Price Analysis:
Open InterestPriceInterpretationSuggested Action↑ Rising↑ Rising🟢 STRONG UptrendNew buyers entering, robust trend, consider long positions↑ Rising↓ Falling🔴 STRONG DowntrendNew sellers entering, bearish pressure, consider short positions↓ Falling↑ Rising📊 Short coveringClosing short positions, potentially temporary move↓ Falling↓ Falling📊 Long liquidationClosing long positions, potentially temporary move
OI vs Moving Average:
OI > MA (Signal: Strong Trend)
Open interest above its average
Market participation above normal
Trend supported by growing interest
✅ Increased confidence in market direction
OI < MA (Signal: Weak Trend)
Open interest below its average
Market participation below normal
Potentially fragile trend
⚠️ Caution: trend lacks conviction
OI vs Volume:
Rising OI + Rising Volume
New contracts + high trading activity
💪 Very strong trend signal
Falling OI + Rising Volume
Position closing + high activity
⚡ Potential reversal or massive profit-taking
Stable OI + Rising Volume
Transfer of positions between traders
🔄 Changing hands, no new commitments
🛠️ Troubleshooting
❌ Issue: "⚠️ WARNING - OI symbol not detected"
✅ Solutions:
Check contract symbol
Make sure you're on a continuous futures contract (e.g., GC1!, CL1!)
Not on a specific contract (e.g., GCZ2024)
Enter symbol manually
Go to Settings → Manual OI Symbol
Format: EXCHANGE:SYMBOL_OI
Examples:
Gold: COMEX:GC1!_OI
WTI Crude: NYMEX:CL1!_OI
Natural Gas: NYMEX:NG1!_OI
Check data availability
Not all markets have public OI data
Verify on TradingView if OI data exists
❌ Issue: No data displayed (empty chart)
✅ Solutions:
Change timeframe
OI is generally published daily
Switch to Daily (1D) or Weekly (1W)
Intraday timeframes may not have data
Check data connection
Refresh TradingView page
Check your TradingView subscription (some data requires subscription)
Test on another market
Try with gold (COMEX:GC1!) which always has OI data
If it works, problem comes from initial market
❌ Issue: Too many visual signals (cluttered chart)
✅ Solutions:
Increase detection threshold
Settings → OI Significant Change Threshold
Change from 20% to 30% or 40%
Fewer signals, but more significant
Disable some signals
Visual Signals → Uncheck "Show Triangles" or "Show Circles"
Keep only the most important signals for you
Adjust colors
Style → Reduce color opacity
Make signals more discreet visually
❌ Issue: Not enough signals
✅ Solutions:
Reduce detection threshold
Settings → OI Significant Change Threshold
Change to 10% or 15%
More signals, but beware of noise
Enable all signals
Visual Signals → Check "Show Triangles" AND "Show Circles"
Full display of all events
Reduce MA period
Settings → MA Period → Change from 20 to 10
More responsive MA = more crossovers
📈 Compatible Markets (Auto-detection)
✅ Energy (NYMEX)
CL, CL1!: WTI Crude Oil
BZ, BZ1!: Brent Crude
NG, NG1!: Natural Gas
RB, RB1!: RBOB Gasoline
HO, HO1!: Heating Oil
✅ Precious Metals (COMEX/NYMEX)
GC, GC1!: Gold
SI, SI1!: Silver
PL, PL1!: Platinum
PA, PA1!: Palladium
HG, HG1!: Copper
✅ Industrial Metals (LME)
ALI, ALI1!: Aluminum
ZNC, ZNC1!: Zinc
NI, NI1!: Nickel
✅ Agriculture - Grains (CBOT)
ZC, ZC1!: Corn
ZW, ZW1!: Wheat
ZS, ZS1!: Soybeans
ZM, ZM1!: Soybean Meal
ZL, ZL1!: Soybean Oil
ZO, ZO1!: Oats
ZR, ZR1!: Rice
✅ Agriculture - Softs (ICE)
SB, SB1!: Sugar
KC, KC1!: Coffee
CC, CC1!: Cocoa
CT, CT1!: Cotton
OJ, OJ1!: Orange Juice
✅ Livestock (CME)
LE, LE1!: Live Cattle
GF, GF1!: Feeder Cattle
HE, HE1!: Lean Hogs
✅ Other
LBS, LBS1!: Lumber (CME)
🎓 Usage Tips
For beginners:
Start with default parameters (threshold 25%, MA 20)
Enable all visual signals
Focus on liquid markets (gold, crude oil)
Observe how OI reacts to price movements
For intermediate traders:
Adjust threshold according to market volatility (15-30%)
Combine with other technical indicators
Create alerts for significant changes
Analyze OI/Price divergences
For advanced traders:
Use multiple MA periods (20, 50, 100)
Analyze OI/Volume/Price correlation
Configure alerts on multiple timeframes
Integrate into complete trading strategy
📊 Practical Example
Scenario: Gold Trading (COMEX:GC1!)
Initial setup:
Threshold: 20% (gold volatile)
MA: 20 days
All signals enabled
Timeframe: Daily (1D)
Observation:
Gold price: Uptrend
OI: ▲ Green triangle (increase of +22%)
Signal: 🟢 Strong Trend (OI > MA)
Interpretation:
New buyers massively entering
Uptrend supported by OI
Strong market conviction
Action:
✅ Long position validated by OI
Stop loss below technical support
Monitor if OI continues to increase
✨ Made by Alphaomega18
Penunjuk dan strategi
Intermarket Swing Projection [LuxAlgo]The Intermarket Swing Projection allows traders to plot price movement swings from any user-selected asset directly onto the chart in the form of zigzags and/or horizontal support and resistance levels.
This tool rescale the external asset price on the user chart, enabling traders to make direct comparisons.
It answers the question of how different the price behavior is between two assets, accounting for each asset's volatility.
🔶 USAGE
This tool is based on swing detection of two different assets: the chart and a user-selected asset. It allows traders to compare two assets on an equal footing while accounting for volatility and price behavior.
Traders can customize the detection by selecting a custom ticker, timeframe, the number of swings and length for swing detection. This makes the tool a Swiss army knife for asset comparison.
As we can see in the image below, the Show Last, Pivot Length, and Spread parameters are key to defining the final output of the tool.
"Show Last" defines how many pivots are displayed. "Pivot Length" is used for pivot detection; a larger value will detect larger market structures. "Spread" defines how far apart the horizontal levels will be from their original location in terms of volatility.
🔹 Comparing different assets
This image shows the Nasdaq 100 futures contract compared to four other futures contracts: S&P 500, gold, bitcoin, and euro/U.S. dollar.
Plotting all of these assets in Nasdaq 100 terms makes it easy to compare and analyze price behaviors and identify key levels.
In the top left chart, we have NQ vs. ES. It's no surprise that they are practically an exact match; a large portion of the S&P 500 is technology.
In the top right chart, NQ vs. GC, we see totally different behaviors. We can clearly see the summer consolidation in gold and the resumption of the uptrend, which took gold above 29,200 NQ points, up from 21,200.
In the bottom right chart, we see bitcoin making new highs, way above the Nasdaq in May, July, and October. However, the last high was way below the Nasdaq prices on October 27—the first lower high in a while. Sellers are pushing down.
Finally, the bottom left chart is NQ vs. 6E. We can see large volatility in the uptrend since February, with NQ unable to catch up until now. The last swing low was almost a match, and 6E is in a range.
As we can see, this tool allows us to perform intermarket analysis properly by accounting for each asset's volatility and price behavior. Then, we plot them on the same scale on equal terms, which makes performing this kind of analysis easy.
As we can see in the chart above, the assets are the same as in the previous image, but the timeframe is 1H with different settings.
Note the horizontal levels acting as support and resistance, as well as how NQ prices react to the zones marked with white circles. These levels are derived from custom assets selected by the user.
🔹 Displaying Elements
Zig-zag allows traders to clearly see the path that the selected asset's price took, as well as its turning points.
Horizontal levels are displayed from those turning points to the present and can be used as support or resistance. Traders can adjust the spread parameter in the settings panel to expand or contract those levels' volatility.
There are two color modes for the levels: average and pivots. In the first mode, green is used for levels below the average and red for levels above the average. The second uses green for swing lows and red for swing highs.
The backpaint feature is enabled by default and allows the swings to be displayed in the correct location. With this feature disabled, the swings will be displayed in the current location when a new swing is detected.
🔶 DETAILS
On a more technical note, the rescaling is formed by calculating three main elements from all the swings detected on the custom and chart assets:
The chart asset's average of all swing points
The chart asset's standard deviation of all swing points
The custom asset's z-score for each swing point
Then, the re-scaled swing point is calculated as the average plus the z-score multiplied by the standard deviation. This makes it possible to plot AAPL swings on an NQ chart, for example.
Thanks to re-scaling, we can directly compare the price behavior of two assets with different price ranges and volatility on the same chart.
🔶 SETTINGS
🔹 Trendlines
Ticker: Select the custom ticker.
Timeframe: Select a custom timeframe.
Show Last: Select how many swing points to display.
Pivot Length: Select the size for swing point detection.
Spread: Volatility multiplier for horizontal levels. Larger values mean the levels are farther apart.
Backpaint: Enable or disable the backpaint feature. When enabled, the drawings will be displayed where they were detected. When disabled, the drawings will be displayed at the moment of detection.
🔹 Style
Show ZigZag: Enable or disable the ZigZag display and choose a line style.
Show Levels: Enable or disable the levels display and choose a line style.
Color Mode: Choose between Average Mode, which colors all levels below the average bullish and all levels above bearish, and Pivot Mode, which colors swing highs bearish and swing lows bullish.
Bullish: Select a bullish color.
Bearish: Select a bearish color.
ZigZag: Select the ZigZag color.
15 min Trailstop15m High/Low Liquidity Lines (1m) — Indicator Description
15m High/Low Liquidity Lines (1m) is a precision liquidity-mapping tool designed for intraday traders who understand the importance of higher-timeframe liquidity levels while executing on the 1-minute chart.
This indicator automatically detects confirmed 15-minute swing highs and swing lows using pivot logic. When a new 15m high or low forms:
✔ Liquidity Line Generation
A horizontal line is drawn exactly at the price level of the pivot.
The line is anchored to the exact 1-minute candle that produced the 15m high/low, ensuring perfect visual alignment.
The line extends only up to the current bar — not across the whole chart.
Optional text labels (“15m High”, “15m Low”) can be shown at the start of each line.
✔ Auto-Cleanup (Smart Liquidity Sweep Detection)
If price trades through the level, the corresponding line and label are:
Instantly deleted
Marking the level as taken/swept
Allowing the chart to stay clean and focused on active liquidity only
This mimics institutional liquidity logic: once the high or low is violated, the target is considered filled and removed.
✔ Alerts
The indicator includes built-in alerts that fire when:
A new 15m high is confirmed
A new 15m low is confirmed
This allows the trader to react immediately when fresh liquidity levels appear.
✔ Customization Options
You can fully tailor the visual representation:
Turn highs and/or lows on or off
Choose line style (solid, dashed, dotted)
Customize line color and thickness
Customize the label style, size, and transparency
Who Is This For?
This indicator is ideal for:
ICT-style traders
Liquidity-based scalpers
1-minute ES/NQ traders
Anyone who uses HTF liquidity levels to frame trades on the LTF
It provides a clean, automated method to track active 15-minute liquidity levels directly on the 1-minute chart with zero clutter and perfect alignment.
Advanced Confluence DashboardAdvanced Confluence Dashboard - Multi-Indicator Technical Analysis Tool
OVERVIEW
The Advanced Confluence Dashboard is a comprehensive technical analysis tool designed to help traders identify high-probability trade setups by tracking multiple technical indicators simultaneously. The indicator displays up to 13 different technical confluences in an easy-to-read dashboard format, providing both individual signals and an overall market bias percentage. Switch between full table view and condensed view for maximum chart flexibility.
FEATURES
- 13 Technical Confluences: RSI, VWAP, EMA Cross (9/21), MACD, Stochastic, Trend (50 EMA), Bollinger Bands, ADX Strength, Price Momentum, Volume Breakout, VWAP Bands, 200 EMA, and Price Action (Higher Highs/Lower Lows)
- Real-time Confluence Scoring: Automatically calculates bullish vs bearish signal strength
- Multi-Timeframe Support: Analyze indicators on any timeframe while viewing your chart on another
- Customizable Display: Toggle individual indicators on/off, adjust table position, size, and transparency
- ATR Information: Optional ATR display for volatility-based position sizing
- Condensed View Mode: Ultra-minimal display showing only confluence score and ATR (perfect for scalpers who want maximum chart visibility)
- Full Table View: Detailed breakdown of each indicator's value and signal
- Color-Coded Signals: Green (bullish), red (bearish), white (neutral) for instant visual clarity
HOW IT WORKS
The indicator evaluates each enabled technical indicator and assigns it either a bullish or bearish signal based on its current state. The confluence score shows how many indicators are aligned in each direction, giving you a clear percentage-based view of market bias. For example, if 8 out of 13 indicators are bullish, you'll see a 62% LONG BIAS signal.
DISPLAY MODES
Full View: Shows all enabled indicators with their current values and signals in a detailed table format. Perfect for understanding exactly which indicators are bullish or bearish and why.
Condensed View: Shows only the confluence score (e.g., "4/13 LONG | 9/13 SHORT - SHORT BIAS 69%") and optional ATR information. This minimal display keeps your chart clean while still providing the essential confluence data you need for quick trading decisions. Ideal for scalpers and traders who want maximum chart space.
CONFLUENCES EXPLAINED
- RSI: Momentum oscillator (>50 bullish, <50 bearish, shows overbought/oversold)
- VWAP: Volume-weighted average price (above = bullish, below = bearish)
- EMA Cross: Fast EMA (9) vs Slow EMA (21) with price position
- MACD: Trend-following momentum (line above signal = bullish)
- Stochastic: Momentum oscillator (>50 bullish, <50 bearish)
- Trend (50 EMA): Price position relative to 50-period EMA
- Bollinger Bands: Volatility and mean reversion (above middle = bullish)
- ADX Strength: Trend strength indicator (shows strong trends)
- Price Momentum: Rate of price change over specified period
- Volume Breakout: Detects unusual volume with directional bias
- VWAP Bands: Standard deviation bands around VWAP
- 200 EMA: Long-term trend indicator
- Price Action: Higher Highs and Lower Lows pattern detection
SETTINGS
Timeframe Settings:
- Indicator Timeframe: Analyze indicators on a different timeframe than your chart
Display Options:
- Condensed View: Toggle between full table and minimal display
- Show ATR Info: Display/hide ATR information
- Table Position: 9 positions (top/middle/bottom + left/center/right)
- Text Size: Auto, tiny, small, normal, large, huge
- Table Transparency: 0-100%
- Border Width: 1-5 pixels
Confluence Toggles:
- Enable/disable any of the 13 confluences individually
- Confluence score automatically adjusts based on enabled indicators
Indicator Settings:
- RSI Length (default: 14)
- ATR Length (default: 14)
- Fast/Slow EMA (default: 9/21)
- Trend EMA (default: 50)
- Volume SMA Length (default: 20)
- Volume Breakout Multiplier (default: 2.0x)
- Bollinger Bands Length/StdDev (default: 20/2.0)
- ADX Length (default: 14)
- ADX Strength Threshold (default: 25)
- Momentum Length (default: 10)
IDEAL USE CASES
- Scalping: Quick identification of confluence for fast entries/exits - use condensed view for clean charts
- Day Trading: Multi-timeframe analysis for intraday setups
- Swing Trading: Confirmation of longer-term bias
- Risk Management: Higher confluence = higher probability trades
- Trade Filtering: Only take trades when confluence reaches your threshold
- Multi-Monitor Setups: Use condensed view on execution charts, full view on analysis charts
HOW TO USE
1. Add the indicator to your chart
2. Toggle on/off the confluences you prefer to use
3. Choose between Full View (detailed) or Condensed View (minimal)
4. Adjust the table position and size to your preference
5. Look for high confluence percentages (70%+ is strong bias)
6. Use the individual indicator signals (full view) to understand market structure
7. Combine with your trading strategy for entry/exit confirmation
TIPS
- Use Condensed View when scalping to keep your chart clean and uncluttered
- Switch to Full View when you need to analyze which specific indicators are conflicting
- Higher confluence doesn't guarantee success - always use proper risk management
- Consider using 60%+ confluence as a minimum threshold for trades
- Pay attention to which specific indicators are aligned vs conflicting
- Use the ATR display for quick reference on position sizing
- Experiment with different timeframes to find what works for your style
- Disable indicators you don't use to simplify your confluence scoring
DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice, investment advice, trading advice, or any other type of advice. Trading and investing in financial markets involves substantial risk of loss and is not suitable for every investor. Past performance is not indicative of future results. Always do your own research and consult with a qualified financial advisor before making any investment decisions.
RSI Swing Indicator (Win-Rate + Forecast Line + Range Row)What the script does:
It’s essentially an enhanced RSI tool that doesn’t just show the raw RSI line. Instead, it adds forecasting, trade statistics, and range detection so you can see how reliable RSI signals have been historically and what they might mean going forward.
The main components
RSI Calculation
- Uses your chosen source (close, hl2, etc.) and length (default 7).
- Plots the RSI line (orange).
Forecasting
- Projects RSI into the future using slope extrapolation.
- Plots a forecast line (blue) and shows whether RSI is likely to become overbought, oversold, or stay neutral.
Trade Statistics
- Tracks how many long and short trades would have been profitable based on RSI bias.
- Calculates Win‑Rate (percentage of profitable trades) and Average Return (average gain/loss per trade).
- This gives you a statistical edge: are longs or shorts historically working better?
Bias & Conflict Detection
- Defines current bias (Bullish, Bearish, Neutral).
- Flags Conflict when the forecast disagrees with the current bias (e.g., RSI bullish now but forecast bearish).
- Helps you avoid trading against weakening momentum.
Range Detection
- Checks if RSI slope is flat and values are between mid‑bounds (40–60).
- Calculates Range Probability (how often range conditions occur).
- Adds a Range row to the table so you know when the market is likely sideways instead of trending.
Table Display
- Summarizes everything in a neat table: Forecast, Win‑Rates, Avg Returns, Prob Bias, Conflict, Range Prob, and Range status.
- Color‑coded so you can instantly see what’s favorable (green), risky (red), or neutral (yellow/orange).
How to use it
- Trend trading: Look for Profitable Bias with forecast alignment.
- Range trading: When both win‑rates are weak and Range row says Range Likely, fade extremes (buy low RSI, sell high RSI).
- Risk management: Avoid trades when Conflict is flagged.
- Forecasting: Use the projected RSI to anticipate overbought/oversold zones before they happen.
In short:
The script is like a “smart RSI dashboard”. It takes the basic RSI, adds forecasting, tracks how well past trades worked, and tells you whether the market is trending or ranging. This way, you’re not just reacting to RSI — you’re trading with context, probabilities, and forward‑looking signals.
Stage 2 Pullback Swing indicatorThis scanner is built for swing traders who want high-probability pullbacks inside strong, established uptrends. It targets names in a confirmed Stage 2 bull phase (Weinstein model) that have pulled back 10–30% from a recent swing high on light selling volume, while still respecting fast EMAs.
Goal: find powerful uptrending stocks during controlled dips before the next leg higher.
What it looks for
Strong prior uptrend: price above the 50 and 200 SMAs, momentum positive over multiple timeframes
Confirmed Stage 2: price above a rising 30-week MA on the weekly chart
Pullback depth: 10–30% off recent swing highs—not too shallow, not broken
Pullback quality: range contained, no panic selling, trend structure intact
EMA behavior: price near EMA10 or EMA20 at signal time
Volume contraction: sellers fading throughout the pullback
Bullish shift: green candle back in trend direction
Why this matters
This setup hints at institutions defending positions during a temporary dip. Strong stocks pull back cleanly with declining volume, then resume the primary trend. This script alerts you when those conditions align.
Best way to use
Filter a strong universe before applying—quality tickers only
Pair with clear trade plans: risk defined by prior swing low or ATR
Trigger alerts instead of hunting charts manually
Intended for
Swing traders who want momentum continuation setups
Traders who prefer entering on controlled retracements
Anyone tired of chasing extended breakouts
machine_learningLibrary "machine_learning"
euclidean(a, b)
Parameters:
a (array)
b (array)
manhattan(a, b)
Parameters:
a (array)
b (array)
cosine_similarity(a, b)
Parameters:
a (array)
b (array)
cosine_distance(a, b)
Parameters:
a (array)
b (array)
chebyshev(a, b)
Parameters:
a (array)
b (array)
minkowski(a, b, p)
Parameters:
a (array)
b (array)
p (float)
dot_product(a, b)
Parameters:
a (array)
b (array)
vector_norm(arr, p)
Parameters:
arr (array)
p (float)
sigmoid(x)
Parameters:
x (float)
sigmoid_derivative(x)
Parameters:
x (float)
tanh_derivative(x)
Parameters:
x (float)
relu(x)
Parameters:
x (float)
relu_derivative(x)
Parameters:
x (float)
leaky_relu(x, alpha)
Parameters:
x (float)
alpha (float)
leaky_relu_derivative(x, alpha)
Parameters:
x (float)
alpha (float)
elu(x, alpha)
Parameters:
x (float)
alpha (float)
gelu(x)
Parameters:
x (float)
swish(x, beta)
Parameters:
x (float)
beta (float)
softmax(arr)
Parameters:
arr (array)
apply_activation(arr, activation_type, alpha)
Parameters:
arr (array)
activation_type (string)
alpha (float)
normalize_minmax(arr, min_val, max_val)
Parameters:
arr (array)
min_val (float)
max_val (float)
normalize_zscore(arr, mean_val, std_val)
Parameters:
arr (array)
mean_val (float)
std_val (float)
normalize_matrix_cols(m)
Parameters:
m (matrix)
scaler_fit(arr, method)
Parameters:
arr (array)
method (string)
scaler_fit_matrix(m, method)
Parameters:
m (matrix)
method (string)
scaler_transform(scaler, arr)
Parameters:
scaler (ml_scaler)
arr (array)
scaler_transform_matrix(scaler, m)
Parameters:
scaler (ml_scaler)
m (matrix)
clip(x, lo, hi)
Parameters:
x (float)
lo (float)
hi (float)
clip_array(arr, lo, hi)
Parameters:
arr (array)
lo (float)
hi (float)
loss_mse(predicted, actual)
Parameters:
predicted (array)
actual (array)
loss_rmse(predicted, actual)
Parameters:
predicted (array)
actual (array)
loss_mae(predicted, actual)
Parameters:
predicted (array)
actual (array)
loss_binary_crossentropy(predicted, actual)
Parameters:
predicted (array)
actual (array)
loss_huber(predicted, actual, delta)
Parameters:
predicted (array)
actual (array)
delta (float)
gradient_step(weights, gradients, lr)
Parameters:
weights (array)
gradients (array)
lr (float)
adam_step(weights, gradients, m, v, lr, beta1, beta2, t, epsilon)
Parameters:
weights (array)
gradients (array)
m (array)
v (array)
lr (float)
beta1 (float)
beta2 (float)
t (int)
epsilon (float)
clip_gradients(gradients, max_norm)
Parameters:
gradients (array)
max_norm (float)
lr_decay(initial_lr, decay_rate, step)
Parameters:
initial_lr (float)
decay_rate (float)
step (int)
lr_cosine_annealing(initial_lr, min_lr, step, total_steps)
Parameters:
initial_lr (float)
min_lr (float)
step (int)
total_steps (int)
knn_create(k, distance_type)
Parameters:
k (int)
distance_type (string)
knn_fit(model, X, y)
Parameters:
model (ml_knn)
X (matrix)
y (array)
knn_predict(model, x)
Parameters:
model (ml_knn)
x (array)
knn_predict_proba(model, x)
Parameters:
model (ml_knn)
x (array)
knn_batch_predict(model, X)
Parameters:
model (ml_knn)
X (matrix)
linreg_fit(X, y)
Parameters:
X (matrix)
y (array)
ridge_fit(X, y, lambda)
Parameters:
X (matrix)
y (array)
lambda (float)
linreg_predict(model, x)
Parameters:
model (ml_linreg)
x (array)
linreg_predict_batch(model, X)
Parameters:
model (ml_linreg)
X (matrix)
linreg_score(model, X, y)
Parameters:
model (ml_linreg)
X (matrix)
y (array)
logreg_create(n_features, learning_rate, iterations)
Parameters:
n_features (int)
learning_rate (float)
iterations (int)
logreg_fit(model, X, y)
Parameters:
model (ml_logreg)
X (matrix)
y (array)
logreg_predict_proba(model, x)
Parameters:
model (ml_logreg)
x (array)
logreg_predict(model, x, threshold)
Parameters:
model (ml_logreg)
x (array)
threshold (float)
logreg_batch_predict(model, X, threshold)
Parameters:
model (ml_logreg)
X (matrix)
threshold (float)
nb_create(n_classes)
Parameters:
n_classes (int)
nb_fit(model, X, y)
Parameters:
model (ml_nb)
X (matrix)
y (array)
nb_predict_proba(model, x)
Parameters:
model (ml_nb)
x (array)
nb_predict(model, x)
Parameters:
model (ml_nb)
x (array)
nn_create(layers, activation)
Parameters:
layers (array)
activation (string)
nn_forward(model, x)
Parameters:
model (ml_nn)
x (array)
nn_predict_class(model, x)
Parameters:
model (ml_nn)
x (array)
accuracy(y_true, y_pred)
Parameters:
y_true (array)
y_pred (array)
precision(y_true, y_pred, positive_class)
Parameters:
y_true (array)
y_pred (array)
positive_class (int)
recall(y_true, y_pred, positive_class)
Parameters:
y_true (array)
y_pred (array)
positive_class (int)
f1_score(y_true, y_pred, positive_class)
Parameters:
y_true (array)
y_pred (array)
positive_class (int)
r_squared(y_true, y_pred)
Parameters:
y_true (array)
y_pred (array)
mse(y_true, y_pred)
Parameters:
y_true (array)
y_pred (array)
rmse(y_true, y_pred)
Parameters:
y_true (array)
y_pred (array)
mae(y_true, y_pred)
Parameters:
y_true (array)
y_pred (array)
confusion_matrix(y_true, y_pred, n_classes)
Parameters:
y_true (array)
y_pred (array)
n_classes (int)
sliding_window(data, window_size)
Parameters:
data (array)
window_size (int)
train_test_split(X, y, test_ratio)
Parameters:
X (matrix)
y (array)
test_ratio (float)
create_binary_labels(data, threshold)
Parameters:
data (array)
threshold (float)
lag_matrix(data, n_lags)
Parameters:
data (array)
n_lags (int)
signal_to_position(prediction, threshold_long, threshold_short)
Parameters:
prediction (float)
threshold_long (float)
threshold_short (float)
confidence_sizing(probability, max_size, min_confidence)
Parameters:
probability (float)
max_size (float)
min_confidence (float)
kelly_sizing(win_rate, avg_win, avg_loss, max_fraction)
Parameters:
win_rate (float)
avg_win (float)
avg_loss (float)
max_fraction (float)
sharpe_ratio(returns, risk_free_rate)
Parameters:
returns (array)
risk_free_rate (float)
sortino_ratio(returns, risk_free_rate)
Parameters:
returns (array)
risk_free_rate (float)
max_drawdown(equity)
Parameters:
equity (array)
atr_stop_loss(entry_price, atr, multiplier, is_long)
Parameters:
entry_price (float)
atr (float)
multiplier (float)
is_long (bool)
risk_reward_take_profit(entry_price, stop_loss, ratio)
Parameters:
entry_price (float)
stop_loss (float)
ratio (float)
ensemble_vote(predictions)
Parameters:
predictions (array)
ensemble_weighted_average(predictions, weights)
Parameters:
predictions (array)
weights (array)
smooth_prediction(current, previous, alpha)
Parameters:
current (float)
previous (float)
alpha (float)
regime_classifier(volatility, trend_strength, vol_threshold, trend_threshold)
Parameters:
volatility (float)
trend_strength (float)
vol_threshold (float)
trend_threshold (float)
ml_knn
Fields:
k (series int)
distance_type (series string)
X_train (matrix)
y_train (array)
ml_linreg
Fields:
coefficients (array)
intercept (series float)
lambda (series float)
ml_logreg
Fields:
weights (array)
bias (series float)
learning_rate (series float)
iterations (series int)
ml_nn
Fields:
layers (array)
weights (matrix)
biases (array)
weight_offsets (array)
bias_offsets (array)
activation (series string)
ml_nb
Fields:
class_priors (array)
means (matrix)
variances (matrix)
n_classes (series int)
ml_scaler
Fields:
min_vals (array)
max_vals (array)
means (array)
stds (array)
method (series string)
ml_train_result
Fields:
loss_history (array)
final_loss (series float)
converged (series bool)
iterations_run (series int)
ml_prediction
Fields:
class_label (series int)
probability (series float)
probabilities (array)
value (series float)
Premarket&Regular Session VolumeThis script provides a clean and practical overview of premarket cumulative volume compared with regular session volume, helping traders instantly identify unusual early-session liquidity.
Features
Tracks total premarket volume from 4:00–9:30 ET
Shows cumulative premarket buildup as a smooth line
Helps detect early liquidity spikes that often lead to halts, gap-ups or momentum runs
Designed for intraday scalpers and small-cap/momentum traders
Why It’s Useful
Premarket activity frequently reveals hidden demand long before the opening bell.
When premarket volume significantly exceeds average daily levels, the probability of early spikes, volatility events, or continuation moves increases.
This indicator offers a simple but powerful visual tool for evaluating market interest before the open and comparing it with regular session volume
Sultan MA Trinity – Scalper to SwingSultan MA Trinity Pro is an institutional moving-average trend engine for scalping, intraday and swing trading.
It auto-adjusts EMAs and ATR-based SL/TP per mode, prints clean BUY/SELL signals with break-even logic, and shows a live dashboard for trend, last trade and key MA levels.
Use it as a directional framework and confluence tool alongside your own SMC/VSA rules – not as a blind signal generator.
HTF LiquidityThe ICT Liquidity Sweeps Indicator is designed to track liquidity zones in the market areas where stop-losses and pending orders are typically clustered. This indicator marks buyside liquidity (resistance) and sellside liquidity (support) from HTF (H4, H1 and M15), helping traders identify areas where price is likely to manipulate liquidity before making a significant move.
This tool is based on Inner Circle Trader (ICT) Smart Money Concepts, which emphasize how institutional traders, or “Smart Money,” manipulate liquidity to fuel price movements. By identifying these zones, traders can anticipate liquidity sweeps and position themselves accordingly.
⚙️ How It Works
1️⃣ Detects Key Liquidity Zones
The script automatically identifies significant swing highs and swing lows in price action using a pivot-based method.
A swing high (buyside liquidity) is a peak where price struggles to break higher, forming a resistance level.
A swing low (sellside liquidity) is a valley where price struggles to go lower, creating a support level.
These liquidity points are prime targets for liquidity sweeps before a true trend direction is confirmed.
2️⃣ Draws Liquidity Lines
Once a swing high or low is identified, a horizontal line is drawn at that level.
The lines extend to the right, serving as future liquidity targets until they are broken.
The indicator allows customization in terms of color, line width, and maximum number of liquidity lines displayed at once.
3️⃣ Handles Liquidity Sweeps
When price breaks a liquidity level, the indicator reacts based on the chosen action setting:
Dotted/Dashed: The line remains visible but changes style to indicate a sweep.
Delete: The line is completely removed once price has interacted with it.
This feature ensures that traders can easily spot where liquidity has been taken and determine whether a reversal or continuation is likely.
4️⃣ Prevents Chart Clutter
To maintain a clean chart, the script limits the number of liquidity lines displayed at any given time.
When new liquidity zones are formed, the oldest lines are automatically removed, keeping the focus on the most relevant liquidity zones.
ATR Stop Loss Finder (Strict Breakout Mode)Title: ATR Stop Loss Finder (Strict Breakout Mode)
Description:
Volatility-Based Risk Management: Generates dynamic trailing stop-loss lines for both Long (Lower Line) and Short (Upper Line) positions based on ATR volatility.
Strict Breakout Detection: Features a unique "Strict Breakout" logic that highlights trend acceleration. It visually marks whenever the Long SL breaks a historical high or the Short SL breaks a historical low over a user-defined lookback period (e.g., 50 bars).
Visual Signals: Automatically plots Red Circles for bullish SL breakouts (New Highs) and Blue Circles for bearish SL breakdowns (New Lows), making strong momentum shifts easy to spot.
Real-Time Dashboard: Includes an informative table displaying current ATR and SL price levels for quick reference.
Mirpapa_Lib_StructsLibrary "Mirpapa_Lib_Structs"
ICT 구조 변화 감지 라이브러리 (BOS, CHoCH, MSS, Sweep)
initStructState()
StructState 초기화
checkBOS(_trend, _currentClose, _lastHHPrice, _lastLLPrice)
BOS 체크 (추세 지속) - 종가 기준
Parameters:
_trend (string) : 현재 추세
_currentClose (float) : 현재 종가
_lastHHPrice (float) : 마지막 HH 가격
_lastLLPrice (float) : 마지막 LL 가격
Returns:
checkCHoCH(_trend, _currentClose, _lastHHPrice, _lastLLPrice)
CHoCH 체크 (추세 전환) - 종가 기준
Parameters:
_trend (string) : 현재 추세
_currentClose (float) : 현재 종가
_lastHHPrice (float) : 마지막 HH 가격
_lastLLPrice (float) : 마지막 LL 가격
Returns:
checkSweep(_currentHigh, _currentLow, _currentClose, _lastHHPrice, _lastLLPrice)
Sweep 체크 (유동성 수집)
Parameters:
_currentHigh (float) : 현재 고가
_currentLow (float) : 현재 저가
_currentClose (float) : 현재 종가
_lastHHPrice (float) : 마지막 HH 가격
_lastLLPrice (float) : 마지막 LL 가격
Returns:
checkMSS(_hadCHoCH, _chochDir, _currentHigh, _currentLow, _chochPrice)
MSS 체크 (CHoCH + 리테스트 확인)
Parameters:
_hadCHoCH (bool) : CHoCH 발생 여부
_chochDir (string) : CHoCH 방향
_currentHigh (float) : 현재 고가
_currentLow (float) : 현재 저가
_chochPrice (float) : CHoCH 발생 가격
Returns:
drawStructLabel(_price, _time, _type, _dir, _lblColor)
구조 변화 라벨 그리기
Parameters:
_price (float) : 가격
_time (int) : 시간
_type (string) : 구조 타입
_dir (string) : 방향
_lblColor (color) : 라벨 색상
drawStructLine(_price, _startTime, _endTime, _lineColor, _lineWidth)
구조 변화 라인 그리기
Parameters:
_price (float) : 가격
_startTime (int) : 시작 시간
_endTime (int) : 끝 시간
_lineColor (color) : 라인 색상
_lineWidth (int) : 라인 두께
StructType
구조 타입 상수
Fields:
BOS (series string)
CHOCH (series string)
MSS (series string)
SWEEP (series string)
TrendDir
추세 방향 상수
Fields:
UP (series string)
DOWN (series string)
NONE (series string)
StructState
구조 변화 상태
Fields:
_trend (series string) : 현재 추세 방향
_lastHHPrice (series float) : 마지막 HH 가격
_lastHHTime (series int) : 마지막 HH 시간
_lastLLPrice (series float) : 마지막 LL 가격
_lastLLTime (series int) : 마지막 LL 시간
IDLP – Intraday Daily Levels Pro [FXSMARTLAB]🔥 IDLP – Intraday Daily Levels Pro
IDLP – Intraday Daily Levels Pro is a precision toolkit for intraday traders who rely on objective daily structure instead of repainting indicators and noisy signals.
Every level plotted by IDLP is derived from one simple rule:
Today’s trading decisions must be based on completed market data only.
That means:
✅ No use of the current day’s unfinished data for levels
✅ No lookahead
✅ No hidden repaint behavior
IDLP reconstructs the previous trading day from the intraday chart and then projects that structure forward onto the current session, giving you a stable, institutional-style intraday map.
🧱 1. Previous Daily Levels (Core Structure)
IDLP extracts and displays the full previous daily structure, which you can toggle on/off individually via the inputs:
Previous Daily High (PDH)
Previous Daily Low (PDL)
Previous Daily Open
Previous Daily Close,
Previous Daily Mid (50% of the range)
Previous Daily Q1 (25% of the range)
Previous Daily Q3 (75% of the range)
All of these come from the day that just closed and are then locked for the entire current session.
What these levels tell you:
PDH / PDL – true extremes of yesterday’s price action (liquidity zones, breakout/reversal points).
Previous Daily Open / Close – how the market positioned itself between session start and end
Mid (50%) – equilibrium level of the previous day’s auction.
Q1 / Q3 (25% / 75%) internal structure of the previous day’s range, dividing it into four equal zones and helping you see if price is trading in the lower, middle, or upper quarter of yesterday’s range.
All these levels are non-repaint: once the day is completed, they are fixed and never change when you scroll, replay, or backtest.
🎯 2. Previous Day Pivot System (P, S1, S2, R1, R2)
IDLP includes a classic floor-trader pivot grid, but critically:
It is calculated only from the previous day’s high, low, and close.
So for the current session, the following are fixed:
Pivot P – central reference level of the previous day.
Support 1 (S1) and Support 2 (S2)
Resistance 1 (R1) and Resistance 2 (R2)
These levels are widely used by institutional desks and algos to structure:
mean-reversion plays, breakout zones, intraday targets, and risk placement.
Everything in this section is non-repaint because it only uses the previous day’s fully closed OHLC.
📏 3. 1-Day ADR Bands Around Previous Daily Open
Instead of a multi-day ADR, IDLP uses a pure 1-Day ADR logic:
ADR = Range of the previous day
ADR = PDH − PDL
From that, IDLP builds two clean bands centered around the previous daily Open:
ADR Upper Band = Previous Day Open + (ADR × Multiplier)
ADR Lower Band = Previous Day Open − (ADR × Multiplier)
The multiplier is user-controlled in the inputs:
ADR Multiplier (default: 0.8)
This lets you choose how “tight” or “wide” you want the ADR envelope to be around the previous day’s open.
Typical use cases:
Identify realistic intraday extension targets, Spot exhaustion moves beyond ADR bands, Frame reversals after reaching volatility extremes, Align trades with or against volatility expansion
Again, since ADR is calculated only from the completed previous day, these bands are totally non-repaint during the current session.
🔒 4. True Non-Repaint Architecture
The internal logic of IDLP is built to guarantee non-repaint behavior:
It reconstructs each day using time("D") and tracks:
dayOpen, dayHigh, dayLow, dayClose for the current day
prevDayOpen, prevDayHigh, prevDayLow, prevDayClose for the previous day
At the moment a new day starts:
The “current day” gets “frozen” into prevDay*
These prevDay* values then drive: Previous Daily Levels, Pivots, ADR.
During the current day:
All these “previous day” values stay fixed, no matter what happens.
They do not move in real time, they do not shift in replay.
This means:
What you see in the past is exactly what you would have seen live.
No fake backtests.
No illusion of perfection from repainting behavior.
🎯 5. Designed For Intraday Traders
IDLP – Intraday Daily Levels Pro is made for:
- Day traders and scalpers
- Index and FX traders
- Prop firm challenge trading
- Traders using ICT/SMC-style levels, liquidity, and range logic
- Anyone who wants a clean, institutional-style daily framework without noise
You get:
Previous Day OHLC
Mid / Q1 / Q3 of the previous range
Previous-Day Pivots (P, S1, S2, R1, R2)
1-Day ADR Bands around Previous Day Open
All calculated only from closed data, updated once per day, and then locked.
Apex IndicatorThe Apex Indicator is a physics-based momentum tool designed to measure the 2nd Derivative (Acceleration) of both Price and Volume.
Unlike standard oscillators which often lag, this indicator uses Kinematics to identify the subtle shifts in momentum before price makes a major move. It answers the critical questions: Is the selling pressure fading? and Is there fresh fuel (Volume) entering to support a turn?
This script uses Hull Moving Average (HMA) smoothing for low-latency calculation, and Z-Score Normalization to force Price and Volume onto a shared, readable scale.
Visual Guide
The Histogram (Price Acceleration)
Bright Green: Strong Bullish Acceleration (High Velocity).
Dark Green: Developing Bullish Momentum (or Waning Bullishness depending on context).
Bright Red: Strong Bearish Acceleration (Panic/Dump).
Dark Red: Developing Bearish Momentum (or Waning Bearishness).
The Line (Volume Acceleration)
Yellow: Volume is accelerating (Interest is entering).
Purple: Volume is decelerating (Interest is leaving).
The Background Highlights
Green/Red Background: These mark Statistical Extremes (>1 Standard Deviation). While these show maximum power, they often mark the climax of a move rather than the start.
How to Trade: Reading the Subtleties
The power of the Apex Indicator is not in chasing the spikes, but in reading the Transitions.
1. The Turn (The Reversal Entry)
Don't wait for the explosion; look for the "braking" action.
The Setup: Price has been moving down strongly (Bright Red bars).
The Signal: The histogram shifts to Dark Red and begins moving up toward the zero line (less negative). This means the selling acceleration is dying.
The Trigger: A Dark Green bar prints, accompanied by the Volume Line turning Yellow/Rising.
Why it works: You are entering when the bearish energy is exhausted and fresh volume is stepping in to lift the price, often before the main breakout occurs.
2. The Second Wind (Trend Continuation)
The Setup: You are already in a trend (Green bars), but the bars fade to Dark Green or near Zero (a pullback or pause).
The Trigger: The next bar flips Bright Green and the Volume Line spikes Yellow.
Why it works: This confirms that the pause was just a breather, and buyers are stepping back on the gas.
3. The "Hollow Move" (Trap Avoidance)
The Scenario: Price is moving up (Green bars), but the Volume Line is Purple or dropping.
Interpretation: This is a drift, not a drive. Without volume acceleration support, these moves are prone to rapid reversal.
4. The Climax (Exits)
If the Background flashes Green (Alert Trigger), be aware that price acceleration has hit a statistical extreme (Z-Score > 1).
If you are in a position, this is often a good place to Take Profit, as maintaining that level of acceleration is mathematically difficult for the market to sustain.
Settings
Analysis Length (21): The lookback period for the HMA smoothing.
Normalization Lookback (21): The historical window used to calculate the Z-Score. A setting of 21 allows the indicator to self-adjust quickly to recent volatility conditions.
PEG RSI [Auto EPS Growth]The PEG RSI is a hybrid indicator that combines fundamental valuation with technical momentum. It applies the Relative Strength Index (RSI) directly to the Price/Earnings-to-Growth (PEG) Ratio.
Unlike traditional PEG indicators that require manual input for growth rates, this script automatically calculates the Compound Annual Growth Rate (CAGR) of Earnings Per Share (EPS) based on historical data.
Key Features
- Auto-Calculated Growth: Uses historical TTM Earnings Per Share (EPS) to calculate the CAGR over a user-defined period (Default: 4 years).
- Dynamic Valuation: Converts the static PEG ratio into an oscillator (RSI) to identify relative valuation extremes.
- Trend & Momentum: Visualizes the momentum of the PEG ratio relative to its own history.
Educational Case Study
This indicator is designed for educational purposes and research. Instead of relying on fixed overbought or oversold levels, users are encouraged to study the correlation between the PEG RSI and price action independently.
- Observe how the price reacts when the PEG RSI reaches upper or lower extremes.
- Different stocks may respect different RSI zones based on their growth stability.
- Use this tool to analyze how market valuation momentum shifts over time.
Settings:
- Years for CAGR Growth: Timeframe to calculate EPS growth (Default: 4 years).
- RSI Length: Lookback period for the RSI calculation (Default: 14).
Note: This indicator works best on stocks with a consistent history of earnings. It requires financial data to function (will not work on assets without EPS like Crypto or Forex).
Raja's SMC Order Blocks Display [PRO]Raja's SMC Order Blocks Display - Complete Description
🌟 A Message from Raja Saien
This indicator has been crafted with dedication, countless hours of research, and deep passion for trading excellence. Raja Saien has poured his heart and soul into creating this powerful tool to help YOU succeed in the markets.
For Everyone Starting Their Trading Journey:
If you're new to trading, remember - every expert was once a beginner. This indicator is your gateway to understanding how institutional money moves in the markets. Raja Saien believes in YOUR potential to learn, grow, and achieve financial freedom through smart trading.
The path to success requires:
✨ Dedication to learning the craft
💪 Patience during the learning curve
🎯 Consistent practice with the right tools
🚀 Belief in your ability to master the markets
This isn't just an indicator - it's a mentor on your chart, showing you where the smart money is positioned. With hard work and this tool in your arsenal, you can transform your trading and your life.
Remember: The markets reward those who prepare, practice, and persist. Raja Saien has given you the tool - now it's your turn to commit to the journey!
Overview
This is an advanced TradingView indicator that identifies and displays Smart Money Concepts (SMC) and Order Blocks. It's designed for professional traders who want to understand institutional trading patterns and market structure.
Main Features
1. Smart Money Concepts (SMC) Detection
ZigZag Pattern Recognition: Identifies market structure using pivot highs and lows
Break of Structure (BOS): Detects when price breaks through important structural levels
Change of Character (CHoCH): Identifies trend reversals and shifts in market sentiment
Configurable Length: Adjustable ZigZag sensitivity (default: 5 bars)
2. Order Blocks (OB)
Order blocks are zones where institutional investors have placed large orders. The indicator identifies two types:
Bullish Order Blocks:
Created when market shifts from bearish to bullish
Marks the last bearish candle before the structure break
Displayed in green/teal color
Represents potential support zones where price may bounce
Looks back 10 bars to find the lowest bearish candle
Bearish Order Blocks:
Created when market shifts from bullish to bearish
Marks the last bullish candle before the structure break
Displayed in red color
Represents potential resistance zones where price may reject
Looks back 10 bars to find the highest bullish candle
3. Order Block Management
Dynamic Extension: Active order blocks extend forward on the chart
Mitigation Detection: Automatically detects when price fully breaks through an order block
Bullish OB mitigated when close drops below the bottom
Bearish OB mitigated when close rises above the top
Visual Feedback: Mitigated blocks turn gray and are labeled "Mitigated"
Auto-cleanup: Removes mitigated order blocks from active tracking
4. Moving Averages Suite
Includes multiple trend indicators for comprehensive analysis:
Fast EMA (default 9): Yellow line - captures short-term momentum
Slow EMA (default 21): Purple line - identifies medium-term trends
EMA 50: Orange line - major trend filter
SMA 200: Blue line - long-term trend and institutional reference point
All EMAs support multiple source options: Open, High, Low, Close, HL2, HLC3, OHLC4
Customization Options
SMC Settings
ZigZag Length: Control sensitivity of structure detection (2-100)
Show Order Blocks: Toggle order block display on/off
Visual Settings
Bullish Color: Customize color for bullish order blocks (default: teal #089981)
Bearish Color: Customize color for bearish order blocks (default: red #f23645)
Transparency: Order blocks displayed with 80% transparency for better chart visibility
EMA Settings
Fast EMA Length: Adjustable period (default: 9)
Slow EMA Length: Adjustable period (default: 21)
Source Selection: Choose calculation source for each EMA
Toggle EMA 50: Show/hide the 50-period EMA
Toggle SMA 200: Show/hide the 200-period SMA
How It Works
Structure Detection Process
Identifies pivot highs and lows based on specified length
Creates ZigZag lines connecting significant swing points
Tracks current trend direction (bullish/bearish/neutral)
Monitors for structural breaks that signal trend changes
Order Block Creation
When price breaks above a previous high (bullish BOS):
Scans last 10 bars for the lowest bearish candle
Creates bullish order block at that candle's range
Marks it as active support zone
When price breaks below a previous low (bearish BOS):
Scans last 10 bars for the highest bullish candle
Creates bearish order block at that candle's range
Marks it as active resistance zone
Order Block Lifecycle
Active: Box extends forward with colored border and background
Tested: Price can interact with the zone multiple times
Mitigated: Once price closes through the zone, marked as invalidated
Removed: Automatically cleaned up after mitigation
Trading Applications
Entry Strategies
Pullback Entries: Wait for price to return to an active order block
Confirmation: Look for bullish price action at bullish OBs, bearish at bearish OBs
EMA Confluence: Stronger setups when OBs align with EMA levels
Risk Management
Stop Loss: Place stops just beyond the order block boundary
Invalidation: Exit if order block gets mitigated
Multiple Timeframes: Check OBs on higher timeframes for stronger zones
Trend Analysis
EMA Alignment: All EMAs pointing same direction = strong trend
EMA 50 Test: Key level for trend continuation/reversal
SMA 200: Major institutional reference point
Technical Specifications
Max Boxes: 500 (sufficient for most chart timeframes)
Max Lines: 500
Max Labels: 500
Overlay: True (draws directly on price chart)
Version: Pine Script v5
Best Practices
Use on liquid markets (forex, major stocks, crypto)
Combine with volume analysis for confirmation
Higher timeframes produce more reliable order blocks
Wait for clear structure breaks before trusting new OBs
Don't trade against the major trend (SMA 200 direction)
Use multiple confirmations before entering trades
Limitations
Works best in trending markets with clear structure
May produce false signals in ranging/choppy conditions
Requires understanding of Smart Money Concepts
Not a standalone trading system - use with proper risk management
Historical order blocks don't guarantee future reactions
Multi-EMA Slope DashboardThis script provides a comprehensive dashboard displayed directly on the chart, allowing you to analyze the underlying trend using 8 Exponential Moving Averages (EMA) ranging from period 20 to 55.
Unlike classic indicators that simply check if the price is above or below the EMA, this tool analyzes the slope of each moving average to determine the true market dynamics.
The indicator calculates the status of 8 distinct EMAs (20, 25, 30, 35, 40, 45, 50, 55). For each EMA, the script determines the direction using the following logic:
Slope Calculation: It compares the current EMA value with its value 3 bars ago (variable nb_bougies).
Neutrality Threshold: To avoid false signals in ranging (flat) markets, a neutrality filter is applied (0.01% of the EMA value).
Dashboard Interpretation
The table is located at the top right of your screen and displays three columns:
EMA: The moving average period (e.g., 20, 55).
State:
H (Hausse / Up): The slope is positive and above the threshold.
B (Baisse / Down): The slope is negative and below the negative threshold.
N (Neutre / Neutral): The slope is weak, indicating no clear trend.
COL (Color): Quick visual indicator.
🔵 Blue: Bullish trend.
🟠 Orange: Bearish trend.
⚪ Gray: Neutral Trend / Ranging.
Trading Usage
Trend Confirmation: Use the "Totaux" (Totals) counter at the bottom of the table. If you see 8/8 H (Blue), the bullish trend is strong and aligned across all timeframes (short and medium term).
Reversal Detection: If fast EMAs (20, 25) turn Orange (B) while slow ones (50, 55) are still Blue (H), this may signal the beginning of a correction or a trend reversal.
DeM Trend Bias Strength with Alerts (RB Trading)This tool is built to help users understand trend direction, exhaustion, and momentum shifts on the daily timeframe. It highlights when a market is transitioning from weakness to strength or strength to weakness by displaying color-coded bias bars. The script does not forecast future outcomes and should be used as an analytical aid.
Intended Usage
• Timeframe: Daily
• Instruments: Works on most FX pairs and liquid markets
• Style: Trend and bias evaluation
• Purpose: Identify early signs of momentum recovery within ongoing trends
How It Works
Bias Rotation Engine
The script measures directional pressure and smooths it into a bar display that changes color as conditions shift.
• Green bars show rising strength conditions
• Red bars show declining strength conditions
• Transitional periods often appear near market turning points and consolidation zones
This helps users visually separate healthy directional trends from weakening phases.
Trend Alignment Filter
The bars are designed to be interpreted alongside moving averages or broader trend tools. When the bars turn higher while price respects an upward structure, it often supports continuation themes. When the bars weaken during downward phases, it highlights potential areas where the trend retains control.
Identifying Exhaustion and Recovery
Repeated cycles in the bar display can highlight areas where:
• Downside pressure is fading before an upswing
• Upside pressure is fading before a pullback
• Consolidation is forming before a breakout
These transitions tend to align with moments shown in the image where the arrows mark bias shifts occurring before price acceleration.
How to Use It
• Wait for a clear color rotation before making any decisions
• Confirm with the daily trend and price structure
• Avoid using the tool by itself for entries
• Combine with support and resistance, moving averages, and candle structure
• Not intended for scalping or intraday signals
Why Daily Chart Works Best
The daily timeframe smooths out noise and gives the strength bars enough data to reveal genuine trend transitions. Higher timeframes also reduce false rotations that are common in lower timeframes.
Notes
The script does not predict or guarantee price movement. It processes historical inputs to help the user understand directional conditions. Each trader should apply their own risk plan and confirm levels before acting on any idea.
Stochastic RSI Forecast [QuantAlgo]🟢 Overview
The Stochastic RSI Forecast extends the classic momentum oscillator by projecting potential future K and D line values up to 10 bars ahead. Unlike traditional indicators that only reflect historical price action, this indicator uses three proprietary forecasting models, each operating on different market data inputs (price structure, volume metrics, or linear trend), to explore potential price paths. This unique approach allows traders to form probabilistic expectations about future momentum states and incorporate these projections into both discretionary and algorithmic trading and/or analysis.
🟢 How It Works
The indicator operates through a multi-stage calculation process that extends the RSI-to-Stochastic chain forward in time. First, it generates potential future price values using one of three selectable forecasting methods, each analyzing different market dimensions (structure, volume, or trend). These projected prices are then processed through an iterative RSI calculation that maintains continuity with historical gain/loss averages, producing forecasted RSI values. Finally, the system applies the full stochastic transformation (calculating the position of each forecasted RSI within its range, smoothing with K and D periods) to project potential future oscillator values.
The forecasting models adapt to market conditions by analyzing configurable lookback periods and recalculating projections on every bar update. The implementation preserves the mathematical properties of the underlying RSI calculation while extrapolating momentum trajectories, creating visual continuity between historical and forecasted values displayed as semi-transparent dashed lines extending beyond the current bar.
🟢 Key Features
1. Market Structure Model
This algorithm applies price action analysis by tracking break of structure (BOS) and change of character (CHoCH) patterns to identify potential order flow direction. The system detects swing highs and lows using configurable pivot lengths, then analyzes sequences of higher highs or lower lows to determine bullish or bearish structure bias. When price approaches recent swing points, the forecast projects moves in alignment with the established structure, scaled by ATR (Average True Range) for volatility adjustment.
Potential Benefits for Traders:
Explores potential momentum continuation scenarios during established trends
Identifies areas where structure changes might influence momentum
Could be useful for swing traders and position traders who incorporate structure-based analysis
The Structure Influence parameter (0-1 scale) allows blending between pure trend following and structure-weighted forecasts
Helps visualize potential trend exhaustion through weakening structure patterns
2. Volume-Weighted Model
This model analyzes volume patterns by combining On-Balance Volume (OBV), Accumulation/Distribution Line, and volume-weighted price returns to assess potential capital flow. The algorithm calculates directional volume momentum and identifies volume spikes above customizable thresholds to determine accumulation or distribution phases. When volume indicators align directionally, the forecast projects stronger potential moves; when volume diverges from price trends, it suggests possible reversals or consolidation.
Potential Benefits for Traders:
Incorporates volume analysis into momentum forecasting
Attempts to filter price action by volume support or lack thereof
Could be more relevant in markets where volume data is reliable (equities, crypto, major forex pairs)
Volume Influence parameter (0-1 scale) enables adaptation to different market liquidity profiles
Highlights volume climax patterns that sometimes precede trend changes
Could be valuable for traders who incorporate volume confirmation in their analysis
3. Linear Regression Model
This mathematical approach applies least-squares regression fitting to project price trends based on recent price data. Unlike the conditional logic of the other methods, linear regression provides straightforward trend extrapolation based on the best-fit line through the lookback period.
Potential Benefits for Traders:
Delivers consistent, reproducible forecasts based on statistical principles
Works better in trending markets with clear directional bias
Useful for systematic traders building quantitative strategies requiring stable inputs
Minimal parameter sensitivity (primarily controlled by lookback period)
Computationally efficient with fast recalculation on every bar
Serves as a baseline to compare against the more complex structure and volume methods
🟢 Universal Applications Across All Models
Each forecasting method projects potential future stochastic RSI values (K and D lines), which traders can use to:
▶ Anticipate potential crossovers: Visualize possible K/D crosses several bars ahead
▶ Explore overbought/oversold scenarios: Forecast when momentum might return from extreme zones
▶ Assess divergences: Evaluate how oscillator divergences might develop
▶ Inform entry timing: Consider potential points along the forecasted momentum curve for trade entry
▶ Develop systematic strategies: Build rules based on forecasted crossovers, slope changes, or threshold levels
▶ Adapt to market conditions: Switch between methods based on current market character (trending vs range-bound, high vs low volume)
In short, the indicator's flexibility allows traders to combine forecasting projections with traditional stochastic signals, using historical K/D for immediate reference while considering forecasted values for planning and analysis. As with all technical analysis tools, the forecasts represent one possible scenario among many and should be used as part of a broader trading methodology rather than as standalone signals.
Adaptive Volatility Stop by Pedro Paulo de MeloStop ATR is a clean and reliable volatility-based trailing stop system, built to adapt dynamically to market conditions using the Average True Range (ATR).
It identifies trend direction, adjusts the stop level using stair-step logic, and automatically flips the stop when price reversals occur.
How it works
Uses ATR × Multiplier to calculate an adaptive volatility buffer
Tracks trend direction internally
Recomputes and repositions the stop when a trend flip is detected
Plots separate lines for bullish and bearish stop states
Works on any market and timeframe (crypto, forex, commodities, indices, stocks)
Why it’s useful
This Stop ATR implementation is extremely stable and visually clean.
It is particularly effective for:
Trend following
Position management
Swing and position trading
Systematic stop placement
Unlike many ATR-based stop versions, this script uses a corrected flip-handling method that prevents stop misalignment and ensures consistent trend state tracking.
Inputs
Period — ATR length
Multiplier — ATR factor that defines stop distance
Author
Developed by Pedro Paulo de Melo, open-source version.
ADX Trend Dashboard [ Hemanth ]
The ADX + DI Trend Dashboard is a indicator that helps traders instantly assess market trend direction and strength. It combines the power of ADX and DMI (Directional Movement Index) to give a clear visual representation of bullish, bearish, and sideways trends. The dashboard is fully customizable, lightweight, and easy to use.
Key Features:
Displays ADX, +DI, and -DI lines with dynamic coloring.
Green ADX: Bullish trend
Red ADX: Bearish trend
Mini dashboard shows:
Trend direction (Bullish, Bearish)
Trend strength (Weak, Strong)
Threshold lines at 20 & 25 for quick trend strength reference.
Works on any timeframe and instrument.
Clean and visually appealing design to reduce chart clutter.
Inputs:
ADX Length: Number of bars used to calculate ADX.
Higher values smooth the indicator but respond slower.
Lower values make it more sensitive but may produce more noise.
Strong Trend Threshold: ADX value considered strong. Default: 25
+DI Color / -DI Color: Customize trend line colors.
How to Use:
Trend Direction:
Green ADX + +DI > -DI → Bullish
Red ADX + -DI > +DI → Bearish
Trend Strength:
ADX < 20 → Weak
ADX 20–25 → Moderate
ADX > 25 → Strong
Use the dashboard panel to quickly identify trend and strength without manually analyzing the lines.
Recommended Timeframes:
Works on all timeframes.
Ideal for day trading, swing trading, and long-term analysis.
Note:
This indicator does not generate buy or sell signals by itself. It is designed to help traders analyze trend direction and strength visually and make informed trading decisions in combination with other tools or price action.
Altcoin HFT System [Beta]Core Logic: This indicator combines SMC order blocks with trend algorithms to capture high-frequency reversal points.
Features:
Auto Trend Identification (Triangle Signals)
High-Frequency Top/Bottom Detection
No repainting in confirmed mode
Usage:
Green ▲ / LONG: Potential Buy Zone
Red ▼ / SHORT: Potential Sell Zone
Note: This is a public beta version. For detailed tutorials or updates, please check the YouTube link in my profile signature.
Bob's Strategy Pro (Dynamic SL & TP)This code is for a technical analysis indicator called "SSL Strategy Pro (Dynamic SL & TP)". Its primary benefit is to provide traders with a comprehensive, all-in-one visual framework for market analysis and trade management directly on their charts.
Here are its key benefits:
For Market Analysis and Trend Identification:
It offers a clear, visual representation of market structure and the prevailing trend direction using intuitive colored bands.
A major long-term trend line helps you align your trades with the broader market direction, reducing the likelihood of trading against a strong trend.
For Trade Entry and Exit (Risk Management):
It provides specific visual entry signals, helping to identify potential trade initiation points with greater objectivity.
Its most significant advantage is a complete, built-in risk management system.
Dynamic Stop-Loss: It automatically calculates and visually plots a protective stop-loss that adapts to current market volatility. This helps protect profits during favorable moves and defines your initial risk per trade.
Multi-Tier Profit-Taking Framework: It visually plots up to four distinct profit target levels on the chart. These are calculated based on a customizable risk-to-reward ratio relative to your initial stop-loss, allowing you to plan partial profit-taking and manage trades in stages.
Progressive Target Display: To keep the chart uncluttered, the higher profit targets only appear on the chart once certain conditions are met, focusing your attention on the most relevant immediate levels.
Overall Practical Use:
Visual Clarity: By plotting all critical information (trend, signals, stop-loss, multiple targets) directly on the price chart, it consolidates analysis and planning into one view, reducing the need to switch between different tools.
Enhanced Discipline: It encourages systematic trading by pre-defining exit points for both loss protection and profit-taking before entering a trade.
Customizability: Users can adjust key parameters, such as the sensitivity of the trend channels and the aggressiveness of the stop-loss, to match different trading styles and market conditions.
In summary, this tool is designed to assist traders by visually clarifying trends, generating entry alerts, and—most importantly—integrating a dynamic and structured approach to stop-loss and take-profit management to help control risk and systematically capture profits.






















