Tragad00TanTechTrades — Trendilo with Moving Average + Divergences (Tragad00)
Inspired by Trendilo, this oscillator reworks the original logic and adds:
A selectable Moving Average (SMA/EMA/WMA/SMMA/VWMA) applied to the oscillator itself
Adaptive bands for overbought/oversold zones
Regular bullish & bearish divergence detection with labels
A full set of alert conditions for signals and state changes
What it does
This indicator transforms price into an ALMA-smoothed percent-change oscillator and compares it to an adaptive volatility band:
Oscillator (avpch)
Computes % change of your chosen Source, optionally smoothed, then smooths it again with ALMA (length, offset, sigma).
Adaptive bands (±rms)
Uses a root-mean-square of the oscillator over a band length (Lookback or custom) scaled by Band Multiplier.
Values above +rms suggest overbought pressure; below −rms suggest oversold pressure.
Trend coloring
Line (and optional bars) turn lime when avpch > +rms, red when avpch < −rms, and gray otherwise.
Optional fill highlights the dominant side.
Overlay MA on the oscillator
A selectable MA of the oscillator (maPlot) helps time signals relative to the Trendilo line.
Regular Divergences
Bullish: price makes a lower low while the oscillator makes a higher low.
Bearish: price makes a higher high while the oscillator makes a lower high.
Lookback windows are configurable and divergence labels are plotted on the oscillator.
Signals & how to read them
Trend Bias
Bull Zone: avpch above +rms (lime)
Bear Zone: avpch below −rms (red)
Neutral: between the bands (gray)
Cross Signals
Long Entry: MA crosses above the Trendilo line (maPlot ↑ over avpch)
Short Entry: MA crosses below the Trendilo line (maPlot ↓ under avpch)
Midline Cross: avpch crossing 0 flags shifts in momentum regime
Divergences
Bullish Divergence label (“Bull”) may mark potential bottoms
Bearish Divergence label (“Bear”) may mark potential tops
Tip: Combine divergence with a subsequent midline cross or MA cross for confirmation.
Alerts included (ready to use)
Overbought / No Longer Overbought
Oversold / No Longer Oversold
Long Entry (MA crosses above Trendilo)
Short Entry (MA crosses below Trendilo)
Midline Cross Up / Midline Cross Down
Bullish Divergence / Bearish Divergence
Set alerts from the “Conditions” menu using the titles above.
Inputs
Core
Source (default: Close)
Smoothing (pre-change smoothing)
Lookback (ALMA length)
ALMA Offset, ALMA Sigma
Band Multiplier
Custom Band Length? + Custom Band Length
Display: Highlight, Fill, Bar Color
Oscillator MA
MA Length
MA Type: SMA / EMA / WMA / SMMA (RMA) / VWMA
Divergences
Pivot Lookback Left / Right
Max/Min Lookback Range (window for valid pivots)
Plot Bullish Divergence / Plot Bearish Divergence
Suggested workflow
Trend context: Use band color (lime/red) to gauge dominant pressure.
Timing: Look for MA ↔ Trendilo crosses in the direction of the current zone.
Reversals: Watch for divergence labels; seek confirmation via midline (0) cross or a band exit.
Risk: Overbought/oversold alerts can warn of exhaustion—tighten stops or scale out.
Notes & credits
Built by TanTechTrades.
Inspired by the Trendilo concept; this version focuses on an ALMA-smoothed percent-change oscillator with adaptive RMS bands, an oscillator MA, and regular divergence detection.
This is a tool, not financial advice. Always combine with price action, structure, and risk management.
지표 및 전략
FX Futures Order Flow TableFX Futures Order Flow Table
This indicator tracks the directional flow of major FX futures and displays it in a table directly on the chart . Each currency shows whether its future is currently bullish or bearish, helping traders quickly identify strong trending pairs versus choppy/consolidating pairs .
How to Use:
• Best used on a higher timeframe (HTF) to determine the overall market flow, then applied to lower timeframes (LTF) for precise entry setups.
• Look for opposite flows between two FX futures—these pairs often offer the most profitable directional trades.
• Pairs where both futures flow in the same direction may experience sideways or choppy markets .
• Use as a market selection tool .
Tips:
• Focus on pairs with clear opposing flows for higher-probability setups.
• This table is a guide, not a standalone signal.
SIGMA BUYSure! Here's a simple explanation in English for your TradingView script:
🔍 What This Indicator Does:
This is a buy/sell trading indicator based on the Supertrend strategy, with several optional filters to improve signal quality.
✅ Main Features:
📈 Supertrend Logic
Detects market trend using the ATR (Average True Range).
Generates a buy signal when the price crosses above the Supertrend line.
Generates a sell signal when the price crosses below the Supertrend line.
📊 Filters (Optional — you can turn them ON or OFF):
EMA200 Filter: Only buy if price is above the 200 EMA.
RSI Filter: Only buy/sell if RSI is above or below certain values.
MACD Filter: Confirms signal using MACD crossover.
ATR Band Filter: Ensures enough volatility for valid signals.
Candle Pattern Filter: Looks for strong candlestick patterns (e.g., Bullish Engulfing, Hammer).
📦 Scalping Zones (Green/Red Zones):
Shows shaded areas to help visualize trend-based trading zones.
📅 Candle Boxes:
Draws a box for the first 30-minute candle of the day.
Also draws a box for the first 4-hour candle of the day.
Helps spot key support/resistance levels from those timeframes.
🔔 Alerts:
You can set alerts when a confirmed BUY or SELL signal appears.
💡 Example Use Case:
If you’re trading a stock or crypto:
Turn ON EMA200 and RSI filters to avoid weak signals.
Use the first 30m/4h boxes to plan entries around key levels.
Would you like me to simplify or customize this indicator even more for beginners or specific markets (like Forex, Crypto, or Saudi stocks)?
Open Range Breakout (ORB) with Alerts and LabelsThis is a classic 5min ORB indicator that highlights the orb range for your chosen session. This makes it easy to reference the range later in the trading day. In addition to the original orb signals for both buy and sell you can play off that zone for powerful entries later in the session. The signals give TP1 1:1 TP2 2:1
Options
You can set the name of the session
The color of the range.
The buffer for the SL
How many entries for the orb
Quantile-Based Adaptive Detection🙏🏻 Dedicated to John Tukey. He invented the boxplot, and I finalized it.
QBAD (Quantile-Based Adaptive Detection) is ‘the’ adaptive (also optionally weighted = ready for timeseries) boxplot with more senseful fences. Instead of hardcoded multipliers for outer fences, I base em on a set of quantile-based asymmetry metrics (you can view it as an ‘algorithmic’ counter part of central & standardized moments). So outer bands are Not hardcoded, not optimized, not cross-validated etc, simply calculated at O(nlogn).
You can use it literally everywhere in any context with any continuous data, in any task that requires statistical control, novelty || outlier detection, without worrying and doubting the sense in arbitrary chosen thresholds. Obviously, given the robust nature of quantiles, it would fit best the cases where data has problems.
The thresholds are:
Basis: the model of the data (median in our case);
Deviations: represent typical spread around basis, together form “value” in general sense;
Extensions: estimate data’s extremums via combination of quantile-based asymmetry metrics without relying on actual blunt min and max, together form “range” / ”frame”. Datapoints outside the frame/range are novelties or outliers;
Limits: based also on quantile asymmetry metrics, estimate the bounds within which values can ‘ever’ emerge given the current data generating process stays the same, together form “field”. Datapoints outside the field are very rare, happen when a significant change/structural break happens in current data-generating process, or when a corrupt datapoint emerges.
…
The first part of the post is for locals xd, the second is for the wanderers/wizards/creators/:
First part:
In terms of markets, mostly u gotta worry about dem instruments that represent crypto & FX assets: it’s either activity hence data sources there are decentralized, or data is fishy.
For a higher algocomplexity cost O(nlong), unlike MBAD that is 0(n), this thing (a control system in fact) works better with ishy data (contaminated with wrong values, incomplete, missing values etc). Read about the “ breakdown point of an estimator ” if you wanna understand it.
Even with good data, in cases when you have multiple instruments that represent the same asset, e.g. CL and BRN futures, and for some reason you wanna skip constructing a proper index of em (while you should), QBAD should be better put on each instrument individually.
Another reason to use this algo-based rather than math-based tool, might be in cases when data quality is all good, but the actual causal processes that generate the data are a bit inconsistent and/or possess ‘increased’ activity in a way. SO in high volatility periods, this tool should provide better.
In terms of built-ins you got 2 weightings: by sequence and by inferred volume delta. The former should be ‘On’ all the time when you work with timeseries, unless for a reason you want to consciously turn it off for a reason. The latter, you gotta keep it ‘On’ unless you apply the tool on another dataset that ain’t got that particular additional dimension.
Ain’t matter the way you gonna use it, moving windows, cumulative windows with or without anchors, that’s your freedom of will, but some stuff stays the same:
Basis and deviations are “value” levels. From process control perspective, if you pls, it makes sense to Not only fade or push based on these levels, but to also do nothing when things are ambiguous and/or don’t require your intervention
Extensions and limits are extreme levels. Here you either push or fade, doing nothing is not an option, these are decisive points in all the meanings
Another important thing, lately I started to see one kind of trend here on tradingview as well and in general in near quant sources, of applying averages, percentiles etc ‘on’ other stationary metrics, so called “indicators”. And I mean not for diagnostic or development reasons, for decision making xd
This is not the evil crime ofc, but hillbilly af, cuz the metrics are stationary it means that you can model em, fit a distribution, like do smth sharper. Worst case you have Bayesian statistics armed with high density intervals and equal tail intervals, and even some others. All this stuff is not hard to do, if u aint’t doing it, it’s on you.
So what I’m saying is it makes sense to apply QBAD on returns ‘of your strategy’, on volume delta, but Not on other metrics that already do calculations over their own moving windows.
...
Second part:
Looks like some finna start to have lil suspicions, that ‘maybe’ after all math entities in reality are more like blueprints, while actual representations are physical/mechanical/algorithmic. Std & centralized moments is a math entity that represents location, scale & asymmetry info, and we can use it no problem, when things are legit and consistent especially. Real world stuff tho sometimes deviates from that ideal, so we need smth more handy and real. Add to the mix the algo counter part of means: quantiles.
Unlike the legacy quantile-based asymmetry metrics from the previous century (check quantile skewness & kurtosis), I don’t use arbitrary sets of quantiles, instead we get a binary pattern that is totally geometric & natural (check the code if interested, I made it very damn explicit). In spirit with math based central & standardized moments, each consequent pair is wider empathizing tail info more and more for each higher order metric.
Unlike the classic box plot, where inner thresholds are quartiles and the rest are based on em, here the basis is median (minimises L1), I base inner thresholds on it, and we continue the pattern by basing the further set of levels on the previous set. So unlike the classic box plot, here we have coherency in construction, symmetry.
Another thing to pay attention to, tho for some reason ain’t many talk about it, it’s not conceptually right to think that “you got data and you apply std moments on it”. No, you apply it to ‘centered around smth’ data. That ‘smth’ should minimize L2 error in case of math, L1 error in case of algo, and L0 error in case of learning/MLish/optimizational/whatever-you-cal-it stuff. So in the case of L0, that’s actually the ‘mode’ of KDE, but that’s for another time. Anyways, in case of L2 it’s mean, so we center data around mean, and apply std moments on residuals. That’s the precise way of framing it. If you understand this, suddenly very interesting details like 0th and 1st central moments start to make sense. In case of quantiles, we center data around the median, and do further processing on residuals, same.
Oth moment (I call it init) is always 1, tho it’s interesting to extrapolate backwards the sequence for higher order moments construction, to understand how we actually end up with this zero.
1st moment (I call it bias) of residuals would be zero if you match centering and residuals analysis methods. But for some reason you didn’t do that (e.g centered data around midhinge or mean and applied QBAD on the centered data), you have to account for that bias.
Realizing stuff > understanding stuff
Learning 2981234 human invented fields < realizing the same unified principles how the Universe works
∞
Balance of Risks (with Strength & Scale)This helps outline higher time frame tilt, to help assess probabilities
ORB Pro w/ Filters + Debug + ORB Fib + Golden Pocket + HTF Trend🚀 ORB Pro – Advanced Opening Range Breakout System
A professional ORB indicator with built-in filters, retest confirmation, EMA/HTF trend alignment, and automatic risk/reward targets. Designed to eliminate false breakouts and give traders clean LONG/SHORT signals with Fibonacci and debug overlays for maximum precision.
This script is an advanced Opening Range Breakout (ORB) system designed for futures, indices, and options traders who want more precision, cleaner entries, and higher win probability. It combines classic ORB logic with modern filters, Fibonacci confluence, and higher-timeframe trend confirmation.
The indicator automatically:
Plots the ORB box based on user-defined NY session times (default: 9:30–9:45 EST).
Generates long/short signals when price breaks the ORB range, with optional conditions like:
Candle close outside the range
Retest confirmation (with tolerance %)
Volume spike validation
EMA trend alignment
Higher-timeframe EMA slope alignment
Cooldown filters to prevent over-trading
Integrates Fibonacci retracements & extensions from the ORB box for confluence levels.
Includes Golden Pocket (0.5–0.618) retests for precision entries
Risk/Reward visualization — automatically plots stop loss and take profit levels based on user-defined R:R or fixed % levels.
Debug mode overlay to show why a signal is blocked (e.g., low volume, ORB too small, too late, wrong trend).
This tool is built for scalpers, day traders, and 0DTE options traders who need both flexibility and discipline.
⚙️ Inputs & Features
ORB Settings
ORB Start & End Time (NY) → Default: 9:30–9:45
Require Candle Close → Ensures breakouts are confirmed, not wick traps.
Retest Confirmation → Optional retest before entry (tolerance % adjustable).
Filters
Volume Spike → Validates breakouts only with above-average volume.
EMA Trend Filter → Confirms trade direction with EMA slope.
Higher Timeframe Trend → Optional (e.g., 15m ORB with 1h EMA alignment).
Cooldown Bars → Prevents consecutive false signals.
ORB Size Filter → Blocks signals when ORB is too small/too large.
Fibonacci Levels
Retracements: 0.236, 0.382, 0.5, 0.618, 0.786
Extensions: 1.272, 1.618
Golden Pocket Retest filter for high-probability trades
Risk Management
R:R Stops/Targets → Automatically plots SL/TP levels.
Custom Stop % / Take Profit % if not using R:R
Debug Overlay → Explains why signals are blocked
🧑💻 How to Use
Load the indicator on your chart (works best on 1m, 5m, and 15m).
Adjust ORB window (default 9:30–9:45 EST).
Select filters (candle close, retest, volume, EMA, HTF trend).
Watch for Long/Short labels outside ORB box with filters aligned.
Manage trades using plotted SL/TP levels or your own Webull/R:R calculator.
✅ Best Use Cases
Futures (NQ1!, ES1!)
ETFs (QQQ, SPY, IWM)
0DTE Options Trading
Scalping around market open
⚠️ Disclaimer
This tool is for educational purposes only. It does not constitute financial advice. Trading carries risk, and past performance does not guarantee future results. Always test on paper trading before using real capital.
-----------------------------------------
ORB Pro w/ Filters + Debug + ORB Fib + Golden Pocket + HTF Trend
A professional Opening Range Breakout (ORB) toolkit designed for intraday traders who want precision entries, risk-managed exits, and layered confirmation filters. Built for futures, stocks, and ETFs (e.g. NQ, ES, QQQ).
🔎 Core Logic
This script plots and trades breakouts from the Opening Range (9:30 – 9:45 NY time), then applies multiple confirmation filters before signaling a LONG or SHORT setup:
ORB Box: Defines the first 15 minutes of market activity (customizable).
Breakout Candle Confirmation: Requires a candle close outside the ORB box.
Retest Confirmation: Price must retest the ORB edge within tolerance before triggering.
Trend Filter: EMA confirmation to align trades with intraday trend.
Higher-Timeframe Trend Filter: Optional (default: 45-minute EMA) to avoid countertrend trades.
Fibonacci Levels: Auto-plot retracements (0.236 → 0.786) for confluence and trade management.
Golden Pocket Retest (Optional): Adds an extra precision filter at 0.5–0.618 retracement.
⚙️ Default Settings (Optimized for Beginners)
These are the pre-configured inputs so traders can load and trade immediately:
ORB Session: 9:30 – 9:45 NY
✅ Require Candle Close Outside ORB
✅ Require Retest Confirmation (tolerance 0.333%)
❌ Require Volume Spike (off by default, optional toggle)
✅ Require EMA Trend (50 EMA intraday)
✅ Require Higher-TF Trend (45m, EMA 21)
❌ Higher-TF EMA slope required (off)
✅ Cooldown Between Signals (10 bars)
ORB % Range: Min 0.3%, Max 0.5%
Max Minutes After ORB: 180
✅ ORB-based Risk/Reward Stops & Targets (default: 2R)
Stop Loss: 0.5% (if not R:R)
Take Profit: 1% (if not R:R)
✅ Debug Overlay (shows why signals are blocked)
✅ Fibonacci Retracements Plotted
❌ Extensions (off by default, toggle if needed)
✅ Golden Pocket Retest available, tolerance 0.11 (optional)
📈 Signals
Green "LONG" Label: Valid breakout above ORB with trend confirmation.
Red "SHORT" Label: Valid breakdown below ORB with trend confirmation.
Blocked (debug text): Signal suppressed by filters (low volume, too late, no retest, etc.).
🎯 Trade Management
Default R:R is 2:1 (stop at ORB edge, TP projected).
For manual trading (e.g., Webull, IBKR), you can use the plotted TP/SL boxes directly.
Fibonacci + Golden Pocket give additional profit-taking levels and retest filters.
✅ Best Practices
Use 15m chart for main ORB entries.
Confirm direction with HTF trend (45m EMA by default).
Avoid signals blocked by “Low Volume” or “Too Late” (debug helps identify).
Adjust ORB % range for asset volatility (tight for ETFs, wider for futures).
🚀 Why ORB Pro?
This is more than a standard ORB indicator. It’s a professional breakout system with filters designed to avoid false breakouts, automatically handle risk/reward, and guide traders with clear visual signals. Perfect for both systematic day traders and discretionary scalpers who want structure and confidence.
👉 Recommended starting point:
Load defaults → trade the 15m ORB with EMA + HTF filters on → let the script handle retests and stop/target placement.
Candle Opens by HAZED🎯 Candle Opens by HAZED - Multi-Timeframe Open Levels Indicator
📊 Overview
This powerful indicator displays multiple timeframe opening prices on your chart, providing crucial reference levels that institutional traders and algorithms frequently monitor. Track up to 7 different timeframe opens simultaneously, from 1-hour to yearly, with advanced visualization features including dynamic coloring, heatmap analysis, and real-time status tracking.
✨ Key Features
📈 Multi-Timeframe Support:
- 1H, 4H, Daily, Weekly, Monthly, Quarterly, and Yearly opens
- Each timeframe can be individually enabled/disabled
- Automatic visibility adjustment based on chart timeframe
🎨 Dynamic Visual System:
- Smart Color Coding: Lines automatically change color based on price position (green above, red below)
- Customizable Styling: Adjust line thickness, transparency, and colors
- Intelligent Line Positioning: Choose between equal-length or staggered lines for better visibility
- Enhanced Labels: Display timeframe only or include price with colored background
🌈 Advanced Heatmap:
- Background coloring shows overall market sentiment across all timeframes
- Gradient or solid color modes
- Instantly see when multiple timeframes align bullish or bearish
📊 Status Table Dashboard:
- Real-time overview of all active opens
- Shows current price position relative to each open
- Simplified view when all timeframes align
- Customizable position and font style
⚙️ Professional Tools:
- Alert system for new open levels
- Extended hours session support
- Price discovery mode for EOD/intraday discrepancies
- Left/right line extensions for enhanced visibility
💡 Trading Applications
Support & Resistance:
Opening prices act as natural support/resistance levels. Price often reacts at these levels, providing entry/exit opportunities.
Trend Confirmation:
When price is above multiple opens (especially higher timeframes), it confirms bullish momentum. The opposite indicates bearish pressure.
Mean Reversion:
Price tends to revert to significant opens, particularly daily and weekly levels. Use these as targets for counter-trend trades.
Breakout Trading:
Monitor when price breaks above/below clustered opens for potential continuation moves.
Risk Management:
Use opens as logical stop-loss levels or position sizing references based on distance from key opens.
🔧 Indicator Settings
Timeframes Section:
- Toggle each timeframe on/off
- Customize individual colors
Visual Style Section:
- Dynamic Colors: Auto-color based on price position
- Line Thickness: 1-4 pixels
- Transparency: 0-80%
- Extension Length: How far lines extend right
- Label Style: Plain or enhanced with price
Heatmap Section:
- Enable/disable background coloring
- Adjust transparency
- Choose gradient or solid zones
Status Table Section:
- Position on chart
- Font selection
Advanced Section:
- Enable alerts for new opens
- Price discovery mode
- Extended hours inclusion
]📈 Best Practices
1. Timeframe Selection:
- For intraday: Focus on 1H, 4H, and Daily
- For swing trading: Daily, Weekly, Monthly
- For position trading: Monthly, Quarterly, Yearly
2. Color Coding:
- Enable dynamic colors for instant sentiment reading
- Use heatmap for overall market bias
3. Confluence Zones:
- Pay special attention when multiple opens cluster
- These zones often produce stronger reactions
4. Alignment Signals:
- When all timeframes show same color = strong trend
- Mixed colors = potential consolidation or reversal zone
🎯 Pro Tips
- Volume Confirmation: Combine with volume indicators to confirm reactions at open levels
- Multiple Instruments: Compare opens across correlated assets for divergences
- News Events: Opens often act as magnets after major news releases
- Options Trading: Weekly and monthly opens align with options expiry levels
- Algorithmic Levels: Many algorithms use these opens for entries/exits
🔄 Updates in Version 8.3
- Added 1H and 4H timeframe support
- Enhanced dynamic color system
- Implemented heatmap visualization
- Added real-time status table
- Optimized performance for smoother operation
- Improved label styling options
- Better yearly timeframe detection
⚡ Performance Optimizations
This indicator uses advanced Pine Script v6 features for optimal performance:
- Efficient object reuse instead of recreation
- Smart calculation loops
- Minimal repainting
- Optimized for real-time updates
📝 Notes
- Works on all markets (stocks, forex, crypto, futures)
- Best on timeframes lower than the opens you're tracking
- Lines automatically hide when their timeframe is lower than chart timeframe
- Past opens are not displayed (indicator shows current opens only)
🙏 Credits & Support
Created by HAZED | Version 8.3
Optimized for TradingView Pine Script v6
For questions, suggestions, or bug reports, please comment below.
If you find this indicator useful, please consider leaving a like and a follow!
Remember: No indicator is perfect. Always use proper risk management and combine multiple confirmation signals in your trading decisions.
CQ_MTF Calculated Target Price Lines [BITCOIN HOY]
Comprehensive Indicator Script Overview
Fully Automatic Intraday, Four Hour, Daily, and Weekly Calculated Price Target Lines —A Versatile Tool for Traders.
Welcome to a powerful and flexible indicator script designed to enhance your trading experience across multiple timeframes.
This script empowers users to interactively set, visualize, and manage price targets, entries, and objectives for both
short-term and long-term trading strategies. Whether you are a day trader seeking to mark crucial intraday levels or a
long-term investor planning strategic entries, this tool offers an all-encompassing solution.
Key Features
• Multi-Time Frame Price Target Lines: Calculated price targets for Intraday, Four Hour, Daily, and Weekly periods,
ensuring you always have a clear view of the market objectives at every scale.
• Long-Term Investment Entry Events: Document and display significant entry events for long-term investments, helping
you maintain a strategic perspective while navigating short-term fluctuations.
• Long-Term Price Objectives: Input and track price objectives for your long-term trades, supporting your investment
decisions with clearly visualized milestones.
• Customizable Labels and Lines: Each price target is accompanied by clearly labeled lines, making it easy to distinguish
between timeframes and targets at a glance.
Optional Price Gauge for Intraday Dynamics
For users who wish to monitor real-time market sentiment, the script includes an optional price gauge. This dynamic
feature tracks intraday price movement, providing visual cues to quickly assess whether the prevailing tendency is
bullish or bearish. The intuitive gauge aids in confirming your intraday strategies or alerting you to potential reversals.
User Experience and Customization
• Interactive Inputs: All key parameters—price targets, x-axis prices, entry events, and objectives—are entered manually
by the user. This approach ensures the script adapts to your personal analysis and trading methodology.
• Easy Visualization: The clear display of lines, labels, and the optional gauge streamlines your chart, making it easier
to make informed decisions at a glance.
• Flexible Application: Whether you’re trading short-term swings or building positions for the long haul, the indicator
integrates seamlessly into your workflow.
How to Use
• The script automatically calculates price targets for each timeframe (Intraday, Four Hour, Daily, and Weekly).
• Automatically calculates intra-month price objectives for quick reference and planning.
• To monitor current market momentum, activate the price gauge and follow the visual cues for bullish or bearish trends.
Benefits
• Comprehensive Market Overview: Simultaneously track multiple timeframes and objectives, keeping all critical information at your fingertips.
• Improved Decision Making: Visual clarity and strategic labeling support faster, more confident trading decisions.
• Customizable and Adaptable: Tailor the script to your unique trading style and analytical approach.
Enjoy using the indicator, and happy trading! Let this versatile tool be your companion in navigating the ever-changing
tides of the market.
SuperTrend Optimizer Remastered[CHE] SuperTrend Optimizer Remastered — Grid-ranked SuperTrend with additive or multiplicative scoring
Summary
This indicator evaluates a fixed grid of one hundred and two SuperTrend parameter pairs and ranks them by a simple flip-to-flip return model. It auto-selects the currently best-scoring combination and renders its SuperTrend in real time, with optional gradient coloring for faster visual parsing. The original concept is by KioseffTrading Thanks a lot for it.
For years I wanted to shorten the roughly two thousand three hundred seventy-one lines; I have now reduced the core to about three hundred eighty lines without triggering script errors. The simplification is generalizable to other indicators. A multiplicative return mode was added alongside the existing additive aggregation, enabling different rankings and often more realistic compounding behavior.
Motivation: Why this design?
SuperTrend is sensitive to its factor and period. Picking a single pair statically can underperform across regimes. This design sweeps a compact parameter grid around user-defined lower bounds, measures flip-to-flip outcomes, and promotes the combination with the strongest cumulative return. The approach keeps the visual footprint familiar while removing manual trial-and-error. The multiplicative mode captures compounding effects; the additive mode remains available for linear aggregation.
Originally (by KioseffTrading)
Very long script (~2,371 lines), monolithic structure.
SuperTrend optimization with additive (cumulative percentage-sum) scoring only.
Heavier use of repetitive code; limited modularity and fewer UI conveniences.
No explicit multiplicative compounding option; rankings did not reflect sequence-sensitive equity growth.
Now (remastered by CHE)
Compact core (~380 lines) with the same functional intent, no compile errors.
Adds multiplicative (compounding) scoring alongside additive, changing rankings to reflect real equity paths and penalize drawdown sequences.
Fixed 34×3 grid sweep, live ranking, gradient-based bar/wick/line visuals, top-table display, and an optional override plot.
Cleaner arrays/state handling, last-bar table updates, and reusable simplification pattern that can be applied to other indicators.
What’s different vs. standard approaches?
Baseline: A single SuperTrend with hand-picked inputs.
Architecture differences:
Fixed grid of thirty-four factor offsets across three ATR offsets.
Per-combination flip-to-flip backtest with additive or multiplicative aggregation.
Live ranking with optional “Best” or “Worst” table output.
Gradient bar, wick, and line coloring driven by consecutive trend counts.
Optional override plot to force a specific SuperTrend independent of ranking.
Practical effect: Charts show the currently best-scoring SuperTrend, not a static choice, plus an on-chart table of top performers for transparency.
How it works (technical)
For each parameter pair, the script computes SuperTrend value and direction. It monitors direction transitions and treats a change from up to down as a long entry and the reverse as an exit, measuring the move between entry and exit using close prices. Results are aggregated per pair either by summing percentage changes or by compounding return factors and then converting to percent for comparison. On the last bar, open trades are included as unrealized contributions to ranking. The best combination’s line is plotted, with separate styling for up and down regimes. Consecutive regime counts are normalized within a rolling window and mapped to gradients for bars, wicks, and lines. A two-column table reports the best or worst performers, with an optional row describing the parameter sweep.
Parameter Guide
Factor (Lower Bound) — Starting SuperTrend factor; the grid adds offsets between zero and three point three. Default three point zero. Higher raises distance to price and reduces flips.
ATR Period (Lower Bound) — Starting ATR length; the grid adds zero, one, and two. Default ten. Longer reduces noise at the cost of responsiveness.
Best vs Worst — Ranks by top or bottom cumulative return. Default Best. Use Worst for stress tests.
Calculation Mode — Additive sums percents; Multiplicative compounds returns. Multiplicative is closer to equity growth and can change the leaderboard.
Show in Table — “Top Three” or “All”. Fewer rows keep charts clean.
Show “Parameters Tested” Label — Displays the effective sweep ranges for auditability.
Plot Override SuperTrend — If enabled, the override factor and ATR are plotted instead of the ranked winner.
Override Factor / ATR Period — Values used when override is on.
Light Mode (for Table) — Adjusts table colors for bright charts.
Gradient/Coloring controls — Toggles for gradient bars and wick coloring, window length for normalization, gamma for contrast, and transparency settings. Use these to emphasize or tone down visual intensity.
Table Position and Text Size — Places the table and sets typography.
Reading & Interpretation
The auto SuperTrend plots one line for up regimes and one for down regimes. Color intensity reflects consecutive trend persistence within the chosen window. A small square at the bottom encodes the same gradient as a compact status channel. Optional wick coloring uses the same gradient for maximum contrast. The performance table lists parameter pairs and their cumulative return under the chosen aggregation; positive values are tinted with the up color, negative with the down color. “Long” labels mark flips that open a long in the simplified model.
Practical Workflows & Combinations
Trend following: Use the auto line as your primary bias. Enter on flips aligned with structure such as higher highs and higher lows. Filter with higher-timeframe trend or volatility contraction.
Exits/Stops: Consider conservative exits when color intensity fades or when the opposite line is approached. Aggressive traders can trail near the plotted line.
Override mode: When you want stability across instruments, enable override and standardize factor and ATR; keep the table visible for sanity checks.
Multi-asset/Multi-TF: Defaults travel well on liquid instruments and intraday to daily timeframes. Heavier assets may prefer larger lower bounds or multiplicative mode.
Behavior, Constraints & Performance
Repaint/confirmation: Signals are based on SuperTrend direction; confirmation is best assessed on closed bars to avoid mid-bar oscillation. No higher-timeframe requests are used.
Resources: One hundred and two SuperTrend evaluations per bar, arrays for state, and a last-bar table render. This is efficient for the grid size but avoid stacking many instances.
Known limits: The flip model ignores costs, slippage, and short exposure. Rapid whipsaws can degrade both aggregation modes. Gradients are cosmetic and do not change logic.
Sensible Defaults & Quick Tuning
Start with the provided lower bounds and “Top Three” table.
Too many flips → raise the lower bound factor or period.
Too sluggish → lower the bounds or switch to additive mode.
Rankings feel unstable → prefer multiplicative mode and extend the normalization window.
Visuals too strong → increase gradient transparency or disable wick coloring.
What this indicator is—and isn’t
This is a parameter-sweep and visualization layer for SuperTrend selection. It is not a complete trading system, not predictive, and does not include position sizing, transaction costs, or risk management. Combine with market structure, higher-timeframe context, and explicit risk controls.
Attribution and refactor note: The original work is by KioseffTrading. The script has been refactored from approximately two thousand three hundred seventy-one lines to about three hundred eighty core lines, retaining behavior without compiler errors. The general simplification pattern is reusable for other indicators.
Metadata
Name/Tag: SuperTrend Optimizer Remastered
Pine version: v6
Overlay or separate pane: true (overlay)
Core idea/principle: Grid-based SuperTrend selection by cumulative flip returns with additive or multiplicative aggregation.
Primary outputs/signals: Auto-selected SuperTrend up and down lines, optional override lines, gradient bar and wick colors, “Long” labels, performance table.
Inputs with defaults: See Parameter Guide above.
Metrics/functions used: SuperTrend, ATR, arrays, barstate checks, windowed normalization, gamma-based contrast adjustment, table API, gradient utilities.
Special techniques: Fixed grid sweep, compounding vs linear aggregation, last-bar UI updates, gradient encoding of persistence.
Performance/constraints: One hundred and two SuperTrend calls, arrays of length one hundred and two, label budget, last-bar table updates, no higher-timeframe requests.
Recommended use-cases/workflows: Trend bias selection, quick parameter audits, override standardization across assets.
Compatibility/assets/timeframes: Standard OHLC charts across intraday to daily; liquid instruments recommended.
Limitations/risks: Costs and slippage omitted; mid-bar instability possible; not suitable for synthetic chart types.
Debug/diagnostics: Ranking table, optional tested-range label; internal counters for consecutive trends.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
WRAMA (with alerts)Updated the original WRAMA indicator to include alerts when the background changes colors.
Basic ICT PD Array MarkerIt focuses on OBs and FVGs on your chosen timeframe (e.g., H1 for /NQ). This is open-source friendly and based on ICT logic from community scripts.
Heiken Ashi Color Change Alert (3-Bar Confirmation)Heiken Ashi Color Change Alert (3-Bar Confirmation)
Previous Session Highs/Lows (Fixed, Dynamic EST)does exactly what it says marks out asian and london session highs and lows
Moving Averagemoving average indicator i created the follow genuine movement of volume in the market nased on the setting you use
FX Pullback v3 (More Trades ~55–65% Win Rate)This is a trend-following pullback strategy designed for Forex.
It waits for:
A strong trend (measured by EMA200 slope + ADX).
A pullback to the short-term EMAs (21/50).
A recovery back into the trend, ideally near a pivot level (support/resistance).
Then it enters a trade with risk-based position sizing and manages exits with ATR-based stop-loss, take-profit, breakeven, and optional trailing stop.
1000Tick chart buy sell BBC MNQbuy sell indicator for mnq with alert signals for intraday. use this chart for entry and exit signals
Atlantean Sideways / Range Regime DetectorPurpose
When using trend based indicators, you can skip the false signals when there is a sideways action, protecting you from the false signals.
Flags likely sideways/range phases using three checks:
Weak trend (ADX from DMI)
Price compression (Bollinger Band Width, normalized)
Low volatility (NATR = ATR/Price%)
Logic
isSideways = (ADX < adxThresh) AND (bbNorm < 0.25) AND (NATR < natrMax)
When true: bars + background turn teal and a provisional Range High/Low (rolling rangeWin) is drawn.
Key Inputs
DMI: diLen(22)
Optimized for 15 mins Bitcoin, could change it to 14 for more general approach
ADX: adxSmooth(14), adxThresh(18)
Volatility: lenATR(14), natrMax(1.8)
Visuals: rangeWin(20), bar/range toggles
Quick Tuning
More signals: raise adxThresh to 20–25, raise natrMax to 2.5–4.0, increase BB cutoff by editing bbNorm < 0.25 --> 0.35–0.50.
Smoother range lines: increase rangeWin to 30–40.
Use Cases
Mean reversion inside teal ranges.
Breakout prep when price closes outside the drawn range after teal ends. Could be used as a signal although not suggested.
Filter trend systems: skip trades when sidewaysCond is true. This is the main purpose, for it to be combined with trend based indicators, like Supertrend.
Alert
“Sideways Detected” triggers when isSideways is true.
Script could be expanded upon your requests.
fvg,sma,ema web hook for python botsused with python bots, load this an an indicator.
click create alert,
in the pop up, click price then select the fvg, ema, sma indicator you just loaded,
click crossing and select any alert,
in notifications click webhook, enter the address of you bot or download and configure ngrok from ngrok.com tutorials online, at the end of the web address it generates add /webhook/tradingview
which ever time frame TV is set to is the TF used