Cycle VTLs – with Scaled Channels "Cycle VTLs – with Scaled Channels" for TradingView plots Valid Trend Lines (VTLs) based on Hurst's Cyclic Theory, connecting consecutive price peaks (downward VTLs) or troughs (upward VTLs) for specific cycles. It uses up to eight Simple Moving Averages (SMAs) (default lengths: 25, 50, 100, 200, 400, 800, 1600, 1600 bars) with customizable envelope bands to detect pivots and draw VTLs, enhanced by optional parallel channels scaled to envelope widths.
Key Features:
Valid Trend Lines (VTLs):
Upward VTLs: Connect consecutive cycle troughs, sloping upward.
Downward VTLs: Connect consecutive cycle peaks, sloping downward.
Hurst’s Rules:
Connects consecutive cycle peaks/troughs.
Must not cross price between points.
Downward VTLs:
No longer-cycle trough between peaks.
Invalid if slope is incorrect (upward VTL not up, downward VTL not down).
Expired VTLs: Historical VTLs (crossed by price) from up to three prior cycle waves.
SMA Cycles:
Eight customizable SMAs with envelope bands (offset × multiplier) for pivot detection.
Channels:
Optional parallel lines around VTLs, width set by channelFactor × envelope half-width.
Pivot Detection:
Fractal-based (pivotPeriod) on envelopes or price (usePriceFallback).
Customization:
Toggle cycles, VTLs, and channels.
Adjust SMA lengths, offsets, colors, line styles, and widths.
Enable centered envelopes, slope filtering, and limit stored lines (maxStoredLines).
Usage in Hurst’s Cyclic TheoryAnalysis:
VTLs identify cycle trends; upward VTLs suggest bullish momentum, downward VTLs bearish.
Price crossing below an upward VTL confirms a peak in the next longer cycle; crossing above a downward VTL confirms a trough.
Trading:
Buy: Price bounces off upward VTL or breaks above downward VTL.
Sell: Price rejects downward VTL or breaks below upward VTL.
Use channels for support/resistance, breakouts, or stop-loss/take-profit levels.
Workflow:
Add indicator on TradingView.
Enable desired cycles (e.g., 50-bar, 1600-bar), adjust pivotPeriod, channelFactor, and showOnlyCorrectSlope.
Monitor VTL crossings and channels for trade signals.
NotesOptimized for performance with line limits.
Ideal for cycle-based trend analysis across markets (stocks, forex, crypto).
Debug labels show pivot counts and VTL status.
This indicator supports Hurst’s Cyclic Theory for trend identification and trading decisions with flexible, cycle-based VTLs and channels.
Use global variable to scale to chart. best results use factors of 2 and double. try 2, 4, 8, 16...128, 256, etc until price action fits 95% in smallest cycle.
Cycles
2-1-2 ReversalThis indicator identifies all 2-1-2 price action patterns on any chart or time frame — both reversals and continuations — based on Rob Smith’s The Strat trading system.
🟢 Bullish 2-1-2:
Detected when a directional candle (2D or 2U), followed by an inside bar (1), is followed by a break to the upside (2U).
🔴 Bearish 2-1-2:
Detected when a directional candle (2U or 2D), followed by an inside bar (1), is followed by a break to the downside (2D).
✅ Key Features:
Works on any time frame (1m to Monthly)
No filters — shows every valid 2-1-2 setup
Detects both reversal and continuation patterns
🔔 Built-in alert conditions for Bullish and Bearish setups
🔍 Great for strat traders who want to catch all opportunities, not just hand-picked ones
🧠 Use Case Tips:
Combine with higher time frame trend or broadening formations for confirmation
Works well with sectors (SPY, QQQ, XLE) and ETFs for strat alignment
Add volume, EMA, or other custom confluences for advanced filtering
AriVestHub_SMCIntroduction to the AriVestHub_SMC Indicator
The AriVestHub_SMC indicator is designed and coded based on Smart Money Concepts (SMC). This tool has unique features that you won’t find in any other indicator built around SMC.
I’ve been active in the crypto market since 2019, and besides using the SMC strategy, I also apply several custom strategies in my trading. Personalized versions of these strategies will gradually be shared with you as well.
The main reason for developing this indicator was the gap in existing tools. Many times, setups like Valid Pullback or Inside Bar Candles appear on the chart but are not easily recognizable at first glance, and therefore they get ignored. This often leads to mistakes in Market Structure Mapping right from the beginning, which then causes errors in further analysis and predictions.
Since the SMC strategy is entirely built on market structure, any mistake in identifying its key components basically destroys the reliability of the analysis.
Unlike similar indicators that mostly just draw nice lines and zones on the chart for promotional purposes, AriVestHub_SMC aims to show the reality of the market, not beautify it. Price behavior is the result of trader psychology and the clash of different views—it doesn’t have to look neat and pretty all the time.
This indicator shows exactly what has happened in the market and the possible scenarios ahead. Once you use this tool and study this guide, you’ll clearly feel the difference compared to other common indicators. My main goal in creating AriVestHub_SMC was to give real help to traders—not just to sell or commercialize it.
The AriVestHub_SMC indicator is basically a Market Structure Mapping Engine (SMC Structure Mapping Engine), whose main task is to detect and accurately map market structure movements.
The market is full of exceptional conditions, and analyzing them without indicators and only by visual inspection is almost impossible. This often leads to errors, especially in strategies that are based on market structure.
One of the most important and valuable features of this indicator compared to similar ones is that, after extensively studying and manually analyzing various charts with indicators, I have coded almost all common scenarios as well as exceptional cases that occur under different market conditions.
________________________________________
Its key features include:
• BOS / CHoCH – Detecting
• breakouts and changes in market character
• IDM / Pullback – Confirming pivots and valid moves
• OF / OB – Marking key supply and demand zones
• SMT (Smart Money Trap) – Spotting invalid zones and smart money traps
• Liquidity Sweeps / Equal High-Low – Liquidity hunts and reversal setups
• Transfer Option – Automatically correcting structure in Single Leg scenarios
________________________________________
Basic Concepts in the AriVestHub_SMC Strategy
1. Inside Bar
An Inside Bar is a candle (or group of candles) whose price range falls between the High and Low of the previous candle.
In Smart Money and market structure analysis, these candles are usually ignored, and only the main candle is considered.
Simply put, an Inside Bar signals market pause and energy buildup—a place where both buyers and sellers are waiting for price to decide its next direction.
In the picture, you can see candles highlighted in a different color that fall within the main candle range. They should not be treated as independent candles, and all of them together should be considered as one.
________________________________________
2. Pullback
A pullback happens when price makes a temporary return after a main move. Even a single candle can cause it.
In Smart Money, a valid pullback is defined as:
• In an uptrend: if the Low of a candle breaks the Low of the previous candle which is not an Inside Bar, a valid pullback occurs.
• In a downtrend: if the High of a candle breaks the High of the previous candle which is not an Inside Bar, a valid pullback occurs.
Valid pullbacks are the points where the market gathers the energy needed to continue its move.
In the image below, both valid and invalid pullbacks are shown.
________________________________________
3. IDM – Inducement
Inducement is one of the most important concepts in AriVestHub_SMC. Without IDM, no structure in Smart Money can form.
Every valid pullback can be considered an IDM.
There are two types: Major IDM and Minor IDM.
Correctly identifying IDM is critical, because the entire market structure is mapped based on it.
After each BOS or CHoCH, a new HH or LL pivot is only confirmed if the price returns and touches the IDM.
• In an uptrend after BOS: the lowest price of the first valid pullback is the Major IDM, and the last pullback before reaching the Major IDM is the Minor IDM.
• In an uptrend after CHoCH: the highest price of the first valid pullback is the Major IDM, and the last pullback before reaching the Major IDM is the Minor IDM.
The same rules apply in reverse for downtrends.
In this strategy, Major IDM always takes priority.
The image shows different types of IDM, and the same applies for downtrends.
________________________________________
4. BOS – Break of Structure
A Break of Structure happens when price breaks its previous High or Low in the direction of the trend:
• In an uptrend: if the previous HH is broken, BOS occurs.
• In a downtrend: if the previous LL is broken, BOS occurs.
BOS confirms continuation of the current market trend.
________________________________________
5. CHoCH – Change of Character
Change of Character occurs when price moves against the previous trend:
• In an uptrend: if the previous LL is broken, CHoCH occurs.
• In a downtrend: if the previous HH is broken, CHoCH occurs.
CHoCH is usually a signal of a trend reversal or a deep market correction.
The image shows the overall market structure with BOS and CHoCH.
________________________________________
6. Order Flow
Order Flow zones are formed from valid pullbacks and are usually points where price reacts strongly.
They are defined as:
• In an uptrend: Last Selling Momentum Before pushing upside
• In a downtrend: Last Buying Momentum Before pushing dowside
Three main types of Order Flow used in this strategy:
• OF: Decisional (Dec) – The first valid OF after IDM, where the market makes its key decision.
• OF: Extreme (Ext) – The last valid OF after IDM, acting as the final defense of buyers or sellers.
• SMT – Smart Money Trap – All order zones before IDM, and those between Dec and Ext. These usually cause short-term, deceptive reactions and are not valid for trading.
In addition:
• Unmitigated Order Flow – A zone not yet touched, still a liquidity source.
• Mitigated Order Flow – A zone that has been touched, with reduced validity.
• Redefine Order Flow – Identifying internal OFs within a main unmitigated OF for more precise entries.
The image shows the different types of OF.
________________________________________
7. H/L Liquidity Sweep
A Liquidity Sweep happens when price breaks a previous High or Low with a wick, but the candle body fails to close beyond it.
• If the High is broken with a wick but the candle closes below it, a Liquidity Sweep occurs.
• If the Low is broken with a wick but the candle closes above it, a Liquidity Sweep occurs.
These setups are often signs of trapping traders and starting a move in the opposite direction. In fact, Liquidity Sweep points are among the best trading setups.
________________________________________
🔑 Final Note
All these concepts are like puzzle pieces: Inside Bar, Valid Pullback, IDM, BOS, CHoCH, Order Flow, and Liquidity Sweep.
When combined, they create a clear and accurate picture of the market’s real behavior.
________________________________________
Indicator Settings
1. Analyze From … To …
• Set the analysis time range.
• Another use: In ping-pong structures, you can add another copy of the indicator to the chart, set the starting point at the recent HH or LL, and map the internal structure for counter-trend trading.
________________________________________
2. Main
• Confirm CHoCH with wicks → If enabled, only the wick (not the body) is considered for BOS and CHoCH confirmation. Useful for spotting subtle liquidity-based breaks.
• Major / Minor IDM → Choose IDM type.
• Consider Inside Bar → Best kept enabled, so candles inside the previous candle are ignored.
________________________________________
3. Fib Ret
• Min pullback retracement % → Set the minimum retracement level.
• Helps identify valid pullbacks and gives more confidence in trend continuation.
• Meaning: if BOS happens, price must at least retrace by the minimum percentage before expecting the trend to continue.
________________________________________
4. BOS/CHoCH
• Display BOS and CHoCH on the chart with customizable color and style.
________________________________________
5. IDM
• Mark previous IDM : Show past IDMs.
• Mark live IDM : Show current active IDM.
• Customize IDM display options.
________________________________________
6. Pivots
• Display HH and LL pivots.
________________________________________
7. Transferring H/L IDM BOS/CHoCH
• Transfer in case of lack idmB or idmS → When the move is Single Leg and no valid IDM exists in the recent move, HH, LL, and IDM must be shifted and corrected. This adjusts the market structure.
• In case of transferring, remove all previous transferred Market Structure → If enabled, every time HH/LL and IDM need to be shifted, the transfer happens and the market structure is re-analyzed from scratch.
• Important: Often after one transfer, another Single Leg appears. This option keeps adjusting structure automatically, while doing it manually would be slow and error-prone.
________________________________________
8. Order Flow
• Display Decisional, Extreme, and Supply/Demand OFs.
________________________________________
9. H/L Sweeps
• Detect Liquidity Sweeps at Highs and Lows.
• These are very strong reversal setups.
________________________________________
10. Equal High/Low
• Show equal Highs and Lows where liquidity often accumulates.
________________________________________
11. Moving Average
• Add a moving average as a trend filter.
• Option to choose type (SMA/EMA) and length (e.g., 50 or 200).
• Usually:
o MA50 → For mid-term trends, quick confirmation.
o MA200 → For long-term trends, stronger confirmation.
________________________________________
12. Internal Structure (ZigZag)
• Show internal market structure as ZigZag.
________________________________________
13. Inside Bar Candles
• Display Inside Bars in color or with a box.
Retracement FiboNacci🎯 Core Functionality
Automatic Swing Detection: Uses ZigZag algorithm to detect significant price swings
Dual Modes:
Fibonacci Retracements - Traditional price-based levels
Fibonacci Time Zones - Time-based projections
Multi-Timeframe Analysis: Works on any timeframe while detecting swings from higher timeframes
⚙️ Customization Options
Fibonacci Levels:
Fully customizable Fibonacci levels (0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%)
Individual color selection for each level
Toggle on/off specific levels as needed
Display Settings:
Line Styling: Choose between Solid, Dashed, or Dotted lines
Line Thickness: Adjustable from 1 to 5 pixels
ZigZag Visibility: Toggle base ZigZag line display
Label Management:
Fibonacci Labels: Show percentage retracement levels
Price Labels: Display actual price values
Flexible Positioning:
Left, Right, Both sides, or Auto-centering
Independent control for Fib and Price labels
Option to hide labels completely
🔧 Technical Specifications
ZigZag Parameters:
Depth: 12 bars
Deviation: 1%
Backstep: 2 bars
Real-time Updates: Automatically redraws when new swings are detected
Clean Interface: Removes old drawings to prevent chart clutter
Usage Scenarios
📈 Trend Analysis
Identify retracement levels during pullbacks
Spot potential reversal zones at key Fibonacci levels
Measure swing magnitudes for position sizing
⏰ Time Projections
Use Time Zone mode for forecasting potential reversal times
Combine price and time analysis for confluence
🎨 Visual Customization
Color-code important levels (e.g., 61.8% as golden ratio)
Adjust label sizes for better readability
Choose line styles that complement your chart setup
Ideal For
Swing traders identifying entry/exit points
Position traders finding optimal accumulation zones
Technical analysts validating support/resistance levels
Multi-timeframe analysts correlating higher timeframe structure
Pro Tips
Combine with Volume: Confirm reactions at Fibonacci levels with volume spikes
Multiple Timeframes: Use higher timeframe Fibonacci levels for major S/R
Confluence Trading: Look for Fibonacci levels aligning with previous support/resistance
Risk Management: Use Fibonacci extensions for profit targets
DR Volume POC (AM+PM Sessions, Reset 23:00 London — Safe) SLDR Volume with POC cross or rejection signals. BOS and CHoCH
DR Volume POC (AM+PM Sessions, Reset 23:00 London) loveDR volume POC indicatior with signals. BOS and CHoCH and clears charts
DR Volume POC (London AM + PM Sessions)DR volume POC rejection for entries. DR box shown. BOS and CHoCH
Adaptive Chikou Strategy - Level 1This strategy is based on the Ichimoku cloud system and the power of delaying the signal. I changed how the averages are calculated to better detect the range areas.
The strategy uses this concept to determine the market regime, whether the price is below or above its delayed signal, and acts accordingly:
Bull (green) – when the price is above the average of the highs, delayed, the strategy favors long entries.
Bear (red) – when the price is below the average of the lows delayed, the strategy favors short entries.
Range (brown) – when the percent rank is in between those 2 conditions, we detect range, and no trades are initiated.
The transition between these regimes depends mainly on 4 key parameters.
The first parameter controls the lookback period for the highest and lowest functions.
The second controls how much we delay the signal of these 2 functions.
The third adjusts how much range is detected in bull conditions; it changes the transition from bull to range conditions. The bigger it is, the less bull and the more range.
The fourth parameter is similar to the third, but for bear conditions. The bigger it is, the less bear and the more range conditions are detected.
The user can configure the strategy to run long-only, short-only, or both directions, depending on the market or preference. In addition to the core regime logic, the strategy includes several risk and trade management controls that are featured in all my strategies.
Four oscillators are also integrated into the logic to detect short-term overbought and oversold conditions. These help the strategy avoid entering or exiting a trade when the price has already extended too far in one direction, improving timing and potentially reducing false entries and exits. When overbought or oversold are detected, a red or green dot appears on the chart.
The script is designed to be flexible across different assets and timeframes. However, to achieve consistent results, it is important to optimize parameters carefully. A recommended workflow is as follows:
Disable the walk-forward option during the optimization phase.
Optimize the first main parameter while keeping others fixed.
Once a satisfactory value is found, move to the second parameter.
Continue the process for subsequent parameters.
Optionally, repeat the full sequence once more to refine the results.
Finally, activate walk-forward analysis and check the out-of-sample results.
This strategy is published as invite-only with hidden source code. Access may be granted upon request for research or evaluation purposes. It is part of a broader collection of technical analysis strategies I have developed, which focus on regime detection and adaptive trading systems.
There are five levels of strategy complexity and performance in my collection. This script represents a Level 1 strategy, designed as a solid foundation and introduction to the framework. More advanced levels progressively add greater complexity, adaptability, and robustness.
When multiple strategies are combined under this same framework, the results become more robust and stable. In particular, combining my suite of technical analysis strategies with my macro strategies and alternative data strategies, such as onchain for cryptocurrencies. It creates a multi-layered system that adapts across regimes, timeframes, and market conditions.
Structure Pro+ 2.4 Structure Pro+ 2.4
Summary
Structure Pro+ 2.4 is a comprehensive, all-in-one indicator designed for traders who utilize Smart Money Concepts (SMC). It automates the detection of key market structure events, identifies high-probability trade signals, and incorporates time-based filters to focus on the most volatile trading sessions, helping you make informed decisions with precision and clarity.
This suite goes beyond simple lines on a chart by integrating Market Structure, Fair Value Gaps (FVGs), and institutional trading sessions into a single, powerful tool.
Core Features
📈 Automatic Market Structure
Break of Structure (BOS) & Change of Character (CHoCH): The indicator automatically identifies and labels significant breaks in market structure, allowing you to instantly recognize trend continuations (BOS) or potential reversals (CHoCH).
Customizable Pivot Detection: Fine-tune the sensitivity of the structure detection by adjusting the Left Bars and Right Bars settings to match your trading style and timeframe, from scalping to swing trading.
🎯 High-Probability Breakout Signals
Receive clear BUY and SELL signals based on a powerful confluence of events. A signal only appears when:
A BOS or CHoCH is confirmed.
The breakout move is validated by the creation of a recent Fair Value Gap (FVG), indicating strong momentum.
The signal occurs within a valid, high-volatility time session.
The breakout is confirmed on a closed candle to prevent fakeouts.
🔍 Key Liquidity & Imbalance Zones
Fair Value Gaps (FVGs): Automatically detects and displays FVG (Imbalance) zones on your chart, highlighting key areas of interest where the price may return.
Order Blocks (OBs): Optionally display the last order block before a structural break. The length of the OB box can be customized to keep your chart clean.
🕒 Time-Based Session Filters (Killzones)
Timing is everything. Structure Pro+ 2.4 provides fully customizable time filters to ensure you are only trading in optimal market conditions.
ICT Macro Sessions: Enable and customize standard ICT Macro "Killzone" sessions, which are displayed visually on your chart.
NASDAQ Open Session: A dedicated, customizable session filter for the high-volatility NASDAQ open.
Timezone Synchronization: Set your preferred timezone (America/New_York by default) to align all sessions perfectly, no matter where you are in the world.
⚙️ Full Customization & Alerts
Visuals: Take complete control over the look and feel of the indicator, including colors, line styles, and label sizes.
Alert System: A comprehensive alert system allows you to get notified for every key event:
Signal (BUY/SELL)
BOS or CHoCH
BOS/CHoCH with FVG Confluence
Start of a Macro Session
How to Use
Identify the Trend: Use the automatically plotted BOS and CHoCH labels to determine the current market bias on your chosen timeframe. An uptrend is defined by a series of bullish BOS, while a downtrend is defined by bearish BOS. A CHoCH signals a potential shift in this bias.
Wait for a Signal in a Valid Session: Be patient and wait for a BUY or SELL signal to appear on your chart. Ensure the signal occurs within one of the active, visually-drawn time sessions (Macros or NASDAQ Open) for the highest probability.
Confirm and Manage Risk: Use the signal as a primary point of confluence in your trading plan. For best results, combine it with your own analysis. Always practice proper risk management by setting a stop loss, typically below the low of the swing that caused a BUY signal or above the high of the swing that caused a SELL signal.
Disclaimer: This indicator is a tool designed to assist in trade analysis and should not be considered as financial advice. Trading involves substantial risk, and past performance is not indicative of future results. Always conduct your own research and risk assessment before entering any trade.
Percent Rank Strategy - Level 1This strategy is based on the Percent Rank math, a statistical measure that evaluates how the current price compares to its historical prices over a specified lookback period.
In simple terms, Percent Rank tells you the percentile position of the current price within a recent window, for example, a value of 80% means the price is higher than 80% of the previous prices in that period, while 20% means it’s lower than 80% of them.
The strategy uses this concept to determine the market regime, whether price is high, low, or neutral relative to its recent range, and acts accordingly:
Bull (green) – when the price percent rank is usually above 50% the price is normally high, and the strategy favors long entries.
Bear (red) – when the price percent rank is usually below 50% the price is normally low, and the strategy favors short entries.
Range (brown) – when the percent rank is in between those 2 conditions, we detect range, and no trades are initiated.
The transition between these regimes depends mainly on 3 key parameters.
The first parameter controls the maximum lookback period for the percent rank array and so the maximum cycle length.
The second controls how much range is detected in bull conditions; it changes the transition from bull to range conditions. The bigger it is, the less bull and the more range.
The third parameter is similar to the second, but for bear conditions. The smaller it is, the less bear and the more range conditions are detected.
The user can configure the strategy to run long-only, short-only, or both directions, depending on the market or preference. In addition to the core regime logic, the strategy includes several risk and trade management controls that are featured in all my strategies.
Four oscillators are also integrated into the logic to detect short-term overbought and oversold conditions. These help the strategy avoid entering or exiting a trade when the price has already extended too far in one direction, improving timing and potentially reducing false entries and exits. When overbought or oversold are detected, a red or green dot appears on the chart.
The script is designed to be flexible across different assets and timeframes. However, to achieve consistent results, it is important to optimize parameters carefully. A recommended workflow is as follows:
Disable the walk-forward option during the optimization phase.
Optimize the first main parameter while keeping others fixed.
Once a satisfactory value is found, move to the second parameter.
Continue the process for subsequent parameters.
Optionally, repeat the full sequence once more to refine the results.
Finally, activate walk-forward analysis and check the out-of-sample results.
This strategy is published as invite-only with hidden source code. Access may be granted upon request for research or evaluation purposes. It is part of a broader collection of technical analysis strategies I have developed, which focus on regime detection and adaptive trading systems.
There are five levels of strategy complexity and performance in my collection. This script represents a Level 1 strategy, designed as a solid foundation and introduction to the framework. More advanced levels progressively add greater complexity, adaptability, and robustness.
When multiple strategies are combined under this same framework, the results become more robust and stable. In particular, combining my suite of technical analysis strategies with my macro strategies and alternative data strategies, such as onchain for cryptocurrencies. It creates a multi-layered system that adapts across regimes, timeframes, and market conditions.
Correlation Cycle Strategy - Level 1This strategy is based on John Ehlers idea of the correlation cycle, and that markets often oscillate. They move up and down in cycles, though not perfectly sinusoidal, they can be approximated by a sinusoidal wave. This script measures the strength of the correlation between price and a range of ideal sine wave components of different periods. By doing this, we estimate which cycle length the market is most currently following and from that, we find the phase to learn in which part of the cycle we are in.
Bull (green) – when price is at the bottom of the sinusoidal going to the top (positive phases), the strategy favors long entries.
Bear (red) – when price is at the top of the sinusoidal going down to the bottom (negative phases), the strategy favors short entries.
Range (brown) – when the phase is in the transition zones we detect range conditions and no trades are initiated.
The transition between these regimes depends mainly on 3 key parameters.
The first parameter controls the maximum lookback period for correlation detection and so the maximum cycle length.
The second controls how much range is detected in bull conditions, it changes the transition from bull to range conditions. The bigger it is, the less bull and the more range.
The third parameter is similar to the second, but for bear conditions. The bigger it is, the less bear and the more range conditions are detected
The user can configure the strategy to run long-only, short-only, or both directions, depending on the market or preference. In addition to the core regime logic, the strategy includes several risk and trade management controls that are featured in all my strategies.
Four oscillators are also integrated into the logic to detect short-term overbought and oversold conditions. These help the strategy avoid entering or exiting a trade when price has already extended too far in one direction, improving timing and potentially reducing false entries and exits. When overbought or oversold are detected, a red or green dot appears on the chart.
The script is designed to be flexible across different assets and timeframes. However, to achieve consistent results, it is important to optimize parameters carefully. A recommended workflow is as follows:
Disable the walk-forward option during the optimization phase.
Optimize the first main parameter while keeping others fixed.
Once a satisfactory value is found, move to the second parameter.
Continue the process for subsequent parameters.
Optionally, repeat the full sequence once more to refine the results.
Finally, activate walk-forward analysis and check the out-of-sample results.
This strategy is published as invite-only with hidden source code. Access may be granted upon request for research or evaluation purposes. It is part of a broader collection of technical analysis strategies I have developed, which focus on regime detection and adaptive trading systems.
There are five levels of strategy complexity and performance in my collection. This script represents a Level 1 strategy, designed as a solid foundation and introduction to the framework. More advanced levels progressively add greater complexity, adaptability, and robustness.
When multiple strategies are combined under this same framework, the results become more robust and stable. In particular, combining my suite of technical analysis strategies with my macro strategies and alternative data strategies, such as onchain for cryptocurrencies. It creates a multi-layered system that adapts across regimes, timeframes, and market conditions.
TwinPulse Q Lead SPY x QQQ Intermarket Pulse 1HTwinPulse Q Lead is a concise one hour indicator for SPY and QQQ that converts three sources of market information into a single pulse line, a mode readout with BUY SELL WAIT, and compact alerts. It blends intermarket leadership between QQQ and SPY, intraday flow from the slope of session VWAP, and where the current price sits inside the regular trading hours range. The three components are normalized, fused, compressed to a stable range, and smoothed for clear thresholds. The aim is a readable intraday regime signal that helps you decide when to participate and when to stand aside.
The script is built with Pine v6, uses request security with lookahead off, and does not repaint. It is an indicator, not a strategy. It does not contain any solicitation, links, or outside references. The description is self contained and explains both logic and use so that any trader can understand the design without reading code.
What makes this original and useful
Intermarket leadership is measured directly from QQQ and SPY on your working timeframe using a Z score of the return spread. When growth is leading value heavy large caps, leadership turns positive. When it lags, leadership turns negative. This gives a real time read of the Nasdaq versus S and P tug of war that most day traders watch informally.
Intraday flow is taken from the slope of the session VWAP. A linear regression of VWAP over a short window captures whether value is rising or falling inside the day. Dividing by ATR normalizes slope by typical movement so that the signal is comparable across weeks.
Session position places price inside the current regular hours high to low. It answers whether the day is trading in the top half, the bottom half, or the middle. This is a simple but powerful context filter for breakouts and fades.
The three components are fused into one pulse, compressed with either hyperbolic tangent or softsign to keep values bounded, and then smoothed by a short EMA. This yields a stable range with a zero line so the eye can read shifts quickly.
The panel shows a human readable mode with reasons and a strength score. Traders who do not want to read lines can rely on a simple state and a compact justification that explains why the state is set.
This is not a mashup that simply overlays unrelated indicators. Each component was chosen to answer a distinct question that is common to SPY and QQQ intraday decision making. Leadership answers who is in charge, flow answers whether value inside the session is building or leaking, and position answers if price is pressing the extremes or circling the middle. The pulse ties the three together and prevents any single component from dominating.
How the calculations work
Leadership. Compute a short rate of change for SPY and QQQ. Subtract SPY from QQQ to get spread returns, then compute a rolling Z score over a longer window. Positive values mean QQQ is leading. Negative values mean SPY is leading.
Flow. Compute session VWAP on the active symbol. Regress VWAP over a short window to obtain a slope estimate. Divide by ATR to scale slope by current volatility so that a small rise on a quiet day is not treated the same as a small rise on a wild day.
Position. Track the highest high and lowest low since the start of regular hours. Place the current close inside that range on a zero to one scale, then recenter to a minus one to plus one scale. Positive means the top half of the day, negative means the bottom half.
Fusion. Multiply each component by a weight so users can emphasize or de emphasize leadership, flow, or position. Sum to a raw pulse.
Compression. Pass the raw pulse through a bounded function. Hyperbolic tangent is smooth and has natural saturation near the extremes. Softsign is faster and behaves like a smoother version of sign near zero. Compression avoids unbounded excursions and makes thresholds meaningful across days.
Smoothing. Apply a short EMA to the compressed pulse to reduce noise. This creates the main line called TwinPulse in the plot.
Thresholds. You can use static symmetric levels or adaptive levels. The adaptive option computes a mean and a standard deviation of the smoothed pulse over a user window, then sets upper and lower thresholds as mean plus or minus sigma times standard deviation. This allows thresholds to adjust across regimes. Static levels are still available for traders who want repeatable levels.
Events and mode. A long event fires when the smoothed pulse crosses the upper threshold with positive flow and any optional filters agree. A short event fires on the symmetric condition. The mode reads the current state rather than fire and forget. It returns BUY when the smoothed pulse is above the upper threshold with positive flow, SELL when the smoothed pulse is below the lower threshold with negative flow, otherwise WAIT. A cooldown controls how often events can fire so alerts do not spam during choppy periods.
Inputs and default values
The script ships with defaults chosen for SPY and QQQ on one hour charts.
Symbols. SPY and QQQ by default. You can switch to any pair. Many users may test IWM versus SPY for small cap reads.
Regular hours selector. On by default. This restricts the position factor to New York regular hours. Turn it off if you prefer full session behavior.
ROC length is three bars. Z score length is fifty bars. VWAP slope window is ten bars. ATR length is fourteen bars. Pulse smoothing length is three bars.
Compression mode. Choose hyperbolic tangent or softsign. Hyperbolic tangent is default.
Weights. Leadership and flow are one by default. Position is set to zero point seven to give a modest influence to where price sits inside the day.
Thresholds. Adaptive thresholds are on by default with a lookback of one hundred bars and a sigma width of zero point eight. Static levels at plus or minus zero point six are ready if you disable adaptive mode.
Filters. ADX filter is off by default. If you enable it, the script requires ADX above a user minimum before it will signal. Higher time frame confirmation is off by default. When enabled it compares the smoothed pulse on the confirm timeframe to zero and requires alignment for longs or shorts.
Cooldown. Three bars by default so that alerts do not trigger too frequently.
UI. Bar coloring is on by default. The panel is on by default and sits at the top right.
All request security calls use lookahead off and will not request future data. All persistent state variables are assigned in a way that prevents repainting. The indicator does not use non standard chart types in its logic.
How to use the indicator
Load a one hour chart of SPY or QQQ. Keep a clean chart so that the script output is easy to read.
Turn on regular hours if you want the session position to reflect the cash session. This is recommended for SPY and QQQ.
Watch the panel. Mode reads BUY or SELL or WAIT. The strength value is a simple vote based score that ranges from zero to one hundred. It counts leadership, flow, ADX if enabled, and higher time frame confirmation if enabled. You can use strength to filter weak states.
Consider action only when mode is BUY or SELL and the signal has not just fired on the last bar. The triangles mark where an event fired. Alerts use the same logic as the events. WAIT means stand aside.
To slow the system, enable ADX and set a higher minimum or enable higher time frame confirmation. To speed it up, disable the filters, disable adaptive thresholds, or tighten the sigma width.
When publishing, use a clean chart with only this indicator. Show the symbol and timeframe clearly and make sure the plot legend is visible. If you add drawings on the chart, only include ones that help readers understand the output.
Publication notes and compliance
This description is written in English. The title uses ASCII and only uses capital letters for common abbreviations. The script is original and explains how and why the components work together. There are no links or promotional material. The script does not claim performance. It does not use lookahead. The panel and alerts exist to help a human read and act with discipline. The indicator can be published as open source or as protected. If you choose protected, the description still allows readers to understand how the logic works without access to the code.
If you later convert the logic into a strategy for publication, use realistic commission and slippage, risk no more than a small share of equity per trade, and choose a dataset that yields a large enough sample. Explain any deviations from these default recommendations in your strategy description. Do not publish results from non standard chart types since they can mislead readers on signal timing.
Limitations and risks
Intermarket leadership is a relative measure. There are hours when both SPY and QQQ fall while leadership remains positive. Treat leadership as a context, not a stand alone trigger.
VWAP slope is a path measure inside the session. It can flip several times on a choppy day. That is why the script uses a short smoothing and an optional cooldown. Use ADX or higher time frame confirmation to avoid the worst chop.
Session position assumes a meaningful regular hours range. On half days or around openings with gaps the position factor can be less informative. If this bothers you, reduce the weight of position or turn it off.
Compression and smoothing introduce lag by design. The goal is stability and clarity. If you want earlier but noisier signals, reduce smoothing and weights, and use static thresholds.
No indicator guarantees future results. TwinPulse Q Lead is a decision aid. It should be combined with your risk rules, position size policy, and a clear exit plan. Past behavior is not a promise for the future.
Frequently asked questions
What symbols are supported. Any symbol can be used as the chart symbol. Leadership uses the two user symbols which default to SPY and QQQ. Many traders may try IWM versus SPY or DIA versus SPY.
Can I change the timeframe. Yes, but the design target is one hour. On very short timeframes the VWAP slope becomes very sensitive and you should consider stronger filters.
Does the script repaint. No. It uses request security with lookahead off and the panel updates on the last bar only. Events are based on bar close conditions unless you attach alerts on any alert function call which will still respect the logic without looking into the future.
How are the strength numbers built. The strength score is the share of aligned votes across leadership, flow, ADX if enabled, and higher time frame confirmation if enabled. A value near one hundred means many filters agree. A value near fifty means partial alignment. It is not a probability or an accuracy number.
Can I use non standard chart types. You can view the indicator on them but do not publish signals from non standard chart types because that can mislead readers about timing. Use classic candles or bars when you publish and when you test.
Why do I sometimes see BUY but the price is not moving. A BUY mode requires pulse above the upper threshold and positive flow. It does not require higher highs immediately. Treat BUY as a permission to look for entries using your own execution rules.
Price angles"Automatically draws price angles to streamline technical analysis, reduce manual effort, and save valuable time for traders."
Quanloki + ICT Smart Entry (v7.3 Pivot Entry Only + BB)If you need a signal group or team, please contact @quanloki or tele to get support and refund for the VIP group.