TrendR - Algo v6
Overview
The TrendR Algorithm is a sophisticated trend-following trading strategy implemented in Pine Script for TradingView. This professional-grade algorithm combines advanced trend detection, comprehensive risk management, and intelligent market condition filtering to deliver consistent trading performance across various market conditions.
Core Algorithm Architecture
Volatility-Adaptive Band System
The algorithm incorporates a sophisticated volatility measurement system that adapts to changing market conditions.
Intelligent Trend State Management
The TrendR algorithm features a sophisticated trend state tracking system with hysteresis to prevent false signals.
Advanced Risk Management System
Professional 1:3 Risk-Reward Framework
The algorithm implements a comprehensive risk management system designed for professional trading.
Customizable Risk-Reward Ratios : Default 1:3 ratio with user adjustment from 1:1 to 1:10
Percentage-Based Stop Loss : Configurable stop loss distance as a percentage of entry price (default: 2%)
Dual Take Profit Methods :
- Risk-reward ratio based calculation (recommended for consistent risk management)
- Fixed percentage take profit for advanced users requiring specific targets
Automatic Order Management : Seamless integration with TradingView's strategy engine for precise execution
Position Management Features
Entry Price Tracking : Precise entry price recording for accurate SL/TP calculations
Dynamic Level Updates : Real-time calculation and display of stop loss and take profit levels
Position Size Control : Configurable position sizing based on account equity percentage (default: 1%)
Commission and Slippage : Built-in consideration for realistic trading costs (0.1% commission, 3 ticks slippage)
Risk Management Calculations
The system employs sophisticated mathematical models for risk calculation:
Stop Loss Distance : Calculated as percentage of entry price for consistent risk exposure
Take Profit Distance : Dynamically calculated based on stop loss distance multiplied by risk-reward ratio
Position Sizing : Maintains consistent risk per trade through percentage-based allocation
Risk-Adjusted Returns : Optimizes for risk-adjusted performance rather than absolute returns
Entry and Exit Management
Automatic Position Closure : Intelligently closes opposing positions before entering new trades
Risk Management Integration : Automatically places stop loss and take profit orders upon entry
Order Sequencing : Ensures proper order execution sequence to prevent position conflicts
Alert System : Comprehensive alert notifications for entry, exit, and risk management events
Signal Quality Enhancement
The algorithm incorporates multiple layers of signal filtering:
Volatility Filtering : Adjusts signal sensitivity based on current market volatility
Trend Strength Assessment : Evaluates trend momentum before signal generation
False Signal Reduction : Employs hysteresis mechanism to prevent whipsaw trades
Market Condition Awareness : Adapts signal generation to current market regime
Visual Enhancement System
Chart Visualization Features
The TrendR algorithm provides extensive visual feedback for enhanced trading decision-making:
Trend Line Plotting : Dynamic trend lines with color-coded direction indication
Basis Line Display : Central reference line showing the calculated trend basis
Support/Resistance Levels : Visual representation of dynamic support and resistance levels
Risk Management Levels : Clear display of stop loss and take profit levels with color coding
Color-Coded Market States
Bullish Trend : Green coloring system for upward trend conditions
Bearish Trend : Red coloring system for downward trend conditions
Gradient Background : Intensity-based background coloring showing trend strength progression
Bar Coloring : Optional candlestick coloring based on current trend direction
Information Display System
Signal Labels : Clear entry point markers with integrated risk management information
Risk Management Table : Real-time display of current position parameters and risk metrics
Dynamic Updates : Live updating of all visual elements as market conditions evolve
Performance Metrics : Visual representation of strategy performance statistics
Risk Management Configuration
Enable/Disable Toggle : Complete control over risk management system activation
Risk-Reward Ratio : Customizable from 1:1 to 1:10 with 0.1 increments (default: 1:3)
Stop Loss Percentage : Adjustable from 0.1% to 10% with 0.1% increments (default: 2%)
Take Profit Method : Choice between ratio-based or fixed percentage calculation
Fixed Take Profit : Alternative percentage-based take profit (range: 0.1%-20%, default: 6%)
Visualization Controls
Color Customization : User-defined colors for bullish and bearish market conditions
Display Toggles : Individual control over bars, background, signals, and risk levels
Chart Elements : Selective display of various algorithm components
Information Table : Configurable display of real-time strategy metrics
Alert and Notification System
Comprehensive Alert Framework
The TrendR algorithm provides multiple alert types for different trading scenarios:
Entry Signals : Immediate notifications for long and short entry opportunities
Risk Management Alerts : Specific alerts for positions with active risk management
Position Risk Alerts : Advanced warnings when positions approach stop loss levels
Strategy Alerts : Dynamic alerts with real-time risk management data integration
Alert Message Architecture
Static Alerts : Consistent alert messages for basic signal notifications (compatible with Pine Script requirements)
Dynamic Strategy Alerts : Real-time data including entry prices, SL/TP levels, and risk ratios
Risk Event Alerts : Specialized notifications for stop loss and take profit activations
Market Condition Alerts : Notifications for significant market regime changes
Performance Characteristics
Optimal Market Conditions
The TrendR algorithm demonstrates exceptional performance in:
Trending Markets : Clear directional moves with sustained momentum and defined trend channels
Medium to Long-term Timeframes : Reduced noise environment with clearer trend identification
Volatile Assets : Benefits from volatility-adaptive band system and dynamic risk management
Liquid Markets : Optimal execution environment with minimal slippage impact
Algorithm Strengths
Trend Following Excellence : Captures major market moves with minimal lag through advanced EMA system
Risk Management Integration : Professional-grade position protection with customizable parameters
Market Adaptability : Automatically adjusts to changing market volatility conditions
Visual Clarity : Comprehensive chart visualization system for enhanced decision support
Customization Flexibility : Extensive parameter adjustment capabilities for different trading styles
Performance Metrics
Win Rate Optimization : Designed to maximize risk-adjusted returns rather than win percentage
Drawdown Control : Risk management system limits maximum position risk exposure
Profit Factor Enhancement : 1:3 risk-reward ratio improves overall profit factor
Consistency : Standardized risk per trade creates predictable performance patterns
Implementation Details
Technical Specifications
Platform : TradingView Pine Script v6 with full strategy functionality
Strategy Type : Overlay strategy with integrated risk management system
Position Sizing : Percentage of equity based with configurable allocation
Commission Model : Percentage-based commission structure with realistic slippage modeling
Execution Model : Market orders with automatic stop loss and take profit placement
Backtesting Framework
Date Range Control : Configurable start and end dates for comprehensive historical testing
Performance Metrics : Detailed strategy performance analysis with risk-adjusted metrics
Risk Analytics : Comprehensive risk measurement including maximum drawdown and Sharpe ratio
Trade Analysis : Individual trade performance tracking with entry/exit analysis
Code Architecture
The implementation follows professional software development principles:
Modular Design : Separate functions for trend calculation, risk management, and visualization
Single Responsibility : Each function handles a specific aspect of the algorithm
Clean Code Structure : Well-organized sections with comprehensive commenting
Error Handling : Robust handling of edge cases and market conditions
Implementation
Chart patterns
First 15-min Candle High/LowFirst 15-Min Candle High/Low – Intraday Range Indicator
This script plots the High and Low of the first 15-minute candle of the trading day using:
🟢 Green horizontal line for the first 15-min High
🔴 Red horizontal line for the first 15-min Low
These levels are commonly used by intraday traders as:
Breakout zones
Support/resistance levels
Entry/exit reference points
The script is designed to reset daily and is especially helpful for index and equity traders operating during market open volatility.
⏰ Optimized for markets operating in IST (Indian Standard Time), such as NSE/BSE, starting at 09:15 AM.
🛠️ How to Use:
Apply on 15-minute or lower timeframes
Ideal for breakout strategies, opening range setups, or volatility scalping
ATR Spike KienthogoATR Spike Kienthogo
This indicator, titled "ATR Spike Kienthogo", is designed to visualize volatility spikes in the market by comparing the current Average True Range (ATR) against a dynamic threshold. The threshold is calculated as an EMA-smoothed ATR multiplied by a user-defined factor. When the current ATR exceeds this threshold, the indicator highlights it as a spike event, further classified by price direction (up or down).
The script features:
Configurable ATR smoothing methods: RMA, SMA, EMA, WMA.
Customizable spike detection threshold via spike_multiple.
Conditional color plotting of ATR:
Spike + Price Up → Green
Spike + Price Down → Red
Non-spike → User-defined neutral color, adaptive to candle direction (greenish for bullish candles, reddish for bearish candles).
This script is especially useful for:
Detecting volatility expansions.
Enhancing entry/exit timing during strong directional moves.
Confirming breakout strength or trap signals in low-volatility regimes.
The logic maintains clean separation between spike vs. non-spike conditions and offers full control over color coding for better visual integration in multi-indicator environments.
My script5
indicator("Bounce from 150-DMA", overlay=true)
// ממוצע נע 150 ימים
ma150 = ta.sma(close, 150)
// תנאי: מחיר קרוב לממוצע נע (±1%)
proximity = abs(close - ma150) / ma150 < 0.01
// תנאי: נר נוכחי סוגר מעל קודמו (עלייה)
bullish_candle = close > close
// תנאי: נר נוכחי מעל ממוצע נע
above_ma = close > ma150
// כל התנאים יחד – Bounce מה-150DMA
bounce_signal = proximity and bullish_candle and above_ma
// ציור אינדיקטור גרפי
plot(ma150, color=color.orange, title="MA150")
plotshape(bounce_signal, location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small, title="Bounce
DAILY LEVELDAILY LEVEL Indicator User Guide-especially for crypto
This indicator automatically draws five horizontal lines on your chart, representing the previous trading day's High, Low, Mid (average of High and Low), Open, and Close prices. Each line is labeled with its corresponding value. It is designed for intraday traders to quickly reference key price levels from the previous day, helping to identify support/resistance and make trading decisions.
"pdH / pdL / pdEQ / pdOpen / pdClose" Correspond to the previous day's High, Low, Mid, Open, and Close, respectively.
You can customize the color and style (solid, dotted, dashed, arrow, etc.) for each line.
"Line Width (width)": Sets the thickness of all horizontal lines (range: 1–5).
"Distance": Sets the horizontal offset of the labels from the current bar to avoid overlapping with candles (range: 1–200).
1.Add the Indicator
2.On the TradingView chart, click "Indicators," search for, and add this script.
3.Customize Parameters: Adjust the color, style, line width, and label distance for each line in the settings panel to suit your preferences.
4.Indicator Display: The indicator will automatically display the previous day's High, Low, Mid, Open, and Close as horizontal lines on the far right of the chart, with value labels (e.g., pdH: 1234.56) next to each line.
DAILY LEVEL 指标用户说明
本指标用于在K线图上自动绘制加密货币前一交易日的高点(High)、低点(Low)、中点(Mid)、开盘价(Open)、收盘价(Close)五条水平线,并在每条线上显示对应的数值标签。适用于日内交易者快速参考前一日关键价位,辅助判断支撑/阻力和交易决策。
pdH / pdL / pdEQ / pdOpen / pdClose分别对应前一日的高点、低点、中点、开盘价、收盘价。
每项都可自定义线条颜色和样式(实线、虚线、点划线、箭头等)。
线宽width: 设置所有水平线的粗细,范围1~5。
distance距离: 设置标签距离当前K线的水平偏移量,避免标签遮挡K线,范围1~200。
添加指标:在TradingView图表页面,点击“指标”,搜索并添加本脚本。
自定义参数:可在参数面板中调整每条线的颜色、样式、线宽和标签距离,满足个性化需求。
指标显示:指标会自动在图表最右侧显示前一日的高、低、中、开、收五条水平线,并在每条线右侧显示对应的数值标签(如:pdH: 1234.56)。
ICT IRL & ERL ZonesICT IRL & ERL Zones
This indicator visualizes Internal Range Liquidity (IRL) and External Range Liquidity (ERL) levels, based on ICT (Inner Circle Trader) concepts. It's designed to help traders identify key liquidity zones that often act as magnet levels or reversal points in price action.
🔍 How It Works
Lookback Range: The script analyzes the highest high and lowest low over a user-defined number of candles (default: 50).
IRL (Internal Range Liquidity):
Plots the highest high and lowest low within the lookback period.
Represented as orange lines and a shaded zone.
ERL (External Range Liquidity):
Extends the IRL boundaries by a small buffer (50 ticks above/below).
Visualizes zones where price may reach for liquidity beyond the current range.
Plotted as a green (high) and red (low) line.
⚙️ Inputs
Lookback Range: Number of candles to calculate the range (min 5).
Show IRL: Toggle visibility for Internal Range Liquidity zone.
Show ERL: Toggle visibility for External Range Liquidity buffer zone.
📊 Visual Elements
IRL High/Low: Orange lines with fill to mark the main liquidity range.
ERL High/Low: Green and red lines indicating potential liquidity sweep zones.
Zone Fill: Light orange shading to visually emphasize the IRL area.
📈 Use Case
Use this tool to:
Identify areas where price might consolidate or reverse.
Highlight likely zones of liquidity grabs before trend continuations or shifts.
Enhance entry/exit decisions based on smart money concepts.
Dominance Interflow DThis indicator visualizes the normalized dominance levels of key sectors in the crypto market, including Bitcoin, Ethereum, Stablecoins, and the Altcoins as grouped market segments.
All dominance values are normalized between 0 and 1 for clear visual comparison. This allows traders and analysts to:
- Track capital rotation and dominance shifts
- Identify Altseason setups or defensive market phases
- Spot Risk-On / Risk-Off sentiment based on Stablecoin dominance
- Evaluate market breadth through altcoin tracking
📊 Included Data Series:
- 🟧 Bitcoin Dominance (BTC.D)
- 🔵 Ethereum Dominance (ETH.D)
- ⚪ Stablecoin Dominance (STABLE.C.D)
- 🟥 Without Top 50 Coins (TOTALE50.D)
- 🟥 without Top 100 Coins (TOTALE100.D)
🧠 Smart Normalization:
Automatically adjusts based on timeframe
500 candles for Daily (1D)
💡 Use this tool to understand macro capital flows, identify crypto sector trends, and optimize your asset rotation strategy.
TitansAlgo Sureshots v2Overview:
The TitansAlgo Sureshots indicator is a breakout trading strategy designed to capitalize on the first candle of the market session. It identifies buy and sell signals based on price breakouts and automatically calculates stop-loss (SL) and take-profit (TP) levels using a risk-reward ratio (RR) parameter.
Entry Logic:
A buy signal is generated when price breaks above the first candle’s high.
A sell signal is generated when price breaks below the first candle’s low.
The system ensures only one trade per day to avoid overtrading.
Risk Management:
The stop-loss (SL) is placed at the opposite side of the first candle’s range.
The take-profit (TP) is calculated dynamically using the Risk-Reward Ratio (RR) input (default = 2.0).
Visual Signals & Alerts:
Green dots (Buy Signal) appear below bars when a long position is triggered.
Red dots (Sell Signal) appear above bars when a short position is triggered.
Buy and Sell Labels appear on the next candle to confirm trade signals.
Lines for TP and SL are drawn on the chart for better visualization.
Custom Styling:
Background highlights the first candle of the session.
Candles are color-coded:
Green for bullish bars
Red for bearish bars
Wick colors match candle sentiment
Ideal for Traders Who:
✅ Prefer breakout trading strategies based on market structure.
✅ Want a simple yet effective system with built-in risk management.
✅ Need clear visual signals for entry and exit points.
✅ Trade on intraday timeframes and follow structured trading rules.
This indicator is designed to provide high-probability trade setups, making it a valuable tool in the TitansAlgo suite for traders looking to optimize their market entries and exits. 🚀
Sell to Buy / Buy to SellSell to Buy / Buy to Sell — Momentum Shift Detector
The Sell to Buy / Buy to Sell indicator detects simple but powerful two-bar momentum shift patterns directly on your chart, offering early insights into potential reversals or strong breakout continuation.
🔎 How it works:
Sell to Buy (StB):
Previous candle (bar -1) is bearish
Current candle (bar 0) is bullish
The bullish candle closes above the high of the previous bearish candle
Confirmed only after bar close
Buy to Sell (BtS):
Previous candle (bar -1) is bullish
Current candle (bar 0) is bearish
The bearish candle closes below the low of the previous bullish candle
Confirmed only after bar close
🎯 Key Features:
✅ Pure price action logic — no indicators, no oscillators
✅ Immediate visual markers:
Green "StB" label for bullish momentum shifts
Red "BtS" label for bearish momentum shifts
✅ Full alert system to notify you in real-time when either pattern occurs
⚙ Who is this for?
Scalpers looking for short-term momentum shifts
Swing traders identifying potential reversals or breakout confirmations
Price action traders who want clean and objective setup detection
The Sell to Buy / Buy to Sell indicator is designed to give you clear and simple signals whenever the market shows decisive strength after a short-term opposite move — potentially marking the start of a new impulse.
Engulfing Bar AggressiveEngulfing Bar Aggressive
Engulfing Bar Aggressive is a precise price action indicator designed to detect strong bullish and bearish engulfing patterns in an aggressive way. This tool is perfect for traders who want early and confirmed signals based purely on candle formations, without relying on any indicators or moving averages.
🔍 Core Logic
The indicator scans for 2-bar engulfing patterns with additional strict conditions:
Bullish Engulfing
Current candle closes bullish (close > open).
Previous candle closes bearish (close < open ).
Current close completely engulfs previous open and high.
Current open is below previous close.
Signal triggers only after bar closure (confirmed pattern).
Bearish Engulfing
Current candle closes bearish (close < open).
Previous candle closes bullish (close > open ).
Current close completely engulfs previous open and low.
Current open is above previous close.
Signal triggers only after bar closure (confirmed pattern).
🛠 Features
Clear visual markers on the chart (green for bullish, red for bearish).
Configurable generic alert to receive notifications for any engulfing pattern detected.
Dedicated alerts for bullish and bearish engulfing setups.
Works on any timeframe and any market.
🎯 Use Case
Ideal for breakout traders, reversal traders, or as part of a multi-factor strategy.
Can be combined with support/resistance zones, ATR exhaustion levels, or trend filters for enhanced accuracy.
Killzone FVG StrategyPOI bot great at marking Displacement candles and marks said candles with a square either green or blue, green denotes green a bisi and red denotes a sibi. use as only an added confluence along with others like liquidity sweeps and CHOCH
ORB Strategy Professional FinalORB (Opening Range Breakout) Strategy Guide – Updated Outline
Overview
I asked this script to be programmed based on my parameters and strategy. Feel free to utilize it.
A structured approach to trading the Opening Range Breakout (ORB) strategy, emphasizing:
Confirmation-based entries
Time-based high-probability setups
Contextual filters for directional bias
Robust risk management and scaling protocols
ORB Entry Criteria
A. Identify the Opening Range (ORB)
Define the ORB using the session’s initial breakout (up or down).
B. Confirm the Breakout Direction
Wait for a 5-minute candle close in the direction of the breakout.
Alternatively, use candlestick confirmation, such as the 3-bar play.
C. Optional Entry Confirmations
Magic 8 Ball Algo – Adds confidence to directional entries.
Gamma Levels – Identify potential support/resistance zones.
Context Filter: 200 SMA (5-Minute Chart)
Use the 200-period Simple Moving Average (SMA) to validate trade direction:
Price above 200 SMA → Favor long trades.
Price below 200 SMA → Favor short trades.
If signal suggests short, but price is above the 200 SMA, wait for a third confirmation candle before entry.
I had the please of working with SpeedEdge_Securities who kind enogh to program it feel free to contact them.
api.whatsapp.com
ORB + Fib ZoneAllows user to adjust range of ORB. The box in the middle is the Fibonacci range between 38.2% and 61.8% designed for pullbacks into the ORB as confirmation before entry. Alerts can be set if the candle closes above or below the ORB.
Jeki Smart Money Concepts Strategy (Webhook) 📈 Smart Money Concepts Strategy (SMC) - Advanced Market Structure Analysis
FXOPEN:XAUUSD
Overview
The Smart Money Concepts Strategy is a sophisticated trading system based on institutional market structure analysis. This strategy identifies and follows the footprints of "smart money" (banks, hedge funds, and other institutional players) by detecting key market structure changes and trend reversals.
ORB + Fib ZoneAllows user to adjust range of ORB. The box in the middle is the Fibonacci range between 38.2% and 61.8% designed for pullbacks into the ORB as confirmation before entry.
HyperFlowIntroduction
HyperFlow is a premium market structure and liquidity rotation model built around the principles of internal inefficiencies, tested imbalances, and delivery shifts. Drawing inspiration from ICT concepts, it provides a high-level framework for identifying smart money footprints and timing entries with precision.
Rather than forecasting direction, HyperFlow focuses on recognizing repeatable delivery behaviors — helping traders visually track liquidity shifts from internal ranges to external objectives with consistency.
Core Philosophy
Markets are governed by the logic of liquidity engineering — the search and destruction of internal inefficiencies (Fair Value Gaps), followed by continuations toward external liquidity.
Timeframes to use:
HTF -> LTF
5m -> 15s
15m -> 1m
1h -> 5m
4h -> 15m
Daily -> 1h
Weekly -> 4h
Monthly -> 1D
HyperFlow identifies these transitions by:
Detecting High Timeframe Fair Value Gaps (HTF FVGs) — structural imbalances created by displacement
Tracking Valid Tests of those FVGs — signaling willingness to respect internal structure
Filtering for Delivery Confirmations — only acting when price delivers with intent through reclaimed imbalances
Mapping Risk and Objective Zones — using recent swing structures to define stop and target logic rooted in market logic
All components are reactive, visual, and non-repainting — designed to highlight structure after it forms, not anticipate it prematurely.
Key Features
Internal Range Liquidity Zones: Cleanly marked HTF imbalances show where price may seek efficiency
Tested FVG Filtering: Signals only form on valid rebalances — we wait for proof, not potential
Shift in Delivery Conditions: Price must show intent to reclaim imbalance before any rotation is considered
Automatic Objective Mapping: Recent structural highs/lows are used to project stop and target zones automatically
Session Filters + Time Alignment: Restrict signals to high-probability hours or defined killzones
Minimal, High-Impact Visuals: Tested/untested FVGs are differentiated by transparency and tone, keeping your chart clean and focused
HyperFlow is built for:
Traders who understand price delivery theory
Analysts studying displacement → reversion → continuation
Those seeking higher timeframe bias alignment through tested structure
Users of ICT-based concepts who want a visual, rules-based companion
This is not a beginner's tool. It’s for those seeking repeatable execution through structure and refinement, not guesswork.
Terms and Conditions
Our charting tools are products provided for informational and educational purposes only and do not constitute financial, investment, or trading advice. Our charting tools are not designed to predict market movements or provide specific recommendations. Users should be aware that past performance is not indicative of future results and should not be relied upon for making financial decisions. By using our charting tools, the purchaser agrees that the seller and the creator are not responsible for any decisions made based on the information provided by these charting tools. The purchaser assumes full responsibility and liability for any actions taken and the consequences thereof, including any loss of money or investments that may occur as a result of using these products. Hence, by purchasing these charting tools, the customer accepts and acknowledges that the seller and the creator are not liable nor responsible for any unwanted outcome that arises from the development, the sale, or the use of these products. Finally, the purchaser indemnifies the seller from any and all liability. If the purchaser was invited through the Friends and Family Program, they acknowledge that the provided discount code only applies to the first initial purchase of any SMCapital product. The purchaser is therefore responsible for cancelling – or requesting to cancel – their subscription in the event that they do not wish to continue using the product at full retail price. If the purchaser no longer wishes to use the products, they must unsubscribe from the membership service, if applicable. We hold no reimbursement, refund, or chargeback policy. Once these Terms and Conditions are accepted by the Customer, before purchase, no reimbursements, refunds or chargebacks will be provided under any circumstances.
By continuing to use these charting tools, the user acknowledges and agrees to the Terms and Conditions outlined in this legal disclaimer.
3-Bar Sweep Reversal with Alertstrap indicator! 3 bar reversal indicator that the third candle sweeps the lows or highs of the second candle then closes above or below.
CRYPTOPASTOR SR PROCRYPTOPASTOR SR PRO
The ultimate automated support, resistance, and trade setup toolkit.
Description
CRYPTOPASTOR SR PRO is the all-in-one solution for traders who want to combine powerful, automated support and resistance analysis with actionable trade setups. This indicator moves beyond simple lines on a chart; it identifies and draws the most statistically significant S/R zones and then uses that data to automatically generate potential Entry , Stop Loss , and Take Profit levels for you.
Built for both discretionary and systematic traders, SR PRO cleans up your workflow, removes manual guesswork, and provides a clear, data-driven foundation for your trading decisions.
Pro Feature: Dynamic Trade Setups
This is the core of the PRO version. It transforms the S/R analysis into a complete trade planning tool.
Automatic Trade Opportunities: Based on the indicator's core S/R analysis, the Pro version automatically identifies potential trade opportunities as they form.
Intelligent Trade Bias: It determines a trade bias (Long or Short) by evaluating the current price's proximity to the nearest major support or resistance zone.
Automatic Trade Levels: For each potential setup, the script instantly calculates and plots:
An Entry Level based on the middle of the key S/R zone.
A smart Stop Loss placed with a calculated buffer outside the zone.
Up to five Take Profit levels targeting subsequent S/R zones.
Core Engine: Advanced S/R Detection
At its heart, the SR PRO is powered by an advanced engine that automates the most tedious parts of technical analysis.
Dynamic Pivot Detection: It constantly scans the chart for the most recent and relevant Pivot Highs and Pivot Lows, which are the building blocks of price structure.
Intelligent Zone Clustering: Instead of just drawing a line at every pivot, SR PRO groups multiple nearby pivot points into a single, cohesive zone. This technique reveals areas where price has repeatedly reacted, making them much more significant.
Strength-Based Filtering: A zone's "strength" is determined by how many pivots it contains. The indicator filters out weak, unreliable zones and only displays those that meet a minimum strength requirement, removing noise from your chart.
Full Features List
Automated Trade Setups with Entry, Stop Loss, and Take Profit levels.
Dynamic Support & Resistance Zones that update with new price action.
Clean Zone Labels showing the timeframe and price level, pinned to the right side of your chart.
Strength-Based Algorithm to ensure only the most significant levels are shown.
Built-in Alerts for when a key support or resistance level is broken.
Fully Customizable settings to tailor the indicator to any market or timeframe.
Customizable Settings (Inputs)
Setup
Pivot Period: Controls the sensitivity of pivot detection.
Source: Use candle High/Low or Close/Open for calculations.
Maximum Number of Pivot: Sets the memory for how many recent pivots are analyzed.
Maximum Channel Width %: Defines how close pivots must be to form a zone.
Maximum Number of S/R: The maximum number of S/R zones to display.
Minimum Strength: The minimum number of pivots required to form a valid zone.
Trade Setup
Show Trade Setups: Globally turn the Entry/SL/TP feature on or off.
Number of Take Profit Levels: Choose how many TP targets to display (1 to 5).
Stop Loss Buffer %: Customize the buffer size for the automatically generated Stop Loss.
Colors
Label Location: Controls how far to the right the price labels are drawn.
Line Style & Width: Customizes the appearance of the S/R zones.
Resistance & Support Color: Set your preferred colors for all zones.
Alerts
You can set up the following alerts in TradingView's alert menu:
Resistance Broken: Triggers when price breaks and closes above a resistance zone.
Support Broken: Triggers when price breaks and closes below a support zone.
Support or Resistance Broken: A combined alert that triggers for either condition.
Crypto Pastor SR - LITESupport & Resistance - Lite (SR Lite) is a clean, powerful, and lightweight indicator designed to automatically identify and draw the most significant support and resistance zones on your chart.
This tool is built for traders who rely on key price levels but want to avoid the clutter of complex indicators. It does the hard work of finding historical price turning points and intelligently clustering them into strong, actionable zones, allowing you to focus on your strategy.
This "Lite" version contains the complete, powerful S/R detection engine, ideal for traders who want a clean chart focused purely on key levels without the trade setup features (Entry/Stop Loss/Take Profit) of the Pro version.
How It Works
The indicator's logic is both sophisticated and intuitive:
Dynamic Pivot Detection: It constantly scans the chart for the most recent and relevant Pivot Highs and Pivot Lows. These are the fundamental building blocks of price structure.
Intelligent Zone Clustering: Instead of just drawing a line at every pivot, SR Lite groups multiple nearby pivot points into a single, cohesive zone. This technique reveals areas where price has repeatedly reacted, making them much more significant than a single point.
Strength-Based Filtering: Not all zones are created equal. A zone's "strength" is determined by how many pivots it contains. The indicator filters out weak, unreliable zones and only displays those that meet a minimum strength requirement, removing noise from your chart.
Clean & Automated Charting: The strongest zones are automatically drawn and extended into the future. As new price action unfolds, the zones dynamically update to reflect the most current market structure.
Features & Visuals
Support & Resistance Zones: These are the primary visual element, drawn as transparent boxes.
Green Zones: Indicate Support levels currently below the price.
Red Zones: Indicate Resistance levels currently above the price.
Price Labels: Each zone is accompanied by a clean text label on the right-hand side of the chart, showing:
The Timeframe the zone was identified on (e.g., "4H").
The exact Price Level of the zone's midpoint (e.g., "108697").
Built-in Alerts: Create alerts to be notified immediately when a key level is broken.
Previous Daily High/LowUnderstanding Previous Daily High and Low in Trading
The previous day’s high and low are critical price levels that traders use to identify potential support, resistance, and intraday trading opportunities. These levels represent the highest and lowest prices reached during the prior trading session and often act as reference points for future price action.
Why Are Previous Daily High/Low Important?
Support & Resistance Zones
The previous day’s low often acts as support (buyers defend this level).
The previous day’s high often acts as resistance (sellers defend this level).
Breakout Trading
A move above the previous high suggests bullish momentum.
A move below the previous low suggests bearish momentum.
Mean Reversion Trading
Traders fade moves toward these levels, expecting reversals.
Example: Buying near the previous low in an uptrend.
Institutional Order Flow
Market makers and algos often reference these levels for liquidity.
How to Use Previous Daily High/Low in Trading
1. Breakout Strategy
Long Entry: Price breaks & closes above previous high → bullish continuation.
Short Entry: Price breaks & closes below previous low → bearish continuation.
2. Reversal Strategy
Long at Previous Low: If price pulls back to the prior day’s low in an uptrend.
Short at Previous High: If price rallies to the prior day’s high in a downtrend.
3. Range-Bound Markets
Buy near previous low, sell near previous high if price oscillates between them.
Candlestick Pattern DetectorAll main Candlestick Pattern are available in this
Candlestick patterns are visual representations of price movements that help traders identify potential trend continuations and reversals in financial markets. Each candlestick displays four key price points: open, high, low, and close for a specific time period.
In trending markets, several patterns prove particularly valuable. **Continuation patterns** signal that the existing trend will likely persist. The bullish engulfing pattern occurs when a large green candle completely engulfs the previous red candle, indicating strong upward momentum. Conversely, a bearish engulfing pattern suggests continued downward movement.
**Hammer and doji patterns** often appear at trend extremes, potentially signaling reversals. A hammer features a small body with a long lower wick, suggesting buyers stepped in after initial selling pressure. Doji candles, where open and close prices are nearly identical, indicate market indecision and possible trend changes.
**Three-candle patterns** like morning and evening stars provide stronger reversal signals. A morning star consists of a bearish candle, followed by a small-bodied candle, then a strong bullish candle, suggesting a potential uptrend reversal.
Successful traders combine candlestick analysis with volume indicators and support/resistance levels for confirmation. While these patterns offer valuable insights into market psychology and potential price movements, they should never be used in isolation for trading decisions.
Smart Money Gap [Algo Seeker]Introduction – Originality and usefulness
It is important for traders to diversify their strategies, and having a few approaches for different situations is key to increasing their odds of success.
These days, substantial information and important events happen so fast and so often that all the noise created afterward makes people forget the events that were actually worth remembering.
The same can be said about trading and investing. Every day, there seems to be something new happening and new price action unfolding, which can make it difficult for traders to filter out the noise and stay focused on relevant events. But for every problem, a solution can be born.
🟠 Unique Features & Trading Benefits
The SMG aims to be a system that helps traders filter out what it deems to be irrelevant noise and stay focused on what matters most. In addition, SMG provides multiple plans and ways to act on that information.
The reason it’s called “Smart Money Gap” is because this algorithm is designed to identify the most relevant price action—whether it's earnings, an economic calendar event, a stock-specific development, major news, or institutional activity. It determines which of these situations is the most current and relevant, and it keeps the focus on that. This means that day in and day out, traders and investors can rely on a consistent plan and framework that is automatically drawn up for them, helping them trade with confidence that they’re acting on meaningful price levels. When the algorithm identifies a new event as more important, it will switch focus and build a new system around that.
SMG also goes a step further—it understands that different types of traders, such as scalpers, swing traders, or investors, have different time horizons and risk tolerance regarding how long they plan to hold a position and how much space and time they are willing to give a move. With that in mind, SMG provides different trading modes for these personas, selecting events that match the criteria needed for that specific trader.
For instance, a scalper may benefit from a smaller, more recent event that provides quick entry and exit opportunities—whereas an investor might focus on something more significant and long-term. SMG takes this into consideration and builds its entire framework accordingly.
🟠 Description of the Unique SMG (Continued) – How It Works Together as One System
The true power of SMG begins once a relevant event is identified, and the entire system is automatically displayed on the user’s chart. From that single event, SMG generates a structured framework that produces three distinct strategies. Each of these strategies takes inspiration from fundamentals within trading but gives it our own unique twist inside the SMG system. These strategies can be used individually or in combination, depending on the trader’s style and market context.
🟢 1. Filling the Smart Money Gap
One of the key opportunities is to trade the SMG itself—the “gap” created by the specific event. Gap fills are a strategy that traders and investors like to use. SMG continuously tracks how much of this unique gap has been filled, so users are never confused about how much remains. They can reference the shaded region or the percentage-left box for clarity.
🟢 2. Targeting SMG-Based Extensions and Retracements
When the SMG zone is created, the algorithm simultaneously generates extension and retracement levels tied to that event. These levels remain anchored to the original structure, providing consistent, event-driven targets. Unlike the constantly redrawn lines many traders adjust throughout the day, these levels stay fixed and reflect meaningful price action—not noise.
🟢 3. Executing Trades Based on SMG Volume
Because SMGs are tied to meaningful events, they often remain valid for an extended time. This is where Anchored VWAP becomes critical. From the moment the event occurs, SMG begins calculating volume-based data. The longer the event goes unchanged, the more powerful and influential the Anchored VWAP and its deviation bands become—due to the increasing accumulation of volume over time. These volume layers not only help refine entries and exits—they also serve as additional points of confluence where traders can place stops, take profits, or re-enter trades with greater context and confidence.
In conclusion:
SMG is designed to help traders diversify their portfolio of strategies even further. It creates an entire system that filters out noise and builds a strategy around a key event—and it will stay focused on that event until another becomes more relevant. SMG gives traders the ability to react calmly, with a plan that is automatically laid out for them. This is a special algorithm that we’ve incorporated into our approach for over three years, and we hope users will find it to be a valuable aid in their trading journey.
🟠 How to Use
Initial Setup
🟢 1. Select Trading Mode:
Choose from six built-in personas—Scalp 1, Scalp 2, Swing 1, Swing 2, Invest 1, and Invest 2—based on your trading style. Each persona adjusts the SMG logic to fit the risk profile and time horizon of that specific persona.
1. Scalp: For intraday movements (minutes to hours)
• Best used on faster charts (1-minute to 30-minute)
2. Swing: For medium-term positions (days to weeks)
• Best used on 1-hour to daily charts
3. Investor: For longer-term positions (weeks to months)
• Best used on 1-hour to daily charts
🟢 2. Choose SMG Update Behavior: Bar Close vs Live Update:
By default, SMG waits until all conditions are met and the bar closes before updating. This ensures confirmed structure and helps avoid noise or repainting.
If “Update Before Bar Closes?” is selected, the algorithm updates as soon as all conditions are met — even if the bar hasn’t closed yet. This allows earlier updates but may result in elements that repaint if the conditions don’t hold through the close.
Keep this setting unchecked if you prefer confirmed, non-repainting elements.
🟢 3. Visual Customization:
Customize the appearance of SMG zones, extension labels, and volume-derived levels via the “SMG Zone” and “Anchored VWAP” settings groups. This includes:
1. Zone colors and opacity
2. Label positions
3. Retracement display toggle
4. Anchored VWAP and ±1, ±2, ±3 deviation bands
Extra Notes on User Customization:
• Bull Box Color – the color used when SMG retracement is active
• Final Bull Box Color – the color used when SMG retracement is finished
• Same logic applies to Bear Box Color and Final Bear Box Color
• Retracement % Label – If the label is hard to see, it may be overlapping with the Fib labels depending on your chart zoom. To adjust, bring the Retracement % Label Indent closer to 1 to shift it left. Then increase the Fib Label Indent value to move those labels further right.
🟠 Strategic Execution
Strategy Usage Example
🟢 1. Entry & Exit Tactics Within the SMG
Use the shaded Smart Money Gap as a decision-making framework. Traders may choose to:
1. Fade a retracement (shorting or exiting as price retraces into the SMG)
2. Enter on signs of continuation (rejoining the move after a partial retrace)
3. Wait for the gap to fill completely and reverse
Volume-weighted Anchored VWAP levels add an additional layer—helping assess whether price is entering or rejecting volume consensus zones.
🟢 2. Extension Targeting:
When price resumes in the original direction, SMG plots potential extension levels. These can be used to:
1 Set take-profit or stop-loss targets
2. Spot exhaustion areas
3 Evaluate whether to scale in, take partial profits, or re-enter a position
🟢 3. Volume-Based Execution via Anchored VWAP:
For traders looking to incorporate volume into execution—especially when an SMG has remained active for an extended period—Anchored VWAP and its deviation bands can be used to:
1. Confirm direction or momentum via VWAP slope and interaction
2. Enter or fade positions at volume-backed levels
3. Set dynamic entries or exits as volume builds or thins across deviations
⚠️Optional Update Behavior: Bar Close vs Live Update
By default, SMG waits until all conditions are met and the bar closes before updating. This ensures confirmed structure and helps avoid noise or repainting.
If “Update Before Bar Closes?” is selected, the algorithm updates as soon as all conditions are met — even if the bar hasn’t closed yet. This allows earlier updates but may result in elements that repaint if the conditions don’t hold through the close.
Keep this setting unchecked if you prefer confirmed, non-repainting elements.
⚠️ Interpreting Anchored VWAP Behavior
Anchored VWAP and its deviation bands become more relevant with time as they widen and separate. While tight and accumulating near price, it may be worth holding off on using VWAP for entries or exits until expansion begins.
🟠 Additional Description – SMG Table Overview
The SMG table presents four key pieces of information to help traders quickly understand the current setup at a glance:
1) If the Algo is set for dynamic or bar close
2) Which trading mode they currently have selected
3) What type of SMG gap is displayed
4) how much of the Retracement is done
🟠 Additional Benefits:
🟢 1. Risk Profile Options
Trading personas allow users to instantly switch between different risk profiles—Scalp, Swing, or Investor—at the click of a button. This helps traders quickly align the system to their preferred holding period and risk tolerance without reconfiguring inputs.
🟢 2. Time Efficiency
SMG saves traders time by creating a complete system around each Smart Money Gap. From gap logic to retracement tracking, extension targets, and volume levels—everything needed to trade the SMG is generated at once, eliminating the need for manual setup or separate tools.
The Smart Money Gap represents years of development and refinement aimed at creating a unified, event-driven trading system. It was designed to help traders manage through the constant noise of the market, and we hope that traders benefit from having an additional tool to support and diversify their trading strategy.
FMT by C.ball [XAUUSD Version]// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © 2025 Ball Goldricher - For XAUUSD
//@version=5
indicator("FMT by C.ball ", shorttitle="FMT-XAU", overlay=true)
// === Moving Averages ===
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
// === Cross Logic ===
crossUp = ta.crossover(close, ema20)
crossDown = ta.crossunder(close, ema20)
// === Persistent Counters ===
var int upCount = 0
var int downCount = 0
// === Count Crosses ===
if crossUp
upCount := upCount + 1
if crossDown
downCount := downCount + 1
// === Entry Signals on 2nd Cross + EMA50 Filter ===
buySignal = crossUp and upCount == 2 and close > ema50
sellSignal = crossDown and downCount == 2 and close < ema50
// === Show Buy/Sell Labels on Chart ===
plotshape(buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// === Reset Counters after Entry ===
if buySignal or sellSignal
upCount := 0
downCount := 0
// === Show EMA Lines for Reference ===
plot(ema20, color=color.orange, title="EMA 20")
plot(ema50, color=color.blue, title="EMA 50")