Stock whisperer vol 2Below is your updated, copy-paste ready Pine v5 script with 5 bullish targets and 5 bearish targets.
No broken line wraps. No reserved words. No Pine meltdowns.
Chart patterns
GIX Breakout + Revanșă X10)This indicator is a complete breakout strategy
For feedback, I am at your disposal on WhatsApp 0040734534441 or Email George.Catinca@gmail.com
MA Crossover Scalper [4H]//@version=5
indicator("MA Crossover Scalper ", overlay=false)
// Market Cap Filter (Volume as proxy)
volumeValid = volume >= 500000 and volume <= 4000000
// MA Crossover System
ma9 = ta.sma(close, 9)
ma21 = ta.sma(close, 21)
bullishCross = ta.crossover(ma9, ma21) and close > ma21
bearishCross = ta.crossunder(ma9, ma21) and close < ma21
// Volume Confirmation
volumeSpike = volume > ta.sma(volume, 20) * 1.3
// Final Signals
bullSignal = bullishCross and volumeSpike and volumeValid
bearSignal = bearishCross and volumeSpike and volumeValid
// Output for Screener
plot(bullSignal ? 1 : 0, "Bull MA Cross", color=color.green)
plot(bearSignal ? 1 : 0, "Bear MA Cross", color=color.red)
ORION LTME by Ali_KamberogluORION Long-Term Momentum Engine by Ali_Kamberoglu | Silence the Noise, Hear the Real Signals
Developer: Ali Kamberoğlu
Overview: Go Beyond the Limits of Standard Indicators
The ORION Long-Term Momentum Engine is an all-in-one analytical powerhouse designed to filter market noise with surgical precision, eliminate signal lag, and, most importantly, automatically detect trend reversals that are impossible to see with the naked eye. This tool combines three different advanced mathematical engines (Chebyshev, Zero-Lag Gaussian, and Adaptive KAMA) into a single hybrid structure, offering a clarity and analytical depth that ordinary oscillators could never provide. ORION shows you not just what is happening, but what is about to happen.
The ORION Advantage: Why It's Different
The power of ORION comes from its three-layer filtering system, which works in perfect harmony:
Layer 1 - The Noise Shield (Chebyshev Filter):
Price action is chaotic. The Chebyshev filter is your first line of defense, cleaning out the meaningless noise (sudden spikes, minor fluctuations) from this chaos. The result? Smoother, more readable, and reliable baseline momentum data that won't mislead you.
Layer 2 - The Lag Enemy (Zero-Lag Gaussian Filter):
Cleaning noise is important, but a lagging signal is unacceptable. The Zero-Lag filter ensures that the cleaned signal reaches you almost in real-time with market movements. No more getting signals after the opportunities have passed. Speed and precision, combined.
Layer 3 - The Smart Navigation System (Adaptive KAMA Filter):
Not all market conditions are the same. ORION knows this. The Adaptive KAMA filter analyzes the current character of the market. If there's a strong trend, it speeds up to keep you in the move. If the market is choppy and indecisive, it slows down, protecting you from the loss-making whipsaw market.
The Game-Changing Feature: Automatic Divergence Engine
ORION's most valuable feature is its fully automatic divergence detection system, which alerts you to trend reversals before anyone else.
Bullish Divergence 🐂: Is the price making lower lows while ORION's momentum is making higher lows? This is the clearest sign that the downtrend is losing power and a strong rally is imminent. You are instantly alerted with a "Bull" label on your chart.
Bearish Divergence 🐻: Is the price hitting record highs while ORION's momentum is losing steam? This signals that the rally is nearing its end and a sharp decline could be starting. The "Bear" label prepares you to protect your position or take profits.
This feature alone reduces hours of manual analysis to seconds and gives you an invaluable strategic advantage.
Indicator Components & Strategies
🔵 ORION Momentum (Blue Line): The heart of the engine. Your fast, precise, and primary momentum line.
🟠 Signal Line (Orange Line): The confirmation mechanism. A smoother reference that validates the movements of the blue line.
💎 Adaptive KAMA (Turquoise Line): Your dynamic filter that keeps its finger on the pulse of the market.
High-Probability Trading Strategies:
Strongest BUY Signal:
A "Bull" label appears on the chart.
The blue line crosses above the orange line in the oversold zone (below the 20 level).
This is an A+ grade buying opportunity, combining a momentum reversal with an oversold market.
Strongest SELL Signal:
A "Bear" label appears on the chart.
The blue line crosses below the orange line in the overbought zone (above the 80 level).
This is a high-probability shorting opportunity, combining a loss of momentum with an overextended market.
Disclaimer
This indicator is a professional analysis tool developed to assist in your trading decisions. No signal or analysis constitutes investment advice. Trading in financial markets involves high risk, and past performance is not a guarantee of future results. Please always apply your own risk management strategies.
ORION Fusion Engine by Ali_KamberogluORION Fusion Engine by Ali_Kamberoglu | The Ultimate All-in-One Trading Command Center
Developer: Ali Kamberoğlu
Overview: One Indicator, A Complete Strategy
The ORION Fusion Engine (FE) transcends the limits of a single indicator, merging multiple ORION engines into one intelligent system—an all-in-one trading command center. This is not just an indicator; it is a complete strategy system that analyzes the market across three key dimensions: Trend, Energy (Volatility), and Confirmation (Divergence). It then fuses this data to provide you with filtered, high-probability trading signals.
ORION FE transforms your chart into an aircraft's cockpit; each "crew member" provides critical information about the market's condition, and most importantly, fires "Grand Prix" signals when all conditions are perfect.
The Cockpit Crew: The Power Behind ORION FE
The strength of ORION FE comes from four main components, each specializing in its field and operating far more intelligently than standard indicators:
1. THE CAPTAIN (Core Trend Engine): The Ship's Smart Route
Mission: To determine the market's primary trend direction.
How is it different from a standard SuperTrend? A standard SuperTrend uses a fixed ATR multiplier in all market conditions, leading to numerous false signals (whipsaws) in choppy markets or late signals in slow-starting trends.
The ORION Advantage (Adaptive Multiplier): The Captain revolutionizes this by using an adaptive ATR multiplier. The engine compares short-term volatility to long-term volatility.
In Choppy & Noisy Markets: The multiplier automatically increases, moving the trend line away from the price to protect you from false signals and keep the ship's course steady.
In Calm & Consolidating Markets: The multiplier automatically decreases, bringing the trend line closer to the price to give you a much earlier entry signal on a potential breakout. In short, the Captain stays on deck in a storm and is the first to leave the harbor in calm seas.
2. THE WEATHER STATION (Energy Engine): Measures the Storm's Intensity
Mission: To measure the market's potential energy (Squeeze).
How is it different from a standard Squeeze? Standard squeeze indicators only tell you if the market is consolidating (a simple yes/no).
The ORION Advantage (Hierarchical Energy Detection): The Weather Station reports the quality and potential intensity of the squeeze at three different levels:
Purple Cross (Standard Squeeze): Energy is accumulating.
White Cross (Volume-Confirmed Squeeze): More reliable. Not only is there a squeeze, but there is also significant volume interest, indicating that storm clouds are gathering.
Yellow Cross (Super Squeeze): The highest potential. This signals that volatility is at historically low levels, maximizing the probability that the upcoming move will be a "perfect storm."
3. THE STRATEGIC FILTER (FUSION): The Intelligent Decision-Maker
Mission: To maximize signal quality.
How is it different from the standard approach? Most traders try to interpret ADX and DMI separately, which leads to confusion and subjective decisions.
The ORION Advantage (Automated Confirmation): The Fusion filter automates the confirmation process a professional analyst would perform. To approve a signal, it asks two critical questions simultaneously: 1) Is there enough Trend Strength behind this signal (with Adaptive ADX-K)? 2) Is the Directional Bias on the correct side (with the DI Oscillator)? A signal is only given the green light if the answer to both is "yes." This eliminates all weak signals that have direction but no strength, or strength but no clear direction.
4. THE ENGINEERS (Divergence Detectors): The Secret Signal Spotters
Mission: To detect the hidden strength or weakness behind price action (divergences).
How is it different from the standard approach? Searching for divergences manually is both time-consuming and highly subjective.
The ORION Advantage (Multi-Source Automated Scanning): The Engineers scan the market for you 24/7, using two different sources:
The Volume Engineer: Finds divergences between price and "smart money" flow (OBV-based).
The Momentum Officer: Finds divergences between price and market momentum (RSI/Stochastic-based).
A trend reversal confirmed by both volume and momentum simultaneously constitutes one of the system's most powerful confirmations and lays the groundwork for Grand Prix signals.
Signal Hierarchy: From Standard to Grand Prix
ORION FE combines all this data to present you with three distinct quality levels of signals:
🏁 GRAND PRIX SIGNAL (Label: GP-BUY / GP-SELL): "The Perfect Storm"
This is the highest-quality signal the system can produce. It appears only when all of the following conditions are met simultaneously:
The Captain signals a trend reversal.
The Weather Station reports a strong energy accumulation (Squeeze) in the recent past.
The Engineers detect a divergence that supports this reversal.
The Strategic Filter confirms the signal has sufficient trend strength.
🔼 STRONG SIGNAL (Triangle): A high-probability confirmation. The Captain's reversal signal is confirmed by either a Divergence OR an Energy Breakout and has passed the filter.
⚫ STANDARD SIGNAL (Circle): The most basic confirmation level. Only the Captain's reversal signal has passed the filter. Use with caution.
Disclaimer
This indicator is a professional analysis tool developed to assist in your trading decisions. No signal or analysis constitutes investment advice. Trading in financial markets involves high risk, and past performance is not a guarantee of future results. Please always apply your own risk management strategies.
Championship Scalper [Trend & Trap]Championship Scalper
Overview This is a high-precision scalping indicator designed to capture Liquidity Traps (Swing Failure Patterns). It waits for price to "sweep" a key level (grabbing stop losses) and immediately reverse, signaling that smart money has entered the market.
How it Works (The "Confluence" Engine) A signal is only generated when four specific conditions align perfectly:
The Trap: Price must sweep a Swing High or Low and close back inside the range (rejection).
The Trend: Trades are only taken in the direction of the dominant trend (using a 200 EMA).
Price > EMA = Longs only.
Price < EMA = Shorts only.
The Momentum (RSI): Prevents buying tops or selling bottoms.
Longs: RSI must be trending UP and sitting in the bullish zone (30-60).
Shorts: RSI must be trending DOWN and sitting in the bearish zone (60-30).
The Confirmation (CVD): Verifies the move with Order Flow (Cumulative Volume Delta) to ensure hidden volume supports the reversal.
Visual Signals
Green Triangle (▲): Bullish Signal. Validated dip-buy opportunity.
Red Triangle (▼): Bearish Signal. Validated short-sell opportunity.
Dashboard A mini-panel in the bottom right displays the current Trend Status (Bullish/Bearish) and the exact price levels of the most recent active Swing Highs and Lows.
Micha Stokes Buyers Breakout Alert v2I added comments starts with EE , where code modifications are needed
DeepClean Linear indicator 1. Indicator Name
DeepClean Linear indicator
2. One-Line Introduction
A trend-recognition indicator that overlays a “transparent wave” on price, removing noise and revealing directional bias and trend intensity in a highly intuitive visual form.
3. Overall Summary
The DeepClean Linear indicator calculates trend direction using changes in linear regression slope and determines trend strength by comparing how consistently the regression line moves over a defined lookback window.
Rather than merely identifying trend direction, the indicator applies a triple-layer noise-filtering process (EMA → SMA → RMA) to produce a clean, wave-shaped data line that filters out unnecessary market noise.
This transparent wave sits directly on top of price, allowing traders to visually compare price movement and trend strength at the same time.
A stronger trend results in a taller, thicker wave, while weakening momentum causes the wave to thin, making it easier to spot trend continuation, exhaustion, or upcoming reversal.
Color automatically shifts based on trend:
Bright cyan/teal during bullish conditions
Reddish tones during bearish conditions
Transparency dynamically adjusts depending on strength
The indicator excels at identifying the true underlying trend by ignoring minor fluctuations and is well suited for scalping, swing trading, and position trading.
It also significantly reduces false signals in ranging markets, making it ideal for trend-following strategies.
4. Advantages
① Ultra-Clean Noise-Reduced Wave
Utilizes a 3-stage smoothing filter (EMA → SMA → RMA) to produce a much cleaner wave than standard moving averages, highlighting only core trend movement.
② Trend Direction & Strength at a Glance
Based on comparative linear regression behavior, the indicator quantifies both direction and strength, making convergence/divergence highly visible.
③ Intuitive Price Overlay Visualization
The semi-transparent wave sits directly on price action, allowing traders to instantly see divergence from price, trend weakening, or early turning points.
④ Dynamic Transparency Coloring
Strong trends appear bold and intense, while weaker trends fade visually—making signal interpretation effortless.
⑤ Excellent Range Filtering
During low-direction phases (state = 0), the wave turns neutral, preventing forced or premature entries.
⑥ Multi-Timeframe Compatibility
The wave remains stable from 1-minute to weekly charts, making it suitable for trend analysis, execution, and risk control across all timeframes.
📌 Core Concept Overview
The indicator evaluates the relative comparison of linear regression values over the last n periods.
A positive trend value indicates bullish bias
A negative trend value indicates bearish bias
Intensity represents strength and controls wave height
waveTop / waveBot define the visual wave area relative to price
State Values
1 = Bullish Trend
-1 = Bearish Trend
0 = Neutral / Weak Direction
⚙️ Settings Overview
Option Description
Trend Lookback (n) Comparison window for regression slope. Higher = bigger trend focus.
Range Tolerance (%) Strength threshold to classify bullish/bearish movement. Higher = more conservative.
Source Price source for regression calculations.
Linear Reg Length Length of the linear regression.
Noise Filter Strength (smoothK) Controls the smoothing intensity. Higher = smoother wave.
Wave Amplitude (amp) Adjusts the height/thickness of the wave.
Bull/Bear Color Colors for bullish/bearish waves.
Base Transparency Base opacity level; modified dynamically by trend strength.
📈 Bullish Timing Recognition Examples
Wave begins turning brighter teal and more opaque, indicating strengthening upward pressure.
waveTop expands above price, signaling early trend expansion.
State flips to 1, often marking a trend restart or early reversal phase.
A steadily rising wave height suggests sustained bullish momentum.
📉 Bearish Timing Recognition Examples
Wave shifts into red tones, showing bearish dominance.
waveBot expands below price, indicating rising downside volatility.
State stays at -1 while intensity increases, signaling entry into strong downtrend conditions.
A shift from weak → strong bearish intensity can provide short-entry timing cues.
🧪 Recommended Usage
Use as a core component in trend-following systems
Adjust position size based on wave thickness (trend strength)
Combine with RSI/MACD to reduce false signals during overbought/oversold zones
Sudden wave expansion during volatility increases helps detect trend acceleration
In sideways markets, frequent state = 0 readings help avoid low-probability trades
🔒 Important Notes
As a trend-based indicator, it may misread choppy/ranging markets
Because of smoothing, signals may appear slightly delayed
Extreme news volatility can temporarily distort trend clarity
Atlas 8 Currency Session Momentum (6H, London)This indicator calculates real-time currency strength for the 8 major currencies (USD, EUR, GBP, JPY, AUD, NZD, CAD, CHF) using a balanced multi-pair engine and a 6-hour momentum reset.
🔍 How it works
The indicator computes the relative strength of each currency by averaging the percentage change of 7 major cross-pairs for each currency.
A currency's value increases when pairs where it is the base appreciate, and decreases when pairs where it is the quote depreciate.
This creates a symmetric and stable strength calculation similar to institutional relative-value models.
🕒 Session-based Momentum Reset
The global trading day is split into 4 × 6-hour blocks:
• 00:00–06:00 Tokyo
• 06:00–12:00 London
• 12:00–18:00 New York
• 18:00–24:00 Late US/Asia pre-open
At each new 6-hour session, all strength lines reset to 0.
This highlights fresh intraday momentum generated by liquidity transitions between sessions.
🎯 What the indicator shows
• Relative strength of all 8 currencies
• Smooth momentum curves using EMA smoothing
• Vertical dividers at each new session
• Background color for each session
• Real intraday build-up of strength/weakness (not cumulative from previous day)
This tool is designed for intraday traders who follow cross-currency momentum during session transitions (Tokyo → London → NY).
🧭 How to use it
• Look for the strongest vs weakest currency after each session reset
• Identify fresh trends during London and NY opens
• Confirm currency-pair bias using strength divergence
• Track momentum exhaustion when lines flatten or converge
i don want to tell you how to use
"Regarding the specific inquiry into the precise manner and method by which one might go about employing the features present herein, I have decided, after much deliberation and careful consideration of all variable factors, to abstain from delivering a prescriptive lecture, thereby allowing the operational paradigm to remain an open-ended question for you to resolve."
Session Open Range, Breakout & Trap Framework - TrendPredator OBSession Open Range, Breakout & Trap Framework — TrendPredator Open Box
Stacey Burke’s trading approach combines concepts from George Douglas Taylor, Tony Crabel, Steve Mauro, and Robert Schabacker. His framework focuses on reading price behaviour across daily templates and identifying how markets move through recurring cycles of expansion, contraction, and reversal. While effective, much of this analysis requires real-time interpretation of session-based behaviour, which can be demanding for traders working on lower intraday timeframes.
The TrendPredator indicators formalize parts of this methodology by introducing mechanical rules for multi-timeframe bias tracking and session structure analysis. They aim to present the key elements of the system—bias, breakouts, fakeouts, and range behaviour—in a consistent and objective way that reduces discretionary interpretation.
The Open Box indicator focuses specifically on the opening behaviour of major trading sessions. It builds on principles found in classical Open Range Breakout (ORB) techniques described by Tony Crabel, where a defined time window around the session open forms a structural reference range. Price behaviour relative to this range—breaking out, failing back inside, or expanding—can highlight developing session bias, potential trap formation, and directional conviction.
This indicator applies these concepts throughout the major equity sessions. It automatically maps the session’s initial range (“Open Box”) and tracks how price interacts with it as liquidity and volatility increase. It also incorporates related structural references such as:
* the first-hour high and low of the futures session
* the exact session open level
* an anchored VWAP starting at the session open
* automated expansion levels projected from the Open Box
In combination, these components provide a unified view of early session activity, including breakout attempts, fakeouts, VWAP reactions, and liquidity targeting. The Open Box offers a structured lens for observing how price transitions through the major sessions (Asia → London → New York) and how these behaviours relate to higher-timeframe bias defined in the broader TrendPredator framework.
Core Features
Open Box (Session Structure)
The indicator defines an initial session range beginning at the selected session open. This “Open Box” represents a fixed time window—commonly the first 30 minutes, or any user-defined duration—that serves as a structural reference for analysing early session behaviour.
The range highlights whether price remains inside the box, breaks out, or rejects the boundaries, providing a consistent foundation for interpreting early directional tendencies and recognising breakout, continuation, or fakeout characteristics.
How it works:
* At the session open, the indicator calculates the high and low over the specified time window.
* This range is plotted as the initial structure of the session.
* Price behaviour at the boundaries can illustrate emerging bias or potential trap formation.
* An optional secondary range (e.g., 15-minute high/low) can be enabled to capture early volatility with additional precision.
Inputs / Options:
* Session specifications (Tokyo, London, New York)
* Open Box start and end times (e.g., equity open + first 30 minutes, or any custom length)
* Open Box colour and label settings
* Formatting options for Open Box high and low lines
* Optional secondary range per session (e.g., 15-minute high/low)
* Forward extension of Open Box high/low lines
* Number of historic Open Boxes to display
Session VWAPs
The indicator plots VWAPs for each major trading session—Asia, London, and New York—anchored to their respective session opens. These session-specific VWAPs assist in tracking how value develops through the day and how price interacts with session-based volume distributions.
How it works:
* At each session open, a VWAP is anchored to the open price.
* The VWAP updates throughout the session as new volume and price data arrive.
* Deviations above or below the VWAP may indicate balance, imbalance, or directional control.
* Viewed together, session VWAPs help identify transitions in value across sessions.
Inputs / Options:
* Enable or disable VWAP per session
* Adjustable anchor and end times (optionally to end of day)
* Line styling and label settings
* Number of historic VWAPs to draw
First Hour High/Low Extensions
The indicator marks the high and low formed during the first hour of each session. These reference points often function as early control levels and provide context for assessing whether the session is establishing bias, consolidating, or exhibiting reversal behaviour.
How it works:
* After the session starts, the indicator records the highest and lowest prices during the first hour.
* These levels are plotted and extended across the session.
* They provide a visual reference for observing reactions, targets, or rejection zones.
Inputs / Options:
* Enable or disable for each session
* Line style, colour, and label visibility
* Number of historic sessions displayed
EQO Levels (Equity Open)
The indicator plots the opening price of each configured session. These “Equity Open” levels represent short-term reference points that can attract price early in the session.
Once the level is revisited after the Open Box has formed, it is automatically cut to avoid clutter. If not revisited, the line remains as an untested reference, similar to a naked point of control.
How it works:
* At session open, the open price is recorded.
* The level is plotted as a local reference.
* If price interacts with the level after the Open Box completes, the line is cut.
* Untested EQOs extend forward until interacted with.
Inputs / Options:
* Enable/disable per session
* Line style and label settings
* Optional extension into the next day
* Option for cutting vs. hiding on revisit
* Number of historic sessions displayed
OB Range Expansions (Automatic)
Range expansions are calculated from the height of the Open Box. These levels provide structured reference zones for identifying potential continuation or exhaustion areas within a session.
How it works:
* After the Open Box is formed, multiples of the range (e.g., 1×, 2×, 3×) are projected.
* These expansion levels are plotted above and below the range.
* Price reactions near these areas can illustrate continuation, hesitation, or potential reversal.
Inputs / Options:
* Enable or disable per session
* Select number of multiples
* Line style, colour, and label settings
* Extension length into the session
Stacey Burke 12-Candle Window Marker
The indicator can highlight the 12-candle window often referenced in Stacey Burke’s session methodology. This window represents the key active period of each session where breakout attempts, volatility shifts, and reversal signatures often occur.
How it works:
* A configurable window (default 12 candles) is highlighted from each session open.
* This window acts as a guide for observing active session behaviour.
* It remains visible throughout the session for structural context.
Inputs / Options:
* Enable/disable per session
* Configurable window duration (default: 3 hours)
* Colour and transparency controls
Concept and Integration
The Open Box is built around the same multi-timeframe logic that underpins the broader TrendPredator framework.
While higher-timeframe tools track bias and setups across the H8–D–W–M levels, the Open Box focuses on the H1–M30 domain to define session structure and observe how early intraday behaviour aligns with higher-timeframe conditions.
The indicator integrates with the TrendPredator FO (Breakout, Fakeout & Trend Switch Detector), which highlights microstructure signals on lower timeframes (M15/M5). Together they form a layered workflow:
* Higher timeframes: context, bias, and developing setups
* TrendPredator OB: intraday and intra-session structure
* TrendPredator FO: microstructure confirmation (e.g., FOL/FOH, switches)
This alignment provides a structured way to observe how daily directional context interacts with intraday behaviour.
See the public open source indicator TP FO here (click on it for access):
Practical Application
Before Session Open
* Review previous session Open Box, Open level, and VWAPs
* Assess how higher-timeframe bias aligns with potential intraday continuation or reversal
* Note untested EQO levels or VWAPs that may function as liquidity attractors
During Session Open
* Observe behaviour around the first-hour high/low and higher-timeframe reference levels
* Monitor how the M15 and 30-minute ranges close
* Track reactions relative to the session open level and the session VWAP
After the Open Box completes
* Assess price interaction with Open Box boundaries and first-hour levels
* Use microstructure signals (e.g., FOH/FOL, switches) for potential confirmation
* Refer to expansion levels as reference zones for management or target setting
After Session
* Review how price behaved relative to the Open Box, EQO levels, VWAPs, and expansion zones
* Analyse breakout attempts, fakeouts, and whether intraday structure aligned with the broader daily move
Example Workflow and Trade
1. Higher-timeframe analysis signals a Daily Fakeout Low Continuation (bullish context).
2. The New York session forms an Open Box; price breaks above and holds above the first-hour high.
3. A Fakeout Low + Switch Bar appears on M5 (via FO), after retesting the session VWAP triggering the entry.
4. 1x expansion level serves as reference targets for take profit.
Relation to the TrendPredator Ecosystem
The Open Box is part of the TrendPredator Indicator Family, designed to apply multi-timeframe logic consistently across:
* higher-timeframe context and setups
* intraday and session structure (OB)
* microstructure confirmation (FO)
Together, these modules offer a unified structure for analysing how daily and intraday cycles interact.
Disclaimer
This indicator is for educational purposes only and does not guarantee profits.
It does not provide buy or sell signals but highlights structural and behavioural areas for analysis.
Users are solely responsible for their trading decisions and outcomes.
لbsm15// This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) creativecommons.org
// © LuxAlgo
//@version=5
indicator("لbsm15", overlay = true, max_lines_count = 500, max_boxes_count = 500, max_bars_back = 3000)
//------------------------------------------------------------------------------
//Settings
//-----------------------------------------------------------------------------{
liqGrp = 'Liquidity Detection'
liqLen = input.int (7, title = 'Detection Length', minval = 3, maxval = 13, inline = 'LIQ', group = liqGrp)
liqMar = 10 / input.float (6.9, 'Margin', minval = 4, maxval = 9, step = 0.1, inline = 'LIQ', group = liqGrp)
liqBuy = input.bool (true, 'Buyside Liquidity Zones, Margin', inline = 'Buyside', group = liqGrp)
marBuy = input.float(2.3, '', minval = 1.5, maxval = 10, step = .1, inline = 'Buyside', group = liqGrp)
cLIQ_B = input.color (color.new(#4caf50, 0), '', inline = 'Buyside', group = liqGrp)
liqSel = input.bool (true, 'Sellside Liquidity Zones, Margin', inline = 'Sellside', group = liqGrp)
marSel = input.float(2.3, '', minval = 1.5, maxval = 10, step = .1, inline = 'Sellside', group = liqGrp)
cLIQ_S = input.color (color.new(#f23645, 0), '', inline = 'Sellside', group = liqGrp)
lqVoid = input.bool (false, 'Liquidity Voids, Bullish', inline = 'void', group = liqGrp)
cLQV_B = input.color (color.new(#4caf50, 0), '', inline = 'void', group = liqGrp)
cLQV_S = input.color (color.new(#f23645, 0), 'Bearish', inline = 'void', group = liqGrp)
lqText = input.bool (false, 'Label', inline = 'void', group = liqGrp)
mode = input.string('Present', title = 'Mode', options = , inline = 'MOD', group = liqGrp)
visLiq = input.int (3, ' # Visible Levels', minval = 1, maxval = 50, inline = 'MOD', group = liqGrp)
//-----------------------------------------------------------------------------}
//General Calculations
//-----------------------------------------------------------------------------{
maxSize = 50
atr = ta.atr(10)
atr200 = ta.atr(200)
per = mode == 'Present' ? last_bar_index - bar_index <= 500 : true
//-----------------------------------------------------------------------------}
//User Defined Types
//-----------------------------------------------------------------------------{
// @type used to store pivot high/low data
//
// @field d (array) The array where the trend direction is to be maintained
// @field x (array) The array where the bar index value of pivot high/low is to be maintained
// @field y (array) The array where the price value of pivot high/low is to be maintained
type ZZ
int d
int x
float y
// @type bar properties with their values
//
// @field o (float) open price of the bar
// @field h (float) high price of the bar
// @field l (float) low price of the bar
// @field c (float) close price of the bar
// @field i (int) index of the bar
type bar
float o = open
float h = high
float l = low
float c = close
int i = bar_index
// @type liquidity object definition
//
// @field bx (box) box maitaing the liquity level margin extreme levels
// @field bxz (box) box maitaing the liquity zone margin extreme levels
// @field bxt (box) box maitaing the labels
// @field brZ (bool) mainains broken zone status
// @field brL (bool) mainains broken level status
// @field ln (line) maitaing the liquity level line
// @field lne (line) maitaing the liquity extended level line
type liq
box bx
box bxz
box bxt
bool brZ
bool brL
line ln
line lne
//-----------------------------------------------------------------------------}
//Variables
//-----------------------------------------------------------------------------{
var ZZ aZZ = ZZ.new(
array.new (maxSize, 0),
array.new (maxSize, 0),
array.new (maxSize, na)
)
bar b = bar.new()
var liq b_liq_B = array.new (1, liq.new(box(na), box(na), box(na), false, false, line(na), line(na)))
var liq b_liq_S = array.new (1, liq.new(box(na), box(na), box(na), false, false, line(na), line(na)))
var b_liq_V = array.new_box()
var int dir = na, var int x1 = na, var float y1 = na, var int x2 = na, var float y2 = na
//-----------------------------------------------------------------------------}
//Functions/methods
//-----------------------------------------------------------------------------{
// @function maintains arrays
// it prepends a `value` to the arrays and removes their oldest element at last position
// @param aZZ (UDT, array, array>) The UDT obejct of arrays
// @param _d (array) The array where the trend direction is maintained
// @param _x (array) The array where the bar index value of pivot high/low is maintained
// @param _y (array) The array where the price value of pivot high/low is maintained
//
// @returns none
method in_out(ZZ aZZ, int _d, int _x, float _y) =>
aZZ.d.unshift(_d), aZZ.x.unshift(_x), aZZ.y.unshift(_y), aZZ.d.pop(), aZZ.x.pop(), aZZ.y.pop()
// @function (build-in) sets the maximum number of bars that is available for historical reference
max_bars_back(time, 1000)
//-----------------------------------------------------------------------------}
//Calculations
//-----------------------------------------------------------------------------{
x2 := b.i - 1
ph = ta.pivothigh(liqLen, 1)
pl = ta.pivotlow (liqLen, 1)
if ph
dir := aZZ.d.get(0)
x1 := aZZ.x.get(0)
y1 := aZZ.y.get(0)
y2 := nz(b.h )
if dir < 1
aZZ.in_out(1, x2, y2)
else
if dir == 1 and ph > y1
aZZ.x.set(0, x2), aZZ.y.set(0, y2)
if per
count = 0
st_P = 0.
st_B = 0
minP = 0.
maxP = 10e6
for i = 0 to maxSize - 1
if aZZ.d.get(i) == 1
if aZZ.y.get(i) > ph + (atr / liqMar)
break
else
if aZZ.y.get(i) > ph - (atr / liqMar) and aZZ.y.get(i) < ph + (atr / liqMar)
count += 1
st_B := aZZ.x.get(i)
st_P := aZZ.y.get(i)
if aZZ.y.get(i) > minP
minP := aZZ.y.get(i)
if aZZ.y.get(i) < maxP
maxP := aZZ.y.get(i)
if count > 2
getB = b_liq_B.get(0)
if st_B == getB.bx.get_left()
getB.bx.set_top(math.avg(minP, maxP) + (atr / liqMar))
getB.bx.set_rightbottom(b.i + 10, math.avg(minP, maxP) - (atr / liqMar))
else
b_liq_B.unshift(
liq.new(
box.new(st_B, math.avg(minP, maxP) + (atr / liqMar), b.i + 10, math.avg(minP, maxP) - (atr / liqMar), bgcolor=color(na), border_color=color(na)),
box.new(na, na, na, na, bgcolor = color(na), border_color = color(na)),
box.new(st_B, st_P, b.i + 10, st_P, text = 'Buyside liquidity', text_size = size.tiny, text_halign = text.align_left, text_valign = text.align_bottom, text_color = color.new(cLIQ_B, 25), bgcolor = color(na), border_color = color(na)),
false,
false,
line.new(st_B , st_P, b.i - 1, st_P, color = color.new(cLIQ_B, 0)),
line.new(b.i - 1, st_P, na , st_P, color = color.new(cLIQ_B, 0), style = line.style_dotted))
)
alert('buyside liquidity level detected/updated for ' + syminfo.ticker)
if b_liq_B.size() > visLiq
getLast = b_liq_B.pop()
getLast.bx.delete()
getLast.bxz.delete()
getLast.bxt.delete()
getLast.ln.delete()
getLast.lne.delete()
if pl
dir := aZZ.d.get (0)
x1 := aZZ.x.get (0)
y1 := aZZ.y.get (0)
y2 := nz(b.l )
if dir > -1
aZZ.in_out(-1, x2, y2)
else
if dir == -1 and pl < y1
aZZ.x.set(0, x2), aZZ.y.set(0, y2)
if per
count = 0
st_P = 0.
st_B = 0
minP = 0.
maxP = 10e6
for i = 0 to maxSize - 1
if aZZ.d.get(i) == -1
if aZZ.y.get(i) < pl - (atr / liqMar)
break
else
if aZZ.y.get(i) > pl - (atr / liqMar) and aZZ.y.get(i) < pl + (atr / liqMar)
count += 1
st_B := aZZ.x.get(i)
st_P := aZZ.y.get(i)
if aZZ.y.get(i) > minP
minP := aZZ.y.get(i)
if aZZ.y.get(i) < maxP
maxP := aZZ.y.get(i)
if count > 2
getB = b_liq_S.get(0)
if st_B == getB.bx.get_left()
getB.bx.set_top(math.avg(minP, maxP) + (atr / liqMar))
getB.bx.set_rightbottom(b.i + 10, math.avg(minP, maxP) - (atr / liqMar))
else
b_liq_S.unshift(
liq.new(
box.new(st_B, math.avg(minP, maxP) + (atr / liqMar), b.i + 10, math.avg(minP, maxP) - (atr / liqMar), bgcolor=color(na), border_color=color(na)),
box.new(na, na, na, na, bgcolor=color(na), border_color=color(na)),
box.new(st_B, st_P, b.i + 10, st_P, text = 'Sellside liquidity', text_size = size.tiny, text_halign = text.align_left, text_valign = text.align_top, text_color = color.new(cLIQ_S, 25), bgcolor=color(na), border_color=color(na)),
false,
false,
line.new(st_B , st_P, b.i - 1, st_P, color = color.new(cLIQ_S, 0)),
line.new(b.i - 1, st_P, na , st_P, color = color.new(cLIQ_S, 0), style = line.style_dotted))
)
alert('sellside liquidity level detected/updated for ' + syminfo.ticker)
if b_liq_S.size() > visLiq
getLast = b_liq_S.pop()
getLast.bx.delete()
getLast.bxz.delete()
getLast.bxt.delete()
getLast.ln.delete()
getLast.lne.delete()
for i = 0 to b_liq_B.size() - 1
x = b_liq_B.get(i)
if not x.brL
x.lne.set_x2(b.i)
if b.h > x.bx.get_top()
x.brL := true
x.brZ := true
alert('buyside liquidity level breached for ' + syminfo.ticker)
x.bxz.set_lefttop(b.i - 1, math.min(x.ln.get_y1() + marBuy * (atr), b.h))
x.bxz.set_rightbottom(b.i + 1, x.ln.get_y1())
x.bxz.set_bgcolor(color.new(cLIQ_B, liqBuy ? 73 : 100))
else if x.brZ
if b.l > x.ln.get_y1() - marBuy * (atr) and b.h < x.ln.get_y1() + marBuy * (atr)
x.bxz.set_right(b.i + 1)
x.bxz.set_top(math.max(b.h, x.bxz.get_top()))
if liqBuy
x.lne.set_x2(b.i + 1)
else
x.brZ := false
for i = 0 to b_liq_S.size() - 1
x = b_liq_S.get(i)
if not x.brL
x.lne.set_x2(b.i)
if b.l < x.bx.get_bottom()
x.brL := true
x.brZ := true
alert('sellside liquidity level breached for ' + syminfo.ticker)
x.bxz.set_lefttop(b.i - 1, x.ln.get_y1())
x.bxz.set_rightbottom(b.i + 1, math.max(x.ln.get_y1() - marSel * (atr), b.l))
x.bxz.set_bgcolor(color.new(cLIQ_S, liqSel ? 73 : 100))
else if x.brZ
if b.l > x.ln.get_y1() - marSel * (atr) and b.h < x.ln.get_y1() + marSel * (atr)
x.bxz.set_rightbottom(b.i + 1, math.min(b.l, x.bxz.get_bottom()))
if liqSel
x.lne.set_x2(b.i + 1)
else
x.brZ := false
if lqVoid and per
bull = b.l - b.h > atr200 and b.l > b.h and b.c > b.h
bear = b.l - b.h > atr200 and b.h < b.l and b.c < b.l
if bull
l = 13
if bull
st = math.abs(b.l - b.l ) / l
for i = 0 to l - 1
array.push(b_liq_V, box.new(b.i - 2, b.l + i * st, b.i, b.l + (i + 1) * st, border_color = na, bgcolor = color.new(cLQV_B, 90) ))
else
st = math.abs(b.l - b.h ) / l
for i = 0 to l - 1
if lqText and i == 0
array.push(b_liq_V, box.new(b.i - 2, b.h + i * st, b.i, b.h + (i + 1) * st, text = 'Liquidity Void ', text_size = size.tiny, text_halign = text.align_right, text_valign = text.align_bottom, text_color = na, border_color = na, bgcolor = color.new(cLQV_B, 90) ))
else
array.push(b_liq_V, box.new(b.i - 2, b.h + i * st, b.i, b.h + (i + 1) * st, border_color = na, bgcolor = color.new(cLQV_B, 90) ))
if bear
l = 13
if bear
st = math.abs(b.h - b.h) / l
for i = 0 to l - 1
array.push(b_liq_V, box.new(b.i - 2, b.h + i * st, b.i, b.h + (i + 1) * st, border_color = na, bgcolor = color.new(cLQV_S, 90) ))
else
st = math.abs(b.l - b.h) / l
for i = 0 to l - 1
if lqText and i == l - 1
array.push(b_liq_V, box.new(b.i - 2, b.h + i * st, b.i, b.h + (i + 1) * st, text = 'Liquidity Void ', text_size = size.tiny, text_halign = text.align_right, text_valign = text.align_top, text_color = na, border_color = na, bgcolor = color.new(cLQV_S, 90) ))
else
array.push(b_liq_V, box.new(b.i - 2, b.h + i * st, b.i, b.h + (i + 1) * st, border_color = na, bgcolor = color.new(cLQV_S, 90) ))
if b_liq_V.size() > 0
qt = b_liq_V.size()
for bn = qt - 1 to 0
if bn < b_liq_V.size()
cb = b_liq_V.get(bn)
ba = math.avg(cb.get_bottom(), cb.get_top())
if math.sign(b.c - ba) != math.sign(b.c - ba) or math.sign(b.c - ba) != math.sign(b.l - ba) or math.sign(b.c - ba) != math.sign(b.h - ba)
b_liq_V.remove(bn)
else
cb.set_right(b.i + 1)
if b.i - cb.get_left() > 21
cb.set_text_color(color.new(color.gray, 25))
//-----------------------------------------------------------------------------}
Big Tech Sniper [TSLA/AAPL/MSFT/META]Precision Engineered for the "Magnificent" Stocks.
The Big Tech Sniper is a specialized version of our institutional logic, tuned specifically for the unique volatility profiles of Tesla, Apple, Microsoft, and Meta.
Unlike generic indicators, this script includes an Asset Validator that confirms you are trading an optimized ticker. If you try to use this on a low-quality penny stock, the system will warn you: "UNSUPPORTED ⚠️".
🚀 Optimized For:
TSLA (Tesla): Captures high-beta explosive moves.
AAPL (Apple): Tuned for steady, high-volume trends.
MSFT (Microsoft) & META: Calibrated for institutional order flow.
🔥 Institutional Features:
VWAP Anchor: Only trades in the direction of bank accumulation.
Volume Gate: Filters out "Lunchtime" fakeouts (Low Volume = No Trade).
Blue Zone Targeting: Automatically detects when the Profit Target is hit to prevent FOMO.
🔒 HOW TO UNLOCK: This is an Invite-Only tool for members of Scaler Pro Systems. Get your license here: whop.com
(Enter your TradingView username at checkout for instant access)
SuperTrend Zone Rejection [STRZ] CONCEPT -
This indicator identifies trend-continuation setups by combining the Super Trend with dynamic Average True Range (ATR) value zones. It highlights specific price action behaviour's—specifically wick rejections and momentum closes—that occur during pullbacks into the trend baseline.
HOW IT WORKS -
The script operates on three logic gates:
>> Trend Filter: Uses a standard Super Trend (Factor 3, Period 10 default) to define market direction.
>> Dynamic Zones: Projects a volatility-based zone (default 2.0x ATR) above or below the Super Trend line to define a valid pullback area.
>> Signal Detection: Identifies specific candle geometries occurring within these zones.
>> Rejection: Candles with significant wicks testing the zone support/resistance.
>> Momentum: Candles that open within the zone and close in the upper/lower quartile of their range.
FEATURES -
>> Dynamic Channel: Visualizes the active buy/sell zone using a continuous, non-repainting box.
>> Volatile Filtering: Filters out low-volatility candles (doji's/noise) based on minimum ATR size.
>> Visuals: Color-coded trend visualization with distinct signal markers for qualified entries.
SETTINGS -
>> Super Trend: Adjustable Factor and ATR Period.
>> Zone Multiplier: Controls the width of the pullback zone relative to ATR.
>> Visuals: Customizable colours for zones and signals to fit light/dark themes.
Highlight Running 30m CandleThis script highlight 30 minute running candle.
mostly used for crypto trading
Quantum Sniper
//@version=5
indicator('Quantum Sniper', overlay=true) // 1. INDICATOR NAME CHANGED TO "Quantum Sniper"
// -----------------------------------------------------------------------------
// 2. SECURITY HARDCODING (Inputs Removed or Fixed)
// -----------------------------------------------------------------------------
var ok = 0
var countBuy = 0
var countSell = 0
// src = input(close, title='OHLC Type') // REMOVED INPUT
src = close // FIXED: Assume close price
// --- EMA Lengths Hardcoded (Change these numbers to your secret settings!)
l_fastEMA = 14 // ⚠️ Change THIS to your Fast EMA length (e.g., 18)
l_slowEMA = 15 // ⚠️ Change THIS to your Slow EMA length (e.g., 35)
l_defEMA = 16 // ⚠️ Change THIS to your Consolidated EMA length
// Allow the option to show single or double EMA
// i_bothEMAs = input(title='Show Both EMAs', defval=true) // REMOVED INPUT
i_bothEMAs = true // FIXED: Always show both EMAs
// Define EMAs
v_fastEMA = ta.ema(src, l_fastEMA)
v_slowEMA = ta.ema(src, l_slowEMA)
v_biasEMA = ta.ema(src, l_defEMA)
// Color the EMAs
emaColor = v_fastEMA > v_slowEMA ? color.green : v_fastEMA < v_slowEMA ? color.red : #FF530D
// Plot EMAs
plot(i_bothEMAs ? na : v_biasEMA, color=emaColor, linewidth=3, title='Consolidated EMA')
plot(i_bothEMAs ? v_fastEMA : na, title='Fast EMA', color=emaColor)
plot(i_bothEMAs ? v_slowEMA : na, title='Slow EMA', color=emaColor)
// Colour the bars
buy = v_fastEMA > v_slowEMA
sell = v_fastEMA < v_slowEMA
if buy
countBuy += 1
countBuy
if buy
countSell := 0
countSell
if sell
countSell += 1
countSell
if sell
countBuy := 0
countBuy
buysignal = countBuy < 2 and countBuy > 0 and countSell < 1 and buy and not buy
sellsignal = countSell > 0 and countSell < 2 and countBuy < 1 and sell and not sell
barcolor(buysignal ? color.green : na)
barcolor(sellsignal ? color.red : na)
// -----------------------------------------------------------------------------
// 3. PLOT SIGNALS CHANGED TO "Long" and "Short"
// -----------------------------------------------------------------------------
plotshape(buysignal, title='Long', text='Long', style=shape.triangleup, location=location.belowbar, color=color.new(color.green, 0), textcolor=color.new(color.black, 0), size=size.tiny)
plotshape(sellsignal, title='Short', text='Short', style=shape.triangledown, location=location.abovebar, color=color.new(color.red, 0), textcolor=color.new(color.black, 0), size=size.tiny)
bull = countBuy > 1
bear = countSell > 1
barcolor(bull ? color.green : na)
barcolor(bear ? color.red : na)
// Set Alerts
alertcondition(ta.crossover(v_fastEMA, v_slowEMA), title='Bullish EMA Cross', message='Bullish EMA crossover')
alertcondition(ta.crossunder(v_fastEMA, v_slowEMA), title='Bearish EMA Cross', message='Bearish EMA Crossover')
// -----------------------------------------------------------------------------
// 4. STOCH RSI Hardcoding
// -----------------------------------------------------------------------------
// Note: All Stochastic/RSI inputs below are now hardcoded to common values (e.g., 3, 14).
// If you use custom StochRSI inputs, you must change these numbers as well.
smoothK = 3 // Hardcoded
smoothD = 3 // Hardcoded
lengthRSI = 14 // Hardcoded
lengthStoch = 14 // Hardcoded
rsi1 = ta.rsi(src, lengthRSI)
k = ta.sma(ta.stoch(rsi1, rsi1, rsi1, lengthStoch), smoothK)
d = ta.sma(k, smoothD)
bandno0 = 80 // Hardcoded
bandno2 = 50 // Hardcoded
bandno1 = 20 // Hardcoded
// Alerts
// Crossover Alert Toggles Hardcoded to their default values (false)
crossoverAlertBgColourMidOnOff = false
crossoverAlertBgColourOBOSOnOff = false
crossoverAlertBgColourGreaterThanOnOff = false
crossoverAlertBgColourLessThanOnOff = false
// Moving Average Inputs Hardcoded
maTypeChoice = 'EMA' // Hardcoded
maSrc = close // Hardcoded
maLen = 200 // Hardcoded
maValue = if maTypeChoice == 'EMA'
ta.ema(maSrc, maLen)
else if maTypeChoice == 'WMA'
ta.wma(maSrc, maLen)
else if maTypeChoice == 'SMA'
ta.sma(maSrc, maLen)
else
0
crossupCHECK = maTypeChoice == 'None' or open > maValue and maTypeChoice != 'None'
crossdownCHECK = maTypeChoice == 'None' or open < maValue and maTypeChoice != 'None'
crossupalert = crossupCHECK and ta.crossover(k, d) and (k < bandno2 or d < bandno2)
crossdownalert = crossdownCHECK and ta.crossunder(k, d) and (k > bandno2 or d > bandno2)
crossupOSalert = crossupCHECK and ta.crossover(k, d) and (k < bandno1 or d < bandno1)
crossdownOBalert = crossdownCHECK and ta.crossunder(k, d) and (k > bandno0 or d > bandno0)
aboveBandalert = ta.crossunder(k, bandno0)
belowBandalert = ta.crossover(k, bandno1)
bgcolor(color=crossupalert and crossoverAlertBgColourMidOnOff ? #4CAF50 : crossdownalert and crossoverAlertBgColourMidOnOff ? #FF0000 : na, title='Crossover Alert Background Colour (Middle Level)', transp=70)
bgcolor(color=crossupOSalert and crossoverAlertBgColourOBOSOnOff ? #fbc02d : crossdownOBalert and crossoverAlertBgColourOBOSOnOff ? #000000 : na, title='Crossover Alert Background Colour (OB/OS Level)', transp=70)
bgcolor(color=aboveBandalert and crossoverAlertBgColourGreaterThanOnOff ? #ff0014 : crossdownalert and crossoverAlertBgColourMidOnOff ? #FF0000 : na, title='Crossover Alert - K > Upper level', transp=70)
bgcolor(color=belowBandalert and crossoverAlertBgColourLessThanOnOff ? #4CAF50 : crossdownalert and crossoverAlertBgColourMidOnOff ? #FF0000 : na, title='Crossover Alert - K < Lower level', transp=70)
alertcondition(crossupalert or crossdownalert, title='Stoch RSI Crossover', message='STOCH RSI CROSSOVER')
KuberakshKuberaksh is a dynamic, trend-following indicator designed to identify market direction and potential reversals with high clarity. Built on the core logic of the HalfTrend, this script provides traders with clean, actionable signals and visual confirmation of channel deviation.
🔑 Key Features & Logic
Adaptive Trend Detection: The indicator calculates the main trend line (ht) by tracking the price using an Average True Range (ATR) and combining it with Exponential Moving Average (EMA) principles applied to the highest and lowest prices.
Deviation Ribbons: It plots dynamic ATR High and ATR Low ribbons around the HalfTrend line, colored green (buy) or red (sell), which visually represent the current market volatility and channel extremes.
Reversal Signals: Clear Buy and Sell signals are generated when the price breaks the prior trend channel and the internal high/low tracking confirms a switch in direction. These signals are marked by arrows and optional labels.
KuberakshKuberaksh is a dynamic, trend-following indicator designed to identify market direction and potential reversals with high clarity. Built on the core logic of the HalfTrend, this script provides traders with clean, actionable signals and visual confirmation of channel deviation.
🔑 Key Features & Logic
Adaptive Trend Detection: The indicator calculates the main trend line (ht) by tracking the price using an Average True Range (ATR) and combining it with Exponential Moving Average (EMA) principles applied to the highest and lowest prices.
Deviation Ribbons: It plots dynamic ATR High and ATR Low ribbons around the HalfTrend line, colored green (buy) or red (sell), which visually represent the current market volatility and channel extremes.
Reversal Signals: Clear Buy and Sell signals are generated when the price breaks the prior trend channel and the internal high/low tracking confirms a switch in direction. These signals are marked by arrows and optional labels.
TheStrat Failed 2 + 2 Continuation FTFC AlignmentTheStrat “Failed 2 + FTFC Alignment” spots a specific reversal/continuation pattern and layers on higher-timeframe confirmation so newer traders can focus on clean, high-probability setups.
WHAT IT LOOKS FOR
- A Failed 2 bar (price breaks the prior high/low but closes back through its open).
• Failed 2D (bullish): price takes out the previous low but finishes green.
• Failed 2U (bearish): price takes out the previous high but finishes red.
- The very next bar must be a true “2” continuation in the opposite direction (2U after a Failed 2D or 2D after a Failed 2U). This is the classic “2-2 reversal/continuation” from TheStrat playbook.
WHY IT MATTERS
When a failed 2 immediately resolves into a clean 2, it signals that buyers or sellers have seized control. These moves often become momentum pushes, especially if the broader timeframes agree.
HIGHER-TIMEFRAME FILTER
- Checks Monthly, Weekly, and 3-Day opens in real time.
- Bull signals only pass when all three are above their opens (full timeframe continuity up).
- Bear signals only pass when all three are below their opens (full timeframe continuity down).
WHAT YOU GET
- Optional labels that mark Failed 2 bars and the confirmed 2-2 signals.
- A compact “FTFC” icon on the exact bar where the continuation qualifies.
- Toggleable intrabar and bar-close alerts (select “Any alert() function call” for real-time alerts).
- A mini panel showing Monthly/Weekly/3-Day arrows so you can verify FTFC at a glance.
- Settings to require the continuation candle to be the same color as the failed bar for extra confirmation.
HOW TO USE
1. Add the script to your chart and confirm the panel arrows are aligned when icons appear.
2. Turn on the bar-close alert conditions for confirmed signals, or enable intrabar alerts for early warnings.
3. Combine the signal with your entry/stop rules (e.g., trigger on break of the signal bar and use the prior swing for risk).
This script serves as training wheels for traders learning TheStrat by automatically filtering for high-quality Failed-2 → 2 reversals that align across multiple timeframes.
Dynamic Support and Resistance with Trend LinesMain Purpose
The indicator identifies and visualizes dynamic support and resistance levels using multiple strategies, plus it includes trend analysis and trading signals.
Key Components:
1. Two Support/Resistance Strategies:
Strategy A: Matrix Climax
Identifies the top 10 (configurable) most significant support and resistance levels
Uses a "matrix" calculation method to find price levels where the market has historically reacted
Shows these as horizontal lines or zones on the chart
Strategy B: Volume Extremes
Finds support/resistance levels based on volume analysis
Looks for areas where extreme volume occurred, which often become key price levels
2. Two Trend Line Systems:
Trend Line 1: Pivot Span
Draws trend lines connecting pivot high and pivot low points
Uses configurable pivot parameters (left: 5, right: 5 bars)
Creates a channel showing the trend direction
Styled in pink/purple with dashed lines
Trend Line 2: 5-Point Channel
Creates a channel based on 5 pivot points
Provides another perspective on trend direction
Solid lines in pink/purple
3. Trading Signals:
Buy Signal: Triggers when Fast EMA (9-period) crosses above Slow EMA (21-period)
Sell Signal: Triggers when Fast EMA crosses below Slow EMA
Displays visual shapes (labels) on the chart
Includes alert conditions you can set up in TradingView
4. Visual Features:
Dashboard: Shows key information in a table (top-right by default)
Visual Matrix Map: Displays a heat map of support/resistance zones
Color themes: Dark Mode or Light Mode
Timezone adjustment: For accurate time display
5. Customization Options:
Universal lookback length (100 bars default)
Projection bars (26 bars forward)
Adjustable transparency for different elements
Multiple calculation methods available
Fully customizable colors and line styles
What Traders Use This For:
Entry/Exit Points: The EMA crossovers provide clear buy/sell signals
Risk Management: Support/resistance levels help set stop-losses and take-profit targets
Trend Confirmation: Multiple trend lines confirm trend direction
Key Price Levels: Identifies where price is likely to react (bounce or break through)
The indicator is quite feature-rich and combines technical analysis elements (pivots, EMAs, volume, support/resistance) into one comprehensive tool for trading decisions.
Money Heist V1⏳ Multi-Timeframe Entry Logic
The strategy derives its core signals from a higher timeframe (18 times the current chart resolution) using synthetic price data, aiming to filter out noise.Higher Timeframe (HTF): $18 \times$ current chart resolution.Trend Filter: Simplified RSI(7) is included, but currently set to always pass (RSI > 0).Backtesting Filter: Allows the user to restrict trading to a specific date range.
'Open/Close' Mode (Heikin Ashi-based)
Data Source: Heikin Ashi candles from the HTF.
Long Entry: HTF Heikin Ashi Close crosses over Open.
Short Entry: HTF Heikin Ashi Close crosses under Open.
Renko' Mode (EMA Cross-based)
Data Source: Renko blocks (ATR-based) from the HTF.
Long Entry: Fast EMA(2) crosses over Slow EMA(10) on the HTF Renko bars.
Short Entry: Fast EMA(2) crosses under Slow EMA(10) on the HTF Renko bars.
Trade Shifting Mechanism (Reversal Logic)
This is a key feature that makes the strategy aggressive in capturing reversals:
Detection: After any trade is successfully closed (due to TP, SL, or reversal), the strategy checks if it was a Long exit or a Short exit.
Delayed Entry Flag: A flag (delayedLongEntry or delayedShortEntry) is immediately set for the opposite direction.
Execution: This flag allows the strategy to enter the opposite trade on the next confirmed bar without needing a new, full-fledged signal from the primary entry logic, facilitating quick position flipping.
📊 Visual Feedback & Dashboard
Bar Colors: Price bars are colored green (bullish) or red (bearish) based on the current trend signal from the selected setup.
Entry/Exit Plots: Uses shapes on the chart (triangles for entry, cross for exit) to visualize signals.
Performance Dashboard: Displays essential metrics in a table on the chart:
Total Trades
Win Rate (%)
Net Profit ($)
Profit Factor
Current Position (LONG/SHORT/FLAT)






















