Alpha Trader University - Fractals & PivotsAlpha Trader University - Fractals & Pivots Indicator
A comprehensive TradingView indicator that identifies key market structure points:
• Fractals: Marks swing highs and lows with red triangles (resistance) and green triangles (support)
• Pivot Points: Labels market structure as HH (Higher High), LH (Lower High), LL (Lower Low), and HL (Higher Low)
• Customizable: Toggle fractals/pivots on/off, choose 3-bar or 5-bar fractal filtering, and customize colors
• Overlay: Plots directly on price chart for easy market structure analysis
Perfect for identifying trend changes, support/resistance levels, and market structure breaks in any timeframe.
圖表形態
Custom Candle-to-Candle ZoneBody Method: Uses math.max(open, close) for high and math.min(open, close) for low
Wick Method: Uses the full high and low of candles
Final Zone: Creates a rectangle that covers the range from start candle body/wick to end candle body/wick
Liquidity Sweep Trap Alert📈 Liquidity Trap Indicator – Bull & Bear Trap Detection
🧠 What It Does:
This indicator is designed to detect false breakouts – also known as liquidity traps – where price briefly breaks a key level (like support/resistance) and quickly reverses. These are often engineered by smart money to trigger retail stop losses and fill their own orders.
✅ Key Features:
🔎 Bull Trap: Price breaks above recent high, then closes back below → potential short signal.
🔎 Bear Trap: Price breaks below recent low, then closes back above → potential long signal.
📊 Volume Spike Filter: Confirms traps with unusual volume activity.
🔄 Engulfing Confirmation: Ensures trap is followed by a strong candle in opposite direction.
📉 Trend Filter (EMA): Filters trades only in direction of prevailing trend.
🧠 Trap Memory: Gives up to 2 candles after trap to confirm trade.
📍 Visual Labels: Clear “Trap ↑” or “Trap ↓” tags on the chart.
🎯 Best Used For:
High volatility assets like BTC, ETH, or NIFTY
Traders who want to avoid fake breakouts
Smart Money or Price Action-based systems
⚠️ Disclaimer:
This tool is meant for educational and experimental purposes. Do your own analysis before taking trades. Past performance is not indicative of future results.
Buysell Martingale Signal - CustomBuysell Martingale Signal - Custom Indicator
Introduction:
This indicator provides a dynamic buy and sell signal system incorporating an adaptive Martingale logic. Built upon the signalLib_yashgode9/2 library, it is designed for use across various markets and timeframes.
Key Features:
Primary Buy & Sell Signals: Identifies initial buy and sell opportunities based on directional changes derived from the signalLib.
Martingale Signals:
For Short (Sell) Positions: A Martingale Sell signal is triggered when the price moves against the existing short position by a specified stepPercent from the last entry price, indicating a potential opportunity to average down or increase position size.
For Long (Buy) Positions: Similarly, a Martingale Buy signal is triggered when the price moves against the existing long position by a stepPercent from the last entry price.
On-Chart Labels: Displays clear, customizable labels on the chart for primary Buy, Sell, Martingale Buy, and Martingale Sell signals.
Customizable Colors: Allows users to set distinct colors for primary signals and Martingale signals for better visual distinction.
Adjustable Sensitivity: Features configurable parameters (DEPTH_ENGINE, DEVIATION_ENGINE, BACKSTEP_ENGINE) to fine-tune the sensitivity of the underlying signal generation.
Webhook Support (Static Message Alerts): This indicator provides alerts with static messages for both primary and Martingale buy/sell signals. These alerts can be leveraged for automation by external systems (such as trading bots or exchange-provided Webhook Signal Trading services).
Important Note: When using these alerts for automation, an external system is required to handle the complex Martingale logic and position management (e.g., tracking steps, PnL calculation, hedging, dynamic quantity sizing), as this indicator solely focuses on signal generation and sending predefined messages.
How to Use:
Add the indicator to your desired chart.
Adjust the input parameters in the indicator's settings to match your specific trading symbol and timeframe.
For automation, you can set up TradingView alerts for the Buy Signal (Main/Martingale) and Sell Signal (Main/Martingale) conditions, pointing them to your preferred Webhook URL.
Configurable Parameters:
DEPTH_ENGINE: (e.g., 30) Controls the depth of analysis for the signal algorithm.
DEVIATION_ENGINE: (e.g., 5) Defines the allowable deviation for signal generation.
BACKSTEP_ENGINE: (e.g., 5) Specifies the number of historical bars to look back.
Martingale Step Percent: (e.g., 0.5) The percentage price movement against the current position that triggers a Martingale signal.
Labels Transparency: Adjusts the transparency of the on-chart signal labels.
Buy-Color / Sell-Color: Sets the color for primary Buy and Sell signal labels.
Martingale Buy-Color / Martingale Sell-Color: Sets the color for Martingale Buy and Sell signal labels.
Label size: Controls the visual size of the labels.
Label Offset: Adjusts the vertical offset of the labels from the candlesticks.
Risk Warning:
Financial trading inherently carries significant risk. Martingale strategies are particularly high-risk and can lead to substantial losses or even complete liquidation of capital if the market moves strongly and persistently against your position. Always backtest thoroughly and practice with a demo account, fully understanding the associated risks, before engaging with real capital.
400 REBEX SUPER BUY MAs, BB, and TriggersFor Swing Trading, use on higher TF only. TABLE is provided for easy reference. buy signal based on price crossing lower bollinger band or Price cross cross under 3 MAs. Good for large caps. // check fundamentals always for swing trading //
HedgeFI ICT V1.0 - Sessions, Gaps & ERLHedgeFI ICT Indicator has been created as a companion indicator to Michael Huddleston's ICT framework.
FVGs on current timeframe + HTF
HTF candles can be overlayed to help with Po3 identification
Break of structure when key swing high/lows are purged
Asia, London, NY sessions with session highs and lows
Enjoy!
500 SUPER 20 AND 67% EMA TABLE volRIndicator for swing trading , higher timeframes . Table provides the data of fall from recent high. (BUY Low and SELL high)
Stoch bot s50!Stoch S50 Strategy — Trend Analysis and Trading Force Strategy
Stoch S50 Strategy is a trend analysis strategy designed to help users assess entry and exit points based on price direction. It uses a combination of technical tools such as Stochastic, RSI, EMA and trading volume filters to increase the accuracy of signals. It is suitable for assets with clear trends such as S50 Futures.
Preliminary warning
This strategy is developed to be used as a tool to help analyze only. It should not be used as an automatic trading signal. Users should study the data, backtest and assess the risks by themselves before using it for real.
Key features of the strategy
Use the EMA50 line to assess the main trend.
Uptrend: Closing price is above EMA50
Downtrend: Closing price is below EMA50
Conditions for analyzing entry points
Uptrend case:
Stochastic < 25 (in the Oversold zone)
RSI > 50 (Strong momentum)
Trading volume is greater than the 20-day average (if enabled)
Downtrend case:
Stochastic > 75 (in the Overbought zone)
RSI < 50
Selling volume is greater than the 20-day average (if enabled)
Risk management system in the strategy example
Set automatic profit (Take Profit) at 120 ticks
Limit loss (Stop Loss) at 40 ticks
There is a Trailing Stop system to lock in profits if the price moves in the desired direction (40 points + offset 15)
Important note
This strategy is designed by considering the characteristics of assets such as S50 Futures, which have clear trends and volumes. Users who are interested in using it with individual stocks, crypto or Forex should backtest and adjust the parameters to suit the asset before actual use.
5th Candle Breakout (Selected Date)✅ How to Use
🔁 Set the targetDate input to any date you want to test the setup on.
🕒 Use this on 30-minute timeframe.
📊 Works great on NIFTY, BANKNIFTY, or any F&O instrument.
📌 Uses body-close breakout during 6th or 7th candle.
🎯 Plots real entry, SL, and 1x target.
Shooting Star ORB🧠 Indicator Name: "First Candle Shooting Star + ORB"
📌 Purpose
This indicator detects when the first candle of the day forms a Shooting Star pattern and then monitors for a breakout beyond its range. It visually marks the pattern and the breakout with boxes and provides real-time alerts and a status table.
🔍 What It Does Step-by-Step
1. 📅 Detects the Start of a New Trading Day
Uses ta.change(time("D")) to identify a new trading day.
When a new day starts, it checks if the very first candle of the session is a Shooting Star.
2. 🕯️ Identifies a Shooting Star Pattern
A candle is labeled a Shooting Star if:
It has a small body compared to the full candle range.
It has a long upper shadow at least 2× the body.
It has a short or tiny lower shadow.
All these criteria are adjustable through inputs.
3. 📦 Draws a Box for the First Candle Range
If a Shooting Star is found in the first candle of the day:
It draws a red shaded box covering the high and low of that candle.
The box visually marks the potential Opening Range.
4. 💥 Detects Breakout from Shooting Star Candle
After the first candle:
If price moves above or below the range by a specified % (like 1%), it flags a breakout.
A blue shaded box is drawn at the breakout candle for visual confirmation.
5. 🔔 Alerts
🔴 Shooting Star Detected: Alerts when the first candle is a shooting star.
🔵 Breakout Detected: Alerts when the price breaks out of the first candle’s range.
6. 📊 Displays Real-Time Info Table
A small table is shown on the chart:
🕯️ Pattern: “Shooting Star” or blank
💥 Breakout: “Yes” or “No”
⏱️ The timeframe being analyzed (e.g., “5” for 5-minute)
[PH] Close Price Line_FinalThis indicator uses colors to show whether the current price is rising, falling, or moving sideways.
Green indicates a rising price.
Red indicates a falling price.
Yellow indicates sideways movement.
Google Trends: Bitcoin [Bitcoin CounterFlow]This script displays weekly Google Trends data for the term "Bitcoin". It can help visualize public interest over time and compare it with price action or other indicators. Data is manually updated each week based on Google Trends. Values range from 0 to 100, where 100 represents peak popularity for the selected term.
Use this indicator to observe how shifts in search volume correlate with market movements. It is not a trading signal by itself but can be useful for sentiment analysis.
Script created and published by Bitcoin CounterFlow.
Breakout Scanner with VWAP + RSI + MACD + Volume SpikePRICE & MOVING AVERAGES
🟠 MA(10), MA(50), MA(200)
Purpose: Track price trends over different time horizons
MA10 – Very short-term trend (micro pullbacks)
MA50 – Intermediate trend (support/resistance)
MA200 – Long-term sentiment (bullish or bearish overall)
Use: Crossovers indicate trend reversals. E.g., MA10 < MA50 = bearish.
📉 EMA(9), EMA(12), EMA(34)
EMA = Exponential Moving Average
Reacts faster than MA, used for quick entries/exits
Common Strategy: EMA 9 crossing below EMA 34 → short signal
You’re currently in a downtrend, as all EMAs slope down and price is below them.
🔵 VWAP (Volume Weighted Average Price)
Purpose: Institutional benchmark
Traders use VWAP as a mean reversion level.
If price is below VWAP → bearish control; above → bullish control.
In your chart: QQQ is below VWAP, suggesting institutional selling.
📊 BOLL(20) = Bollinger Bands
Tracks volatility using 20-period MA ± 2 std. dev.
Bands widen when volatility increases.
In your chart: Price is riding the lower band → bearish pressure
🔁 RSI(14) = Relative Strength Index
Measures momentum
Ranges from 0 to 100
Above 70 = Overbought
Below 30 = Oversold
Current RSI is around 30–40, suggesting weak momentum, near oversold
📉 MACD (12, 26, 9)
MACD Line (blue) = 12EMA - 26EMA
Signal Line (red) = 9 EMA of MACD line
Histogram = MACD – Signal
When MACD crosses below Signal line → bearish
Your chart: Histogram is red and increasing → bearish strength increasing
✅ SUMMARY FOR QQQ CHART (LIVE INTERPRETATION)
Indicator Reading Signal
MA/EMA All sloping down ❌ Bearish
VWAP Price below VWAP ❌ Bearish
Bollinger Price hugging lower band ❌ Bearish
RSI(14) ~30-40 ⚠️ Weak
MACD Red histogram growing ❌ Bearish
Would you like me to generate a script-based trade signal system combining EMA + RSI + MACD for QQQ intraday calls/puts?
Codigo Trading 1.0📌Codigo Trading 1.0
This indicator strategically combines SuperTrend, multiple Exponential Moving Averages (EMAs), the Relative Strength Index (RSI), and the Average True Range (ATR) to offer clear entry and exit signals, as well as an in-depth view of market trends. Ideal for traders looking to optimize their operations with an all-in-one tool.
🔩How the Indicator Works:
This indicator relies on the interaction and confirmation of several key components to generate signals:
SuperTrend: Determines the primary trend direction. An uptrend SuperTrend signal (green line) indicates an upward trend, while a downtrend (red line) signals a downward trend. It also serves as a guide for setting Stop Loss and Take Profit levels.
EMAs: Includes EMAs of 10, 20, 55, 100, 200, and 325 periods. The relationship between the EMA 10 and EMA 20 is fundamental for confirming the strength and direction of movements. An EMA 10 above the EMA 20 suggests an uptrend, and vice versa. Longer EMAs act as dynamic support and resistance levels, offering a broader view of the market structure.
RSI: Used to identify overbought (RSI > 70/80) and oversold (RSI < 30/20) conditions, generating "Take Profit" alerts for potential trade closures.
ATR: Monitors market volatility to help you manage exits. ATR exit signals are triggered when volatility changes direction, indicating a possible exhaustion of the movement.
🗒️Entry and Exit Signals:
I designed specific alerts based on all the indicators I use in conjunction:
Long Entries: When SuperTrend is bullish and EMA 10 crosses above EMA 20.
Short Entries: When SuperTrend is bearish and EMA 10 crosses below EMA 20.
RSI Exits (Take Profit): Indicated by "TP" labels on the chart, when the RSI reaches extreme levels (overbought for longs, oversold for shorts).
EMA 20 Exits: When the price closes below EMA 20 (for longs) or above EMA 20 (for shorts).
ATR Exits: When the ATR changes direction, signaling a possible decrease in momentum.
📌Key Benefits:
Clarity in Trend: Quickly identifies market direction with SuperTrend and EMA alignment.
Strategic Entry and Exit Signals: Receive timely alerts to optimize your entry and exit points.
Assisted Trade Management: RSI and ATR help you consider when to take profits or exit a position.
Intuitive Visualization: Arrows, labels, and colored lines make analysis easy to interpret.
Disclaimer:
Trading in financial markets carries significant risks. This indicator is an analysis tool and should not be considered financial advice. Always conduct your own research and trade at your own risk.
LevelsThis indicator plots the following levels:
- Current Day High and Low
- Previous Day High and Low
- Current Week High and Low
- Last Week High and Low
- Settlement Price
- Asian High and Low
- London High and Low
GStrategy XRP 4hRSI + Smart Money Trading Strategy
This strategy combines RSI (Relative Strength Index) with Smart Money detection to identify high-probability reversal trades in trending markets. It uses strict entry/exit rules with a 10% hard stop-loss to manage risk.
Strategy Logic
1. Entry Conditions
Long Entry (Buy):
RSI < 30 (Oversold condition)
Smart Money Confirmation:
Bullish candle (close > open)
Volume > 35-period SMA (unusual buying pressure)
Price hits a 5-bar low (potential reversal level)
Short Entry (Sell):
RSI > 70 (Overbought condition)
Smart Money Confirmation:
Bearish candle (close < open)
Volume > 20-period SMA (unusual selling pressure)
Price hits a 5-bar high (potential rejection level)
2. Exit Conditions
Long Exit: RSI ≥ 70 (Take profit at overbought)
Short Exit: RSI ≤ 40 (Take profit at mid-level)
Stop-Loss: Hard 10% stop on all trades
3. Position Management
No overlapping trades (only 1 position at a time).
Stop-loss visualized on the chart (red line).
Key Features
✅ RSI Filter: Avoids false reversals by requiring extreme RSI levels.
✅ Smart Money Detection: Confirms institutional activity via volume + price action.
✅ Asymmetric Exits:
Longs exit at RSI 70 (full overbought).
Shorts exit earlier at RSI 40 (conservative profit-taking).
✅ Strict Risk Control: 10% stop-loss prevents large drawdowns.
Indicators Used
RSI (14-period)
Volume SMA (20 for shorts, 35 for longs)
5-bar High/Low for price extremes.
ICT/SMC Complete ToolKit Indicator / RussoICT/SMC Complete Toolkit / Russo
The ultimate all-in-one indicator implementing the complete ICT (Inner Circle Trader) and SMC (Smart Money Concepts) methodology. This comprehensive toolkit identifies institutional trading patterns and smart money footprints across all market conditions.
Complete Feature Set:
• Liquidity Zones: Buy-Side/Sell-Side liquidity identification and alerts
• Order Blocks: Automatic detection of institutional order zones with visual boxes
• Fair Value Gaps: Real-time FVG identification with auto-fill tracking
• Market Structure: BOS (Break of Structure) and ChoCH (Change of Character) analysis
• Displacement Detection: Identifies institutional impulse moves and smart money activity
• Comprehensive Dashboard: Real-time status of all features and market conditions
• Advanced Alerts: Multi-layered notification system for all signal types
How to Use:
1- Enable desired features through the intuitive settings panel
2- Wait for confluence of multiple signals (liquidity + order blocks + structure)
3- Enter trades when smart money concepts align for high-probability setups
4- Use the dashboard to monitor market structure and active zones
---------------------------------------------------------------------------------------------------------------------
Features:
• Automatic detection of pivot highs and lows
• Buy-Side Liquidity (BSL) and Sell-Side Liquidity (SSL) marking
• Alerts when price approaches zones
• Informative dashboard
• Automatic detection of bullish and bearish order blocks
• Fair value gaps identification
• Automatic FVG filling
• Alerts for order block tests
• Market structure (BOS/ChoCH)
• Displacement detection
• Complete dashboard
• Comprehensive alert system
Complete Features
1. Liquidity Zones
• Buy-Side and Sell-Side Liquidity
• Automatic pivot detection
• Configurable extension
2. Order Blocks
• Detection based on displacement
• Color-coded boxes by type
• Automatic cleanup of old OBs
3. Fair Value Gaps
• Automatic identification
• Real-time filling
• Different colors by direction
4. Market Structure
• BOS (Break of Structure): Solid lines
• ChoCH (Change of Character): Dotted lines
• Automatic trend change detection
5. Displacement
• Impulse movement detection
• ATR-based threshold
• Color-coded boxes for identification
Complete Dashboard
Located in the bottom right corner, shows:
• Status of each feature (ON/OFF)
• Count of active elements
• Current trend (UP/DOWN)
• Current ATR
• Current price
DISCLAIMER: The use of this indicator is entirely the user's responsibility. We accept no liability for trading losses and provide no profit guarantees. Always trade responsibly and within your risk tolerance.
CISD Levels by HAZEDCISD Levels by HAZED - Advanced Market Structure Analysis
📊 Overview
The CISD Levels indicator is a sophisticated market structure analysis tool that automatically identifies and plots critical support and resistance levels based on Change in State Direction (CISD) methodology. This indicator helps traders visualize key market turning points and potential breakout/breakdown levels with precision.
🎯 What are CISD Levels?
CISD (Change in State Direction) levels represent significant price points where market sentiment shifts from bullish to bearish or vice versa. These levels are dynamically calculated based on:
Market structure breaks (higher highs/lower lows)
Pullback patterns and trend continuations
Real-time price action analysis
Dynamic level updates as market conditions evolve
✨ Key Features
🔥 Smart Level Detection
Automatically identifies bullish (+CISD) and bearish (-CISD) levels
Real-time updates as market structure evolves
Intelligent pullback detection algorithm
🎨 Full Customization
Colors: Customize bullish/bearish level colors
Line Styles: Choose from solid, dotted, or dashed lines
Text Labels: Fully customizable text, size, and font options
Transparency: Adjustable line transparency (0-100%)
Extensions: Control how far lines extend into the future
📈 Historical Analysis
Show All Levels: Option to display historical CISD levels
Max Levels Control: Limit the number of historical levels shown (1-50)
Level Management: Automatic cleanup of old levels
🚨 Smart Alerts
Bullish Alerts: Get notified when price breaks above +CISD levels
Bearish Alerts: Get notified when price breaks below -CISD levels
Alert Frequency: Choose between "Once Per Bar" or "Once Per Bar Close"
📊 Statistics Table
Market State: Current bullish/bearish market condition
Active Levels: Count of currently active CISD levels
Latest Levels: Display of most recent +CISD and -CISD values
Positioning: 5 different table positions available
🛠️ How to Use
For Swing Traders:
Use CISD levels as key support/resistance zones
Enter positions on level breaks with proper risk management
Set stop losses below/above opposite CISD levels
For Day Traders:
Watch for price reactions at CISD levels
Use levels for entry/exit timing
Combine with volume analysis for confirmation
For Position Traders:
Identify major market structure changes
Use higher timeframe CISD levels for strategic entries
Monitor level breaks for trend continuation signals
⚙️ Settings Guide
CISD Level Settings
Bullish/Bearish Colors: Customize level appearance
Custom Text: Add your own labels to levels
Alert Setup: Enable notifications for level breaks
Historical Levels: Choose to show past levels for context
Appearance Customization
Line Width: 1-5 pixel thickness options
Line Style: Solid, dotted, or dashed
Extension Bars: Control future projection (1-50 bars)
Text Options: Size, font, and bold formatting
Statistics Table
Enable/Disable: Toggle table visibility
Position: 5 placement options on chart
Real-time Data: Live market state and level information
🎯 Best Practices
Multi-Timeframe Analysis: Use CISD levels across different timeframes for confluence
Risk Management: Always use proper position sizing and stop losses
Confirmation: Combine with volume, momentum, or other indicators
Market Context: Consider overall market conditions and news events
Backtesting: Test the levels on historical data before live trading
📋 Technical Specifications
Overlay: True (plots directly on price chart)
Max Lines: 500 (handles multiple historical levels)
Max Labels: 500 (supports extensive labeling)
Real-time Updates: Dynamic level calculation and alerts
Performance: Optimized code for smooth chart operation
🚀 Why Choose CISD Levels?
Precision: Advanced algorithm for accurate level identification
Flexibility: Extensive customization options for any trading style
Reliability: Proven market structure analysis methodology
User-Friendly: Intuitive settings with helpful tooltips
Professional: Clean, professional appearance on any chart
📞 Support & Updates
This indicator is actively maintained and updated. For questions, suggestions, or feature requests, feel free to reach out through TradingView messaging.
⚠️ Disclaimer: This indicator is for educational and informational purposes only. Always conduct your own analysis and risk management. Past performance does not guarantee future results.
30m CONSOLIDATION DetectorWhat This Script Does:
Runs only on the 30-minute timeframe
Checks that both MA20 and EMA50 are above MA200
Confirms that both MA20 and EMA50 are within the high-low range of the same candle
Prints a white "CONSOLIDATION" label below the candle
Waits 20 candles before printing again
Intraday RDR (Long & Short)This Indicator show the RDR-Red Dog reversal candles for intraday trading.
Jaehee ChecklistJaehee Checklist is a multi-factor visual indicator for TradingView that combines key technical conditions into a single, streamlined display.
It helps traders evaluate trend direction and market strength at a glance using multiple criteria including:
T3 trend direction, EMA alignment, multi-timeframe SMA structure, higher timeframe EMA confluence, Supertrend signals, ADX strength, and RSI momentum.
Each factor outputs a "Long", "Short", or "None" decision, and the combined result offers a summarized market bias as "Total: Long/Short/Neutral".
No more guesswork — just a clean, checklist-style readout of trend health and momentum.
SDR Market Structure (liv3) 1.0🧠 SDR Market Structure (LIV3) v1.0
Precision-Based Market Structure & Momentum Scalping
Strategy Type: Market Structure-Based Scalping
Built For: Intraday, Scalping, Trend-Following or Reversal entries with confirmation filters
Assets: All (optimized for FX and indices)
Timeframes: 1min to 15min (ideal for scalping); higher TFs can be used for structure alignment
🎯 Strategy Overview
SDR Market Structure is a robust scalping strategy that combines structural market context (Change-of-Character, Break of Structure) with a modular system of technical filters that advanced traders can toggle on/off. The strategy is adaptable and surgical, designed to find high-probability trade entries during momentum shifts, liquidity grabs, and trend continuations.
This script supports fine-tuned risk management, multiple confirmation layers, and intraday session filtering, allowing experienced traders to tailor it for precision-based trading in varying volatility regimes.
🔍 Core Logic: CHoCH and Market Structure
At the heart of SDR Scalper is Change-of-Character (CHoCH) detection:
Bullish CHoCH: Occurs when price breaks above a recent swing high (pivot) after making a lower low, implying a potential reversal or continuation.
Bearish CHoCH: Triggers when price breaks below a recent swing low after making a higher high.
Once a CHoCH is identified:
Entry is confirmed only if all selected filters pass, ensuring high-confidence setups.
SL is placed at the most recent swing low/high or an optional looser SL based on fractals.
Break-even logic moves SL to entry upon hitting 1R.
Risk-Reward ratio is fully customizable.
🛠️ Advanced Filter Modules
Each filter module below can be toggled independently, allowing for custom filtering strategies based on trading conditions.
1️⃣ HTF EMA Filter
Purpose: Confirms trend bias using a higher timeframe EMA (e.g., 55 EMA on 15-min TF).
Logic:
Longs: Entry only allowed if price > HTF EMA
Shorts: Entry only allowed if price < HTF EMA
Why Use It: Prevents counter-trend trades. Excellent when used during trending sessions.
Best Paired With: EMA crossover filter or RSI for intraday trend alignment.
2️⃣ EMA Crossover Filter
Inputs: Fast EMA (default 10), Slow EMA (default 50)
Logic:
Longs: Fast EMA must be above Slow EMA
Shorts: Fast EMA below Slow EMA
Enhancement: Adds a moving average structure filter to CHoCH. Good for filtering false breakouts during sideways markets.
Combo Tip: Use alongside RSI/MACD filters to confirm trend momentum.
3️⃣ RSI Filter
Default Period: 14
Logic:
Longs: RSI > threshold (default 50)
Shorts: RSI < threshold
Edge: Useful for momentum confirmation in trending conditions.
Advanced Use:
Raise thresholds to 60/40 in strong trends.
Combine with MACD to filter momentum exhaustion.
4️⃣ MACD Histogram Filter
MACD Histogram > 0: Long entries only
MACD Histogram < 0: Short entries only
Purpose: Measures positive/negative momentum shifts, helpful in volatile breakouts.
Pro Tip: Combine with ROC filter in fast-moving markets for maximum edge.
5️⃣ Rate of Change (ROC) Filter
Default: 9-period
Logic:
Longs: ROC > threshold (default 0.0)
Shorts: ROC < threshold
Why It Works: Captures short bursts of momentum often missed by other lagging indicators.
Combos That Work:
MACD + ROC: Double momentum filter
ROC + EMA crossover: Catch high-speed trend continuations
6️⃣ Stochastic RSI Filter
Parameters: Customizable %K and %D smoothing
Logic:
Longs: StochRSI > threshold and K > D
Shorts: StochRSI < threshold and K < D
Use Case: Effective for mean-reversion and momentum crossovers near S/R zones.
Advanced Tip: Use in ranging markets or to fade extended trends.
7️⃣ Time Filter
Customize Start/End Time: Default is 09:30 - 16:00 (New York session)
Supports Time Zones: Input via string (e.g., GMT+0, EST, etc.)
Visual Aid: Background shading for valid sessions.
Benefits:
Avoids low-liquidity or overnight trading periods.
Prevents false signals in pre/post-market sessions.
8️⃣ Loose Stop-Loss Option
If Enabled: SL placed 1 fractal beyond the last pivot.
Why: Helps in volatile assets like crypto where swing points are commonly breached before reversals.
Note: Should be used with tight risk controls or lower position sizing.
💼 Risk Management & Break-Even Logic
Risk-to-Reward Ratio: Adjustable via input
Auto TP & SL: Based on defined RR and recent structure
Break-Even Feature: Moves SL to entry after 1R is reached to protect capital
📈 Strategy Display Elements
CHoCH & BoS Labels: Visual confirmation of structure breaks
Liquidity Sweep (✖): Optional display for potential stop hunts
Trend Color Candles: Highlights bullish or bearish candle clusters
Session Overlay: Displays active time window on chart
⚙️ Recommended Configurations
Objective Suggested Filters
Trend Scalping HTF EMA + EMA Crossover + RSI
Volatility Breakouts ROC + MACD Histogram + Time Filter
Mean Reversion Stochastic RSI + RSI
Structure-Only Mode Disable all filters except Time Filter
Conservative Mode Enable all filters with tightened thresholds
📌 Final Notes
This script is highly modular and is not a one-size-fits-all strategy. It is a framework that allows advanced traders to apply contextual judgment and optimize entries based on confluence. Extensive backtesting per asset and timeframe is highly recommended.
🛠️ Strategy Parameters Summary
✅ Market Structure Entry (CHoCH)
✅ Smart SL & Break-Even Logic
✅ Modular Momentum Filters (RSI, MACD, ROC, StochRSI)
✅ Trend Filters (HTF EMA, EMA Cross)
✅ Session Filtering & Visualization
✅ Liquidity Sweeps (optional)
pinescript version5
P4H SFP StrategySignals Long or Short Entries based on Previous 4H low/high. Entry criteria are SFP/Rejection of P4h L/H and candle close in opposite direction. RSI must be 65/35 but can customize. Stop/TP 1% from entry. All of this is customizable. Stats are shown and you can change the time range of that as well.