Power Hour Breakout Signals [LuxAlgo]The Power Hour Breakout tool helps traders identify key price levels from the Power Hour and spot breakouts from those levels easily. This tool features Power Hour extensions, Fibonacci levels, and session break marks for the trader's convenience.
🔶 USAGE
The Power Hour is defined as the last hour of the trading session and is set by default from 3:00 p.m. to 4:00 p.m. New York time. During this period, volume and volatility enter the market. Traders using higher timeframes may use this period to enter or exit positions by placing MOC (Market on Close) orders.
This tool highlights the Power Hour and the top and bottom price levels. Each time prices break out from these levels, a signal is displayed on the chart.
We can use the Power Hour to gauge market sentiment:
Bullish sentiment: Price trades above the Power Hour.
Mixed sentiment: Price trades within the Power Hour.
Bearish sentiment: Price trades below the Power Hour.
🔹 Displaying Power Hours and Breakouts
By default, all detected Power Hours are displayed. Traders can manually adjust this number by disabling the "Display All" parameter in the Settings panel.
Breakouts are displayed by default, too, but this feature can be disabled as well.
The chart above shows different configurations of these parameters.
🔹 Power Hour Extensions
Traders can use Power Hour extensions as potential targets for breakout signals.
In the settings panel, traders can select the percentage of the Power Hour price range to use for each extension. For example, 100% uses the full range, 200% uses the range twice, and so on.
As seen on the chart, traders can configure different percentages for the top and bottom extensions.
🔹 Fibonacci Levels
Traders can display default or custom Fibonacci levels on the Power Hour range to identify retracement opportunities and evaluate market movement strength. Each level can be enabled or disabled, as well as customized by level, color, and line style.
For example, as we can see on the chart, prices attempt to break out at the Power Hour top level, then retrace to the 0.618 Fibonacci level, and then rise to the 200% Power Hour top extension.
🔶 SETTINGS
Display Last X Power Hours: Select how many Power Hours to display or enable the Display All feature.
Power Hour (NY Time): Choose a custom Power Hour in New York time.
🔹 Breakouts
Breakouts: Enable or disable breakouts.
Bullish Breakout: Select color for bullish breakouts.
Bearish Breakout: Select color for bearish breakouts.
🔹 Extensions
Top Extension: Enable or disable the top extension and choose the percentage of Power Hour to use.
Bottom extension: Enable or disable the bottom extension and choose the percentage of Power Hour to use.
🔹 Fibonacci Levels
Display Fibonacci: Enable or disable Fibonacci levels.
Reverse: Reverse Fibonacci levels.
Levels, Colors & Style
Display Labels: Enable or disable labels and choose text size.
🔹 Style
Power Hour Colors
Extension Transparency: Choose the extension's transparency. 0 is solid, and 100 is fully transparent.
Session Breaks: Enable or disable session breaks.
دورات
Bullish Candlestick PatternsBULLISH REVERSAL PATTERNS (in downtrends):
🔨 HAMMER
Small body at top of candle
Long lower wick (2x+ body size)
Little/no upper wick
Appears in downtrend
Signal: Sellers pushed down but buyers regained control
📈 BULLISH ENGULFING
Current green candle completely engulfs previous red candle
Larger body than previous candle (1.2x+)
Appears in downtrend
Signal: Strong buyer takeover from sellers
⭐ MORNING STAR (3-candle pattern)
Long red candle → Small body (indecision) → Long green candle
Green candle closes above midpoint of first red candle
Appears in downtrend
Signal: Powerful reversal confirmation
BULLISH CONTINUATION PATTERN (in uptrends):
📊 RISING THREE METHODS (5-candle pattern)
Strong green candle → 3 small red pullbacks → Breakout green candle
Pullbacks stay within range of first candle
Final candle breaks above
Appears in uptrend
Signal: Healthy consolidation before continuation
🎯 KEY FEATURES:
Pattern-specific markers: H, BE, MS, R3 indicators
Large LONG triangles when any pattern detected
Pattern labels showing name and type (REVERSAL/CONTINUATION)
Real-time trend detection with EMA
Info table showing all active patterns
Individual alerts for each pattern type
Customizable parameters for sensitivity
Color-coded backgrounds for entry signals
⚙️ CUSTOMIZABLE SETTINGS:
Trend detection length (default 20)
Hammer wick ratio requirements
Engulfing size multipliers
Pattern sensitivity adjustments
This indicator gives you high-probability long entries based on proven Japanese candlestick patterns that show increasing buyer control!
Price Action [SnR+BreakOut / FalseBreak]Core Functionality
Multi-Feature Analysis: Combines pivot points, support/resistance levels, breakout detection, and false break signals
Price Action Classification: Identifies market structure through Higher Highs, Lower Highs, Higher Lows, and Lower Lows
Key Features
1. Price Action Pivot Analysis
Pivot Detection Settings:
Customizable Lengths: Separate left/right lengths for high and low pivots (default: 13/26)
Pivot Classification:
Higher High (HH): Green triangle down - indicates bullish momentum
Lower High (LH): Red triangle down - indicates weakening uptrend
Higher Low (HL): Green triangle up - indicates strong pullback
Lower Low (LL): Red triangle up - indicates bearish momentum
Visual Options:
Toggle individual pivot types on/off
Show price labels with customizable sizes
Display pivot levels as lines or fractal chaos channels
Show average pivot line (high + low / 2)
2. False Break Detection
Advanced Breakout Validation:
False Break Signals: Detects when breakouts fail and price reverses
Validation Period: Configurable bars (1-10) to monitor break sustainability
Engulfing Condition: Requires reversal candle to engulf the breakout candle
Visual Alerts: "FalseB!!" labels in red (for failed breakouts) or green (for failed breakdowns)
False Break Logic:
Tracks recent breakouts/breakdowns
Monitors price action after the break
Flags when price re-enters the original range with strong reversal
3. Support & Resistance Levels
Swing-Based S/R:
Swing Period: Configurable lookback period (default: 26 bars)
Multiple Levels: Displays 3 most recent support and resistance levels
Customizable Appearance:
Line styles (solid, dashed, dotted)
Extend options (left, right, both, none)
Separate colors for support/resistance lines and labels
S/R Calculation:
Uses pivot highs/lows to identify significant levels
Maintains historical S/R levels as price moves
Automatically updates as new pivots form
4. Breakout Detection
Fractal Breakout Signals:
Breakout Arrows: Up/down arrows when price breaks pivot levels
Real-time Detection: Flags breaks as they occur
Clear Visuals: Green "⬆️" for breakouts, red "⬇️" for breakdowns
FibPulse144 [CHE] FibPulse144 — ADX-gated 13/21 crossover with 144-trend regime and closed-bar labels
Summary
FibPulse144 combines a fast moving-average crossover with a 144-period trend regime and an ADX strength gate. Signals are confirmed on closed bars only and drawn as labels on the price chart, while an ADX line in a separate pane provides context. Color gradients are derived from normalized ADX, so visual intensity reflects trend strength without changing the underlying logic. The approach reduces false flips during weak conditions and keeps entries aligned with the dominant trend.
Motivation: Why this design?
Traditional crossover signals can flip repeatedly during sideways phases and often trigger against the higher-time regime. By requiring alignment with a slower trend proxy and by gating entries through a rising ADX condition, FibPulse144 favors structurally cleaner transitions. Gradient coloring communicates strength visually, helping users temper aggressiveness without additional indicators.
What’s different vs. standard approaches?
Baseline: Classic dual-MA crossover with unconditional signals.
Architecture differences:
Two-bar regime confirmation against a 144-period trend average.
Pending-signal logic that waits for regime and optional ADX approval.
ADX strength gate using the prior reading relative to a user threshold and earlier value.
Gradient colors scaled by an ADX window with gamma controls.
Price-chart labels enforced via overlay on an otherwise pane-based indicator.
Practical effect: Fewer signals during weak or choppy conditions, labels that appear only after a bar closes, and color intensity that mirrors trend quality.
How it works (technical)
The script computes fast and slow moving averages using the selected method and lengths. A separate 144-length average defines the regime using a two-bar confirmation above or below it. Crossovers are observed on the previous bar to avoid intrabar ambiguity; once a prior crossover is detected, it is stored as pending. A pending long requires regime alignment and, if enabled, an ADX condition based on the previous reading being above the threshold and greater than an earlier reading. The state machine holds neutral, long, or short until an exit condition or ADX reset is met. ADX is normalized within a user window, scaled with gamma, and mapped to up and down color palettes to render gradients. Labels on the price panel are forced to overlay, while the ADX line and threshold guide remain in a separate pane.
Parameter Guide
Source — Input data for all calculations. Default: close. Tip: keep consistent with your chart.
MA Type — EMA or SMA. Default: EMA. EMA reacts faster; SMA is smoother.
Fast / Slow — Fast and slow lengths for crossover. Defaults: 13 and 21. Shorter reacts earlier; longer reduces noise.
Trend — Regime average length. Default: 144. Larger values stabilize regime; smaller values increase sensitivity.
Use 144 as trend filter — Enables regime gating. Default: true. Disable to allow raw crossovers.
Use ADX filter — Requires ADX strength. Default: true. Disable to allow signals regardless of strength.
ADX Len — DI and ADX smoothing length. Default: 14. Higher values smooth strength; lower values react faster.
ADX Thresh — Minimum strength for signals. Default: 25. Raise to reduce flips; lower to capture earlier moves.
Entry/Exit labels (price) — Price-panel labels on state changes. Default: true.
Signal labels in ADX pane — Small markers at the ADX value on entries. Default: true.
Label size — tiny, small, normal, large. Default: normal.
Enable barcolor — Optional candle tint by regime and gradient. Default: false.
Enable gradient — Turns on ADX-driven color blending. Default: true.
Window — Bars used to normalize ADX for colors. Default: 100; minimum: 5.
Gamma bars / Gamma plots — Nonlinear scaling for bar and line intensities. Default: 0.80; between 0.30 and 2.00.
Gradient transp (0–90) — Transparency for gradient colors. Default: 0.
MA fill transparency (0–100) — Fill opacity between fast and slow lines. Default: 65.
Palette colors (Up/Down) — Dark and neon endpoints for up and down gradients. Defaults as in the code.
Reading & Interpretation
Fast/Slow lines: When the fast line is above the slow line, the line and fill use the long palette; when below, the short palette is used.
Trend MA (144): Neutral gray line indicating the regime boundary.
Labels on price: “LONG” appears when the state turns long; “SHORT” when it turns short. Labels appear only after the bar closes and conditions are satisfied.
ADX pane: The ADX line shows current strength. The dotted threshold line is the user level for gating. Optional small markers indicate entries at the ADX value.
Bar colors (optional): Candle tint intensity reflects normalized ADX. Higher intensity implies stronger conditions.
Practical Workflows & Combinations
Trend following: Use long entries when fast crosses above slow and price has held above the trend average for two bars, with ADX above threshold. Mirror this for shorts below the trend average.
Exits and stops: Consider reducing exposure when price closes on the opposite side of the trend average for two consecutive bars or when ADX fades below the threshold if the ADX filter is enabled.
Structure confirmation: Combine with higher-timeframe structure such as swing highs and lows or a simple market structure overlay for confirmation.
Multi-asset/Multi-TF: Works across liquid assets. For lower timeframes, consider a slightly lower ADX threshold; for higher timeframes, maintain or raise the threshold to avoid unnecessary flips.
Behavior, Constraints & Performance
Repaint/confirmation: Signals are based on previous-bar crossovers and are confirmed on bar close. No higher-timeframe or security calls are used. Intrabar markers are not relied upon.
Resources: The script declares `max_bars_back` of 2000, uses no loops or arrays, and employs persistent variables for pending signals and state.
Known limits: Crossover systems can lag after sudden reversals. During tight ranges, disabling the ADX filter may increase flips; keeping it enabled may skip early transitions.
Sensible Defaults & Quick Tuning
Starting point: EMA, 13/21/144, ADX length 14, ADX threshold 25, gradients on, barcolor off.
Too many flips: Increase ADX threshold or length; increase trend length; consider SMA instead of EMA.
Too sluggish: Lower ADX threshold slightly; shorten fast and slow lengths; reduce the trend length.
Colors overpowering: Increase gradient transparency or reduce gamma values toward one.
What this indicator is—and isn’t
This is a visualization and signal layer that combines crossover, regime, and strength gating. It does not predict future movements, manage risk, or execute trades. Use it alongside clear structure, risk controls, and a defined position management plan.
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
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)?
Predicted Funding RatesOverview
The Predicted Funding Rates indicator calculates real-time funding rate estimates for perpetual futures contracts on Binance. It uses triangular weighting algorithms on multiple different timeframes to ensure an accurate prediction.
Funding rates are periodic payments between long and short position holders in perpetual futures markets
If positive, longs pay shorts (usually bullish)
If negative, shorts pay longs (usually bearish)
This is a prediction. Actual funding rates depend on the instantaneous premium index, derived from bid/ask impacts of futures. So whilst it may imitate it similarly, it won't be completely accurate.
This only applies currently to Binance funding rates, as HyperLiquid premium data isn't available. Other Exchanges may be added if their premium data is uploaded.
Methods
Method 1: Collects premium 1-minunute data using triangular weighing over 8 hours. This granular method fills in predicted funding for 4h and less recent data
Method 2: Multi-time frame approach. Daily uses 1 hour data in the calculation, 4h + timeframes use 15M data. This dynamic method fills in higher timeframes and parts where there's unavailable premium data on the 1min.
How it works
1) Premium data is collected across multiple timeframes (depending on the timeframe)
2) Triangular weighing is applied to emphasize recent data points linearly
Tri_Weighing = (data *1 + data *2 + data *3 + data *4) / (1+2+3+4)
3) Finally, the funding rate is calculated
FundingRate = Premium + clamp(interest rate - Premium, -0.05, 0.05)
where the interest rate is 0.01% as per Binance
Triangular weighting is calculated on collected premium data, where recent data receives progressively higher weight (1, 2, 3, 4...). This linear weighting scheme provides responsiveness to recent market conditions while maintaining stability, similar to an exponential moving average but with predictable, linear characteristics
A visual representation:
Data points: ──────────────>
Weights: 1 2 3 4 5
Importance: ▂ ▃ ▅ ▆ █
How to use it
For futures traders:
If funding is trending up, the market can be interpreted as being in a bull market
If trending down, the market can be interpreted as being in a bear market
Even used simply, it allows you to gauge roughly how well the market is performing per funding. It can basically be gauged as a sentiment indicator too
For funding rate traders:
If funding is up, it can indicate a long on implied APR values
If funding is down, it can indicate a short on implied APR values
It also includes an underlying APR, which is the annualized funding rate. For Binance, it is current funding * (24/8) * 365
For Position Traders: Monitor predicted funding rates before entering large positions. Extremely high positive rates (>0.05% for 8-hour periods) suggest overleveraged longs and potential reversal risk. Conversely, extreme negative rates indicate shorts dominance
Table:
Funding rate: Gives the predicted funding rate as a percentage
Current premium: Displays the current premium (difference between perpetual futures price and the underlying spot) as a percentage
Funding period: You can choose between 1 hour funding (HyperLiquid usually) and 8 hour funding (Binance)
APR: Underlying annualized funding rate
What makes it original
Whilst some predicted funding scripts exist, some aren't as accurate or have gaps in data. And seeing as funding values are generally missing from TV tickers, this gives traders accessibility to the script when they would have to use other platforms
Notes
Currently only compatible with symbols that have Binance USDT premium indices
Optimal accuracy is found on timeframes that are 4H or less. On higher timeframes, the accuracy drops off
Actual funding rates may differ
Inputs
Funding Period: Choose between "8 Hour" (standard Binance cycle) or "1 Hour" (divides the 8-hour rate by 8 for granular comparison)
Plot Type: Display as "Funding Rate" (percentage per interval) or "APR" (annualized rate calculated as 8-hour rate × 3 × 365)
Table: Toggle the information table showing current funding rate, premium, funding period, and APR in the top-right corner
Positive Colour: Sets the colour for positive funding rates where longs pay shorts (default: #00ffbb turquoise)
Negative Colour: Sets the colour for negative funding rates where shorts pay longs (default: red)
Table Background: Controls the background colour and transparency of the information table (default: transparent dark blue)
Table Text Colour: Sets the colour for all text labels in the information table (default: white)
Table Text Size: Controls font size with options from Tiny to Huge, with Small as the default balance of readability and space
Moving Averagemoving average indicator i created the follow genuine movement of volume in the market nased on the setting you use
Consolidation/Base Core Functionality
Identifies Consolidation Zones: Detects periods where price moves within a defined range after significant moves
Fractal-based Detection: Uses highest/lowest points within a loopback period to identify potential consolidation boundaries
Breakout Detection: Flags when price breaks out of consolidation zones
Key Features
Input Parameters
Loopback Period (20): How many bars to look back for fractal detection
Min Consolidation Length (10): Minimum bars required to form a valid consolidation
Visual Customization: Options to show/hide consolidation areas, fractal symbols, and middle lines
Visual Elements
Consolidation Zones: Draws horizontal lines marking the upper and lower boundaries of consolidation areas
Middle Price Line: Displays the midpoint of consolidation ranges (yellow dashed line)
Price Labels: Shows exact price levels for boundaries and middle line
Fractal Breakout Symbols: Marks breakout points with symbols (when enabled)
Technical Logic
Fractal Detection: Identifies local highs/lows using ta.highestbars() and ta.lowestbars()
Direction Tracking: Maintains market direction state (1 for up, -1 for down, 0 for neutral)
Consolidation Counting: Tracks consecutive bars within consolidation boundaries
Breakout Logic: Detects when price breaks above resistance or below support
Use Cases
Range Trading: Identify consolidation zones for range-bound strategies
Breakout Trading: Spot potential breakout levels for momentum entries
Support/Resistance: Dynamic support and resistance levels based on recent price action
Market Structure: Understand current market state (ranging vs. trending)
The indicator is particularly useful for traders looking to capitalize on periods of low volatility that often precede significant price movements.
Quarterly Theory Cycles + Alerts (Weekly/Daily/90-Minute Cycles)Quarterly Theory Cycles (90m • Daily • Weekly)
Purpose
Built for Quarterly Theory. This indicator maps repeating quarters across three rhythms—90-minute, Daily, and Weekly (18:00 NY → 18:00 NY)—so you can track where price is within the current quarter and how it reacts to the previous quarter’s high/low.
Quarter Structure
90-Minute Quarters
Labels:Q1 / Q2 / Q3 / Q4
Sessions: Asia, London, NY, PM (each split into four 90-minute quarters).
Daily Quarters
Labels: [D-Q1 / D-Q2 / D-Q3 / D-Q4
Windows (America/New_York):
D-Q1: 18:00–00:00
D-Q2: 00:00–06:00
D-Q3: 06:00–12:00
D-Q4: 12:00–18:00
Weekly Quarters
Labels: W-Q1 / W-Q2 / W-Q3 / W-Q4
Trading days defined 18:00 NY → 18:00 NY (DST-aware).
W-Q1 = Monday, W-Q2 = Tuesday, W-Q3 = Wednesday, W-Q4 = Thursday
Friday intentionally excluded (no W-Q5) to preserve theory behavior.
Use for higher-timeframe context and weekly narrative (e.g., expansion vs. distribution days).
What It Draws
Live, extending range boxes for the active quarter (H/L updates in real time).
Stored previous quarter’s high/low for each rhythm (90m, Daily, Weekly).
Alerts (Quarterly Theory-friendly )
Fires when price first breaks the previous quarter’s high/low:
90m: “Previous 90min cycle (…) high/low broken”
Daily: “Previous daily cycle (…) high/low broken”
Weekly: “Previous weekly cycle (…) high/low broken”
One alert per side per new quarter—clean signals for liquidity grabs or SSMTs.
Customization
Master Toggles: Show/hide Asia, London, NY, PM, Daily, Weekly blocks fast.
Independent Transparencies: Separate opacity sliders for 90m vs Daily vs Weekly.
Per-Quarter Controls: Toggle range, edit label (defaults already set to Q1 / D-Q1 / W-Q1 formats), and color.
Styling: Optional outlines and labels for minimal or annotated charts.
Time Zones: Use exchange time or a custom UTC offset for session windows. Weekly boundaries always use America/New_York at 18:00.
Notes
Designed for theory workflows: prior-quarter liquidity, session rotation, and narrative alignment, SSMTS.
Friday is excluded from Weekly quarters by design.
Indicator draws ranges and triggers alerts; it does not place trades.
Quarter Strength Table (3M) [CHE] Quarter Strength Table (3M) — quarterly seasonality overview for the current symbol
Is there seasonality in certain assets? Some YouTubers claim there is—can you test it yourself?
Summary
This indicator builds a compact table that summarizes quarterly seasonality from three-month bars. It aggregates the simple return of each historical quarter, counts observations, computes the average return and the win rate for each quarter, and flags the historically strongest quarter. The output is a five-column table rendered on the chart, designed for quick comparison rather than signal generation. Because it processes only confirmed higher-timeframe bars, results are stable once a quarter has closed.
Motivation: Why this design?
Seasonality tools often mix intraperiod estimates with live bars, which can lead to misleading flips and inconsistent statistics. The core idea here is to restrict aggregation to completed three-month bars only and to deduplicate events by timestamp. This avoids partial information and double counting, so the table reflects a consistent, closed-bar history.
What’s different vs. standard approaches?
Baseline: Typical seasonality studies that compute monthly or quarterly stats directly on the chart timeframe or update on live higher-timeframe bars.
Architecture differences:
Uses explicit higher-timeframe requests for open, close, time, and calendar month from three-month bars.
Confirms the higher-timeframe bar before recording a sample; deduplicates by the higher-timeframe timestamp.
Keeps fixed arrays of length four for the four quarters; renders a fixed five-by-five table with zebra rows.
Practical effect: Once a quarter closes, counts and averages are stable. The “Best” column marks the highest average quarter so you can quickly identify the historically strongest period.
How it works (technical)
On every chart bar, the script requests three-month open, close, time, and the calendar month derived from that bar’s time. When the three-month bar is confirmed, it computes the simple return for that bar and maps the month to a quarter index between zero and three. A guard stores the last seen three-month timestamp to avoid duplicate writes. Per quarter, it accumulates the sum of returns, the number of samples, and the number of positive samples. From these, it derives average return and win rate. The table header is created once on the first bar; content updates only on the last visible chart bar for efficiency. No forward references are used, and lookahead is disabled in all higher-timeframe requests to avoid peeking.
Parameter Guide
Percent — Formats values as percentages. Default: true. Trade-off: Easier visual comparison; disable if you prefer raw unit returns.
Decimals — Number of digits shown. Default: two. Bounds: zero to six. Trade-off: More digits improve precision but reduce readability.
Show table — Toggles table rendering. Default: true. Trade-off: Disable when space is limited or for batch testing.
Reading & Interpretation
The table shows rows for Q1 through Q4 and columns for Count, Avg Ret, P(win), and Best.
Count: Number of completed three-month bars observed for that quarter.
Avg Ret: Average simple return across all samples in that quarter.
P(win): Share of samples with a positive return.
Best: An asterisk marks the quarter with the highest average return among those with at least one sample.
Use the combination of average and win rate to judge both magnitude and consistency. Low counts signal limited evidence.
Practical Workflows & Combinations
Trend following filter: Favor setups when the upcoming or active quarter historically shows a positive average and a stable win rate. Combine with structure analysis such as higher highs and higher lows to avoid fighting dominant trends.
Exits and risk: When entering during a historically weak quarter, consider tighter risk controls and quicker profit taking.
Multi-asset and multi-timeframe: The default settings work across most liquid symbols. For assets with sparse history, treat results as low confidence due to small sample sizes.
Behavior, Constraints & Performance
Repaint and confirmation: Aggregation occurs only when the three-month bar is confirmed; values do not change afterward for that bar. During an open quarter, no new sample is added.
Higher-timeframe usage: All higher-timeframe requests disable lookahead and rely on confirmation to mitigate repaint.
Resources: Declared `max_bars_back` is two thousand. Arrays are fixed at length four. The script updates the table only on the last visible bar to reduce work.
Known limits: Averages can be affected by outliers and structural market changes. Limited history reduces reliability. Corporate actions and contract rolls may influence returns depending on the symbol’s data source. This is a visualization and not a trading system.
Sensible Defaults & Quick Tuning
Starting values: Percent true; Decimals two; Show table true.
If numbers feel noisy: Decrease decimals to one to reduce visual clutter.
If you need raw values: Turn off Percent to display unit returns.
If the table overlaps price: Toggle Show table off when annotating, or reposition via your chart’s table controls.
What this indicator is—and isn’t
This is a historical summary of quarterly behavior. It visualizes evidence and helps frame expectations. It is not predictive, does not generate trade signals, and does not manage positions or risk. Always combine with market structure, liquidity considerations, and independent risk controls.
Inputs with defaults
Percent: true, boolean.
Decimals: two, integer between zero and six.
Show table: true, boolean.
Pine version: v6
Overlay: true
Primary outputs: Table with five columns and five rows.
Metrics/functions used: Higher-timeframe data requests, table rendering, arrays, bar state checks, month mapping.
Special techniques: Closed-bar aggregation, deduplication by higher-timeframe timestamp, zebra row styling.
Performance/constraints: Two thousand bars back, small fixed loops, higher-timeframe requests without lookahead.
Compatibility/assets/timeframes: Works on time-based charts across most assets with sufficient history.
Limitations/risks: Sample size sensitivity, regime shifts, data differences across venues.
Debug/diagnostics: (Unknown/Optional)
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
Daily Midnight Lines# Daily Midnight Lines
A simple and efficient TradingView indicator that automatically draws vertical lines at the start of each new day.
* *
## Features
✅ **Precise Timing**: Draws lines at exactly 00:00 or on the first bar of the new day
✅ **Calendar Days**: Uses calendar days, not trading sessions
✅ **Customizable Design**: Green color with transparency for comfortable viewing
✅ **High Performance**: Optimized code without unnecessary calculations
✅ **Universal**: Works on all timeframes and instruments
## Settings
- **Line Color**: Green with 30% transparency (customizable)
- **Line Width**: 1 pixel (1 to 3)
- **Mode**: Exactly at 00:00 or first bar of new day
## Applications
- Separating trading days on the chart
- Analyzing price behavior at the start of the day
- Planning trading strategies
- Statistical analysis by days
## Compatibility
- Pine Script v6
- All timeframes (1m - 1M)
- All instruments (stocks, forex, crypto, futures)
- All markets (24/7, daily, night sessions)
Perfect for day traders, scalpers, and analysts who want better chart orientation and intraday pattern analysis.
---
## Ежедневные Полночные Линии
Простой и эффективный индикатор TradingView, который автоматически рисует вертикальные линии в начале каждого нового дня.
## Особенности
✅ **Точное время**: Рисует линии в 00:00 или на первом баре нового дня
✅ **Календарные дни**: Использует календарные дни, а не торговые сессии
✅ **Настраиваемый дизайн**: Зеленый цвет с прозрачностью для комфортного просмотра
✅ **Высокая производительность**: Оптимизированный код без лишних вычислений
✅ **Универсальность**: Работает на всех таймфреймах и инструментах
## Настройки
- **Цвет линий**: Зеленый с прозрачностью 30% (настраивается)
- **Толщина линий**: 1 пиксель (от 1 до 3)
- **Режим**: Точно в 00:00 или первый бар нового дня
## Применение
- Разделение торговых дней на графике
- Анализ поведения цены в начале дня
- Планирование торговых стратегий
- Статистический анализ по дням
## Совместимость
- Pine Script v6
- Все таймфреймы (1м - 1М)
- Все инструменты (акции, форекс, крипто, фьючерсы)
- Все рынки (24/7, дневные, ночные сессии)
Идеально подходит для дневных трейдеров, скальперов и аналитиков, которые хотят лучше ориентироваться на графике и анализировать внутридневные паттерны.
**Pine Script v6** | **Updated: October 2024** | **Обновлено: Октябрь 2024**
Seasonal Pattern DecoderSeasonal Pattern Decoder
The Seasonal Pattern Decoder is a powerful tool designed for traders and analysts who want to uncover and leverage seasonal tendencies in financial markets. Instead of cluttering your chart with complex visuals, this indicator presents a clean, intuitive table that summarizes historical monthly performance, allowing you to spot recurring patterns at a glance.
How It Works
The indicator fetches historical monthly data for any symbol and calculates the percentage return for each month over a specified number of years. It then organizes this data into a comprehensive table, providing a clear, year-by-year and month-by-month breakdown of performance.
Key Features
Historical Performance Table: Displays monthly returns for up to a user-defined number of years, making it easy to compare performance across different periods.
Color-Coded Heatmap: Each cell is colored based on the performance of the month. Strong positive returns are shaded in green, while strong negative returns are shaded in red, allowing for immediate visual analysis of monthly strength or weakness.
Annual Summary: A "Σ" column shows the total percentage return for each full calendar year.
AVG Row: Calculates and displays the average return for each month across all the years shown in the table.
WR Row: Shows the "Win Rate" for each month, which is the percentage of time that month had a positive return. This is crucial for identifying high-probability seasonal trends.
How to Use
Add the "Seasonal Pattern Decoder" indicator to your chart. Note that it works best on Daily, Weekly, or Monthly timeframes. A warning message will be displayed on intraday charts.
In the indicator settings, adjust the "Lookback Period" to control how many years of historical data you want to analyze.
Use the "Show Years Descending" option to sort the table from the most recent year to the oldest.
The "Heat Range" setting allows you to adjust the sensitivity of the color-coding to fit the volatility of the asset you are analyzing.
This tool is ideal for confirming trading biases, developing seasonal strategies, or simply gaining a deeper understanding of an asset's typical behavior throughout the year.
## Disclaimer
This indicator is designed as a technical analysis tool and should be used in conjunction with other forms of analysis and proper risk management.
Past performance does not guarantee future results, and traders should thoroughly test any strategy before implementing it with real capital.
Phân tích Đa Khung Thời gian
//@version=5
indicator("Phân tích Đa Khung Thời gian", shorttitle="Manual Analysis", overlay=true)
// ============== INPUTS CHO BẢNG PHÂN TÍCH XU HƯỚNG ==============
monthlyTrend = input.string("Bullish", title="Xu hướng Monthly", options= )
weeklyTrend = input.string("Bullish", title="Xu hướng Weekly", options= )
dailyTrend = input.string("Bullish", title="Xu hướng Daily", options= )
h4Trend = input.string("Bullish", title="Xu hướng H4", options= )
h1Trend = input.string("Bullish", title="Xu hướng H1", options= )
m30Trend = input.string("Bullish", title="Xu hướng M30", options= )
m15Trend = input.string("Bullish", title="Xu hướng M15", options= )
m5Trend = input.string("Bullish", title="Xu hướng M5", options= )
m1Trend = input.string("Bullish", title="Xu hướng M1", options= )
// Mảng chứa nhãn và xu hướng
labels = array.from("Mn", "W", "D", "H4", "H1", "M30", "M15", "M5", "M1")
trends = array.from(monthlyTrend, weeklyTrend, dailyTrend, h4Trend, h1Trend, m30Trend, m15Trend, m5Trend, m1Trend)
// ============== TẠO VÀ CẬP NHẬT BẢNG DUY NHẤT ==============
// Sắp xếp bảng nằm ngang
var table manual_analysis_table = table.new(position.top_right, array.size(labels), 2, bgcolor=color.new(color.black, 80), border_width=1)
if barstate.islast
// TIÊU ĐỀ HÀNG ĐẦU TIÊN (Nhãn khung thời gian)
for i = 0 to array.size(labels) - 1
table.cell(manual_analysis_table, i, 0, array.get(labels, i), text_color=color.white, bgcolor=color.new(color.blue, 50), text_size=size.small)
// ĐỔ DỮ LIỆU XU HƯỚNG VÀO HÀNG THỨ HAI
for i = 0 to array.size(trends) - 1
trendStatus = array.get(trends, i)
trendColor = trendStatus == "Bullish" ? color.green : color.red
trendSymbol = trendStatus == "Bullish" ? "▲" : "▼"
table.cell(manual_analysis_table, i, 1, trendSymbol, text_color=trendColor)
IKIGAI ZigZags//@version=6
indicator("IKIGAI ZigZags", overlay = true, max_lines_count = 500, max_labels_count = 500)
import TradingView/ZigZag/7 as ZigZagLib
deviationInput = input.float(5.0, "Price deviation for reversals (%)", 0.00001, 100.0, 0.5, "0.00001 - 100"),
depthInput = input.int(10, "Pivot legs", 2),
lineColorInput = input(#2962FF, "Line color", display = display.data_window),
extendInput = input(true, "Extend to last bar", display = display.data_window),
showPriceInput = input(true, "Display reversal price", display = display.data_window),
showVolInput = input(true, "Display cumulative volume", display = display.data_window),
showChgInput = input(true, "Display reversal price change", inline = "priceRev", display = display.data_window),
priceDiffInput = input.string("Absolute", "", , inline = "priceRev", display = display.data_window, active = showChgInput)
// Create Zig Zag instance from user settings.
var zigZag = ZigZagLib.newInstance(
ZigZagLib.Settings.new(
deviationInput, depthInput, lineColorInput, extendInput, showPriceInput, showVolInput, showChgInput,
priceDiffInput, true)
)
// Update 'zigZag' object on each bar with new pivots, volume, lines, labels.
zigZag.update()
8 SMA Bands (Points)The "8 SMA Bands (Points)" indicator creates a set of eight Simple Moving Average (SMA) bands with adjustable offsets, overlaid on a price chart.
Here’s a breakdown:
Purpose: It tracks price trends using multiple SMAs of varying lengths (default 25, 50, 100, 200, 400, 800, 1600 periods) and adds upper and lower bands around each SMA based on point offsets, helping identify potential support, resistance, and trend strength.
Key Components:
SMAs: Eight SMAs are calculated using closing prices with lengths ranging from 25 to 1600 periods. Each SMA is plotted with a distinct color and line thickness (e.g., MA 1 is blue, MA 8 is white with thicker lines).
Bands: For each SMA, upper and lower bands are created by adding or subtracting a point-based offset (suggestions are to use default Murray Math based numbers e.g., 0.305176 for MA 1, 39.062528 for MA 8) multiplied by a global multiplier (default 1.0). These offsets define the band width and are customizable.
Customization: Users can adjust SMA lengths, offset points, colors, and the global multiplier via input settings grouped by each MA.
Visuals: SMAs are plotted as solid lines with increasing thickness for longer periods (e.g., MA 6–8 use thicker lines or circles).
Bands are plotted as semi-transparent lines matching the SMA color, with longer-term bands (MA 6–7) using a different style for emphasis.
Usage: The indicator helps traders visualize trend direction (upward if price is above most SMAs, downward if below) and potential reversal zones where price interacts with band boundaries.
The flattening or crossing of bands can signal momentum shifts. The coming together of multiple envelope tops/bottoms can signal reversal zones of various degrees based on how many envelopes come together. More envelopes converging mean a more significant top or bottom.
This indicator is particularly useful for identifying multi-timeframe trends and volatility zones on assets like Gold Futures, with flexibility to fine-tune based on market conditions.
Balance of Risks (with Strength & Scale)This helps outline higher time frame tilt, to help assess probabilities
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
Total Points Moved by exp3rtsThis lightweight utility tracks the total intraday range of price movement, giving you real-time insight into market activity.
It calculates:
🟩 Bullish Points – Total range from bullish candles (close > open)
🟥 Bearish Points – Total range from bearish candles (close < open)
🔁 Total Points Moved (TPM) – Sum of all high–low ranges for the day
Values are pulled from the 1-second chart for high precision and displayed in a compact tag in the top-right corner.
MTF EMA200 Dashboard (No Trend Column)Show ema200 position on multiple timeframe, so that in run time we can see price strength and weekness
Enhanced Std Dev Oscillator (Z-Score)Enhanced Std Dev Oscillator (Z-Score)
Overview
The Enhanced Std Dev Oscillator (ESDO) is a refined Z-Score indicator that normalizes price deviations from a moving mean using standard deviation, smoothed for clarity and equipped with divergence detection. This oscillator shines in identifying extreme overbought/oversold conditions and potential reversals, making it ideal for mean-reversion strategies in stocks, forex, or crypto. By highlighting when prices stray too far from the norm, it helps traders avoid chasing trends and focus on high-probability pullbacks.
Key Features
Customisable Mean & Deviation: Choose SMA or EMA for the mean (default: SMA, length 14); opt for Population or Sample standard deviation for precise statistical accuracy.
Smoothing for Clarity: Apply a simple moving average (default: 3) to the raw Z-Score, reducing noise without lagging signals excessively.
Zone Highlighting: Background colours flag extreme zones—red tint above +2 (overbought), green below -2 (oversold)—for quick visual scans.
Divergence Alerts: Automatically detects bullish (price lows lower, Z-Score higher) and bearish (price highs higher, Z-Score lower) divergences using pivot points (default length: 5), with labeled shapes for easy spotting.
Built-in Alerts: Notifications for Z-Score crossovers into OB/OS zones and divergence events to keep you informed without constant monitoring.
How It Works
Core Calculation: Computes the mean (SMA/EMA) over the specified length, then standard deviation (Population or adjusted Sample formula for N>1). Z-Score = (Source - Mean) / Std Dev, handling edge cases like zero deviation.
Smoothing: Averages the Z-Score with an SMA to create a cleaner plot oscillating around zero.
Levels & Zones: Plots horizontal lines at ±1 (orange dotted) and ±2 (red dashed) for reference; backgrounds activate in extreme zones.
Divergence Logic: Scans for pivot highs/lows in price and Z-Score; flags divergences when price extremes diverge from oscillator extremes (looking back 2 pivots for confirmation).
Visualisation: Blue line for the smoothed Z-Score; green/red labels for bull/bear divergences.
Usage Tips
Buy Signal: Z-Score crosses below -2 (oversold) or bullish divergence forms—pair with volume spike for confirmation.
Sell Signal: Z-Score crosses above +2 (overbought) or bearish divergence—watch for resistance alignment.
Customisation: Use EMA mean for trendier assets; enable Sample std dev for smaller datasets. Increase pivot length (7-10) in volatile markets to filter false signals.
Timeframes: Excels on daily/4H for swing trades; test smoothing on lower frames to avoid over-smoothing. Always combine with trend filters like a 200-period MA.
This open-source script is licensed under Mozilla Public License 2.0. Backtest thoroughly—past performance isn't indicative of future results. Trade with discipline! 📈
© HighlanderOne
Advanced Directional Stoch RSIAdvanced Directional Stochastic RSI
Overview
The Advanced Directional Stochastic RSI (Adv Stoch RSI Dir) is a powerful oscillator that combines the classic Stochastic RSI with John Ehlers' SuperSmoother filter for ultra-smooth signals and reduced noise. Unlike traditional Stoch RSI, this indicator incorporates directional coloring based on price action relative to a smoothed trend line, helping traders quickly spot bullish or bearish momentum. It's designed for swing traders and scalpers looking for clearer overbought/oversold conditions in volatile markets.
Key Features
Directional Coloring: %K line turns green when price is above the trend MA (bullish) and red when below (bearish), providing instant visual bias.
Multi-Pass SuperSmoothing: Apply Ehlers' SuperSmoother filter up to 5 times for customizable noise reduction—dial in passes (default: 2) to balance responsiveness and smoothness.
Trend-Aware Baseline: Uses a cascaded smoothed moving average (default length: 20) to gauge overall direction, making the oscillator more context-aware.
Classic Stoch RSI Core: Built on RSI (default: 14) and Stochastic (default: 14), with SMA smoothing for %K (3) and %D (3).
Visual Aids: Includes overbought (80), oversold (20), and midline (50) levels, plus a subtle blue fill between OB/OS zones for easy reference.
How It Works
Source Smoothing: The input source (default: close) is passed through the SuperSmoother filter multiple times to create a trend MA.
Stoch RSI Calculation: Computes RSI on the source, then applies Stochastic to the RSI values, followed by SMA smoothing for base %K and %D.
Advanced Smoothing: Extra SuperSmoother layers are applied to %K and %D based on your chosen passes, minimizing whipsaws.
Directional Logic: Compares current close to the trend MA to color %K dynamically.
Plotting: %K (thick line, colored) and %D (thin orange) oscillate between 0-100, highlighting crossovers and divergences.
Usage Tips
Buy Signal: Green %K crosses above %D below 50, or bounces off oversold (20) in uptrends.
Sell Signal: Red %K crosses below %D above 50, or rejects overbought (80) in downtrends.
Customization: Increase smoothing passes (3-5) for choppy markets; reduce for faster signals. Pair with volume or support/resistance for confirmation.
Timeframes: Best on 1H-4H charts for stocks/crypto; adjust lengths for forex.
This open-source script is licensed under Mozilla Public License 2.0. Backtest thoroughly—past performance isn't indicative of future results. Enjoy trading smarter with less noise! 🚀
© HighlanderOne