2 Reds -> 2 Greens Strategy with Custom TP/SLcustom candle configuration with a 61 percent win rate in the strategy tester user can configure take profit and stop loss to suit
趨勢分析
Adaptive SuperTrend Stop – Daily Stocks (by G.I.N.e Trading)Indicator: Adaptive SuperTrend Stop – Daily Stocks (by G.I.N.e Trading)
What it does
A single, easy-to-read trailing stop line designed for stocks on the daily timeframe. It adapts to trend strength and suppresses noise.
Red line = active stop for long trends.
Green line = active stop for short trends.
The opposite side can be shown faintly for context (optional).
How it works
Adaptive SuperTrend core (ATR × multiplier).
Uses ATR(22) (≈ 1 month).
The multiplier auto-scales with ADX: it tightens in strong trends and loosens in weak ones (linear interpolation between Slow and Fast multipliers using an ADX low/high band).
ATR “cap” (gap/spike control).
ATR is capped at SMA(ATR) × capMult to avoid oversized stops after abnormal moves.
Structural cushion (Donchian + ATR).
Long stop = max(SuperTrend, DonchianLow(N) + cushion × ATR)
Short stop = min(SuperTrend, DonchianHigh(N) − cushion × ATR)
This prevents the stop from sitting inside the recent range.
Gap shield (daily only).
On an adverse gap ≥ X × ATR, the cushion widens only for that bar to avoid false exits.
Regime confirmation (anti-whipsaw).
A trend switch (up ↔ down) is confirmed only after N consecutive bars agreeing with the new regime.
HMA(50) color tone (optional).
Does not drive the stop; it just shades the line (strong vs soft color) if HMA slope agrees with the trend.
Key inputs
ATR length & cap (SMA(ATR) × capMult).
ADX period/smoothing + ADX low/high band, Slow/Fast multipliers.
Donchian length & ATR cushion (+ optional gap shield: threshold and extra pad).
Confirm bars for regime change; show passive line (optional).
How to use
For longs, trail the red line; for shorts, trail the green line.
Exit when price closes through the active stop, or use it as a dynamic stop-loss.
The stop auto-tightens in strong trends and relaxes in choppy phases; the cushion helps avoid noise-stops within recent ranges.
Tuning tips
Tighter / earlier exits: raise Fast multiplier, lower Slow, reduce Donchian length or cushion, set confirm bars = 1.
Looser / let winners run: lower Fast, raise Slow, increase Donchian length or cushion, set confirm bars = 3.
If your universe is very volatile, raise ADX high and the cap multiplier slightly.
Best for
Daily equities where you want a clean, adaptive trailing stop that respects trend strength, mitigates gaps/spikes, and avoids getting trapped inside short-term ranges.
Daily Seasonality Strength + PredictionDaily Seasonality Strength + Prediction
Seasonality Strength:
This indicator measures seasonality strength by comparing predicted seasonal returns with actual returns, using the inverse of MSE (higher values mean stronger seasonality).
This script is for informational and educational purposes only. It does not constitute financial, investment, or trading advice. I am not a financial advisor. Any decisions you make based on this indicator are your own responsibility. Always do your own research and consult with a qualified financial professional before making any investment decisions.
Past performance is no guarantee of future results. The value of the instruments may fluctuate and is not guaranteed
BitLogic EMA FusionMulti-EMA confluence with ribbon structure, clean trend flips, and alertable fast/slow crossovers .
What it does
Three core EMAs (Fast/Mid/Slow) define regime and flips.
EMA Ribbon presets (5–55, 8–144, 10–200) for structure & momentum.
Signals: Fast/Slow crossovers + first bar of bull/bear trend flip.
Visuals: Optional bar-coloring, background shading, and Fast↔Slow fill.
How to use
Trend bias: Fast > Mid > Slow (bull) or Fast < Mid < Slow (bear).
Strength: Wide ribbon = strong trend; compressed ribbon = potential squeeze.
Entries: Use crossovers with ribbon direction; confirm on bar close for no repaint.
Settings tips
Intraday: 9/21/50 with 8–144 ribbon.
Swing: 10/20/50 with 10–200 ribbon.
Enable Confirm on bar close for non-repainting signals/alerts.
Alerts included
Fast crosses above/below Slow
Trend Flip → Bull/Bear
Notes
No financial advice. For educational purposes only. Trading involves risk. Signals do not repaint when “Confirm on bar close” is ON.
Works on crypto, FX, stocks, and indices.
Ultimate Webby RSI 2.0 for MNQ 3m
🔎 Introduction
This is a flexible version of Amphibiantrading’s Webby RSI concept, optimized for MNQ 3-minute trading.
It normalizes the distance of price from moving averages (EMA/SMA) using ATR, producing stretch histograms that highlight overextended moves.
I extended it with:
✅ Swing and Scalper presets (instantly switch via dropdown)
✅ Custom mode (type in your own parameters)
✅ Optional HTF (Higher Timeframe) bias filter — e.g., only show longs when 15m trend is up
✅ Alerts for bull/bear stretches and SMA extension
⚙️ Core Logic
Green histogram = low above EMA (normalized by ATR) → bullish stretch
Red histogram = EMA above high → bearish stretch
Orange line = high above SMA → extension (useful for exhaustion / fade plays)
Stretch Level line = threshold (default depends on Swing vs Scalper preset)
📊 Presets
Choose in the Mode dropdown:
Swing (MNQ 3m)
ATR Length = 100
EMA Length = 34
SMA Length = 14
Stretched Level = 3.8
👉 Fewer, cleaner signals (approx 3–6/day).
Scalper (MNQ 3m)
ATR Length = 34
EMA Length = 13
SMA Length = 8
Stretched Level = 2.4
👉 More signals (approx 15–25/day).
Custom
Enter your own ATR/EMA/SMA/Level values.
🧭 HTF Bias Filter (optional)
Enable the toggle to align entries with a higher-timeframe trend.
Example: HTF timeframe = 15m, EMA(34)
If close > EMA → bull bias (only green/orange plots show)
If close < EMA → bear bias (only red plots show)
Optional background tint shows bias (green = bull, red = bear).
This reduces false signals and keeps you trading with the bigger move.
🚀 How to Use
Add the indicator → In settings, choose Mode (Swing/Scalper/Custom).
Leave Computation timeframe = 3 and Override symbol = MNQ1! for MNQ micro futures.
Watch for histogram/extension values crossing your Stretched Level.
Bull stretch above threshold = price stretched to upside.
Bear stretch above threshold = price stretched to downside.
SMA extension = price extended above SMA, often exhaustion.
(Optional) Turn on HTF Bias to only take trades in the main trend direction.
🔔 Alerts Included
Bull Stretch > Level (positive histogram crosses above level)
Bear Stretch > Level (negative histogram crosses above level)
SMA Extension > Level (SMA line crosses above level)
All alerts automatically respect the HTF bias filter if enabled.
⚠️ Notes & Best Practices
Stretched Level is not RSI OB/OS — it’s distance normalized by ATR. Combine with market structure (VWAP, supply/demand, session levels).
If using higher-TF calculations (via HTF bias), remember values finalize at the close of that TF bar.
Swing preset is better for holding through moves; Scalper preset is better for fast in/out trading.
Always combine with risk management — normalized stretch can still extend further in strong trends.
✅ Credits
Original Webby RSI by Amphibiantrading.
Extended by for flexible MNQ swing/scalp use with HTF filters.
⚖️ Disclaimer
This script is provided for educational purposes only. It does not constitute financial advice or an offer to buy or sell any financial instrument.
Trading futures, stocks, forex, and cryptocurrencies involves substantial risk and may not be suitable for every investor.
Past performance is not indicative of future results.
Always do your own research and consult with a licensed financial advisor before making any trading decisions.
Use at your own risk.
Trading Macro Windows by BW v2
Trading Macros by BW: Integrating ICT Concepts for Session Analysis
This indicator combines two key Inner Circle Trader (ICT) concepts—Change in State of Delivery (CISD) or Inverted Fair Value Gap (IFVG) signals with Macro Time Windows—to provide a unified tool for analyzing intraday price action, particularly during Pacific Time (PT) sessions. Rather than simply merging existing scripts, this integration creates a cohesive visual framework that highlights how macro consolidation periods interact with potential reversal or continuation signals like CISD or IFVG. By overlaying macro candle styling and borders on the chart alongside selectable signal lines, traders can better contextualize setups within ICT's macro narrative, where price often manipulates liquidity during these windows before displacing toward higher-timeframe objectives.
Core Components and How They Work Together:
Macro Time Windows (Inspired by ICT's Macro Periods):
ICT emphasizes "macro" as 30-minute windows (e.g., 06:45–07:15 PT, 07:45–08:15 PT, up to 11:45–12:15 PT) where price tends to consolidate, sweep liquidity, or form key structures like Fair Value Gaps (FVGs). These periods set the stage for the session's directional bias.
The indicator styles candles within these windows using a user-defined color for wicks, borders, and bodies (translucent for visibility). This visual emphasis helps traders focus on activity inside macros, where reversals or continuations often originate.
Borders are drawn as vertical lines at the start and end of each window (with a +5 minute buffer to capture related activity), using a dotted style by default. This creates a "study zone" that encapsulates macro events, allowing traders to assess if price is respecting or violating these zones in alignment with broader ICT models like the Power of 3 (AMD cycle).
Toggle: "Macro Candles Enabled" (default: true) – Turn off to disable styling and borders if focusing solely on signals.
CISD or IFVG Signals (Selectable Mode):
Mode Selection: Choose between "Change in the State of Delivery" (CISD) or "IFVG" (default: IFVG). Both detect shifts in market delivery during specific 30-minute slices (15–45 or 17–45 minutes past the hour in PT sessions).
CISD Mode: Based on ICT's definition of a sudden directional shift, this identifies aggressive displacements after sweeping recent highs/lows. It uses a rolling reference high/low over 6 bars, checks for sweeps (penetrating by at least 2 ticks in the last 2-3 bars), reclamation (closing beyond the reference with at least 50% body), and displacement (50% of prior range or an immediate FVG of 6+ ticks). Signals plot a horizontal line from the close, extending 24 bars right, labeled "CISD."
IFVG Mode: Focuses on Inverted Fair Value Gaps, where a bullish FVG (low > high by 13+ ticks) forms but is inverted (closed below) in the same slice, signaling bearish intent (or vice versa). This targets violations against opposing liquidity, often leading to raids on external ranges. Signals plot similarly, labeled "IFVG."
Shared Logic: Both modes enforce a 55-bar cooldown to prevent clustering, operate only during PT sessions (06:30–13:00), and use tick-based thresholds for precision across instruments. The integration with macros allows traders to see if signals occur within or at the edges of macro windows, enhancing confirmation—for example, a CISD inside a macro might indicate a manipulated reversal toward the session's true objective.
Toggle: "Signals Enabled" (default: true) – Turn off to hide all signal lines and labels, isolating the macro visualization.
How Components Interact:
Macro windows provide the "narrative context" (consolidation/manipulation), while CISD/IFVG signals detect the "delivery shift" (displacement). Together, they form a mashup that justifies publication: isolated signals can be noisy, but when filtered by macro periods, they align with ICT's session model. For instance, an IFVG inversion during a macro might confirm a liquidity sweep before targeting PD arrays or order blocks.
No external dependencies; all calculations are self-contained using Pine's built-in functions like ta.highest/lowest for references and time-based sessions for windows.
Usage Guidelines:
Apply to intraday charts (e.g., 1-5 min) or stocks during PT hours.
Look for confluence: A bull IFVG signal post-macro low sweep might target the next macro high or daily bias.
Customize colors/styles for signals (solid/dashed/dotted lines) and macros to suit your chart.
Backtest in replay mode to observe how macros frame signals—e.g., price often respects macro borders as S/R.
Limitations: Timezone-fixed to PT (America/Los_Angeles); signals are directional hints, not trade entries. Combine with ICT tools like order blocks or liquidity pools for full setups.
This script draws from community ICT implementations but refines them into a single, purpose-built tool for macro-driven trading, reducing chart clutter while emphasizing interconnected concepts. Feedback welcome!
Average True Ranges with IBD RSAdvanced ATR Analysis with IBD Relative Strength
This comprehensive indicator combines Average True Range (ATR) analysis with IBD (Investor's Business Daily) Relative Strength calculation, providing both volatility measurement and momentum analysis in one powerful tool.
Key Features:
ATR Analysis:
Standard ATR: Customizable period (default 14) with multiple smoothing options
1.5x ATR: Extended range for wider stop-loss and target calculations
Smoothing Options: Choose between RMA, SMA, EMA, or WMA for ATR calculation
Customizable Colors: Distinct colors for easy visual identification
IBD Relative Strength:
Professional RS Formula: Uses the same calculation method as Investor's Business Daily
Multi-Timeframe Analysis: Compares current price to 3, 6, 9, and 12-month performance
Weighted Calculation: 40% weight on 3-month, 20% each on 6, 9, and 12-month performance
Zero-Based Scale: Values above 0 indicate outperformance, below 0 indicate underperformance
Trading Applications:
Volatility-Based Stops: Use ATR and 1.5x ATR for dynamic stop-loss placement
Position Sizing: ATR helps determine appropriate position size based on volatility
Relative Strength Analysis: IBD RS identifies stocks with superior momentum
Market Timing: High RS values often precede strong price moves
Risk Management: Combine volatility (ATR) with momentum (RS) for comprehensive analysis
Technical Details:
ATR Calculation: True Range smoothed over selected period with chosen method
IBD RS Formula: (40% × 3M) + (20% × 6M) + (20% × 9M) + (20% × 12M) - 100
Display: Separate pane indicator with customizable colors for each component
How to Interpret:
High ATR: Increased volatility, wider stops needed
Low ATR: Reduced volatility, tighter stops possible
Positive IBD RS: Stock outperforming market over measured periods
Negative IBD RS: Stock underperforming market over measured periods
Customizable Parameters:
ATR calculation length
Smoothing method for ATR
Individual colors for ATR, 1.5x ATR, and IBD RS lines
Perfect for swing traders and position traders who want to combine volatility analysis with relative strength momentum in their decision-making process. Particularly useful for stock selection and risk management.
FiboMagnet-NBSFM | 5Min Fibonacci Zones for Indian IndicesAbout Script
This indicator is designed for intraday traders in Nifty, BankNifty, Sensex, Midcap, and Finnifty. It captures the first 5-minute candle of the day (or any custom timeframe) and projects Fibonacci extension levels to help identify key support and resistance zones throughout the trading session.
🔍 Key Features:
Automatically captures the high & low of the first 5-min candle
Plots key Fibonacci levels: 38.2%, 50%, 61.8%, 100%, and 161.8%
Works on both upside (Call Entry) and downside (Put Entry) projections
Highlights the opening candle zone for clear visualization
Fully customizable timeframe, colors, and line thickness
Supports all major Indian indices: Nifty, BankNifty, Sensex, Midcap, Finnifty
🛠️ How to Use:
Add this indicator to any intraday chart (recommended: 5m or 15m).
Use “Scope Timeframe” to control how often levels reset (default: Daily).
Use “Capture Candle Timeframe” to set which candle is used for Fib projections (default: 5 minutes).
Trade based on reactions at Fib levels: breakout, reversal, or consolidation.
📈 Ideal for:
Scalpers and Intraday Traders
Breakout and Range Traders
Example Configuration
Use the following combinations for Scope Timeframe and Capture Candle Timeframe:
For daily fibs from first 5-minute candle:
Scope Timeframe: 1D
Capture Candle Timeframe: 5
For daily fibs from first 15-minute candle:
Scope Timeframe: 1D
Capture Candle Timeframe: 15
For weekly fibs from first 1-hour candle:
Scope Timeframe: 1W
Capture Candle Timeframe: 1H
For weekly fibs from first 30-minute candle:
Scope Timeframe: 1W
Capture Candle Timeframe: 30
For monthly fibs from first daily candle:
Scope Timeframe: 1M
Capture Candle Timeframe: 1D
For monthly fibs from first hourly candle:
Scope Timeframe: 1M
Capture Candle Timeframe: 1H
🟡 Important:
Make sure your chart timeframe is equal to the Capture Candle Timeframe
(For example: if Capture Candle is 5, switch chart to 5-minute)
Disclaimer: This script is published for educational and informational purposes only. It is not intended as financial advice or a recommendation to buy or sell any financial instrument. Use at your own risk.
Krypto Dziadek strategy using EM/MA + PivotsEXPLANATION OF THE STRATEGY
The EMA/MA Crossover with Pivot Points for Pionex strategy is designed for TradingView to generate buy and sell signals for cryptocurrency trading, with compatibility for automation via the Pionex crypto exchange. It combines Exponential Moving Averages (EMAs) for short- and medium-term trend detection, a Simple Moving Average (SMA) as a trend filter, and pivot points to confirm trend reversals or continuations. The strategy includes risk management with stop-loss and take-profit levels and provides webhook-compatible alerts for Pionex’s Signal Bot.
Camarilla Pivots 7 levelsCamarilla Pivots are a variation of pivot point trading levels developed in the late 1980s by Nick Scott, a bond trader.
They are used by day traders to identify intraday support and resistance levels where price is likely to stall, reverse, or accelerate.
Formula
They are calculated from the previous day’s High (H), Low (L), and Close (C).
Unlike standard floor pivots, Camarilla pivots emphasize mean reversion (expecting price to return to the previous day’s close) as well as breakouts at extreme levels.
The classic Camarilla set includes 8 levels (L1–L4 and H1–H4):
L1, L2, L3, L4 → Support levels below the prior close
H1, H2, H3, H4 → Resistance levels above the prior close
Some modern versions extend this further with H5–H6 and L5–L6 for extreme breakout targets.
Typical Use
L3 & H3 → Mean reversion levels (price is expected to bounce back toward the close).
L4 & H4 → Breakout levels (if price breaks and holds beyond these, traders expect continuation in that direction).
L1, L2, H1, H2 → Secondary support/resistance (not always used).
L5/H5 (optional) → Trend continuation targets.
👉 So in short:
Classic Camarilla = 8 levels (L1–L4, H1–H4)
Extended Camarilla = up to 12 levels (L1–L6, H1–H6)
Originally, Nick Scott’s Camarilla pivots only had 8 levels (H1–H4, L1–L4).
Later, some traders and software vendors extended the formula set to add H5, H6, H7 (resistances) and L5, L6, L7 (supports).
These higher levels are meant for trend-following targets when the market strongly breaks out.
They aren’t part of the “classic” Camarilla, but rather modern extensions (sometimes called Camarilla expanded pivots).
General Idea of the Levels:
H1–H4 / L1–L4 → Classic Camarilla (mean reversion + breakout levels)
H5–H6 / L5–L6 → Strong breakout & trend continuation targets
H7 / L7 → Extreme extension levels, very rare to reach, used more as “last-resort targets”
Formulas
Different sources use slightly different multipliers for H5–H7 and L5–L7, since they were not part of Nick Scott’s original work. A common approach is:
H7=Close+(High−Low)×k
H7=Close+(High−Low)×k
L7=Close−(High−Low)×k
L7=Close−(High−Low)×k
Where k is a scaling factor (often around 3.25 or higher, depending on the platform).
👉 So if you’re seeing a Camarilla 7th level, it’s a modern extension for extreme breakout targets.
9 Sequential for Stock Screener9 Sequential for Stock Screener. Use this to forecast the buy/sell signal for your stocks. It can be integrated into the stock screener to scan the stocks in the market. green arrow means buy signal, red arrow means sell signal.
Market Outlook Score (MOS)Overview
The "Market Outlook Score (MOS)" is a custom technical indicator designed for TradingView, written in Pine Script version 6. It provides a quantitative assessment of market conditions by aggregating multiple factors, including trend strength across different timeframes, directional movement (via ADX), momentum (via RSI changes), volume dynamics, and volatility stability (via ATR). The MOS is calculated as a weighted score that ranges typically between -1 and +1 (though it can exceed these bounds in extreme conditions), where positive values suggest bullish (long) opportunities, negative values indicate bearish (short) setups, and values near zero imply neutral or indecisive markets.
This indicator is particularly useful for traders seeking a holistic "outlook" score to gauge potential entry points or market bias. It overlays on a separate pane (non-overlay mode) and visualizes the score through horizontal threshold lines and dynamic labels showing the numeric MOS value along with a simple trading decision ("Long", "Short", or "Neutral"). The script avoids using the plot function for compatibility reasons (e.g., potential TradingView bugs) and instead relies on hline for static lines and label.new for per-bar annotations.
Key features:
Multi-Timeframe Analysis: Incorporates slope data from 5-minute, 15-minute, and 30-minute charts to capture short-term trends.
Trend and Strength Integration: Uses ADX to weight trend bias, ensuring stronger signals in trending markets.
Momentum and Volume: Includes RSI momentum impulses and volume deviations for added confirmation.
Volatility Adjustment: Factors in ATR changes to assess market stability.
Customizable Inputs: Allows users to tweak periods for lookback, ADX, and ATR.
Decision Labels: Automatically classifies the MOS into actionable categories with visual labels.
This indicator is best suited for intraday or swing trading on volatile assets like stocks, forex, or cryptocurrencies. It does not generate buy/sell signals directly but can be combined with other tools (e.g., moving averages or oscillators) for comprehensive strategies.
Inputs
The script provides three user-configurable inputs via TradingView's input panel:
Lookback Period (lookback):
Type: Integer
Default: 20
Range: Minimum 10, Maximum 50
Purpose: Defines the number of bars used in slope calculations for trend analysis. A shorter lookback makes the indicator more sensitive to recent price action, while a longer one smooths out noise for longer-term trends.
ADX Period (adxPeriod):
Type: Integer
Default: 14
Range: Minimum 5, Maximum 30
Purpose: Sets the smoothing period for the Average Directional Index (ADX) and its components (DI+ and DI-). Standard value is 14, but shorter periods increase responsiveness, and longer ones reduce false signals.
ATR Period (atrPeriod):
Type: Integer
Default: 14
Range: Minimum 5, Maximum 30
Purpose: Determines the period for the Average True Range (ATR) calculation, which measures volatility. Adjust this to match your trading timeframe—shorter for scalping, longer for positional trading.
These inputs allow customization without editing the code, making the indicator adaptable to different market conditions or user preferences.
Core Calculations
The MOS is computed through a series of steps, blending trend, momentum, volume, and volatility metrics. Here's a breakdown:
Multi-Timeframe Slopes:
The script fetches data from higher timeframes (5m, 15m, 30m) using request.security.
Slope calculation: For each timeframe, it computes the linear regression slope of price over the lookback period using the formula:
textslope = correlation(close, bar_index, lookback) * stdev(close, lookback) / stdev(bar_index, lookback)
This measures the rate of price change, where positive slopes indicate uptrends and negative slopes indicate downtrends.
Variables: slope5m, slope15m, slope30m.
ATR (Average True Range):
Calculated using ta.atr(atrPeriod).
Represents average volatility over the specified period. Used later to derive volatility stability.
ADX (Average Directional Index):
A detailed, manual implementation (not using built-in ta.adx for customization):
Computes upward movement (upMove = high - high ) and downward movement (downMove = low - low).
Derives +DM (Plus Directional Movement) and -DM (Minus Directional Movement) by filtering non-relevant moves.
Smooths true range (trur = ta.rma(ta.tr(true), adxPeriod)).
Calculates +DI and -DI: plusDI = 100 * ta.rma(plusDM, adxPeriod) / trur, similarly for minusDI.
DX: dx = 100 * abs(plusDI - minusDI) / max(plusDI + minusDI, 0.0001).
ADX: adx = ta.rma(dx, adxPeriod).
ADX values above 25 typically indicate strong trends; here, it's normalized (divided by 50) to influence the trend bias.
Volume Delta (5m Timeframe):
Fetches 5m volume: volume_5m = request.security(syminfo.tickerid, "5", volume, lookahead=barmerge.lookahead_on).
Computes a 12-period SMA of volume: avgVolume = ta.sma(volume_5m, 12).
Delta: (volume_5m - avgVolume) / avgVolume (or 0 if avgVolume is zero).
This measures relative volume spikes, where positive deltas suggest increased interest (bullish) and negative suggest waning activity (bearish).
MOS Components and Final Calculation:
Trend Bias: Average of the three slopes, normalized by close price and scaled by 100, then weighted by ADX influence: (slope5m + slope15m + slope30m) / 3 / close * 100 * (adx / 50).
Emphasizes trends in strong ADX conditions.
Momentum Impulse: Change in 5m RSI(14) over 1 bar, divided by 50: ta.change(request.security(syminfo.tickerid, "5", ta.rsi(close, 14), lookahead=barmerge.lookahead_on), 1) / 50.
Captures short-term momentum shifts.
Volatility Clarity: 1 - ta.change(atr, 1) / max(atr, 0.0001).
Measures ATR stability; values near 1 indicate low volatility changes (clearer trends), while lower values suggest erratic markets.
MOS Formula: Weighted average:
textmos = (0.35 * trendBias + 0.25 * momentumImpulse + 0.2 * volumeDelta + 0.2 * volatilityClarity)
Weights prioritize trend (35%) and momentum (25%), with volume and volatility at 20% each. These can be adjusted in code for experimentation.
Trading Decision:
A variable mosDecision starts as "Neutral".
If mos > 0.15, set to "Long".
If mos < -0.15, set to "Short".
Thresholds (0.15 and -0.15) are hardcoded but can be modified.
Visualization and Outputs
Threshold Lines (using hline):
Long Threshold: Horizontal dashed green line at +0.15.
Short Threshold: Horizontal dashed red line at -0.15.
Neutral Line: Horizontal dashed gray line at 0.
These provide visual reference points for MOS interpretation.
Dynamic Labels (using label.new):
Placed at each bar's index and MOS value.
Text: Formatted MOS value (e.g., "0.2345") followed by a newline and the decision (e.g., "Long").
Style: Downward-pointing label with gray background and white text for readability.
This replaces a traditional plot line, showing exact values and decisions per bar without cluttering the chart.
The indicator appears in a separate pane below the main price chart, making it easy to monitor alongside price action.
Usage Instructions
Adding to TradingView:
Copy the script into TradingView's Pine Script editor.
Save and add to your chart via the "Indicators" menu.
Select a symbol and timeframe (e.g., 1-minute for intraday).
Interpretation:
Long Signal: MOS > 0.15 – Consider bullish positions if supported by other indicators.
Short Signal: MOS < -0.15 – Potential bearish setups.
Neutral: Between -0.15 and 0.15 – Avoid trades or wait for confirmation.
Watch for MOS crossings of thresholds for momentum shifts.
Combine with price patterns, support/resistance, or volume for better accuracy.
Limitations and Considerations:
Lookahead Bias: Uses barmerge.lookahead_on for multi-timeframe data, which may introduce minor forward-looking bias in backtesting (use with caution).
No Alerts Built-In: Add custom alerts via TradingView's alert system based on MOS conditions.
Performance: Tested for compatibility; may require adjustments for illiquid assets or extreme volatility.
Backtesting: Use TradingView's strategy tester to evaluate historical performance, but remember past results don't guarantee future outcomes.
Customization: Edit weights in the MOS formula or thresholds to fit your strategy.
This indicator distills complex market data into a single score, aiding decision-making while encouraging users to verify signals with additional analysis. If you need modifications, such as restoring plot functionality or adding features, provide details for further refinement.
TrueOpens [AY]¹ See how price reacts to key multi-day and monthly open levels—perfect for S/R-focused traders.
Experimental indicator for tracking multi-day openings and ICT True Month Open levels, ideal for S/R traders.
TrueOpens ¹ – Multi-Day & True Month Open Levels
This indicator is experimental and designed to help traders visually track opening price levels across multiple days, along with the ICT True Month Open (TMO).
Key Features:
Supports up to 12 configurable multi-day opening sessions, each with independent color, style, width, and label options.
Automatically detects the True Month Open using the ICT method (2nd Monday of each month) and plots it on the chart.
Lines can extend dynamically and are limited to a user-defined number of historical bars for clarity.
Fully customizable timezones, label sizes, and display options.
This indicator is ideal for observing how price interacts with key levels, especially for traders who favor support and resistance-based strategies.
Disclaimer: This is an analytical tool for observation purposes. It does not provide buy or sell signals. Users should combine it with their own analysis and risk management.
OKX Contract Martin SAR SignalDescription:
This script combines the Parabolic SAR indicator with a Martingale trading strategy for OKX contracts, optimized for high-frequency trading on lower timeframes (e.g., 45-minute charts). It automatically identifies trend reversals, generates buy and sell signals, and provides real-time alerts for entry and exit points. Key features include:
Trend Reversal Detection: Automatically detects changes between uptrends and downtrends using SAR values.
Martingale Strategy: Incorporates a customizable acceleration factor for adapting to market volatility.
Real-Time Alerts: Sends JSON-formatted webhook alerts for automation and includes detailed signal labels on the chart.
Customizable Parameters: Fully adjustable SAR settings (start, increment, and maximum factors) for different trading styles.
This strategy is ideal for traders seeking precise contract signals with high-frequency execution. However, use caution and conduct thorough backtesting before deploying in live markets, especially for ultra-high-frequency trading.
Impulse Convexity Trend Gate [T1][T69]OVERVIEW 🧭
• A price-only trend engine that opens a “gate” only when trend strength, acceleration, and impulse dominance align.
• Built from three cooperating parts: adaptive slope, directional convexity, and an impulse-vs-pullback ratio.
• Output is a bounded oscillator (−100…+100) plus side-specific gate states (bull/bear), with optional pullback and weakness highlights.
THE IDEA & USEFULNESS 🧪
• Not a simple mashup: each component plays a distinct role—slope for direction, convexity for acceleration agreement, and an impulse ratio to suppress correction noise.
• Adaptive EMA length (series-based) lets the midline adjust to conditions without external indicators.
• Approximation of hyperbolic tangent and clamp keep signals bounded and stable while avoiding library dependencies.
• Designed to help trend traders act only when continuation is likely, and stand down during pullbacks or chop.
HOW IT WORKS (PIPELINE) ⚙️
• Price transform
• Uses log price for scale stability.
• Adaptive midline
• Volatility-aware EMA length is clamped between minimum and maximum, then applied via a custom recursive EMA.
• Slope & convexity
• Slope (first difference of the midline) defines direction; convexity (second difference) verifies acceleration agrees with that direction.
• Impulse vs pullback ratio (R)
• Sums directional progress versus counter-direction pullbacks over a window; requires impulse to dominate.
• Normalization & score
• Slope and convexity are normalized by recent dispersion; combined into a raw score and squashed to −100…+100 using manual tanh.
• Trend gate
• Gate opens only when: R ≥ threshold, |normalized slope| ≥ threshold, and slope/convexity share the same sign.
• States & visuals
• Bull/Bear Gate Entry when gate is open, oscillator crosses ±15 in the correct direction, price is on the correct side of the midline, and slope/convexity agree.
• Pullbacks mark counter-moves while a gate is active; Weakness flags specific fade patterns after pullbacks.
FEATURES ✨
• Bull and Bear Gate Entries (green/red columns).
• Pullback shading and optional trend-weakness highlights (yellow/orange + teal/maroon).
• Background tint reflects the active side (bull or bear).
• Pure price logic; no volume or external filters required.
HOW TO USE 🎯
• Regime filter
• Trade only in the direction of the open gate; ignore signals when the gate is closed.
• Pullback entries
• During an open gate, wait for a pullback zone, then act on trend-resumption (e.g., oscillator re-push through ±15 or structure break in gate direction).
• Exits & risk
• Consider trimming when the oscillator relaxes toward 0 while the gate remains open, or when convexity flips against slope and R deteriorates.
• Timeframes & markets
• Suited for trend following on crypto/FX/indices from M30 to 4H/1D; raise thresholds on lower timeframes to reduce noise.
CONFIGURATION 🔧
• Impulse ratio gate (R ≥): raises/lowers the standard for continuation dominance.
• Slope strength gate (|sN| ≥): controls how strong a slope must be to count.
• Show Pullback Impulse (toggle): enable/disable pullback highlights.
• Show Trend Weakness (toggle): enable/disable weakness flags.
LIMITATIONS ⚠️
• As a trend tool, it can lag at regime transitions; expect whipsaws in tight ranges.
• Parameters are instrument- and timeframe-dependent; tune thresholds before live use.
• Pullback/weakness flags are contextual—not trade signals by themselves; use them with gate state and your execution rules.
ADVANCED TIPS 🛠️
• Tighten R and slope thresholds for lower timeframes; loosen for higher timeframes.
• Pair with NNFX-style money management and pair-level filters; let the gate be the confirmation layer, not the entry trigger by itself.
• Batch-test across 100+ symbols, export metrics, and run Monte Carlo to validate LLN reliability and Sharpe/IQR stability.
• For system hedging, disable entries when both sides trigger on the same asset to avoid internal conflict.
NOTES 📝
• Price-only construction reduces data-vendor differences and keeps behavior consistent across markets.
• Manual tanh/clamp ensure stable, bounded scores even during extremes.
DISCLAIMER 🛡️
• For research and education. No financial advice. Test thoroughly, size conservatively, and respect your risk rules.
RSI مبسط//@version=5
indicator("RSI مبسط", overlay=false)
// حساب RSI
rsiValue = ta.rsi(close, 14)
// رسم خط RSI
plot(rsiValue)
// رسم المستويات
plot(95, "Level 95")
plot(78.6, "Level 78.6")
plot(61.8, "Level 61.8")
plot(38.2, "Level 38.2")
plot(21.4, "Level 21.4")
plot(5, "Level 5")
HH HL LL LH IdentifierThe HH HL LL LH Identifier is a powerful price action tool designed to help traders easily identify market structure by marking Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL) directly on the chart.
Key Features:
Automatically detects swing highs and swing lows based on customizable lookback periods.
Labels each swing with HH, HL, LH, or LL for clear visual reference.
Helps traders identify trends, pullbacks, and potential reversal points.
Supports both trend-following and swing trading strategies.
Fully compatible with TradingView charts and works on any timeframe.
Use Cases:
Spot uptrends (HH + HL) and downtrends (LL + LH) easily.
Identify pullback zones for optimal entries and exits.
Combine with other technical indicators like EMA, RSI, or Fibonacci for enhanced strategy.
Take the guesswork out of market structure and make informed trading decisions with the HH HL LL LH Identifier.
Anti-Lateral Filter – Trio by G.I.N.e TradingThis indicator flags market regimes to help you avoid sideways chop. It plots gray columns when conditions indicate a lateral/non-trending market (do not enter), and green columns when conditions indicate a trend-ready environment (entries allowed). Direction (long/short) is not assigned—pair it with your own triggers.
How it works (4 selectable modes)
ER (Efficiency Ratio): Measures directional efficiency of price movement (Kaufman ER). Low ER ⇒ sideways; high ER ⇒ directional.
CHOP + Squeeze: Uses Choppiness Index (log TR vs range) and Bollinger Band Width percentile. High CHOP + low BBWidth ⇒ lateral; CHOP dropping + BB expanding ⇒ trend.
Donchian Trendiness: Normalized distance of close from the Donchian channel midline. Near center ⇒ lateral; near edges ⇒ trend.
Hybrid (2-of-3): Confirms trend only when at least two methods agree; similarly for lateral.
Extras
ADX gate (optional): Require ADX ≥ threshold for trend confirmation.
Consecutive-bar confirmation: confirmBars ensures regime persistence before switching.
Inputs (key)
Method selector: ER / CHOP+Squeeze / Donchian / Hybrid 2-of-3.
confirmBars (persistence), useAdxGate + adxLen/smoothing/threshold.
ER lookback & thresholds; CHOP length & BBWidth percentile; Donchian length & trendiness bounds.
How to use
Apply the indicator in a sub-pane.
Trade only on green bars (trend-ready) and stand aside on gray bars (lateral).
Combine with your entry logic (e.g., HARSI/MACD/price action) and your own risk management.
Tuning tips
More permissive (more greens): Lower ER trend threshold, raise CHOP trend max, lower Donchian trendiness min, set confirmBars=1, or disable ADX gate.
More selective (fewer greens): Do the opposite and consider higher ADX threshold.
ELITE TRADERS RSI TREND VIEWName: RSI (Relative Strength Index)
Type: Momentum Oscillator
Default Length: 14 (periods)
Description:
Relative Strength Index (RSI) என்பது ஒரு momentum oscillator ஆகும். இது price movement-இன் வேகத்தையும் (speed) மாற்றங்களையும் (change) அளவிடுகிறது. RSI value 0–100 scale-இல் காணப்படும்.
RSI 70-க்கு மேல் சென்றால் அது Overbought நிலையை (விலை அதிகமாக உயர்ந்தது, sell வாய்ப்பு) குறிக்கும்.
RSI 30-க்கு கீழ் வந்தால் அது Oversold நிலையை (விலை அதிகமாக குறைந்தது, buy வாய்ப்பு) குறிக்கும்.
RSI-யை பயன்படுத்தி trend strength, divergence, reversal signals மற்றும் entry/exit points கண்டுபிடிக்கலாம்.
Formula (சுருக்கமாக):
RSI = 100 – (100 / (1 + RS))
இதில்,
RS = (Average Gain / Average Loss)
Usage:
Trend confirmation
Overbought / Oversold signals
Bullish & Bearish Divergence spotting
Support/Resistance confirmation
Default Settings:
RSI Length: 14
Overbought: 70
Oversold: 30
Money Flow Sentiment with Divergences [Kodeus]The Money Flow Sentiment with Divergences combines the Money Flow Index (MFI) with advanced divergence detection and sentiment visualization. This tool helps traders identify overbought and oversold conditions, detect bullish and bearish divergences, and visualize money flow sentiment through a smooth gradient-based color scheme. With additional confluence analysis, traders can better gauge the strength of signals and make more informed decisions.
🔷 Key Features
Dynamic Money Flow Index (MFI): Visualizes money flow strength using a gradient color scheme for clearer trend sentiment.
Confluence Zone Highlighting: Displays a sentiment zone (top and bottom bands) based on longer-term MFI, helping confirm trend strength.
Divergence Detection: Automatically identifies and marks bullish and bearish divergences between price action and money flow.
Customizable Sensitivity: Adjustable divergence detection sensitivity to suit different trading styles and timeframes.
Signal Labels: Bullish divergences are marked with ▲ and bearish divergences with ▼ for easy chart interpretation.
🔷 Calculations
MFI Calculation
The script starts by calculating the Money Flow Index (MFI) using the ta.mfi() function, which takes the typical price (hlc3) and a length parameter (default set to 14). The MFI is normalized to a range between 0 and 1 for color gradient calculations.
Another MFI is calculated with a longer length (lengthConfluence, default set to 50) for confluence analysis. Similar to the MFI calculation, the highest and lowest MFI values within the confluence length are determined. The MFI values within the confluence length are normalized. The normalized MFI values are used to calculate the gradient color for the confluence area.
Gradient Color Calculations
Two sets of RGB color values are defined to create a gradient color scheme for the MFI plot. The MFI value is normalized between the highest and lowest MFI values within the specified length. The normalized MFI value is then used to calculate the red, green, and blue components of the gradient color.
Plotting Confluence Area
Two horizontal lines are plotted to highlight the confluence area.
The area between these lines is filled with the gradient color representing MFI confluence.
Divergence Calculations
Bullish and bearish divergences are identified based on specific conditions related to the MFI and price action.
Bullish divergence occurs when the MFI makes a lower low while price makes a higher low.
Bearish divergence occurs when the MFI makes a higher high while price makes a lower high.
The sensitivity (Pivot calculation length) of divergence detection can be adjusted.
Overall, this script provides a comprehensive analysis of the Money Flow Index, including plotting the MFI with a gradient color scheme, identifying confluence areas, and detecting bullish and bearish divergences to aid traders in making informed decisions.
🔷 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Tamil own - MTF RSI Scanner 🚥so, if all RSI is green then total is 31
if all are red, it will be -31 Show.
if 31 then show with green bg
if -31 then show with red background
others just show the value.
RSI by Tamil harmonic trader rajRSI Indicator will show RSI value on chart right side as per timeframe.