OptionHawk1. What makes the script original?
• Unique concept: It integrates a Keltner based custom supertrend with a multi-EMA energy visualization, ATR based multi target management, and on chart options (CALL/PUT) trade signals—creating a toolkit not found in typical public scripts.
• Innovative use: Instead of off the shelf indicators, it reinvents them:
• Keltner bands used as dynamic Supertrend triggers.
• Fifteen EMAs layered for “energy” zones (bullish/bearish heatmaps).
• ATR dynamically scales multi-TP levels and stop loss.
These are creatively fused into a unified signal and automation engine.
________________________________________
2. What value does it provide to traders?
• Clear entries & exits: Labels for entry price/time, five TP levels, and SL structure eliminate guesswork.
• Visualization & automation: Real-time bar coloring and energy overlays allow quick momentum reads.
• Targeted to common pain points: Many traders struggle with manual TP/SL and entry timing—this automates that process.
• Ready for real use: Just plug into intraday (e.g., 5 min) or swing setups; no manual calculations. Signals are actionable out of the box.
________________________________________
3. Why invite only (worth paying)?
• Proprietary fusion: Public indicators like Supertrend or EMA are common—but your layered use, ATR based scaling, and label logic are exclusive.
• Auto-generated options format: Unique labeling for CALL/PUT, with graphical on chart signals, isn’t offered freely elsewhere.
• Time-saver & edge-provider: Saves traders hours of configuration and enhances consistency—worth the subscription cost over piecing together mash ups.
________________________________________
4. How does it work?
• Signal backbone: Custom supertrend uses Keltner bands crossing with close for direction, filtered by trend direction EMAs.
• Multi time logic: Trend defined by crossover of price over dynamic SMA thresholds built from ATR.
• Energy bar-colors/EMAs: 15 fast EMAs color-coded green/red to instantly show momentum.
• Entry logic: “Bull” when close crosses above supertrend; “Bear” when crosses below.
• Risk management: SL set at previous bar; up to 5 ATR scaled targets (or percentage based).
• Options formatted alerts: CALL/PUT labels with ₹¬currency values, embedded timestamp, SL/TP all printed on the chart.
________________________________________
5. How should traders use it?
• Best markets & timeframes: Ideal for intraday / low timeframe (1 15m) setups and 1 hour swing trades in equities, indices, options.
• Conditions: Works best in trending or volatility driven sessions—visible via Keltner bands and EMA energy alignment.
• Recommended combo: Use alongside volume filters or broader cycles; when supertrend & energy EMAs align, validation is stronger.
________________________________________
6. Proof of effectiveness?
• On chart visuals: Entry/exit labels, confirmed labels, TP and SL markers make past hits obvious.
• Real trade examples: Highlighted both bull & bear setups with full profit realization or SL hits.
• Performance is paint tested: Easy to showcase historic signals across multiple tickers.
• Data-backed: Users can export chart data to calculate win rate and avg return per trade.
________________________________________
Summary Pitch:
OptionHawk offers a holistic, execution-ready trading tool:
1. Proprietary blend of Keltner-supertrend and layered EMAs—beyond standard scripts.
2. Automates entries, multi-tier targets, SL, and options-format labels.
3. Visual energy overlays for quick momentum readings.
4. Use-tested in intraday and swing markets.
5. Installs on chart and works immediately—no setup complexity.
It's not a public indicator package; it's a self-contained, plug and play trade catalyst—worth subscribing for active traders seeking clarity, speed, and structure in their decision-making.
6. While OptionHawk is designed for clarity and structure, no script can predict the market. Always use with discretion and proper risk management.
---------------------------------------------------------------------------------------------------------------------
OptionHawk: A Comprehensive Trend-Following & Volatility-Adaptive Trading System
The "OptionHawk" script is a sophisticated trading tool designed to provide clear, actionable signals for options trading by combining multiple technical indicators and custom logic. It aims to offer a holistic view of market conditions, identifying trend direction, momentum, and potential entry/exit points with dynamic stop-loss and take-profit levels.
________________________________________
1. Why These Specific Indicators and Code Elements?
The "OptionHawk" script is a strategic fusion of the Supertrend indicator (modified with Keltner Channels), a multi-EMA "Energy" ribbon, dynamic trend lines (based on SMA and ATR), a 100-period Trend Filter EMA, and comprehensive trade management logic (SL/TP). My reason and motivation for this mashup stem from a desire to create a robust system that accounts for various market aspects often overlooked by individual indicators:
• Supertrend with Keltner Channels: The standard Supertrend is effective for trend identification but can sometimes generate whipsaws in volatile or ranging markets. By integrating Keltner Channels into the Supertrend calculation, the volatility measure becomes more adaptive, using the (high - low) range within the Keltner Channel for its ATR-like component. This aims to create a more responsive yet less prone-to-false-signals Supertrend.
• Multi-EMA "Energy" Ribbon: This visually striking element, composed of 15 EMAs, provides a quick glance at short-to-medium term momentum and potential support/resistance zones. When these EMAs are stacked and moving in one direction, it indicates strong "energy" behind the trend, reinforcing the signals from other indicators.
• Dynamic Trend Lines (SMA + ATR): These lines offer a visual representation of support and resistance that adapts to market volatility. Unlike static trend lines, their ATR-based offset ensures they remain relevant across different market conditions and asset classes, providing context for price action relative to the underlying trend.
• 100-Period Trend Filter EMA: A longer-period EMA acts as a higher-timeframe trend filter. This is crucial for confirming the direction identified by the faster-acting Supertrend, helping to avoid trades against the prevailing broader trend.
• Comprehensive Trade Management Logic: The script integrates automated calculation and display of stop-loss (SL) and multiple take-profit (TP) levels, along with trade confirmation and "TP Hit" labels. This is critical for practical trading, providing immediate, calculated risk-reward parameters that individual indicators typically don't offer.
This combination is driven by the need for a multi-faceted approach to trading that goes beyond simple signal generation to include trend confirmation, volatility adaptation, and essential risk management.
________________________________________
2. What Problem or Need Does This Mashup Solve?
This mashup addresses several critical gaps that existing individual indicators often fail to fill:
• Reliable Trend Identification in Volatile Markets: While Supertrend is good, it can be late or whipsaw. Integrating Keltner Channels helps it adapt to changing volatility, providing more reliable trend signals.
• Confirmation of Signals: A common pitfall of relying on a single indicator is false signals. "OptionHawk" uses the multi-EMA "Energy" ribbon and the 100-period EMA to confirm the trend identified by the Keltner-Supertrend, reducing false entries.
• Dynamic Support/Resistance & Trend Context: Static support and resistance levels can quickly become irrelevant. The dynamic SMA + ATR trend lines provide continually adjusting zones that reflect the current market's true support and resistance, giving traders a better understanding of price action within the trend.
• Integrated Risk and Reward Management: Most indicators just give entry signals. This script goes a significant step further by automatically calculating and displaying clear stop-loss and up to five take-profit levels (either ATR-based or percentage-based). This is a vital component for structured trading, allowing traders to pre-define their risk and reward for each trade.
• Visual Clarity and Actionable Information: Instead of requiring traders to layer multiple indicators manually, "OptionHawk" integrates them into a single, cohesive display with intuitive bar coloring, shape plots, and informative labels. This reduces cognitive load and presents actionable information directly on the chart.
In essence, "OptionHawk" provides a more comprehensive, adaptive, and actionable trading framework than relying on isolated indicators.
________________________________________
3. How Do the Components Work Together?
The various components of "OptionHawk" interact in a synergistic and often sequential manner to generate signals and manage trades:
• Keltner-Supertrend as the Primary Signal Generator: The supertrend function, enhanced by keltner_channel, is the core of the system. It identifies potential trend reversals and continuation signals (bullish/bearish crosses of the supertrendLine). The sensitivity and factor inputs directly influence how closely the Supertrend follows price and its responsiveness to volatility.
• Multi-EMA "Energy" Ribbon for Momentum and Confirmation: The 15 EMAs (from ema1 to ema15) are plotted to provide a visual representation of short-term momentum. When the price is above these EMAs and they are spread out and pointing upwards, it suggests strong bullish "energy." Conversely, when price is below them and they are pointing downwards, it indicates bearish "energy." This ribbon serves as a simultaneous visual confirmation for the Supertrend signals; a buy signal from Supertrend is stronger if the EMA ribbon is also indicating upward momentum.
• Dynamic Trend Lines for Context and Confirmation: The sma_high and sma_low lines, incorporating ATR, act as dynamic support and resistance. The trend variable, determined by price crossing these lines, provides an overarching directional bias. This component works conditionally with the Supertrend; a bullish Supertrend signal is more potent if the price is also above the sma_high (indicating an uptrend).
• 100-Period Trend Filter EMA for Macro Trend Confirmation: The ema100 acts as a macro trend filter. Supertrend signals are typically considered valid if they align with the direction of the ema100. For example, a "BUY" signal from the Keltner-Supertrend is ideally taken only if the price is also above the ema100, signifying that the smaller trend aligns with the larger trend. This is a conditional filter.
• Trade Confirmation and SL/TP Logic (Sequential and Conditional):
• Once a bull or bear signal is generated by the Keltner-Supertrend, the tradeSignalCall or tradeSignalPut is set to true.
• A confirmation step then occurs for a "BUY" signal, the script checks if the close of the next bar is higher than the entry bar's close. For a "SELL" signal, it checks if the close of the next bar is lower. This is a sequential confirmation step aimed at filtering out weak signals.
• Upon a confirmed signal, the stop-loss (SL) is immediately set based on the previous bar's low (for calls) or high (for puts).
• Multiple take-profit (TP) levels are calculated and stored in arrays. These can be based on a fixed percentage or dynamic ATR multiples, based on user input.
• The TP HIT logic continuously monitors price action simultaneously against these pre-defined target levels, displaying labels when a target is reached. The SL HIT logic similarly monitors for a stop-loss breach.
In summary, the Supertrend generates the initial signal, which is then confirmed by the dynamic trend lines and the 100-period EMA, and visually reinforced by the EMA "Energy" ribbon. The trade management logic then takes over, calculating and displaying vital risk-reward parameters.
________________________________________
4. What is the Purpose of the Mashup Beyond Simply Merging Code?
The purpose of "OptionHawk" extends far beyond merely combining different indicator codes; it's about creating a structured and informed decision-making process for options trading. The key strategic insights and functionalities added by combining these elements are:
• Enhanced Signal Reliability and Reduced Noise: By requiring multiple indicators to align (e.g., Keltner-Supertrend signal confirmed by EMA trend filter and dynamic trend lines), the script aims to filter out false signals and whipsaws that commonly plague individual indicators. This leads to higher-probability trade setups.
• Adaptive Risk Management: The integration of ATR into both the Supertrend calculation and the dynamic stop-loss/take-profit levels makes the entire system adaptive to current market volatility. This means stop-losses and targets are not static but expand or contract with the market's price swings, promoting more realistic risk management.
• Clear Trade Entry and Exit Framework: The script provides a complete trading plan with each signal: a clear entry point, a precise stop-loss, and multiple cascading take-profit levels. This holistic approach empowers traders to manage their trades effectively from initiation to conclusion, rather than just identifying a potential entry.
• Visual Confirmation of Market Strength: The "Energy" ribbon and dynamic trend lines provide an immediate visual understanding of the market's momentum and underlying trend strength, helping traders gauge conviction behind a signal.
• Improved Backtesting and Analysis: By combining these elements into one script, traders can more easily backtest a comprehensive strategy rather than trying to manually combine signals from multiple overlaying indicators, leading to more accurate strategy analysis.
• Suitability for Options Trading: Options contracts are highly sensitive to price movement and volatility. This script's focus on confirmed trend identification, dynamic volatility adaptation, and precise risk management makes it particularly well-suited for the nuanced demands of options trading, where timing and defined risk are paramount.
________________________________________
5. What New Functionality or Insight Does Your Script Offer?
"OptionHawk" offers several new functionalities and insights that significantly enhance decision-making, improve accuracy, and provide clearer signals and better timing for traders:
• "Smart" Supertrend: By basing the Supertrend's volatility component on the Keltner Channel's range instead of a simple ATR, the Supertrend becomes more sensitive to price action within its typical bounds while still adapting to broader market volatility. This can lead to earlier and more relevant trend change signals.
• Multi-Confirmation System: The script doesn't just provide a signal; it layers multiple confirmations (Keltner-Supertrend, multi-EMA "Energy" coloration, dynamic trend lines, and the 100-period EMA). This multi-layered validation significantly improves the accuracy of signals by reducing the likelihood of false positives.
• Automated and Dynamic Risk-Reward Display: This is a major functionality enhancement. The automatic calculation and clear display of stop-loss and five distinct take-profit levels (based on either ATR or percentage) directly on the chart, along with "TP HIT" and "SL HIT" labels, streamline the trading process. Traders no longer need to manually calculate these crucial levels, leading to enhanced decision-making and better risk management.
• Visual Trend "Energy" and Momentum: The vibrant coloring of the multi-EMA ribbon based on price relative to the EMA provides an intuitive and immediate visual cue for market momentum and "energy." This offers an insight into the strength of the current move, which isn't available from single EMA plots.
• Post-Signal Confirmation: The "Confirmation" label appearing on the bar after a signal, if the price continues in the signaled direction, adds an extra layer of real-time validation. This helps to improve signal timing by waiting for initial follow-through.
• Streamlined Options Trading Planning: For options traders, having clear entry prices, stop-losses, and multiple target levels directly annotated on the chart is invaluable. It helps in quickly assessing potential premium movements and managing positions effectively.
In essence, "OptionHawk" transitions from a collection of indicators to a semi-automated trading assistant, providing a comprehensive, visually rich, and dynamically adaptive framework for making more informed and disciplined trading decisions.
----------------------------------------------------------------------------------------------------------------
Performance & Claims
1. What is the claimed performance of the script or strategy?
Answer: The script does not claim any specific performance metrics (e.g., win rate, profit factor, percentage gains). It's an indicator designed to identify potential buy/sell signals and target/stop-loss levels. The labels it generates ("BUY CALL," "BUY PUT," "TP HIT," "SL HIT") are informational based on its internal logic, not a representation of actual trading outcomes.
2. Is there any proof or backtesting to support this claim?
Answer: No, the provided code does not include any backtesting functionality or historical performance proof. As an indicator, it simply overlays visual signals on the chart. To obtain backtesting results, the logic would need to be implemented as a Pine Script strategy with entry/exit rules and commission/slippage considerations.
3. Are there any unrealistic or exaggerated performance expectations being made?
Answer: The script itself does not make any performance expectations. It avoids quantitative claims. However, if this script were presented to users with implied promises of profit based solely on the visual signals, that would be unrealistic.
4. Have you clearly stated the limitations of the performance data (e.g., “based on backtesting only”)?
Answer: There is no statement of performance data or its limitations because the script doesn't generate performance data.
5. Do you include a disclaimer that past results do not guarantee future performance?
Answer: No, the script does not include any disclaimers about past or future performance. This is typically found in accompanying documentation or marketing materials for a trading system, not within the indicator's code itself.
________________________________________
Evidence & Transparency
6. How are your performance results measured (e.g., profit factor, win rate, Sharpe ratio)?
Answer: Performance results are not measured by this script. It's an indicator.
7. Are these results reproducible by others using the same script and settings?
Answer: The visual signals and calculated levels (Supertrend line, EMAs, target/SL levels) generated by the script are reproducible on TradingView when applied to the same instrument, timeframe, and with the same input settings. However, the actual trading results (profit/loss) are not generated or reproducible by this indicator.
8. Do you include enough data (charts, equity curves, trade logs) to support your claims?
Answer: No, the script does not include or generate equity curves or trade logs. It provides visual labels on the chart, which can be seen as a form of "data" to support the signal generation, but not the performance claims (as none are made by the code).
________________________________________
Future Expectations
9. Are you making any predictions about future market performance?
Answer: No, the script does not make any explicit predictions about future market performance. Its signals are based on historical price action and indicator calculations.
10. Have you stated clearly that the future is fundamentally uncertain?
Answer: No, the script does not contain any statements about the uncertainty of the future.
11. Are forward-looking statements presented with caution and appropriate language?
Answer: The script does not contain any forward-looking statements beyond the visual signals it generates based on real-time data.
________________________________________
Risk & Disclosure
12. Have you disclosed the risks associated with using your script or strategy?
Answer: No, the script does not include any risk disclosures. This is typically found in external documentation.
13. Do you explain that trading involves potential loss as well as gain?
Answer: No, the script does not contain any explanation about the potential for loss in trading.
________________________________________
Honesty & Integrity
14. Have you avoided hype words like “guaranteed,” “foolproof,” or “no losses”?
Answer: Yes, the script itself avoids these hype words. The language used within the code is technical and describes the indicator's logic.
15. Is your language grounded and realistic rather than promotional?
Answer: Yes, the language within the provided Pine Script code is grounded and realistic as it pertains to the technical implementation of an indicator.
16. Are you leaving out any important details that might mislead users (e.g., selective performance snapshots)?
Answer: From the perspective of the code itself, no, it's not "leaving out" performance details because it's not designed to generate them. However, if this indicator were to be presented as a "strategy" that implies profitability without accompanying disclaimers, backtesting results, and risk disclosures, then that external presentation could be misleading. The script focuses on signal generation and visual representation.
⚠️ Disclaimer:
This indicator is for informational and educational purposes only. It does not guarantee any future results or performance. All trading involves risk. Please assess your own risk tolerance and consult a licensed financial advisor if needed. Past performance does not indicate future returns.
在腳本中搜尋"entry"
StochFusion – Multi D-LineStochFusion – Multi D-Line
An advanced fusion of four Stochastic %D lines into one powerful oscillator.
What it does:
Combines four user-weighted Stochastic %D lines—from fastest (9,3) to slowest (60,10)—into a single “Fusion” line that captures both short-term and long-term momentum in one view.
How to use:
Adjust the four weights (0–10) to emphasize the speed of each %D component.
Watch the Fusion line crossing key zones:
– Above 80 → overbought condition, potential short entry.
– Below 20 → oversold condition, potential long entry.
– Around 50 → neutral/midline, watch for trend shifts.
Applications:
Entry/exit filter: Only take trades when the Fusion line confirms zone exits.
Trend confirmation: Analyze slope and cross of the midline for momentum strength.
Multi-timeframe alignment: Use on different chart resolutions to find confluence.
Tips & Tricks:
Default weights give more influence to slower %D—good for trend-focused strategies.
Equal weights provide a balanced oscillator that mimics an ensemble average.
Experiment: Increase the fastest weight to capture early reversal signals.
Developed by: TradeQUO — inspired by DayTraderRadio John
“The best momentum indicator is the one you adapt to your own trading rhythm.”
Oculus Quantum RangeOculus Quantum Range
The Oculus Quantum Range is a sophisticated indicator designed to track dynamic support and resistance levels, based on market volatility and price action. It uses the Average True Range (ATR) to define a dynamic range, giving traders powerful breakout and breakdown targets for more informed decision-making.
Key Features:
Dynamic Support & Resistance Levels: The indicator calculates key dynamic levels using the highest high and lowest low over a user-defined period (default: 20 bars). These levels adjust according to market volatility, helping to reflect current market conditions.
Breakout & Breakdown Targets: The system calculates breakout and breakdown targets based on the ATR, adding flexibility to the classic support and resistance levels. The targets are plotted above and below the dynamic range.
Volume Confirmation: The breakout and breakdown targets are confirmed when there is a spike in volume, enhancing the reliability of these trade signals.
Pivot Levels: The middle level (pivot) is plotted as the average of the highest high and the lowest low over the range period, offering an additional reference point for traders.
How to Use:
Breakout Entry:
When the price crosses above the Dynamic Top Line (Resistance), a breakout is considered. The breakout target is calculated and plotted above the resistance level.
A confirmed breakout is when the price crosses the resistance with volume higher than the 20-period volume average.
Breakdown Entry:
When the price crosses below the Dynamic Bottom Line (Support), a breakdown is considered. The breakdown target is calculated and plotted below the support level.
A confirmed breakdown is when the price crosses the support with volume higher than the 20-period volume average.
Pivot Zone:
The middle level (pivot) acts as a reference zone, showing potential areas where price action may pause or reverse before continuing toward breakout or breakdown targets.
Alert Conditions:
Breakout Alert: Triggered when the price crosses above the dynamic top line (resistance).
Breakdown Alert: Triggered when the price crosses below the dynamic bottom line (support).
Visualization:
The Dynamic Top Line (Resistance) is plotted in red.
The Middle Level (Pivot) is plotted in blue.
The Dynamic Bottom Line (Support) is plotted in green.
Breakout Targets are plotted in purple above the resistance, and Breakdown Targets are plotted in orange below the support.
Confirmed Breakout/Breakdown are marked with green and red lines respectively, and the background will change to green or red for a visual cue.
This indicator is perfect for traders looking to make timely decisions based on price action, volatility, and volume. It’s ideal for identifying potential breakout and breakdown opportunities with clear, dynamic targets.
EMA 200 Monitor - Bybit CoinsEMA 200 Monitor - Bybit Coins
📊 OVERVIEW
The EMA 200 Monitor - Bybit Coins is an advanced indicator that automatically monitors 30 of the top cryptocurrencies traded on Bybit, alerting you when they are close to the 200-period Exponential Moving Average on the 4-hour timeframe.
This indicator was developed especially for traders who use the EMA 200 as a key support/resistance level in their swing trading and position trading strategies.
🎯 WHAT IT'S FOR
Multi-Asset Monitoring: Simultaneous monitoring of 30 cryptocurrencies without having to switch between charts
Opportunity Identification: Detects when coins are approaching the 200 EMA, a crucial technical level
Automated Alerts: Real-time notifications when a coin reaches the configured proximity
Time Efficiency: Eliminates the need to manually check chart collections
⚙️ HOW IT WORKS
Main Functionality
The indicator uses the request.security() function to fetch price data and calculate the 200 EMA of each monitored asset. With each new bar, the script:
Calculates the distance between the current price and the 200 EMA for each coin
Identifies proximity based on the configured percentage (default: 2%)
Displays results in a table organized on the chart
Generates automatic alerts when proximity is detected
Monitored Coins
Major : BTC, ETH, BNB, ADA, XRP, SOL, DOT, DOGE, AVAX
DeFi : UNI, LINK, ATOM, ICP, NEAR, OP, ARB, INJ
Memecoins : SHIB, PEPE, WIF, BONK, FLOKI
Emerging : SUI, TON, APT, POL (ex-MATIC)
📋 AVAILABLE SETTINGS
Adjustable Parameters
EMA Length (Default: 200): Exponential Moving Average Period
Proximity Percentage (Default: 2%): Distance in percentage to consider "close"
Show Table (Default: Active): Show/hide results table
Table Position: Position of the table on the chart (9 options available)
Color System
🔴 Red: Distance ≤ 1% (very close)
🟠 Orange: Distance ≤ 1.5% (close)
🟡 Yellow: Distance ≤ 2% (approaching)
🚀 HOW TO USE
Initial Configuration
Add the indicator to the 4-hour timeframe chart
Set the parameters according to your strategy
Position the table where there is no graphic preference
Setting Alerts
Click "Create Alert" in TradingView
Select the "EMA 200 Monitor" indicator
Set the notification frequency and method
Activate the alert to receive automatic notifications
Results Interpretation
The table shows:
Coin: Asset name (e.g. BTC, ETH)
Price: Current currency quote
EMA 200: Current value of the moving average
Distance: Percentage of proximity to the core code
💡 STRATEGIES TO USE
Reversal Trading
Entry: When price touches or approaches the EMA 200
Stop: Below/above the EMA with a safety margin
Target: Previous resistance/support levels
Breakout Trading
Monitoring: Watch for currencies consolidating near the EMA 200
Entry: When the media is finally broken
Confirmation: Volume and close above/below the EMA
Swing Trading
Identification: Use the monitor to detect setups in formation
Timing: Wait for the EMA 200 to approach for detailed analysis
Management: Use the EMA as a reference for stops dynamics
⚠️ IMPORTANT CONSIDERATIONS
Technical Limitations
Request Bybit data: Access to exchange symbols required
Specific timeframe: Optimized for 4-hour analysis
Minimum delay: Data updated with each new bar
Usage Recommendations
Combine with technical analysis: Use together with other indicators
Confirm the configuration: Check the graphic patterns before trading
Manage risk: Always use stop loss and adequate position sizing
Backtesting: Test your strategy before applying with real capital
Disclaimer
This indicator is a technical analysis tool and does not constitute investment advice. Always do your own analysis and manage detailed information about the risks of your operations.
🔧 TECHNICAL INFORMATION
Pine Script version: v6
Type: Indicator (overlay=true)
Compatibility: All TradingView plans
Resources used: request.security(), arrays, tables
Performance: Optimized for multiple simultaneous queries
📈 COMPETITIVE ADVANTAGES
✅ Simultaneous monitoring of 30 major assets ✅ Clear visual interface with intuitive core system ✅ Customizable alerts for different details ✅ Optimized code for maximum performance ✅ Flexible configuration adaptable to different strategies ✅ Real-time update without the need for manual refresh
Developed for traders who value efficiency and accuracy in identifying market opportunities based on the EMA 20
Position Size Calculator ProPosition Size Calculator Pro is a professional risk management tool that helps traders calculate optimal position sizes based on their account size, risk tolerance, and trade setup. The indicator provides real-time calculations with interactive price lines and a comprehensive horizontal table display for quick decision-making.
✨ Key Features
Multiple Entry Modes: Current price, manual price, or interactive buy line
Flexible Stop Loss Options: LOD (Low of Day), manual price, percentage-based, or interactive stop line
Advanced Risk Calculations: Includes brokerage impact and adjusted risk metrics
Interactive Price Lines: Visual buy and stop loss lines with real-time updates
Horizontal Table Display: Compact 2-row table showing all critical metrics
Smart Color Coding: Visual feedback based on risk and allocation levels
Professional UI: Clean, modern interface with intuitive controls
Indian Market Ready: Optimized for Indian trading with ₹ currency display
🔧 Input Parameters
💰 Risk Management
Account Size (₹): Total trading capital (default: 10,00,000)
Risk per Trade (%): Maximum risk percentage per trade (default: 0.25%, range: 0.01-5%)
Brokerage (%): Combined buy and sell brokerage (default: 0.12%, range: 0-2%)
📊 Entry & Stop Loss
Entry Mode: Choose between Current Price, Manual Price, or Buy Line
Manual Entry Price: Custom entry price (when Manual Price selected)
Stop Loss Mode: LOD SL, Manual SL, Manual SL %, or SL Line
Manual Stop Loss: Custom stop loss price
SL Percentage (%): Percentage below entry for stop loss (default: 2%, range: 0.1-20%)
📈 Interactive Lines
Buy Line Price: Interactive buy line (click on chart to set)
Stop Loss Line: Interactive stop loss line (click on chart to set)
Show Lines: Toggle line visibility
🎨 Display Options
Show Table: Toggle calculation table visibility
Table Size: Adjustable from tiny to huge
Position: Top, middle, or bottom placement
Alignment: Left, center, or right alignment
Update Frequency: Real-time or bar close
📊 Calculation Methodology
Position Size Formula
Position Size = (Account Size × Risk %) ÷ (Adjusted Risk per Share)
Risk Calculations
Base Risk: |(Entry Price - Stop Loss)| ÷ Entry Price × 100
Adjusted Risk: Includes brokerage impact on both entry and exit
Risk Amount: Position Size × Base Risk per Share
Brokerage Impact
Entry with Brokerage: Entry Price × (1 + Brokerage% ÷ 200)
Exit with Brokerage: Stop Loss × (1 - Brokerage% ÷ 200)
🎮 How to Use
Basic Setup
Set your account size and risk percentage
Configure brokerage percentage according to your broker
Choose entry and stop loss modes
The calculator automatically updates position size
Interactive Lines Setup
⚠️ IMPORTANT: After selecting line modes, refresh the chart to ensure lines are visible
For Buy Line:
Select Entry Mode: "Buy Line"
Set "Buy Line Price" or leave 0 for current price
Refresh chart to see the green buy line
Adjust price by clicking on chart or changing input value
For Stop Loss Line:
Select Stop Loss Mode: "SL Line"
Set "Stop Loss Line" or leave 0 for current low
Refresh chart to see the red stop loss line
Adjust price by clicking on chart or changing input value
Table Information
The horizontal calculation table displays:
SL: Stop Loss price
Entry: Entry price level
Risk%: Adjusted risk percentage (with brokerage)
SL%: Base stop loss risk percentage
Cap%: Account risk percentage setting
Qty: Recommended quantity to buy
Investment: Total investment amount required
Alloc%: Portfolio allocation percentage
Risk ₹: Total risk amount in Rupees
Color Coding Guide
Green Values: Positive/profitable metrics
Red Values: Risk/loss related metrics
Orange Values: Warning levels (high risk/allocation)
Blue Headers: Table headers
Bright Green Line: Buy line with target icon
Bright Red Line: Stop loss line with shield icon
🚨 Alert Conditions
Built-in Alerts
High Allocation Warning: Triggers when position exceeds 20% of account
High Risk Warning: Triggers when stop loss risk exceeds 5%
Invalid Position: Triggers when calculation parameters are invalid
Setting Up Alerts
Click "Add Alert" on the chart
Select "Position Size Calculator Pro"
Choose desired alert condition
Configure notification settings
⚠️ Important Notes & Troubleshooting
Interactive Lines
Lines not visible? Refresh the chart after selecting line modes
Lines moving together? Each line operates independently - check you're adjusting the correct price input
Default behavior: Buy line starts at current price, Stop line starts at current low
Price = 0: Uses automatic defaults (current price/low)
Risk Disclaimers
This tool is for educational purposes only
Always verify calculations independently
Consider market conditions, gaps, and liquidity
Past performance doesn't guarantee future results
Technical Limitations
Interactive lines require chart refresh for initial visibility
Calculations update based on selected frequency
Maximum 10 lines and 10 labels on chart simultaneously
Best Practices
Always set realistic account size
Never risk more than you can afford to lose
Consider slippage and market gaps in volatile conditions
Review calculations before placing actual trades
Use appropriate position sizing for your trading strategy
Refresh chart when switching between line modes
🛠️ Technical Requirements
TradingView account (any tier)
Pine Script v6 compatibility
Modern browser for interactive features
Real-time or delayed data feed
📈 Performance Features
The script includes several optimizations:
Efficient calculation updates based on frequency setting
Smart memory management for line drawings
Conditional table updates to reduce resource usage
Optimized number formatting for better readability
🎯 Use Cases
Day Trading
Quick position sizing for intraday setups
Real-time risk assessment
Interactive line placement for entry/exit planning
Swing Trading
Portfolio allocation management
Multi-timeframe risk analysis
Position size optimization for longer holds
Investment Planning
Capital allocation for stock purchases
Risk-based position sizing
Long-term portfolio management
Disclaimer: This tool is for educational and informational purposes only. Trading involves substantial risk of loss and is not suitable for all investors. Always conduct your own research and consider seeking advice from qualified financial professionals.
Momentum Fusion v1Momentum Fusion v1
Overview
Momentum Fusion v1 (MFusion) is a multi-oscillator indicator that combines several components to analyze market momentum and trend strength. It incorporates modified versions of classic indicators such as PVI (Positive Volume Index), NVI (Negative Volume Index), MFI (Money Flow Index), RSI, Stochastic, and Bollinger Bands Oscillator. The indicator displays a histogram that changes color based on momentum strength and includes "FUSION🔥" signal labels when extreme values are reached.
Indicator Settings
Parameters:
EMA Length – Smoothing period for the moving average (default: 255).
Smoothing Period – Internal calculation smoothing parameter (default: 15).
BB Multiplier – Standard deviation multiplier for Bollinger Bands (default: 2.0).
Show verde / marron / media lines – Toggles the display of auxiliary lines.
Show FUSION🔥 label – Enables/disables signal labels.
Indicator Components
1. PVI (Positive Volume Index)
Formula:
pvi := volume > volume ? nz(pvi ) + (close - close ) / close * sval : nz(pvi )
Description:
PVI increases when volume rises compared to the previous bar and accounts for price percentage change. The stronger the price movement with increasing volume, the higher the PVI value.
2. NVI (Negative Volume Index)
Formula:
nvi := volume < volume ? nz(nvi ) + (close - close ) / close * sval : nz(nvi )
Description:
NVI tracks price movements during declining volume. If the price rises on low volume, it may indicate a "stealth" trend.
3. Money Flow Index (MFI)
Formula:
100 - 100 / (1 + up / dn)
Description:
An oscillator measuring money flow strength. Values above 80 suggest overbought conditions, while values below 20 indicate oversold conditions.
4. Stochastic Oscillator
Formula:
k = 100 * (close - lowest(low, length)) / (highest(high, length) - lowest(low, length))
Description:
A classic stochastic oscillator showing price position relative to the selected period's range.
5. Bollinger Bands Oscillator
Formula:
(tprice - BB midline) / (upper BB - lower BB) * 100
Description:
Indicates the price position relative to Bollinger Bands in percentage terms.
Key Lines & Histogram
1. Verde (Green Line)
Calculation:
verde = marron + oscp (normalized PVI)
Interpretation:
Higher values indicate stronger bullish momentum. A FUSION🔥 signal appears when the value reaches 750+.
2. Marron (Brown Line)
Calculation:
marron = (RSI + MFI + Bollinger Osc + Stochastic / 3) / 2
Interpretation:
A composite oscillator combining multiple indicators. Higher values suggest overbought conditions.
3. Media (Red Line)
Calculation:
media = EMA of marron with smoothing period
Interpretation:
Acts as a signal line for trend confirmation.
4. Histogram
Calculation:
histo = verde - marron
Colors:
Bright green (>100) – Strong bullish momentum.
Light green (>0) – Moderate bullish momentum.
Orange (<0) – Bearish momentum.
Red (<-100) – Strong bearish momentum.
Signals & Alerts
1. FUSION🔥 (Strong Momentum)
Condition:
verde >= 750
Visualization:
A "FUSION🔥" label appears below the chart.
Alert:
Can be set to trigger notifications when the condition is met.
2. Background Aura
Condition:
verde > 850
Visualization:
The chart background turns teal, indicating extreme momentum.
Usage Recommendations
FUSION🔥 Signal – Can be used as a long entry point when confirmed by other indicators.
Histogram:
1. Green bars – Potential long entry.
2. Red/orange bars – Potential short entry.
3. Media & Marron Crossover – Can serve as an additional trend filter.
4. Suitable for a 5-15 minute time frame
Conclusion
Momentum Fusion v1 is a powerful tool for momentum analysis, combining multiple indicators into a unified system. It is suitable for:
Trend traders (catching strong movements).
Scalpers (identifying short-term impulses).
Swing traders (filtering entry points).
The indicator features customizable settings and visual signals, making it adaptable to various trading styles.
3 EMA + SupertrendThree EMAs: Helps you identify the general trend direction and potential crossovers.
When the Fast EMA crosses above the Medium or Slow EMAs, it may indicate a bullish trend, and vice versa for bearish trends.
Supertrend: Works as a trend filter. You can use it to identify overall market conditions:
When the Supertrend is green, it indicates an uptrend.
When the Supertrend is red, it indicates a downtrend.
Combination: The EMAs help you confirm the trend, and the Supertrend can act as a filter or confirmation tool for your entries and exits.
Potential Strategy Idea:
Long Entry: When the Fast EMA crosses above the Medium EMA, and the Supertrend is green.
Short Entry: When the Fast EMA crosses below the Medium EMA, and the Supertrend is red.
Exit: You can use either the Supertrend turning from green to red (for long exits) or vice versa.
Opening Range BreakoutOPENING RANGE BREAKOUT (ORB) INDICATOR
DESCRIPTION
The Opening Range Breakout indicator is a powerful technical analysis tool designed specifically for US equity markets. It identifies and visualizes the opening range established during the first configurable minutes of each trading day (starting at 9:30 AM EST), then provides clear signals when price breaks out of or rejects from these key levels.
This indicator combines multiple timeframe analysis capabilities with precise breakout detection to help traders identify high-probability trading opportunities based on opening range dynamics.
KEY FEATURES
Configurable Opening Range:
• Set opening range duration from 5 minutes to 4 hours
• Automatically adjusts calculations based on your chart timeframe
• Works on any timeframe (1m, 5m, 15m, 1h, etc.)
Multi-Day Range Display:
• Shows up to 50 days of historical opening ranges
• Each day's range properly contained within its trading session
• Range lines extend from market open (9:30 AM) to market close (4:00 PM EST)
Clear Signal System:
• Green arrows (⬆): Bullish breakouts and rejections
• Red arrows (⬇): Bearish breakouts and rejections
• Two signal types: Close breakouts (normal size) and wick rejections (small size)
Visual Range Highlighting:
• Opening range period highlighted with colored box
• Customizable colors for range fill, borders, and midline
• Clean, professional appearance with configurable line styles
SIGNAL TYPES
Bullish Signals (Green ⬆):
1. Close Breakout Above Range (Normal Size): 5-minute candle closes above the opening range high
2. Wick Rejection from Below (Small Size): Price wicks below the opening range low but closes back inside the range
Bearish Signals (Red ⬇):
1. Close Breakout Below Range (Normal Size): 5-minute candle closes below the opening range low
2. Wick Rejection from Above (Small Size): Price wicks above the opening range high but closes back inside the range
CONFIGURATION OPTIONS
Range Settings:
• Opening Range Minutes: Duration of opening range (default: 30 minutes)
• Lookback Days: Number of historical days to display (default: 20 days)
Visual Customization:
• Range Color: Fill color for the opening range area
• Border Color: Color for range high/low lines
• Midline Color: Color for the range midpoint line
• Opening Range Highlight Color: Color for the opening period box
• Line Style: Solid, Dashed, or Dotted lines
• Line Width: 1-4 pixel width options
Display Options:
• Show Midline: Toggle midpoint line display
• Show Range Labels: Toggle price level labels
• Arrow Distance: Adjust arrow positioning (0.1-2.0%)
USAGE GUIDE
Basic Setup:
1. Add the indicator to your chart (works best on 5-minute timeframe)
2. Configure your preferred opening range duration (15m, 30m, or 60m are popular choices)
3. Adjust lookback days based on your analysis needs
4. Customize colors and line styles to match your chart theme
Trading Applications:
Breakout Trading:
• Long Entry: Green arrow (close breakout above range) + confirmation
• Short Entry: Red arrow (close breakout below range) + confirmation
• Stop Loss: Opposite side of the opening range
• Target: 1-2x the range size or key support/resistance levels
Range Rejection Trading:
• Reversal Setups: Small arrows indicate failed breakouts
• Mean Reversion: Trade back toward range midline
• Support/Resistance: Use range levels as key price zones
Multi-Day Analysis:
• Identify recurring support/resistance levels
• Analyze range expansion/contraction patterns
• Compare current day's activity to recent history
BEST PRACTICES
1. Timeframe Selection: 5-minute charts provide optimal signal clarity
2. Range Duration: 30-minute opening range is most commonly used, but adjust based on:
- Market volatility
- Stock characteristics
- Trading style preference
3. Confirmation: Use additional indicators or price action for trade confirmation
4. Risk Management: Always use appropriate position sizing and stop losses
MARKET SESSIONS
The indicator is specifically designed for US equity markets:
• Market Open: 9:30 AM EST
• Market Close: 4:00 PM EST
• Opening Range: Calculated from market open
• Range Lines: Extend throughout the trading day only
PERFORMANCE NOTES
• Optimized for real-time trading with minimal lag
• Automatically manages memory by cleaning old ranges
• Efficiently handles multiple timeframes and range calculations
KNOWN ISSUES & WORKAROUNDS
Historical Buffer Error:
Issue: Occasionally, you may encounter an error: "The requested historical offset (XXX) is beyond the historical buffer's limit (770)"
Workaround:
1. Switch to a different timeframe temporarily
2. Switch back to your original timeframe
3. The indicator will reload and function normally
This is a Pine Script limitation related to historical data access and doesn't affect the indicator's core functionality.
COMPATIBILITY
• Pine Script Version: v6
• Chart Types: All chart types supported
• Timeframes: All timeframes (optimized for 1m-1h)
• Markets: Designed for US equity markets during regular trading hours
TIPS FOR MAXIMUM EFFECTIVENESS
1. Combine with Volume: High volume on breakouts increases reliability
2. Market Context: Consider overall market direction and volatility
3. News Awareness: Be cautious around earnings and major announcements
4. Range Quality: Wider ranges often provide better breakout opportunities
5. Time of Day: Early breakouts (first 1-2 hours) often have higher follow-through
This indicator is provided for educational and informational purposes. Always conduct your own analysis and manage risk appropriately.
0x278's Swing-Failure-Pattern (SFP)0x278's Swing-Failure-Pattern (SFP) ‑ Confirmed Short
Table of Contents
Introduction
Core Concept – What Is an SFP?
How the Indicator Works
Visual Elements & Their Meaning
Input Parameters Explained
Step-by-Step Trading Playbook
Example Workflow (Daily BTC-USDT)
Alerts & Automation
Tips, Tricks & Best Practices
FAQ
Advanced Configuration & Asset-Class Playbook
1. Introduction
The Swing-Failure-Pattern (SFP) – Confirmed Short indicator spots and tracks bearish SFPs on any market and timeframe, with defaults tuned for Daily charts.
A bearish SFP occurs when price sweeps a prior swing high (liquidity grab) and then decisively rejects lower , signalling a possible trend reversal or sharp pullback.
This script automatically:
Identifies the liquidity sweep & rejection (‐"SFP-SHORT" label)
Confirms directional intent via a structure-breaking close below the setup low
Paints a preferred sell-on-retest zone and tracks its validity
Identifies optimal entry opportunities when price retests the zone
Generates optional retest and entry alerts when trading conditions appear
Self-cleans after a configurable number of bars – keeping your chart tidy
Default Timeframe : Daily
Default Market : Crypto / FX majors
Works On : All symbols + timeframes – simply adjust parameters.
2. Core Concept – What Is an SFP?
Sweep (Liquidity Grab) – Price trades above a meaningful swing high, triggering stops & inducing breakout buyers.
Rejection – The same bar (or the next) closes back below the swept high, invalidating the breakout.
Structure Break – Bears confirm intent by closing below the "setup low" (the most recent pivot low before the sweep).
Retest – Price retraces to the sweep zone. Traders seek entries inside the upper half of that zone with invalidation just above the swing high.
The indicator encodes these four steps so you can spot high-quality bearish reversals without manual bar-by-bar analysis.
3. How the Indicator Works
Phase: Sweep & Rejection
Script Logic: high > lastSwingHigh and close < lastSwingHigh
Visual Cue: Red SFP-SHORT label above candle
Phase: Structure Break
Script Logic: Close < setupLow while pattern locked
Visual Cue: Zone (red line-box) plotted; SFP-SHORT label stays
Phase: Retest Tracking
Script Logic: Zone stays active for retestExpiry bars or until tapped
Visual Cue: Orange SFP-RETEST label when hit
Phase: Entry Signal
Script Logic: Price rejection within retest zone
Visual Cue: Green ENTRY label at optimal entry point
Phase: Expiry / Cleanup
Script Logic: Zone deleted after expiry
Visual Cue: Labels fade but remain visible for reference
All calculations reset after each completed/expired pattern ensuring fresh, uncluttered signals.
4. Visual Elements & Their Meaning
SFP-SHORT (red) – Bar that swept a prior high and closed below it.
Red Box / Line – Preferred sell zone between the swing high (upper bound) and dynamic lower bound (see sizing methods). Extends right until filled/expired.
SFP-RETEST (orange) – Bar that first tags the zone after confirmation.
ENTRY (green) – Appears when a high-probability entry signal occurs within the retest zone.
EXPIRED (gray) – Appears when the retest zone expires without being hit.
Visual Persistence – Labels fade but remain visible after expiry for reference and historical analysis.
5. Input Parameters Explained
Pivot Detection
Pivot left / right : Bars left/right of the pivot that must stay below/above it. Tip : Symmetrical values (3/3) work best for clean structure.
Retest Management
Retest expiry (bars) : Lifespan of a retest zone before it is considered stale. Default: 14 bars on Daily . Tip : Shorten for intraday, lengthen for swing trading.
Retest Zone Sizing
Sizing method : Select Static %, ATR-based or Hybrid logic for the lower boundary. Tip : Hybrid balances tight stops with realistic fills.
Static % : Fixed fraction of sweep range when Static/Hybrid is selected. Tip : Higher % deepens zone & widens stop.
ATR period : Look-back length for ATR when volatility sizing is used. Tip : Increase to smooth choppy markets.
ATR multiplier : Multiplier applied to ATR in ATR-based/Hybrid mode. Tip : Higher value widens zone during volatility.
Visual – Retest Zone
Show retest zone box : Toggles drawing of the semi-transparent sell zone box. Tip : Disable for ultra-clean look.
Retest box color : Fill colour of the box (alpha = transparency). Tip : Match your chart theme.
Max retest boxes : How many historical boxes remain visible (0 = unlimited). Tip : Lower to boost performance.
Only show active boxes : Automatically deletes a box once it's hit. Tip : Reduces clutter during back-testing.
Visual – General
Minimal mode : Hides most visuals apart from critical labels. Tip : Ideal for screenshots.
Show retest zone line : Draws a vertical line linking upper/lower boundaries. Tip : Acts as a quick depth guide.
Show ENTRY labels : Plots 'ENTRY' on optimal candles. Tip : Turn off for manual confirmation.
Labels
Label size : Overall size of all labels. Tip : tiny / small / normal.
Use simple label style : Switches to pixel text style for labels. Tip : Faster rendering on low-spec machines.
Advanced
minPct / maxPct (hard-coded) : Internal floor/cap for Hybrid logic. Tip : Exposed in code for power-users only.
Zone-Sizing Methods
Static – Lower bound = sweepRange × staticPct.
ATR-based – Lower bound = ATR × multiplier, normalised to the sweepRange.
Hybrid – Uses the greater of Static and ATR-based (capped by an internal safety ceiling).
6. Step-by-Step Trading Playbook
Identify Context – Prefer setups against extended moves into obvious highs (e.g., daily swing highs, prior week high, round numbers).
Wait for SFP Confirmation – The indicator will label an SFP-SHORT only after the candle closes. Do not front-run.
Structure-Break Close – A close below setupLow turns the zone live. This is your go signal – prepare sell orders.
Place Orders in the Zone
Entry : Limit order anywhere between retestLower and the swing high.
Stop : 1-2 ticks/pips above the swing high.
Risk Management
Size position so risk per trade ≤ account risk % (common: 0.5-1%).
If no retest before retestExpiry bars → cancel order .
Targets
Conservative: First liquidity pocket / FVG below.
Aggressive: 2-3× risk or next HTF support.
Trail or Partial – Consider trailing stop once 1R is achieved or partial profit at 1R.
7. Example Workflow (Daily BTC-USDT)
BTC trades to a fresh one-month high at $31 050 sweeping prior highs.
Candle closes at $30 420 – below the swept high – SFP-SHORT label appears.
Two days later, candle closes below setupLow at $29 880 – confirmation & zone plotted (upper = $31 050, lower ≈ $30 550).
Five days later price retests the zone hitting $30 750 – SFP-RETEST alert fires, trade filled.
Stop placed @ $31 120 (70$ risk). 1R target = $29 680 reached four days later.
8. Alerts & Automation
SFP Short confirmed
Fires When: Structure-break close below setupLow.
Suggested Action: Prepare/submit sell-limit order in the zone.
SFP Short retest
Fires When: Price enters the retest zone.
Suggested Action: Monitor for entry signals or prepare for manual entry.
SFP Short Entry Signal
Fires When: Optimal entry conditions detected within retest zone.
Suggested Action: Execute short trade with defined risk parameters.
Use TradingView's Webhook URL to forward alerts to a trade-execution bot (e.g., PineConnector) for automated order placement.
9. Tips, Tricks & Best Practices
Combine with HTF Bias – Only take bearish SFPs in bearish weekly trend.
Watch Volume – High volume on the sweep bar adds conviction.
Time Window – SFPs during NY session FX / US session crypto tend to be stronger.
Cluster Zones – Multiple overlapping SFP zones increase probability; treat the cluster as one larger supply.
Avoid News – Skip SFPs forming minutes before high-impact macro news.
10. FAQ
Q: Can I use this on lower timeframes?
A: Yes – reduce retestExpiry (e.g., 15 bars on 15-minute) and test ATR-based sizing.
Q: Does it work for longs?
A: This script focuses on bearish SFPs. Clone & invert conditions for longs.
Q: Why did a zone disappear?
A: Either it expired (retestExpiry) without a retest or the cleanup routine removed old visuals to stay within Pine limits (500 objects per type).
Q: What's the difference between the "SFP-RETEST" and "ENTRY" signals?
A: "SFP-RETEST" indicates price has entered the zone, while "ENTRY" signals an optimal entry opportunity based on price rejection within the zone.
Q: How do I customize the label appearance?
A: Use the "Label size" and "Use simple label style" settings to adjust all labels to your preferred visual style.
Happy trading & trade safe!
11. Advanced Configuration & Asset-Class Playbook
Why does the retest box feel "too high" and how do I actually get filled? Use the quick tweaks below or the power-user code snippet to shape the zone to your personality and instrument.
11.1 Why the default box is shallow
The Static 25 % / ATR-Hybrid logic keeps stops small. Around 50 % of Daily BTC SFPs never look back – that's the cost of tight risk. If you need higher fill-rates, deepen the zone (11.2).
11.2 Three slider moves – no coding required
Retest zone sizing method – switch Static → Hybrid or ATR-based
Static % – raise from 0.25 → 0.45-0.60
ATR multiplier – raise from 1.0 → 1.5-2.0
Each turn pulls the lower edge of the box deeper while keeping the invalidation at the swing high.
11.3 One-liner for coders
To allow >60 % of the sweep range edit the source:
Old code:
minPct = 0.05
maxPct = 0.60
New code:
minPct = 0.05
maxPct = input.float(0.60, "Max retest % of sweep", step = 0.05, minval = 0.10, maxval = 0.95)
Then dial the cap up to ~0.80-0.90 from the settings panel.
11.4 If price never comes back…
No-retest partial – take 25-40 % size on the confirmation candle, stop above the high.
Lower-TF confirmation – drop to 4 h / 1 h and hunt an internal SFP or bearish FVG inside the sweep.
ATR trail – if price dumps immediately, trail the stop above each new lower-high.
11.5 Asset-Class Cheat-Sheet
Crypto – Daily : Static %: 0.20-0.35, ATR mult: 1.0, Retest Expiry: 12-20 . Notes : High volatility; sweeps expand fast.
FX Majors – 4 h/D : Static %: 0.25-0.40, ATR mult: 1.2, Retest Expiry: 15-25 . Notes : ATR handles session compression.
Index Futures – 1 h : Static %: 0.30-0.50, ATR mult: 1.5, Retest Expiry: 10-20 . Notes : Hybrid recommended; gaps tighten sweeps.
US Equities – 30 m : Static %: 0.35-0.55, ATR mult: 1.5-2.0, Retest Expiry: 10-14 . Notes : Consider no-retest entry on earnings spikes.
Always forward-test on your own symbol & timeframe ✔️
MMM @MaxMaserati 2.0MMM @MaxMaserati 2.0 - TradingView Indicator
The Backbone of the Max Maserati Method
The MMM @MaxMaserati 2.0 indicator is the core of the proprietary Max Maserati Method (MMM), a trading system designed to decode institutional price action. It integrates candle bias analysis, market structure identification, volume-based signals, and precise entry zones to align traders with smart money.
Core Components of the MMM System
1. Six Core Candle Classifications
Master these patterns to reveal institutional behavior:
Bullish Body Close: Closes above previous high, signaling strong buying.
Bearish Body Close: Closes below previous low, indicating intense selling.
Bullish Affinity: High tests previous low, closes within range, showing hidden bullish strength.
Bearish Affinity: Low tests previous high, closes within range, reflecting bearish pressure.
Seek & Destroy: Breaks both previous high/low, closes inside, direction depends on close.
Close Inside: High/low within previous range, bias based on close.
2. Plus/Minus Strength System
Quantifies candle conviction:
Bullish Strength: Low to close distance.
Bearish Strength: High to close distance.
Plus (+): Dominant strength signals strong follow-through.
Minus (-): Balanced strengths suggest caution.
3. PO4 Candles (Power of OHLC (4))
Analyzes OHLC for body-closed candles after swing high/low fractals:
C2: Body close above high/below low post fractal with strength conditions.
C3: Stronger body close with pronounced low/high breakouts.
C4: Body close which show strength and might trigger a BeB/BuB
Visualization: Green (bullish), purple (bearish) bars; triangle markers for fractals.
4. MC2 (High Volume Reversal Candles)
High buy/sell volume candles reversed by opposing volume:
Bullish MC2: Buy volume flipped by sell volume, signaling exhaustion.
Bearish MC2: Sell volume flipped by buy volume, indicating reversal.
Visualization: Dark green (bullish), dark red (bearish) bars.
5. MMM Blocks (eBlocks and iBlocks)
Marks institutional order blocks:
External Blocks (eBlocks): At market structure changes (MSC), labeled BuB/BeB.
Internal Blocks (iBlocks): Within trends, labeled L/S.
Volume: Normalized with indicators (🔥 high, ↑ above average, ↓ low).
Filters: Discount (0-50), premium (50-100), extreme (0-20, 80-100), mid-range (20-50, 50-80).
6. Entry Blocks - Specific Entry Areas
Entry Blocks are precise zones for framing trades based on the MMM system, triggered post-MSC to capitalize on institutional momentum:
Purpose: Pinpoint high-probability entry areas following a Market Structure Change (MSC), aligning with smart money direction.
Formation:
MMM Entry Block Long: Forms after a bullish MSC (BuB), typically at the swing low (e.g., lowerValueMSC) of the fractal pattern, marking a long entry zone.
MMM Entry Block Short: Forms after a bearish MSC (BeB), typically at the swing high (e.g., upperValueMSC), marking a short entry zone.
Styles :
Close-to-Swing High/Low: Box drawn from the candle’s close to the swing high/low level, emphasizing the fractal pivot.
High/Low-to-Close: Box drawn from the candle’s high/low to its close, capturing the full price action range.
Visualization:
Labeled “MMM Entry Block Long” (cyan background/border) or “Short” (pink background/border).
Includes a dashed midline for reference.
Volume displayed if enabled, normalized with markers (🔥 >150%, ⚡ >120%, ❄️ <70%).
Behavior:
Deletes when price touches the level (On Level Touch) or closes beyond it (On Candle Close)
Limited to a configurable number ( default 5) to avoid clutter.
Trade Framing:
Entry: Enter within the eBreak box, ideally on a pullback or confirmation candle aligning with MMM bias (e.g., Bullish Body Close or Affinity).
Stop-Loss: Placed below the eBreak low (bullish) or above the high (bearish), leveraging the swing level as support/resistance.
Take-Profit: Targets higher timeframe high (bullish) or low (bearish), with ratio (default 2.0) for risk-reward.
MMM Integration: Use candle bias (Plus/Minus), PO4 signals, and MMPD consensus to confirm entry direction and strength.
Significance: eBreaks frame trades by isolating institutional entry points post-MSC, reducing noise and enhancing precision.
7. Market Structure Change (MSC)
Tracks structure shifts:
Detection: Fractal highs/lows with adjustable candle count.
Visualization: Green (BuB), red (BeB) lines/labels; numbered breaks (Bub1/Beb1).
Counter: Tracks consecutive MSCs for trend strength.
8. MMPD (Market Momentum Price Delivery)
Analyzes momentum/trend:
Conditions: Red (bearish), Green (bullish), Pink (modifying bearish), Pale Green (modifying bullish).
Traps: Flags bullish/bearish traps when MMPD conflicts with body close.
Metrics: SuperMaxTrend, momentum (K/D), MMPD level.
Consensus: Rated signals (e.g., “Very Strong Buy ★★★★★”).
9. Trade and Risk Management
Disciplined trading:
Entry Visualization: Entry, stop-loss, take-profit lines/labels with customizable risk (riskAmount, default $50) and reward (ratio).
Behavior: Shows last/all entries, removes on MSC shift or breach.
Text Size: Tiny, Small, Normal.
NB: The Trade and risk management is to use with caution, it is not fully implemented yet.
10. Stats Table
Real-time dashboard:
Elements: Timeframe, symbol, candle bias, strength, MMPD, momentum, SuperMaxTrend, MMPD level, volume, consensus, divergence, delta MA, price delivery, note (“Analyze | Wait | Repeat”).
Customization: Position, size, element visibility.
Colors: Green (bullish), red (bearish), orange (warnings), gray (neutral).
11. Delta MA and Divergence
Monitors volume delta:
Delta MA: Smoothed delta with direction arrows (↗↘→).
Divergence: Flags MMPD-momentum divergences (⚠️).
Key Features
Automated Analysis: Detects PO4, MSC, blocks, MC2, Entry Block via OHLC.
Color-Coded Visualization: Bars, lines, table cells reflect bias/strength.
Dynamic Bias Lines: Higher timeframe high/low lines with labels.
Volume Analysis: Normalized volume across blocks, entries, MC2.
Flexible Filters: Tailors block/entry Block display to strategies.
Real-Time Metrics: Tracks strength, delta, trend points.
Trading Advantages
Institutional Insight: Decodes manipulation via OHLC and volume.
Early Reversals: Spots shifts via PO4, MC2, MSC, Entry Blocks.
Precise Entries: entry block frame high-probability trades.
Robust Risk Management: Stop-loss, take-profit, risk-reward.
Simplified Complexity: Actionable signals from complex action.
Profit Target Framework
Bullish: Higher timeframe high.
Bearish: Higher timeframe low.
Plus Strength: Direct move.
Minus Strength: Pullbacks expected.
Entry Blocks/MSC-Driven: Entry anchor entries to MSC targets.
Trader’s Mantra
“Analyze | Wait | Repeat” - Discipline drives profits.
The MMM @MaxMaserati 2.0 indicator, with Entry Blocks as specific trade-framing zones, offers a professional-grade framework for precise, institutional-aligned trading.
Note: Based on the proprietary Max Maserati Method for educational and analytical use.
Stochastic RSI with MTF TableShort Description of the Script
The provided Pine Script indicator, titled "Stochastic RSI with MTF Table," calculates and displays the Stochastic RSI for the current timeframe and multiple other timeframes (5m, 15m, 30m, 60m, 240m, and daily). The Stochastic RSI is a momentum indicator that blends the Relative Strength Index (RSI) and Stochastic Oscillator to identify overbought and oversold conditions, as well as potential trend reversals via K and D line crossovers.
Key features of the script include:
Inputs: Customizable parameters such as K smoothing (default 3), D smoothing (default 3), RSI length (default 14), Stochastic length (default 14), source price (default close), and overbought/oversold levels (default 80/20).
MTF Table: A table displays the Stochastic RSI status for each timeframe:
"OB" (overbought) if K > 80, "OS" (oversold) if K < 20, or "N" (neutral) otherwise.
Crossovers: "K↑D" for bullish (K crosses above D) and "K↓D" for bearish (K crosses below D).
Visualization: Plots the K and D lines for the current timeframe, with horizontal lines at 80 (overbought), 50 (middle), and 20 (oversold), plus a background fill for clarity.
Table Position: Configurable to appear in one of four chart corners (default: top-right).
This indicator helps traders assess momentum across multiple timeframes simultaneously, aiding in the identification of trend strength and potential entry/exit points.
Trading Strategy with 50EMA and 200EMA for Highest Winning Rate
To create a strategy with the best probability of a high winning rate using the Stochastic RSI MTF indicator alongside the 50-period Exponential Moving Average (50EMA) and 200-period Exponential Moving Average (200EMA), we can combine trend identification with momentum-based entry timing. The 50EMA and 200EMA are widely used to determine medium- and long-term trends, while the Stochastic RSI MTF table provides multi-timeframe momentum signals. Here’s the strategy:
1. Determine the Overall Trend
Bullish Trend: The 50EMA is above the 200EMA on the current timeframe (e.g., daily or 60m chart). This suggests an uptrend, often associated with a "Golden Cross."
Bearish Trend: The 50EMA is below the 200EMA on the current timeframe. This indicates a downtrend, often linked to a "Death Cross."
Implementation: Plot the 50EMA and 200EMA on your chart and visually confirm their relative positions.
2. Identify Entry Signals Using the Stochastic RSI MTF Table
In a Bullish Trend (50EMA > 200EMA):
Look for timeframes in the MTF table showing:
Oversold (OS): K < 20, indicating a potential pullback in the uptrend where price may rebound.
Bullish Crossover (K↑D): K crosses above D, signaling rising momentum and a potential entry point.
Example: If the 60m and 240m timeframes show "OS" or "K↑D," this could be a buy signal.
In a Bearish Trend (50EMA < 200EMA):
Look for timeframes in the MTF table showing:
Overbought (OB): K > 80, suggesting a rally in the downtrend where price may reverse downward.
Bearish Crossover (K↓D): K crosses below D, indicating declining momentum and a potential short entry.
Example: If the 30m and daily timeframes show "OB" or "K↓D," this could be a sell/short signal.
Current Timeframe Check: Use the plotted K and D lines on your trading timeframe for precise entry timing (e.g., confirm a K↑D crossover on a 60m chart for a long trade).
3. Confirm Signals Across Multiple Timeframes
Strengthen the Signal: A higher winning rate is more likely when multiple timeframes align with the trend and signal. For instance:
Bullish trend + "OS" or "K↑D" on 60m, 240m, and daily = strong buy signal.
Bearish trend + "OB" or "K↓D" on 15m, 60m, and 240m = strong sell signal.
Prioritize Higher Timeframes: Signals from the 240m or daily timeframe carry more weight due to their indication of broader trends, increasing reliability.
4. Set Stop-Loss and Take-Profit Levels
Long Trades (Bullish):
Stop-Loss: Place below the most recent swing low or below the 50EMA, whichever is closer, to protect against trend reversals.
Take-Profit: Target a key resistance level or use a risk-reward ratio (e.g., 2:1 or 3:1) based on the stop-loss distance.
Short Trades (Bearish):
Stop-Loss: Place above the most recent swing high or above the 50EMA, whichever is closer.
Take-Profit: Target a key support level or apply a similar risk-reward ratio.
Trailing Stop Option: As the trend progresses, trail the stop below the 50EMA (for longs) or above it (for shorts) to lock in profits.
5. Risk Management
Position Sizing: Risk no more than 1-2% of your trading capital per trade to minimize losses from false signals.
Volatility Consideration: Adjust stop-loss distances and position sizes based on the asset’s volatility (e.g., wider stops for volatile stocks or crypto).
Avoid Overtrading: Wait for clear alignment between the EMA trend and MTF signals to avoid low-probability setups.
Example Scenario
Chart: 60-minute timeframe.
Trend: 50EMA > 200EMA (bullish).
MTF Table: 60m shows "OS," 240m shows "K↑D," and daily is "N."
Action: Enter a long position when the 60m K line crosses above D, confirming the table signal.
Stop-Loss: Below the recent 60m swing low (e.g., 2% below entry).
Take-Profit: At the next resistance level or a 3:1 reward-to-risk ratio.
Outcome: High probability of success due to trend alignment and multi-timeframe confirmation.
Why This Strategy Works
Trend Following: Trading in the direction of the 50EMA/200EMA trend reduces the risk of fighting the market’s momentum.
Momentum Timing: The Stochastic RSI MTF table pinpoints pullbacks or reversals within the trend, improving entry timing.
Multi-Timeframe Confirmation: Alignment across timeframes filters out noise, increasing the win rate.
Risk Control: Defined stop-loss and position sizing protect against inevitable losses.
Caveats
No strategy guarantees a 100% win rate; false signals can occur, especially in choppy markets.
Test this strategy on historical data or a demo account to verify its effectiveness for your asset and timeframe.
This approach leverages the strengths of both trend-following (EMA) and momentum (Stochastic RSI) tools, aiming for a high-probability, disciplined trading system.
Position Size CalculatorPosition Size Calculator - User Guide
A simple tool to calculate optimal position size based on your risk preferences, visualize trade levels, and automatically determine trade direction.
Introduction
The Position Size Calculator is a TradingView indicator designed to help traders calculate the optimal position size for their trades based on account size and risk tolerance. This tool visually represents entry, stop loss, and take profit levels while automatically calculating the appropriate position size to maintain consistent risk management.
Getting Started
Setting Up Your Account Parameters
Setting Price Levels
Understanding the Visual Elements
Adjusting Your Trade on the Chart
Reading the Information Panel
1. Getting Started
After adding the indicator to your chart, you'll see three horizontal lines representing:
Yellow line: Entry price
Green line: Take profit price
Red line: Stop loss price
The indicator automatically detects whether you're planning a Long or Short trade based on the position of your take profit relative to your entry.
2. Setting Up Your Account Parameters
In the "Position Calculator" settings group:
Account Size : Enter your total account balance
Account Currency : Set your account currency (USD, EUR, etc.)
Risk (%) : Enter the percentage of your account you're willing to risk per trade (e.g., 2%)
Instrument Type : Select your trading instrument (Forex, Futures, Stocks, or Crypto)
Value per 0.01 lot per tick : Enter the value of 0.01 lots per tick (for most Forex pairs, this is $1 per pip for 0.01 lot)
Minimum Lot Size : Set the minimum lot size allowed by your broker (usually 0.01 for Forex)
3. Setting Price Levels
In the "Price Levels" section:
Entry Price : The price at which you plan to enter the trade
Stop Loss Price : Where you'll exit if the trade goes against you
Take Profit Price : Your target price where you'll take profits
If you set Entry Price to 0, it will default to the current price. If Stop Loss or Take Profit are set to 0, they'll default to 5% below or above entry price respectively.
4. Understanding the Visual Elements
Yellow line : Your entry price
Green line : Your take profit level
Red line : Your stop loss level
Green zone : The profit zone (between entry and take profit)
Red zone : The loss zone (between entry and stop loss)
Information panel : Shows all calculations and trade details
5. Adjusting Your Trade on the Chart
The beauty of this tool is its interactivity:
You can drag any of the lines directly on the chart to adjust entry, stop loss, or take profit
If you drag the take profit above the entry , the indicator automatically sets up for a Long trade
If you drag the take profit below the entry , it automatically configures for a Short trade
All calculations and visuals update in real-time as you adjust the lines
This means you can quickly test different scenarios and see how they affect your position size and potential profit/loss.
6. Reading the Information Panel
The information panel displays:
Account details : Your account size and currency
Risk information : Your percentage risk and the equivalent monetary amount
Position Size : The optimal lot size calculated based on your risk parameters
Price levels : Entry, Stop Loss, and Take Profit with distances in ticks
Risk/Reward ratio : Shown as 1:X (where X is the reward relative to 1 unit of risk)
Potential outcomes : The exact amount you stand to gain or lose on this trade
Trade direction : Whether this is a Long or Short trade
Visual Settings
You can customize the appearance in the "Visual" settings group:
Adjust colors for profit and loss zones
Change the transparency of colored zones
Toggle the filling of spaces between lines
Adjust how far the lines extend beyond the last candle
Practical Tips
Always double-check your "Value per 0.01 lot per tick" setting for the specific instrument you're trading
For Forex major pairs, the standard is usually $1 per pip for 0.01 lots
For other instruments, consult your broker's specifications
The indicator works best when you place your stop loss at a logical market level (support/resistance, swing high/low) rather than a fixed percentage
Final Thoughts
This Position Size Calculator helps remove emotion from your trading by objectively calculating your position size based on your predefined risk parameters. It ensures that you maintain consistent risk across all your trades, regardless of the stop loss distance, which is a key component of successful risk management.
Remember: The most important goal in trading is capital preservation. This tool helps you ensure that each trade risks only what you've decided is acceptable for your trading strategy.
Supply In Profit Z-Score | Vistula LabsOverview
The Supply In Profit Z-Score indicator is a Pine Script™ tool developed by Vistula Labs for technical analysis of cryptocurrencies, specifically Bitcoin (BTC) and Ethereum (ETH). It utilizes on-chain data from IntoTheBlock to calculate the difference between the percentage of addresses in profit and those in loss, transforming this metric into a Z-Score. This indicator helps traders identify market sentiment, trend-following opportunities, and overbought or oversold conditions.
What is Supply In Profit?
Supply In Profit is defined as the net difference between the percentage of addresses in profit and those in loss:
Profit Percentage: The proportion of addresses where the current value of holdings exceeds the acquisition price.
Loss Percentage: The proportion of addresses where the current value is below the acquisition price.
A positive value indicates more addresses are in profit, suggesting bullish sentiment, while a negative value indicates widespread losses, hinting at bearish sentiment.
How It Works
The indicator computes a Z-Score to normalize the Supply In Profit data relative to its historical behavior:
Z-Score = (Current Supply In Profit - Moving Average of Supply In Profit) / Standard Deviation of Supply In Profit
Current Supply In Profit: The latest profit-minus-loss percentage.
Moving Average: A customizable average (e.g., EMA, SMA) over a default 180-bar period.
Standard Deviation: Calculated over a default 200-bar lookback period.
Key Features
Data Source:
Selectable between BTC and ETH, pulling daily profit/loss percentage data from IntoTheBlock.
Customization:
Moving Average Type: Options include SMA, EMA, DEMA, RMA, WMA, or VWMA (default: EMA).
Moving Average Length: Default is 180 bars.
Z-Score Lookback: Default is 200 bars.
Thresholds: Adjustable for long/short signals and overbought/oversold levels.
Signals:
Long Signal: Z-Score crosses above the Long Threshold (default: 1.0).
Short Signal: Z-Score crosses below the Short Threshold (default: -0.64).
Overbought/Oversold Conditions:
Overbought: Z-Score > 3.0.
Oversold: Z-Score < -2.0.
Visualizations:
Z-Score Plot: Teal for long signals, magenta for short signals.
Threshold Lines: Dashed lines for long/short, solid lines for overbought/oversold.
Candlestick Coloring: Matches signal colors (teal/magenta).
Arrows: Green up-triangles for long entries, red down-triangles for short entries.
Background Colors: Magenta for overbought, teal for oversold.
Alerts:
Conditions for Long Opportunity, Short Opportunity, Overbought, and Oversold.
Usage Guide
Trend Following
Long Entry: When Z-Score crosses above 1.0, indicating potential upward momentum.
Short Entry: When Z-Score crosses below -0.64, suggesting potential downward momentum.
Overbought/Oversold Analysis
Overbought (Z-Score > 3.0): Consider profit-taking or preparing for a reversal.
Oversold (Z-Score < -2.0): Look for buying opportunities or exiting shorts.
Timeframe
Uses daily IntoTheBlock data, ideal for medium to long-term analysis.
Interpretation
High Z-Score: Indicates Supply In Profit is significantly above its historical mean, potentially signaling overvaluation.
Low Z-Score: Suggests Supply In Profit is below its mean, indicating possible undervaluation.
Signals and thresholds help traders act on shifts in market sentiment or extreme conditions.
Conclusion
The Supply In Profit Z-Score indicator provides a robust, data-driven approach to analyzing cryptocurrency market trends and sentiment. By combining on-chain metrics with statistical normalization, it empowers traders to make informed decisions based on historical context and current market dynamics.
MTS📊 MTS (Murrey Math System) Trading Strategy for TradingView 📊
Introduction:
This script implements the Murrey Math System (MTS), a market analysis tool based on a set of pivot points and price ranges, designed to help traders identify key levels of support and resistance.
MTS calculates key price levels based on historical price swings and helps identify price targets, stop-loss levels, and potential breakout zones.
The strategy also includes an adaptive bias panel, showing buy or sell suggestions based on current price action relative to Murrey Math levels.
Key Components:
1. Pivot Calculation and Conditions:
Pivot Lookback & Spikeyness Index:
The pivots: lookback/forward input defines how far back (and forward) the script looks to identify potential pivot points (high and low). A smaller value focuses on more recent swings, while larger values consider a broader range.
The Spikeyness Index (atrMult) allows you to adjust sensitivity to market spikes, utilizing the Average True Range (ATR) to detect sharp price movements that could indicate potential turning points.
Pivot Conditions:
isPivHigh and isPivLow detect local high and low pivot points, respectively.
Spiky Conditions: The spikyH and spikyL conditions filter out pivots that do not meet the spikiness criteria, which is based on ATR and moving averages.
2. Swing High and Swing Low Identification:
The script identifies and stores previous swing highs (HR_prev) and lows (LR_prev), updating them based on the current market structure.
3. Proprietary Calculation:
The propCalc input enables a proprietary calculation method for determining higher or lower levels beyond the typical Murrey Math levels, offering a more adaptive approach to price targets and support/resistance levels.
4. Murrey Math Lines (MML):
MML Calculation:
The code calculates a set of Murrey Math Lines (EightEight, FourEight, ZeroEight), which are key price levels based on the range of the price over a given time period. These levels represent major support and resistance zones, with the EightEight line indicating extremely overbought conditions and ZeroEight signaling deeply oversold conditions.
Level and Extension Lines:
The script also plots additional levels and extensions based on the range between HR and LR, representing key support/resistance levels. These levels are dynamically drawn on the chart, offering clear insights into where price might reverse or break out.
Strategy Logic:
- Breakout and Breakdown:
The Bias Box panel dynamically displays a trade bias, either suggesting to "Buy on Dip" or "Sell on Rise," depending on whether the current price is above or below the midpoint of the Murrey Math range (BEP). This bias is calculated using the market's relationship to the Murrey Math Levels.
- Buy on Dip: When the price is below the midpoint (BEP), suggesting the market is in a buying zone.
- Sell on Rise: When the price is above the midpoint, suggesting the market is in a selling zone.
- Stop-Loss and Target Hints:
The stop-loss (SL) and target levels are dynamically set based on the position relative to HR and LR:
For Buy on Dip: SL is set at LR Low, Target is set at HR High.
For sell on Rise: SL is set at HR Low, Target is set at LR High.
2. Historical and Current Levels:
The script compares the most recent Murrey Math levels with historical levels. This helps identify any shifts or changes in the market structure, enhancing the trader's ability to adapt to new trends.
- Current Levels:
The current levels are drawn from the most recent HR and LR values, with corresponding extensions showing possible breakout or breakdown zones.
- Historical Levels:
Historical levels are drawn in a "ghost" style, helping traders visualize past market conditions and potential support/resistance zones that could still influence price movement.
- Trade Examples:
Example 1: Buy on Dip
a. Scenario:
Price is below the midpoint (BEP), and the bias suggests a buy on dip.
The trader looks for a rebound from the LR Low level, with a target at the HR High.
b. Entry:
Buy when the price reaches the LR Low level.
c. Exit:
Take profit when the price hits the HR High.
d. Stop-Loss:
Place stop-loss at the LR Low.
Example 2: Sell on Rise
a. Scenario:
Price is above the midpoint (BEP), and the bias suggests a sell on rise.
The trader looks for a pullback to the HR Low, with a target at the LR High.
b. Entry:
Sell when the price reaches the HR High level.
c. Exit:
Take profit when the price hits the LR Low.
d. Stop-Loss:
Place stop-loss at the HR Low.
Key Features:
Bias Panel: A table in the top-right corner showing the current market bias (Buy on Dip, Sell on Rise, or Neutral).
Displays real-time trade direction and risk information, such as stop-loss and target hints.
Dynamic Level Adjustment: As the price moves, the script dynamically updates the key levels (HR, LR, and Murrey Math lines), keeping traders aware of the most recent market structure.
Visualization Tools:
The chart is populated with a series of lines and labels that indicate the critical price levels for trading.
Support/Resistance Lines: Each key level is marked with different colors for quick recognition.
Extensions: Additional lines are plotted based on price projections, indicating where the market could potentially move.
Note:
Please note that this is an educational purpose idea, any action/trade taken will be user's own responsibility.
Enjoy!
Regards.
DDDDD: SMI Quad Sync📄DDDDD: SMI Quad Sync
A multi-timeframe momentum synchronization indicator using 4 Stochastic Oscillators with different lengths (9, 14, 40, 60) to detect collective oversold and overbought zones.
✅ Key Features:
Plots 4 stochastic lines with vertical offsets for better visual separation.
Generates a Long Signal (green square) when all 4 stochastics are below the oversold level.
Generates a Short Signal (red square) when all 4 stochastics are above the overbought level.
Use signals to confirm multi-timeframe momentum alignment or exhaustion.
🎯 How to Use:
Look for green square → potential LONG entry: signals multi-timeframe oversold condition.
Look for red square → potential SHORT entry: signals multi-timeframe overbought condition.
Combine with trend analysis, price action, or other confirmation for optimal entries.
📝 Notes:
The plotted stochastic lines are visually shifted (offset) for clarity; signals are computed from raw, unshifted values.
Designed for traders who prefer confluence across different stochastic lookback periods to improve confidence.
👉 Ideal for scalping, swing trading, or as a momentum filter in broader strategies.
Trend Following Bundle [ActiveQuants]The Trend Following Bundle indicator is a comprehensive toolkit designed to equip traders with a suite of essential technical analysis tools focused on identifying , confirming , and capitalizing on market trends . By bundling popular indicators like Moving Averages , MACD , Supertrend , ADX , ATR , OBV , and the Choppiness Index into a single script, it streamlines chart analysis and enhances strategy development.
This bundle operates on the principle that combining signals from multiple, complementary indicators provides a more robust view of market trends than relying on a single tool. It integrates:
Trend Direction: Moving Averages, Supertrend.
Momentum: MACD.
Trend Strength: ADX.
Volume Pressure: On Balance Volume (OBV).
Volatility: Average True Range (ATR).
Market Condition Filter: Choppiness Index (Trend vs. Range).
By allowing users to selectively enable, customize, and view these indicators (potentially across different timeframes), the bundle facilitates nuanced and layered trend analysis.
█ KEY FEATURES
All-in-One Convenience: Access multiple core trend-following indicators within a single TradingView script slot.
Modular Design: Easily toggle each individual indicator (MAs, MACD, Supertrend, etc.) On or Off via the settings menu to customize your chart view.
Extensive Customization: Fine-tune parameters (lengths, sources, MA types, colors, etc.) for every included indicator to match your trading style and the specific asset.
Multi-Timeframe (MTF) Capability: Configure each indicator component to analyze data from a different timeframe than the chart's, allowing for higher-level trend context.
Integrated Alerts: Pre-built alert conditions for key events like Moving Average crossovers , MACD signals , Supertrend flips , and Choppiness Index threshold crosses . Easily set up alerts through TradingView's alert system.
When configuring your alerts in TradingView, pay close attention to the trigger option:
- Setting it to " Only Once " will trigger the alert the first time the condition is met, which might happen during an unclosed bar (intra-bar). This alert instance will then cease.
- Setting it to " Once Per Bar Close " will trigger the alert only after a bar closes if the condition was met on that finalized bar. This ensures signals are based on confirmed data and allows the alert to potentially trigger again on subsequent closing bars if the condition persists or reoccurs. Use this option for signals based on confirmed, closed-bar data.
MA Smoothing & Bands (Optional): Apply secondary smoothing or Bollinger Bands directly to the Fast and Slow Moving Averages for advanced analysis.
█ USER INPUTS
Fast MA:
On/Off: Enables/Disables the Fast Moving Average plot and related smoothing/bands.
Type: Selects the primary calculation type (SMA, EMA, SMMA (RMA), WMA, VWMA). Default: EMA.
Source: Input data for the MA calculation (e.g., close, open, hl2). Default: close.
Length: Lookback period for the primary MA calculation. Default: 9.
Color: Sets the color of the primary Fast MA line. Default: Yellow.
Line Width: Sets the thickness of the primary Fast MA line. Default: 2.
Smoothing Type: Selects secondary smoothing type applied to the primary MA (e.g., None, SMA, EMA) or adds Bollinger Bands (SMA + Bollinger Bands). Default: None.
Smoothing Length: Lookback period for the secondary smoothing MA or the basis MA for Bollinger Bands. Relevant only if Smoothing Type is not " None ". Default: 10.
BB StdDev: Standard deviation multiplier for Bollinger Bands. Relevant only if Smoothing Type is " SMA + Bollinger Bands ". Default: 2.0.
Timeframe: Sets a specific timeframe for the MA calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close before plotting, preventing repainting. Default: true.
Slow MA:
On/Off: Enables/Disables the Slow Moving Average plot and related smoothing/bands.
Type: Selects the primary calculation type (SMA, EMA, SMMA (RMA), WMA, VWMA). Default: EMA.
Source: Input data for the MA calculation (e.g., close, open, hl2). Default: close.
Length: Lookback period for the primary MA calculation. Default: 9.
Color: Sets the color of the primary Slow MA line. Default: Yellow.
Line Width: Sets the thickness of the primary Slow MA line. Default: 2.
Smoothing Type: Selects secondary smoothing type applied to the primary MA (e.g., None, SMA, EMA) or adds Bollinger Bands (SMA + Bollinger Bands). Default: None.
Smoothing Length: Lookback period for the secondary smoothing MA or the basis MA for Bollinger Bands. Relevant only if Smoothing Type is not " None ". Default: 10.
BB StdDev: Standard deviation multiplier for Bollinger Bands. Relevant only if Smoothing Type is " SMA + Bollinger Bands ". Default: 2.0.
Timeframe: Sets a specific timeframe for the MA calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close before plotting, preventing repainting. Default: true.
MACD:
On/Off: Enables/Disables the MACD plots (MACD line, Signal line, Histogram).
Fast Length: Lookback period for the fast MA in MACD calculation. Default: 12.
Slow Length: Lookback period for the slow MA in MACD calculation. Default: 26.
Source: Input data for the MACD MAs. Default: close.
Signal Smoothing: Lookback period for the Signal Line MA. Default: 9.
Oscillator MA Type: Calculation type for Fast and Slow MAs (SMA, EMA). Default: EMA.
Signal Line MA Type: Calculation type for Signal Line MA (SMA, EMA). Default: EMA.
MACD Color: Color of the MACD line. Default: #2962FF.
MACD Signal Color: Color of the Signal line. Default: #FF6D00.
Timeframe: Sets a specific timeframe for the MACD calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
On Balance Volume (OBV):
On/Off: Enables/Disables the OBV plot and its related MAs/Bands.
Type (MA Smoothing): Selects MA type for smoothing OBV (None, SMA, EMA, etc.) or SMA + Bollinger Bands. Default: None.
Length (MA Smoothing): Lookback period for the OBV smoothing MA. Default: 14.
BB StdDev: Standard deviation multiplier for Bollinger Bands if selected. Default: 2.0.
Color: Color of the main OBV line. Default: #2962FF.
Timeframe: Sets a specific timeframe for the OBV calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
ADX:
On/Off: Enables/Disables the ADX plot.
ADX Smoothing: Lookback period for the ADX smoothing component. Default: 14.
DI Length: Lookback period for the Directional Movement (+DI/-DI) calculation. Default: 14.
Color: Color of the ADX line. Default: Red.
Timeframe: Sets a specific timeframe for the ADX calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
ATR:
On/Off: Enables/Disables the ATR plot.
Length: Lookback period for the ATR calculation. Default: 14.
Smoothing: Selects the calculation type for ATR (SMMA (RMA), SMA, EMA, WMA). Default: SMMA (RMA).
Color: Color of the ATR line. Default: #B71C1C.
Timeframe: Sets a specific timeframe for the ATR calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
Supertrend:
On/Off: Enables/Disables the Supertrend plot and background fill.
ATR Length: Lookback period for the ATR calculation within Supertrend. Default: 10.
Factor: Multiplier for the ATR value used to calculate the Supertrend bands. Default: 3.0.
Up Trend Color: Color for the Supertrend line and background during an uptrend. Default: Green.
Down Trend Color: Color for the Supertrend line and background during a downtrend. Default: Red.
Timeframe: Sets a specific timeframe for the Supertrend calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
Choppiness Index:
On/Off: Enables/Disables the Choppiness Index plot and bands.
Length: Lookback period for the Choppiness Index calculation. Default: 14.
Offset: Shifts the plot left or right. Default: 0.
Color: Color of the Choppiness Index line. Default: #2962FF.
Timeframe: Sets a specific timeframe for the CI calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
█ STRATEGY EXAMPLES
The following strategy examples are provided for illustrative and educational purposes only to demonstrate how indicators within this bundle could be combined. They do not constitute financial advice or trading recommendations. Always conduct your own thorough research and backtesting before implementing any trading strategy.
Here are a few ways the indicators in this bundle can be combined:
1. MA Crossover with Multi-Factor Confirmation
Goal: Enter trends early with confirmation from momentum and trend strength, while filtering out choppy conditions.
Setup: Enable Fast MA (e.g., 9 EMA), Slow MA (e.g., 50 EMA), MACD, ADX, and Choppiness Index.
Entry (Long):
- Price > Slow MA (Establishes broader uptrend context).
- Fast MA crosses above Slow MA OR Price crosses above Fast MA.
- MACD Histogram > 0 (Confirms bullish momentum).
- ADX > 20 or 25 (Indicates sufficient trend strength).
- Choppiness Index < 61.8 (Filters out excessively choppy markets).
Entry (Short): Reverse logic (except for ADX and Choppiness Index).
Management: Consider using the Supertrend or an ATR multiple for stop-loss placement.
Image showing a chart with 2:1 long and short trades, highlighting a candle disqualified for a long entry due to ADX below 20.
2. Supertrend Breakout Strategy
Goal: Use Supertrend for primary signals and stops, confirming with volume and trend strength.
Setup: Enable Supertrend, Slow MA, ADX, and OBV.
Entry (Long):
- Supertrend line turns green and price closes above it.
- Price > Slow MA (Optional filter for alignment with larger trend).
- ADX is rising or above 20 (Confirms trending conditions).
- OBV is generally rising or breaks a recent resistance level (Confirms volume supporting the move).
Entry (Short): Reverse logic (except for ADX and OBV).
Management: Initial stop-loss placed just below the green Supertrend line (for longs) or above the red line (for shorts). Trail stop as Supertrend moves.
Image showing a chart with a 2:1 long trade, one candle disqualified for a short entry, and another disqualified for a long entry.
3. Trend Continuation Pullbacks
Goal: Enter established trends during pullbacks to value areas defined by MAs or Supertrend.
Setup: Enable Slow MA, Fast MA (or Supertrend), MACD, and ADX.
Entry (Long):
- Price is consistently above the Slow MA (Strong uptrend established).
- ADX > 25 (Confirms strong trend).
- Price pulls back towards the Fast MA or the green Supertrend line.
- MACD Histogram was decreasing during the pullback but turns positive again OR MACD line crosses above Signal line near the MA/Supertrend level (Indicates momentum resuming).
Entry (Short): Reverse logic (except for ADX) during a confirmed downtrend.
Management: Stop-loss below the recent swing low or the Slow MA/Supertrend level.
Image showing a chart with 2:1 long and short trades, where price pulls back to the fast MA and the MACD histogram changes color, indicating shifts in momentum during the pullbacks.
█ CONCLUSION
The Trend Following Bundle offers a powerful and flexible solution for traders focused on trend-based strategies. By consolidating essential indicators into one script with deep customization, multi-timeframe analysis, and built-in alerts, it simplifies the analytical workflow and allows for the development of robust, multi-conditional trading systems. Whether used for confirming entries, identifying trend strength, managing risk, or filtering market conditions, this bundle provides a versatile foundation for technical analysis.
█ IMPORTANT NOTES
⚠ Parameter Tuning: Indicator settings (lengths, factors, thresholds) are not one-size-fits-all. Adjust them based on the asset being traded, its typical volatility, and the timeframe you are analyzing for optimal performance. Backtesting is crucial .
⚠ Multi-Timeframe Use: Using the Timeframe input allows for powerful analysis but be mindful of potential lag, especially if Wait TF Close is disabled. Signals based on higher timeframes will update only when that higher timeframe bar closes (if Wait TF Close is enabled).
⚠ Confirmation is Key: While the bundle provides many tools, avoid relying on a single indicator's signal. Use combinations to build confluence and increase the probability of successful trades.
⚠ Chart Clarity: With many indicators available, only enable those relevant to your current strategy to avoid overwhelming your chart. Use the On/Off toggles frequently.
⚠ Confirmed Bars Only: Like most TradingView indicators, signals and plots are finalized on the close of the bar. Be cautious acting on intra-bar signals which may change before the bar closes.
█ RISK DISCLAIMER
Trading involves substantial risk of loss and is not suitable for every investor. The Trend Following Bundle indicator provides technical analysis tools for educational and informational purposes only; it does not constitute financial advice or a recommendation to buy or sell any asset. Indicator signals identify potential patterns based on historical data but do not guarantee future price movements or profitability. Always conduct your own thorough analysis, use multiple sources of information, and implement robust risk management practices before making any trading decisions. Past performance is not indicative of future results.
📊 Happy trading! 🚀
RunRox - Harmonic Patterns📐 RunRox - Harmonic Pattern indicator , we are pleased to present our new, built upon sophisticated logic for identifying and plotting harmonic formations directly on your charts. Significant effort and research have been invested into the development of this indicator, and now it is ready to be included in our premium indicator package.
In this post, we will provide a comprehensive overview of our indicator, describing all its key features, capabilities, and possible use cases. We strongly recommend reading the entire post thoroughly to fully understand the logic and operation behind our new Harmonic Pattern indicator.
📜 A BRIEF HISTORY
Harmonic patterns are specialized chart formations based on Fibonacci ratios, used by traders to identify potential reversal points in financial markets. Originally introduced by H.M. Gartley in the 1930s and later refined by Scott Carney, harmonic patterns became widely recognized for their effectiveness in forecasting precise turning points and market reversals. Over the years, these patterns have become an essential tool for traders employing technical analysis.
📌 INDICATOR FEATURES
Identification of 3 pattern sets:
✅ 5 Classic Chart Patterns:
Head and Shoulders, Triangle, Wedge, Flag, Double Top/Bottom
✅ 11 Harmonic Patterns:
Bat, Alternate Bat, Butterfly, Crab, Deep Crab, Gartley, Shark, Cypher, 5-0 Pattern, AB=CD, 3-Drive
✅ 10 Non-standard Harmonic Patterns:
Nen Star, White Swan, Black Swan, Anti-Bat, Anti-Butterfly, Anti-Crab, Anti-Gartley, Anti-Shark, Anti-Cypher, Anti-Nen Star
Additional features:
Built-in backtesting system
Pattern win-rate calculation
Flexible Stop Loss settings
Flexible Take Profit settings
Customizable pattern detection parameters
Advanced trailing stop functionality
Flexible notification system
And much more.
Below is a screenshot visually illustrating all the classic chart patterns that our indicator identifies on the chart.
This is how the 11 harmonic patterns visually appear on the chart.
10 Non-standard harmonic patterns visually represented on the chart.
🔸 XABCD are standard letters representing specific points used in forming harmonic patterns. The sequence always begins with the point X as the initial reference point, followed by points ABCD, which together complete the harmonic pattern.
These points are identified using a specialized method, scanning through thousands of potential points on the chart simultaneously. The indicator analyzes numerous potential formations, selecting and displaying only those patterns that meet specific validation criteria. This meticulous process ensures that only valid and accurate patterns appear on your chart, as illustrated in the screenshot below.
🔸 Ratio: Between the points XABCD, you’ll notice the “Ratio,” indicating the proportional relationships required between these points to correctly form harmonic patterns. The indicator displays a pattern on the chart only when these ratio conditions are precisely met, thereby maximizing accuracy and ensuring the validity of identified patterns. This aspect is clearly demonstrated in the screenshot below.
🔸 TP and SL levels: For each identified pattern, we also display recommended Take Profit (TP) and Stop Loss (SL) levels directly on the chart. Additionally, we provide a suggested entry price (Entry Level). It is important to note that entering a trade requires the price to retrace into the specified Entry Level zone. Therefore, you must wait until the price returns to this zone for the pattern to be considered fully formed and ready for entry.
Using the Butterfly pattern as an example, we’ve illustrated all the key components of a pattern. Our indicator offers extensive customization, allowing you to finely adjust everything from the acceptable Ratio ranges to Stop Loss and Take Profit levels, among many other parameters. Below, we’ll discuss the indicator’s capabilities and its customizable settings in detail.
📶 ACTIVE PATTERNS PANEL
In the screenshot above, you can see the panel displaying all active patterns currently formed on the chart, including the pattern direction, entry price, two take profit levels, and the stop loss level. This provides a quick and clear overview of the available patterns on your chart, significantly speeding up your trading process.
Additionally, you can fully customize this panel, adjusting its position, size, or even completely removing it if you prefer.
📊 PATTERN STATISTICS
The Pattern Statistics Panel displays historical performance results for all patterns. The indicator automatically performs backtesting for each pattern based on historical data, taking into account all user-defined settings. Results are conveniently presented in this panel.
This feature is highly practical as it allows you to quickly evaluate the effectiveness of each pattern directly on your chart. As a result, you can easily identify which patterns are performing best and which patterns might be less effective and therefore unsuitable for trading on the current instrument.
Furthermore, the panel organizes patterns into specific categories Classical, Harmonic, and Anti-Harmonic and separates results by trade direction (Long or Short). This helps you quickly determine the optimal trading direction for each pattern category.
⚙️ INDICATOR SETTINGS
Now, it’s time to discuss the indicator settings in detail and describe all the available options and features that you can customize according to your preferences.
🔶 Detection Settings
In the screenshot above, you see the first settings block with the following options:
FastMode – When activated, only patterns are displayed on the chart, without the results table. This significantly speeds up the pattern rendering process and makes the script run faster.
Error % – Allows you to specify a permissible deviation from the ideal XABCD parameters. By increasing this percentage, the indicator will detect more patterns, but they will deviate from the ideal ratio proportions by the percentage you’ve set.
Search Priority – Choose between “Large First” or “Small First” pattern prioritization. With “Large First,” the indicator prioritizes detecting larger patterns first; smaller patterns are only displayed if no suitable large patterns are available, and vice versa.
ZigZag Period – Determines the period for the ZigZag structure used as a foundation for pattern detection. It’s an essential parameter that directly affects the number and quality of detected patterns.
Pattern Size – Specify the desired size of patterns in terms of the number of bars on the chart.
Remove patterns older than, bars – Allows you to remove old patterns from the chart and prevent their display if they formed more than a set number of bars ago (default is 200 bars).
🔶 Entry / Target / StopLoss Settings
In the screenshot above, you can see the settings related to configuring your preferred entry points, target levels, and stop-loss strategies. Below is a detailed explanation of each option:
Trade Direction – Both / Long / Short - Choose the direction in which you want to trade. Selecting “Both” will search for patterns in both directions, while “Long” or “Short” will filter the patterns to show only those that align with the selected direction.
Entry % - This sets the entry level as a percentage of the pattern’s total size. It determines how far from the pattern’s starting point the entry will be placed.
Target 1 - Also defined as a percentage of the pattern size. This represents the distance from the entry point to the first take profit level.
Target 2 - Optionally, you can enable a second take profit level and set the percentage distance for it.
Stop-Loss Type - Choose from six different stop-loss types: Invalidation Price, Last Pivot, %, % of pattern size, Pips, or Risk/Reward ratio. Each provides flexibility depending on your trading style.
Stop-Loss SL Value - This is the specific value related to the chosen stop-loss type. For example, if you choose the “%” type, this setting will define the percentage used to place the Stop Loss level.
Using the Shark pattern as an example, let’s demonstrate how the entry, target, and stop-loss levels function. Based on the overall size of the pattern, you can input the desired percentage values for your trade entry, target, and stop-loss levels, and the indicator will automatically calculate their exact placement relative to the pattern’s structure.
You can also choose alternative stop-loss methods, such as Risk/Reward, in which case the stop-loss will be dynamically calculated based on the risk-to-reward ratio you define.
It’s also important to note that for harmonic patterns, the height of the pattern is calculated based on the segment from point C to point D. However, for the Black Swan pattern, the measurement is taken from point A to point D. This distinction should be kept in mind when configuring your stop-loss levels.
Additionally, classic patterns each have their own unique method for calculating pattern height, depending on the specific structure.
🔶 Trailing Stop Settings
These settings are designed to help improve your strategy’s results, especially if you use break-even stop-loss adjustments after reaching specific targets, which can help increase your win rate.
Move SL to Break-even after reaching Target 1 - Enabling this option will automatically move the stop-loss to the entry level (break-even) once the price hits the first target (Target 1).
Trailing Stop Type - Choose from three trailing stop types: Percentage (%), % of pattern size, Pips
Trailing Stop Value - Enter the desired value for the chosen trailing stop type. For example, if you selected %, the number entered will be treated as a percentage. If you chose Pips, it will be the number of pips for the trailing stop.
Enable Trailing Stop at reaching - This setting defines when the trailing stop should be activated. You can choose from four options: Target 1, %, % of pattern size, Pips
Trailing After Value - This works in combination with the previous setting. If you choose one of the three non-Target options, this field lets you enter the specific value that will trigger the trailing stop.
🔶 Display Settings
In the screenshot above, you can see the Display Settings section, which allows you to fully customize the visual appearance of patterns on your chart according to your preferences.
You can choose to show or hide pattern labels (XABCD), ratio values, entry/TP/SL levels, and pattern fill for better visual clarity.
Additionally, you can set the maximum number of active patterns displayed on the chart, as well as view the historical formations of any specific pattern to analyze how it appeared in past price action.
🔶 Dashboard | Pattern Table
In the screenshot above, you can see the settings for two tables: one displaying the results of each pattern , and the other showing active patterns currently on the chart. Both tables offer flexible customization options, allowing you to adjust their color schemes, sizes, and on-screen positions to best fit your workflow.
🔶 Patterns Setting
For each individual pattern, you can customize its appearance by selecting your preferred color , adjusting its transparency , or even hiding it entirely from the chart if you don’t wish to display it.
🔶 Notifications
You can easily configure notifications for various events, such as the appearance of a new pattern or when the price reaches the entry level of a trade.
Additionally, a dedicated panel allows you to use macros for advanced customization of your alerts, so you can tailor the notifications exactly to your needs and trading style.
List of Supported Placeholders:
{{event}} - Event name ('New Pattern', 'Target 1', etc.)
{{pattern}} - Pattern name ('Bat', 'Crab', etc.)
{{event_price}} - Event Price (entry price for entry event, sl price for sl event, etc.)
{{sl}} - Stop-loss price
{{entry}} - Entry Price
{{target1}}, {{target2}} - Target Prices
{{invalidation}} - Invalidation Price
{{exchange}} - Exchange ('Binance')
{{ticker}} - Ticker ('BTCUSD')
{{interval}} - Timeframe ('1s', '1', 'D')
{{open}}-{{close}}-{{high}}-{{low}} - Candle price values
{{volume}} - Candle volume
{{time}} - Candle open time in UTC timezone
{{timenow}} - Signal time in UTC timezone
{{syminfo.currency}} - 'USD' for BTCUSD pair
{{syminfo.basecurrency}} - 'BTC' for BTCUSD pair
✅ USAGE METHODS
The indicator and its patterns can be used as a standalone trading strategy, providing clear entry points, stop-loss levels, and take-profit targets - without the need for any additional tools or indicators.
However, for optimal results, we recommend integrating the indicator with your existing trading strategy. Using it as a confluence tool - alongside other technical indicators or as a complement to your fundamental analysis - can significantly enhance your decision-making and improve overall performance!
🟠 Disclaimer
Past performance is not indicative of future results. To trade successfully, it is crucial to have a thorough understanding of the market context and the specific situation at hand. Always conduct your own research and analysis before making any trading decisions.
SMT SwiftEdge PowerhouseSMT SwiftEdge Powerhouse: Precision Trading with Divergence, Liquidity Grabs, and OTE Zones
The SMT SwiftEdge Powerhouse is a powerful trading tool designed to help traders identify high-probability entry points during the most active market sessions—London and New York. By combining Smart Money Technique (SMT) Divergence, Liquidity Grabs, and Optimal Trade Entry (OTE) Zones, this script provides a unique and cohesive strategy for capturing market reversals with precision. Whether you're a scalper or a swing trader, this indicator offers clear visual signals to enhance your trading decisions on any timeframe.
What Does This Script Do?
This script integrates three key concepts to identify potential trading opportunities:
SMT Divergence:
SMT Divergence compares the price action of two correlated assets (e.g., Nasdaq and S&P 500 futures) to detect hidden market reversals. When one asset makes a higher high while the other makes a lower high (bearish divergence), or one makes a lower low while the other makes a higher low (bullish divergence), it signals a potential reversal. This technique leverages institutional "smart money" behavior to anticipate market shifts.
Liquidity Grabs:
Liquidity Grabs occur when price breaks above recent highs or below recent lows on higher timeframes (5m and 15m), often triggering stop-loss orders from retail traders. These breakouts are identified using pivot points and confirm institutional activity, setting the stage for a reversal. The script focuses on liquidity grabs during the London and New York sessions for maximum market activity.
Optimal Trade Entry (OTE) Zones:
OTE Zones are Fibonacci-based retracement areas (e.g., 61.8%) calculated after a liquidity grab. These zones highlight where price is likely to retrace before continuing in the direction of the reversal, offering a high-probability entry point. The script adjusts the width of these zones using the Average True Range (ATR) to adapt to market volatility.
By combining these components, the script identifies when institutional activity (liquidity grabs) aligns with market reversals (SMT divergence) and pinpoints precise entry points (OTE zones) during high-liquidity sessions.
Why Combine These Components?
The integration of SMT Divergence, Liquidity Grabs, and OTE Zones creates a robust trading system for several reasons:
Synergy of Institutional Signals: SMT Divergence and Liquidity Grabs both reflect "smart money" behavior—divergence shows hidden reversals, while liquidity grabs confirm institutional intent to trap retail traders. Together, they provide a strong foundation for identifying high-probability setups.
Session-Based Precision: Focusing on the London and New York sessions ensures signals occur during periods of high volatility and liquidity, increasing their reliability.
Precision Entries with OTE: After confirming a setup with divergence and liquidity grabs, OTE zones provide a clear entry area, reducing guesswork and improving trade accuracy.
Adaptability: The script works on any timeframe, with adjustable settings for signal sensitivity, session times, and Fibonacci levels, making it versatile for different trading styles.
This combination makes the script unique by aligning institutional insights with actionable entry points, tailored to the most active market hours.
How to Use the Script
Setup:
Add the script to your chart (works on any timeframe, e.g., 1m, 5m, 15m).
Configure the settings in the indicator's inputs:
Session Settings: Adjust the start/end times for London and New York sessions (default: London 8-11 UTC, New York 13-16 UTC). You can disable session restrictions if desired.
Asset Settings: Set the primary and secondary assets for SMT Divergence (default: NQ1! and ES1!). Ensure the assets are correlated.
Signal Settings: Adjust the lookback period, ATR period, and signal sensitivity (Low/Medium/High) to control the frequency of signals.
OTE Settings: Choose the Fibonacci level for OTE zones (default: 61.8%).
Visual Settings: Enable/disable OTE zones, SMT labels, and debug labels for troubleshooting.
Interpreting Signals:
Blue Circles: Indicate a liquidity grab (price breaking a 5m or 15m pivot high/low), marking the start of a potential setup.
Blue OTE Zones: Appear after a liquidity grab, showing the retracement area (e.g., 61.8% Fibonacci level) where price is likely to enter for a reversal trade. The label "OTE Trigger 5m/15m" confirms the direction (Short/Long) and session.
Green/Red Entry Boxes: Mark precise entry points when price enters the OTE zone and confirms the SMT Divergence. Green boxes indicate a long entry, red boxes a short entry.
Trading Example:
On a 1m chart, a blue circle appears when price breaks a 5m pivot high during the London session.
A blue OTE zone forms, showing a retracement area (e.g., 61.8% Fibonacci level) with the label "OTE Trigger 5m/15m (Short, London)".
Price retraces into the OTE zone, and a red "Short Entry" box appears, confirming a bearish SMT Divergence.
Enter a short trade at the red box, with a stop-loss above the OTE zone and a take-profit at the next support level.
Originality and Utility
The SMT SwiftEdge Powerhouse stands out by merging SMT Divergence, Liquidity Grabs, and OTE Zones into a single, session-focused indicator. Unlike traditional indicators that focus on one aspect of price action, this script combines institutional reversal signals with precise entry zones, tailored to the most active market hours. Its adaptability across timeframes, customizable settings, and clear visual cues make it a versatile tool for traders seeking to capitalize on smart money movements with confidence.
Tips for Best Results
Use on correlated assets like NQ1! (Nasdaq futures) and ES1! (S&P 500 futures) for accurate SMT Divergence.
Test on lower timeframes (1m, 5m) for scalping or higher timeframes (15m, 1H) for swing trading.
Adjust the "Signal Sensitivity" to "High" for more signals or "Low" for fewer, high-quality setups.
Enable "Show Debug Labels" if signals are not appearing as expected, to troubleshoot pivot points and liquidity grabs.
Pivot Levels with EMA Trend📌 Trend Change Levels with EMA Trend
✨ Description:
This TradingView script identifies clean trend change levels based on 1-hour structure shifts and filters them to keep only those not invalidated. It follows the "Jake Ricci" method, each level is printed at the beginning of the candle that changes the trend, on a 1 hour chart. For precision, make sure to exclude after/pre market and only use the levels on regular hours charts.
It includes dynamic EMAs (9, 50, 200), intraday VWAP, the daily open level printed, and a visual trend label based on EMA(9) slope.
Designed for intermediate traders, it helps build bias, manage entries, and avoid false setups by focusing on clean, reactive levels that the market respects.
🔧 Core Logic:
On the 1H chart, the script compares current and previous closes to detect trend direction. If the trend flips (e.g., up to down), the open of the candle that caused the flip becomes a candidate level.
Only levels that remain untouched by future candle closes are plotted — this filters out “weak” levels that price already violated (which means, a candle closes after passing through the level).
These levels become key S/R zones and often act as reaction points during pullbacks, traps, and liquidity sweeps.
The idea is to check how the price reacts to those levels. Usually there's a clean retest of the level. After that, if the price continues in that direction, it tends to reach the following level.
🔹 Included Tools:
🟣 Trend Change Levels (1H):
Fixed horizontal lines based on confirmed shifts in trend, shown only when not broken.
📉 EMAs (9 / 50 / 200):
Visibility can be set per timeframe. Use for trend context.
📍 EMA Trend Label:
Shows \"UP\", \"DOWN\", or \"RANGE\" based on EMA(9) slope.
🔵 VWAP (Intraday Reset):
Real-time volume-weighted average price that resets daily. Useful for fair value zones and reversion plays.
🟠 Daily Open Line:
Plot of the current day’s open. Used for intraday directional bias. Usually: DO NOT take longs below the Open Print, DO NOT take shorts above it.
📊 ATR Table:
Displays current ATR multiplier on the chart. It's useful to understand if the market is expanding or not.
📈 How to Use It (Strategy):
1. Start on the 1H chart to generate levels.
Only the open of candles that reversed trend are considered — and only if future candles didn’t close through them. I suggest manually adding horizontal lines to mark again the levels, so that they stick to all the timeframes.
2. Use the trend label to decide your bias — \"UP\" for long setups, \"DOWN\" for shorts. Avoid trading against the slope.
3. Switch to the 5m chart and wait for price to approach a plotted level. These are often used for manipulation, retests, or clean reversals.
4. Look for confirmation: rejection candles, break-and-retest, strong engulfing candles, or traps above/below the level. ALWAYS check the price action around the level, along with the volume.
5. Check if VWAP or an EMA is near the level. If yes, the confluence strengthens the trade idea.
6. Use the ATR value to understand if the market is expanding (candles are bigger than the ATR). You don't want to stay in a slow and ranging trade.
✅ Example Entry Flow:
1. On the 1H chart, note a trend change level printed recently.
2. Check the current trend label — if it says \"UP,\" prefer longs.
3. Wait for price to retrace toward the level.
4. On the 5m, look for a bullish engulfing candle or trap setup at the level.
5. Check if VWAP and EMA(50) are near. If yes, execute the trade.
6. Set stop just under the low of the candle prior to your entry. Ideally, a retracing candle.
To be clear: imaging to be LONG, you wait for a retracement that should touch your level. You wait for a candle that resumes the LONG trend, enter when it breaks the high of the previous candle (sill in retracement), you place your stop under the candle prior to your entry.
Notes:
No repainting — levels only show up after confirmed shifts.
Removes broken levels for chart clarity and reliability.
Helps spot high-probability pullback zones and fakeouts.
Perfect confluence tool to support price action, SMC, or EMA strategies.
Works across multiple timeframes with customizable inputs.
👤 Ideal For:
Intraday traders looking for reactive entry points and direction confirmation.
Swing traders wanting to pinpoint continuation zones or reversal pivots.
🚨 Final Note: This indicator doesn’t generate buy/sell signals. It improves your trade filtering by identifying areas the market already respected and reacting to them with price action. Combine it with your own system , test it in replay, and use screenshots to document setups.
📌 If used with discipline, this becomes a precision tool — not a signal generator.
CRT-RPSDY*Candle Range Theory (CRT) Indicator with Stop Levels and Trade Management
Overview: This indicator is designed for advanced traders using the Candle Range Theory (CRT) to identify high and low price levels based on a given candle range. It provides a clear visualization of 4H and 1D time frame CRT structures and dynamically adjusts to price movements. The system integrates Stop Levels based on manipulation wicks and offers trade management features, including Stop Loss (SL) levels.
Key Features:
4H and 1D CRT Lines:
The indicator draws CRT levels on the 4-hour (4H) and 1-day (1D) time frames, representing key high and low levels for trade analysis.
Manipulation Wick Stop Levels:
A Stop Level is calculated based on the highest high or lowest low (manipulation wick) of the market. This level is plotted with customizable line thickness and color.
Dynamic Stop Loss Management:
As the price moves, the indicator automatically adjusts the stop levels. The Stop Loss (SL) is dynamically updated to ensure maximum protection as the price action evolves.
Visual Feedback:
The indicator displays RR (Risk/Reward) values at the entry level, showing RR1 and RR2 for position evaluation.
Manual Trade Entry:
Entry models have been removed, allowing the trader to find and set up entry points manually on the chart. The indicator only provides visual reference for trade management once the entry point is identified.
Usage:
Setup: The trader can select the desired timeframes and stop levels through input settings.
Trade Execution: Once a valid entry point is found (manually by the trader), the indicator tracks the price action and updates the stop levels and risk/reward values accordingly.
Stop Levels: Stops are drawn based on the highest and lowest levels of price manipulation wicks in the market, ensuring the trader is protected.
Customization: All graphical elements, including line thickness, color, and text size, are fully customizable.
Conclusion:
This indicator is designed for traders who prefer using Candle Range Theory (CRT) in their strategies and want advanced stop level management with visual feedback to optimize trade entries and exits. It combines CRT analysis with intelligent trade management to offer powerful insights for precision trading.
Heiken Ashi Supertrend ADXHeiken Ashi Supertrend ADX Indicator
Overview
This indicator combines the power of Heiken Ashi candles, Supertrend indicator, and ADX filter to identify strong trend movements across multiple timeframes. Designed primarily for the cryptocurrency market but adaptable to any tradable asset, this system focuses on capturing momentum in established trends while employing a sophisticated triple-layer stop loss mechanism to protect capital and secure profits.
Strategy Mechanics
Entry Signals
The strategy uses a unique blend of technical signals to identify high-probability trade entries:
Heiken Ashi Candles: Looks specifically for Heiken Ashi candles with minimal or no wicks, which signal strong momentum and trend continuation. These "full-bodied" candles represent periods where price moved decisively in one direction with minimal retracement. These are overlayed onto normal candes for more accuarte signalling and plotting
Supertrend Filter: Confirms the underlying trend direction using the Supertrend indicator (default factor: 3.0, ATR period: 10). Entries are aligned with the prevailing Supertrend direction.
ADX Filter (Optional) : Can be enabled to focus only on stronger trending conditions, filtering out choppy or ranging markets. When enabled, trades only trigger when ADX is above the specified threshold (default: 25).
Exit Signals
Positions are closed when either:
An opposing signal appears (Heiken Ashi candle with no wick in the opposite direction)
Any of the three stop loss mechanisms are triggered
Triple-Layer Stop Loss System
The strategy employs a sophisticated three-tier stop loss approach:
ATR Trailing Stop: Adapts to market volatility and locks in profits as the trend extends. This stop moves in the direction of the trade, capturing profit without exiting too early during normal price fluctuations.
Swing Point Stop: Uses natural market structure (recent highs/lows over a lookback period) to place stops at logical support/resistance levels, honoring the market's own rhythm.
Insurance Stop: A percentage-based safety net that protects against sudden adverse moves immediately after entry. This is particularly valuable when the swing point stop might be positioned too far from entry, providing immediate capital protection.
Optimization Features
Customizable Filters : All components (Supertrend, ADX) can be enabled/disabled to adapt to different market conditions
Adjustable Parameters : Fine-tune ATR periods, Supertrend factors, and ADX thresholds
Flexible Stop Loss Settings : Each of the three stop loss mechanisms can be individually enabled/disabled with customizable parameters
Best Practices for Implementation
[Recommended Timeframes : Works best on 4-hour charts and above, where trends develop more reliably
Market Conditions: Performs well across various market conditions due to the ADX filter's ability to identify meaningful trends
Performance Characteristics
When properly optimized, this has demonstrated profit factors exceeding 3 in backtesting. The approach typically produces generous winners while limiting losses through its multi-layered stop loss system. The ATR trailing stop is particularly effective at capturing extended trends, while the insurance stop provides immediate protection against adverse moves.
The visual components on the chart make it easy to follow the strategy's logic, with position status, entry prices, and current stop levels clearly displayed.
This indicator represents a complete trading system with clearly defined entry and exit rules, adaptive stop loss mechanisms, and built-in risk management through position sizing.
Wick Sweep EntriesWick Sweep Entry designed by Finweal Finance (Indicator Originator : Prajyot Mahajan) :
This Indicator is specially designed for Nifty, Sensex and Banknifty Options Buying. This works well on Expiry Days.
Setup Timeframe : 5m and 1m.
Entry Criteria :
For Long/CE :
Wait for Sweep of 5m Candle Low with next 5m Candle but you do not wait for the next 5 minute candle to close, you enter directly whenever any 1 minute candle of next 5minute candle to close above the low of previous 5m Candle.
For Short/PE :
Wait for Sweep of 5m Candle High with next 5m Candle but you do not wait for the next 5 minute candle to close, you enter directly whenever any 1 minute candle of next 5minute candle to close below the High of previous 5m Candle.
Key notes :
1. As this is the Scalping High Frequency Strategy, it is to be used for scalping purpose only. You might have losses too so to avoid the noise in the market, i suggest you to use this strategy in the first 45 minutes to 1 hour of Indian Markets as this is a volatility Strategy.
2. Although Nifty and Banknifty are independent indices, they still show some reactions with each other, so if you spot a long entry on BNF and Short Entry on nifty then you will avoid taking the trade, you will take the trade only if there is a tandem activity or At least the other index is not showing opposite signal.
3. If target is not hit and you spot another entry, you will avoid taking the new entry.
The Indicator will automatically spot/plot the entry signal, all you need to do is enter as soon as 1minute candle closes either below prior 5 minute candle High for Short/PE or closes above 5minute low for Long/CE.
For Targets :
You Can Target recent minor pull back, FVG, or Order blocks.
Remember : This is a scalping strategy so don't hold trade for more than 4/5 1minute Candles
HabibiTrades Pro System Strategy Overview
This strategy uses the following conditions:
WMA Crossover: To determine the direction of the market trend.
ADX: To confirm whether the trend is strong enough for trade.
Volume Spike: To validate the trade signal with increased market participation.
Let's break down each component and its role in the strategy.
1. WMA (Weighted Moving Average) Crossover:
The WMA is a type of moving average that gives more weight to recent prices. In this strategy, we use two WMAs:
Fast WMA (short period): Reacts quicker to price changes.
Slow WMA (long period): Reacts slower to price changes.
How it works:
Bullish Entry (Long): The Fast WMA crosses above the Slow WMA, indicating a potential upward price movement (bullish trend).
Bearish Entry (Short): The Fast WMA crosses below the Slow WMA, indicating a potential downward price movement (bearish trend).
2. ADX (Average Directional Index):
The ADX measures the strength of a trend, regardless of whether the trend is up or down.
How it works:
ADX > 20: Indicates a strong trend (either bullish or bearish). This is the threshold for considering a trade.
ADX > 30: Indicates an even stronger trend and is used to indicate high confidence in the trend direction.
3. Volume Spike:
Volume is an important indicator that tells you how much trading activity is happening in the market. A volume spike occurs when the current volume is significantly higher than the average volume over a specified period.
How it works:
Volume Spike Condition: The current volume is compared to the average volume (SMA). If the current volume is greater than the Volume SMA multiplied by the Volume Multiplier, a volume spike is detected.
Volume spikes are used to validate the strength of the trend and increase the likelihood that the trade signal is meaningful.
Strategy Logic
Long Entry Conditions (Buy Signal):
WMA Crossover: The Fast WMA crosses above the Slow WMA (bullish signal).
ADX: The ADX is above 20 (indicating a strong trend).
Volume Spike: The current volume is higher than the Volume SMA multiplied by the Volume Multiplier, confirming market participation.
Short Entry Conditions (Sell Signal):
WMA Crossover: The Fast WMA crosses below the Slow WMA (bearish signal).
ADX: The ADX is above 20 (indicating a strong trend).
Volume Spike: The current volume is higher than the Volume SMA multiplied by the Volume Multiplier, confirming market participation.
Exit Conditions:
Trailing Stop: A trailing stop is used based on the highest price for long trades or the lowest price for short trades since the entry. The position is exited when the price moves against the trade by a set amount (in ticks).