Auto Nifty Option Buyer made by govindthis strategy help you find call and put itself of nifty option
Candlestick analysis
Ruptura + EMAs + VWAP + Vela Impulsiva Indicator: Breakout + EMAs + VWAP + Impulsive Candle + TP/SL
This indicator is designed to identify breakout trading opportunities by combining price action, moving averages, volume-weighted price, and impulsive candles, with clearly defined Take Profit (TP) and Stop Loss (SL) levels.
⏱️ Timeframe Logic:
The 15-minute chart is used to define the price range.
Entries are made on the 2-minute chart when breakout conditions align with momentum confirmation.
📌 Key Components:
Range Definition:
Calculates a price range based on a customizable number of candles (rangeBars), typically from the 15-minute timeframe.
Displays a shaded box highlighting this range.
Trend Filters:
Uses a fast EMA (9) and a slow EMA (21) to determine short-term and medium-term trends.
Includes VWAP as a dynamic support/resistance and directional filter.
Only allows trades when both EMAs and price confirm alignment above (for long) or below (for short) the VWAP.
Impulsive Candle Detection:
Confirms breakouts using large-bodied candles that engulf the previous candle's range.
The candle must exceed a certain multiple of the average range (minRangeMult) to qualify.
Breakout Entry Conditions:
Long Setup: Price breaks above the range high, with EMAs and VWAP confirming bullish alignment, and confirmed by an impulsive candle.
Short Setup: Price breaks below the range low, with EMAs and VWAP aligned bearishly, confirmed by an impulsive candle.
Trade Management:
Automatically plots Take Profit and Stop Loss levels based on the size of the entry candle and a customizable TP multiplier.
Visual dashed lines indicate TP (green) and SL (red) zones.
Session Filter:
Entry signals are limited to a specific time window (e.g., 9:00 to 10:00 AM New York time), typically during the NY session open.
Visual Aids:
Background color highlights potential entry zones (green for long, red for short).
Icons mark confirmed impulsive candles and entry signals.
Range box is updated periodically to reflect the active breakout zone.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
super miracle 30s - hirochan binaryWhen this signal appears, enter a 30-second trade 10 seconds later.
Essa - Market Structure Crystal BallEssa – Market Structure Crystal Ball
Overview
The Market Structure Crystal Ball is a next-generation market structure tool designed to predict the most probable next swing (HH, HL, LH, LL) using enriched data from historical patterns.
It goes beyond simple pivots, combining pattern recognition, velocity analysis, retracement behaviour, and structure breaks to forecast the next move with probabilities and confidence levels.
✨ Features
Automatic swing detection → Higher High (HH), Higher Low (HL), Lower High (LH), Lower Low (LL).
Rich structure metrics → Price change, velocity, bars elapsed, momentum, retracement %, structure break detection.
Pattern recognition engine → Analyses up to 500 past sequences to find similar market conditions.
Dynamic probability model → Calculates probabilities for the next structure type (HL, HH, LL, LH).
Market phase detection → Labels phases such as 🚀 Strong Uptrend, 💀 Strong Downtrend, ↔️ Consolidation, etc.
Prediction table → Displays probabilities, last structure trail, trend phase, confidence level, and velocity context.
Dynamic prediction zones → Projects likely price zones for the next HL/HH/LL/LH target with probability labels.
Instrument aware → Auto-adjusts for Forex (pips), Indices (points), Crypto, Metals, and more.
Diagnostic tools → Optional debug labels showing swing stats, retracements, and structural integrity checks.
📊 How To Use
Add the indicator to your chart.
Watch the table (top-right) for probabilities, confidence, and current phase.
Monitor the labels (HH/HL/LL/LH) for confirmed market structure.
Look for prediction zones when probabilities are high (>45%) for trade planning.
Use confidence + phase context to filter trades (e.g. strong uptrend with HH probability >60%).
⚠️ Notes
This is a probability-driven tool, not a guaranteed signal generator.
Works best on higher timeframes where structure is cleaner.
For best results, combine with your own strategy, risk management, and confirmation tools.
JCICT - Market SessionsThe forex market is available for trading 24 hours a day, five and one-half days per week. The Forex Market Time Converter displays "Open" or "Closed" in the Status column to indicate the current state of each global Market Center. However, just because you can trade the market any time of the day or night doesn't necessarily mean that you should. Most successful day traders understand that more trades are successful if conducted when market activity is high and that it is best to avoid times when trading is light.
Here are some tips for using the Forex Market Time Converter:
Concentrate your trading activity during the trading hours for the three largest Market Centers: London, New_York, and Tokyo.
Most market activity will occur when one of these three markets open.
Some of the most active market times will occur when two or more Market Centers are open at the same time. The Forex Market Time Converter will clearly indicate when two or more markets are open by displaying multiple green "Open" indicators in the Status column
Aktuelles Kerzen-Tief LinieThe indicator shows a horizontal line at the low of the current candle no matter the time frame. Also a box with the low value is shown
Fair Value Gap (FVG) Finder — stable v1.6Overview
This indicator finds Fair Value Gaps (FVGs) using a strict 3-candle definition and draws the zones forward until they’re mitigated (your choice: Any touch or Full fill). It includes optional 50% midlines, first-touch alerts, new-print alerts, and automatic housekeeping so your chart never drowns in old objects.
No repaint: FVGs are confirmed only when the right candle of the pattern closes. The script does not use future bars or security calls that could revise history.
How it detects an FVG
Bullish FVG: low(0) > high(2) ⇒ zone =
Bearish FVG: high(0) < low(2) ⇒ zone =
Zones extend to the right until mitigation.
Mitigation modes
Any touch: any overlap between price and the zone marks it mitigated.
Full fill: for bullish, a trade to/below the bottom; for bearish, a trade to/above the top.
Inputs (with defaults)
Show Bullish FVGs (true) – draw bullish gaps.
Show Bearish FVGs (true) – draw bearish gaps.
Minimum Gap Size (ticks) (3) – filter out tiny/market-noise gaps.
Only Show Unmitigated (true) – hides zones once mitigated; turn off to keep them grayed out.
Mitigation Mode ("Any touch" | "Full fill") – how you consider a zone mitigated.
Show 50% Midline (true) – dotted midline for each zone.
Max Active Tracked Gaps (150) – safety cap; oldest zones are pruned first.
Colors
Bullish Color (green)
Bearish Color (red)
Zone Fill Transparency (85)
Alerts (exact condition names)
New Bullish FVG – fires when a new bullish FVG prints.
New Bearish FVG – fires when a new bearish FVG prints.
Bullish FVG Touched – fires on the bar that first mitigates a bullish zone (per your mode).
Bearish FVG Touched – fires on the bar that first mitigates a bearish zone (per your mode).
Create alerts: Right-click chart → Add alert → Condition: this indicator → pick one of the four conditions.
Recommended usage
Start with Minimum Gap Size = 3–6 ticks on liquid futures (e.g., NQ/ES).
Flip Mitigation Mode to Full fill if you only count complete fills.
If you want to study liquidity behavior, keep Only Show Unmitigated = off to see historical zones (they’ll gray out).
Combine with structure/POI confluence (Swing points, session highs/lows, VWAP bands, etc.).
Performance & stability
Object counts are controlled via Max Active Tracked Gaps and auto-pruning.
All box.new/line.new calls are single-line, named-argument (avoids TV parser edge cases).
Arrays keep zones in sync; mitigated zones are cleaned in a single pass.
Limitations / Notes
Chart type: The logic uses the current chart’s OHLC. On Heikin-Ashi, gaps are computed from HA candles (not raw). If you want raw-candle FVGs while viewing HA, switch the chart to Candles or ask for a “raw-OHLC on HA” toggle in a future update.
Exotic chart types (Renko, Range, etc.) can behave differently since their highs/lows are synthetic.
Historical alerts: TradingView does not backfill alert popups; alerts begin after creation.
MTF scanning is not included in this build (keeps it fast and non-repainting). Can be added on request.
What’s new (v1.5)
Upgraded to Pine v6 and hardened parser-safe draw calls.
Fixed type declaration for midline handles (line mid = na).
Added robust mitigation handling (hide vs. gray).
Added first-touch alerts and fresh-print markers.
Added max-objects auto-pruning to protect performance.
Disclaimers
This tool is for analysis/education. Not financial advice. Markets carry risk—test thoroughly and use risk management.
Deviation from Mid MA5 & MA10 (%)Title:
Deviation from Mid-Price MA5 & MA10 (%)
Description:
This script calculates and displays the percentage deviation of the current mid-price from its 5-day and 10-day simple moving averages.
The mid-price is defined as the average of the open and close prices: (Open + Close) / 2
Instead of relying on traditional close-based MAs, this version uses mid-price to better reflect actual price flow by incorporating both the opening and closing values.
Main features:
Displays % deviation from both 5-day and 10-day mid-price moving averages
Better alignment with intraday reality due to gap-sensitive mid-price base
Smooths out erratic closing spikes for clearer signals
Helps identify overextended moves and potential pullback zones
Included lines:
Deviation from 5-day Mid MA
Deviation from 10-day Mid MA
Zero baseline for reference
Recommended for:
Traders seeking a cleaner measure of price deviation
Short-term pullback or re-entry strategy users
Anyone analyzing steady, low-volatility uptrends
Trading Rules Panel BJTRADESFXA Simple Panel for Your Trading Rules
Trading can quickly get overwhelming if you’re juggling multiple strategies, indicators, and market conditions. A simple Trading Rules Panel on your chart helps you stay disciplined by keeping your strategy visible at all times. Instead of relying on memory or flipping through notes, the panel displays your personal trading checklist right where you need it — on your screen.
The panel can be customized to show:
✅ Entry conditions (e.g., trend direction, candle patterns, breakout levels)
✅ Exit rules (take profit, stop loss, or trailing stop logic)
✅ Risk management (lot size, max risk %, reward-to-risk ratio)
✅ Trading session reminders (only trade London/New York overlap, etc.)
✅ Personal rules (no revenge trading, stop after 2 losses, follow your plan)
This kind of panel doesn’t place trades for you; rather, it acts as a visual reminder to keep you consistent and accountable. It prevents emotional decisions and reinforces your discipline, especially during high-pressure moments.
A well-placed panel can also:
Reduce mistakes caused by forgetting steps
Keep your focus on the bigger picture
Improve backtesting and journaling since your rules are clearly visible
Help new traders stick to structure instead of chasing trades
Range Percent Histogram📌 Range Percent Histogram – Indicator Description
The Range Percent Histogram is a custom indicator that behaves like a traditional volume histogram, but instead of showing traded volume it displays the percentage range of each candle.
In other words, the height of each bar represents how much the price moved (in percentage terms) within that candle, from its low to its high.
🔧 What it shows
The indicator has two main components:
Component Description
Histogram Bars Columns plotted in red or green depending on the candle direction (green = bullish candle, red = bearish). The height of each bar = (high - low) / low * 100. That means a candle that moved, for example, 1 % from its lowest point to its highest point will show a bar with 1 % height.
Moving Average (optional) A 20-period Simple Moving Average applied directly to the bar values. It can be turned ON/OFF via a checkbox and helps you detect whether current range activity is above or below the average range of the past candles.
⚙️ How it works
Every time a new candle closes, the indicator calculates its range and converts it into a percentage.
This value is drawn as a column under the chart.
If the closing price is above the opening price → the bar is green (bullish range).
If the closing price is below the opening price → the bar is red (bearish range).
When the Show Moving Average option is enabled, a smooth line is plotted on top of the histogram representing the average percentage range of the last 20 candles.
📈 How to use it
This indicator is very helpful for detecting moments of range expansion or contraction.
One powerful way to use it is similar to a volume exhaustion / low-volume pattern:
Situation Interpretation
Consecutive bars with very low height Price is in a period of low volatility → possible accumulation or "pause" phase.
A sudden large bar after a series of small ones Indicates a strong pickup in volatility → often marks the start of a new impulse in the direction of the breakout.
Caja entre HorasThis script allows you to set the start time and minute you want to test and forms a “box” as the time you specified elapses. This way, you can measure volatility at market start, adjust Kill Zones to your liking, peak hours, and view H4 as a box with a colored line at the opening and another at the closing as the main box progresses, allowing you to see the fractal behavior in a shorter time frame. This helps you understand how bearish or bullish wicks are formed and at what point in the main time frame.
Low of day distanceA simple indicator that tells you the distance to the low of the day in percentage terms.
Useful for quick position sizing calculations when your strategy, for instance, uses low of day stops.
Lanzadera)The Lanzadera Indicator is designed to identify market momentum and potential breakout opportunities. It works as a dynamic tool that helps traders detect price acceleration zones, providing clear signals for possible entries and exits. With customizable settings and a user-friendly design, this indicator is suitable for both beginners and experienced traders.
Use it to:
Spot momentum shifts before major price movements.
Enhance your breakout trading strategies.
Gain a clearer view of market dynamics with visual alerts.
This indicator is built for traders who want precision, discipline, and a professional edge in their decision-making process.
GrayZone Sniper [CHE] — Breakout Validation System GrayZone Sniper — Breakout Validation System
Trade only the clean breakouts. Detect the sideways “gray zone,” wait for a confirmed breach, and act only when momentum (TFRSI) and range expansion (Mean Deviation) align. Clear long/short triggers, one-shot exit signals, and persistent levels keep your manual trading disciplined and repeatable.
Why it boosts manual trading
* No guesswork: Grey box marks consolidation; you trade the validated break.
* Fewer fakeouts: Triggers require momentum + volatility—not just a wick through a level.
* Rules > bias: Optional close-only signals stop intrabar noise.
* Built-in exits: One-shot LS/SS (Long/Short Stop) when conditions degrade.
* Actionable visuals: Gray-zone boxes, persistent highs/lows, and a smooth T3 trendline.
What it does (short + precise)
1. Maps consolidation as a gray box (running high/low while state is neutral).
2. Validates breakouts only when:
* Mean Deviation filter says current range expands vs. its own baseline, and
* TFRSI momentum is above 50 + deadzone (long) or below 50 − deadzone (short), and
* Price closes beyond the last gray high/low (optional close-only).
→ You get L (long) or S (short).
3. Manages exits with a smooth T3 trendline plus MD trend: when MD weakens and T3 turns against the prior side, you get a single LS/SS stop signal.
4. Extends structure: Last gray-zone H/L can persist as right-extended levels for retests/targets.
5. Ready for alerts: Prebuilt alert conditions for L, S, LS, SS.
Signals at a glance
* L – Long Trigger (validated breakout up)
* S – Short Trigger (validated breakout down)
* LS – Long Stop (exit hint for open long)
* SS – Short Stop (exit hint for open short)
Why TFRSI + Mean Deviation is a killer combo
They measure different, complementary things—and that reduces correlated errors.
* Mean Deviation (MD) = range expansion filter. It checks whether current absolute deviation of Typical Price from its SMA (|TP − SMA(TP)|) is greater than its own historical mean deviation baseline. In plain English: *is the market actually moving beyond its usual wiggle?* If not, most breakouts are noise.
* TFRSI = directional momentum around a 50 baseline, normalized and smoothed to react fast while avoiding raw RSI twitchiness.
* Synergy:
* MD confirms there’s energy (volatility regime has expanded).
* TFRSI confirms where that energy points (bull or bear).
* Requiring both gives you high-quality, directional expansion—the exact condition that tends to produce follow-through, while filtering the classic “thin break, immediate snap-back.”
Result: Fewer trades, better quality. You skip most range breaks without momentum or momentum pops without real expansion.
Inputs & Functions (clean overview)
Core: TFRSI & MD
* TFRSI Length (`tfrsiLen`, default 6): Longer = smoother, slower.
* TFRSI Smoothing (`tfrsiSignalLen`, default 2): SMA on TFRSI for cleaner signals.
* Mean Deviation Period (`mdLen`, default 20): Baseline for expansion filter.
* Use classical MD (`useTaDev`, default off):
* Off: MD vs current SMA (warning-free internal baseline).
* On: Classical `ta.dev` implementation.
* TFRSI Deadzone ± around 50 (`tfrsiDeadzone`, default 1.0): Wider deadzone = stricter momentum confirmation (less chop).
Triggers & Logic
* Trigger only on bar close (`fireOnCloseOnly`, default on): Confirmed signals only; no intrabar flicker.
* Reset gray bounds after trigger (`resetGrayBoundsAfterTrigger`, default on): Clears last gray H/L once a trade triggers.
* Auto-deactivate on neutral (`autoDeactivateOnNeutral`, default off): Strict disarm when state flips back to neutral.
Gray-Zone Boxes
* Show boxes (`showGrayBoxes`, default on): Draws the neutral consolidation box.
* Max boxes (`maxGrayBoxes`, default 10): How many historic boxes to keep.
* Transparency (`boxFillTransp`/`boxBorderTransp`, defaults 85/30): Visual tuning.
Trendline (T3)
* T3 Length (`t3Length`, default 3): Smoothing depth (higher = smoother).
* T3 Volume Factor (`t3VolumeFactor`, default 0.7): Controls responsiveness of the T3 curve.
Persistent Levels
* Persist gray H/L (`saveGrayLevels`, default on): Extend last gray high/low to the right.
* Max saved level pairs (`maxSavedGrayLvls`, default 1): How many H/L pairs to keep.
* Reset levels on trigger (`resetLevelsOnTrig`, default off): Clean slate after new trigger.
Debug & Visuals
* Show debug markers (`showDebugMarkers`, default on): Display L/S/LS/SS in the pane.
* Show legend (`showLegend`, default on): Compact legend (top-right).
How to trade it (practical)
1. Keep close-only on. Let the market finish the candle.
2. Wait for a clean gray box. Let the range define itself.
3. Take only L/S triggers where MD filter passes and TFRSI confirms.
4. Use persistent levels for retests/partials/targets.
5. Respect LS/SS. When expansion fades and T3 turns, exit without debate.
Tuning tips:
* More chop? Increase `tfrsiDeadzone` or `mdLen`.
* Want faster entries? Slightly reduce `t3Length` or deadzone, but expect more noise.
* Works across assets/timeframes (crypto/FX/indices/equities).
Bottom line
GrayZone Sniper enforces a simple, robust rule: Don’t touch the market until it breaks a defined range with real expansion and aligned momentum. That’s why TFRSI + Mean Deviation is hard to beat—and why your manual breakout trades get cleaner, calmer, and more consistent.
Disclaimer:
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Enhance your trading precision and confidence with Triple Power Stop (CHE)! 🚀
Happy trading
Chervolino
🚀 Ultimate Trading Tool + Strat Method🎯 What You Get - Two Powerful Systems in One:
🔥 Original Ultimate Trading Tool:
✅ Automated trendlines with dynamic support/resistance
✅ Multi-factor analysis (trend, momentum, RSI, volume)
✅ Dynamic risk management with ATR-based stops/targets
✅ Real-time dashboard with all market conditions
🎯 Advanced Strat Method Integration:
✅ Classic patterns: 2-2, 1-2-2 setups
✅ Advanced patterns: 3-1-2, 2-1-2, F2→3 setups
✅ Timeframe continuity filter (Daily + Weekly alignment)
✅ Trigger confirmations for precise entries
Hirochan 1.0— multisignt
Other natural variants:
• “An indicator that combines multiple methods to boost binary options win rates.”
• “A strategy-packed indicator designed to raise your binary options success rate.”
Volatility Zones (VStop + Bands) — Fixed (v2)📝 What this indicator is
This script is called “Volatility Zones (VStop + Bands)”.
It is an ATR-based volatility indicator that combines dynamic volatility bands, a Volatility Stop line (VStop), and volatility spike detection into a single tool.
Unlike moving average–based indicators, this tool does not rely on averages of price direction. Instead, it measures the market’s true volatility and reacts to expansions or contractions in price ranges.
________________________________________
⚙️ How it is built
The indicator uses several volatility-based components:
1. Average True Range (ATR)
o ATR is calculated over a user-defined length.
o It measures how much price typically moves in a given number of bars, making it the foundation of this indicator.
2. Volatility Bands
o Upper band = close + ATR × factor
o Lower band = close - ATR × factor
o The area between them is shaded.
o This gives traders an immediate visual sense of market volatility width — wide bands = high volatility, narrow bands = quiet market.
3. Volatility Stop (VStop)
o A stateful trailing stop based on ATR.
o It tracks the highest (or lowest) price in the current trend and places a stop offset by ATR × multiplier.
o When price crosses this stop, the indicator flips trend direction.
o This creates a dynamic stop-and-reverse mechanism that adapts to volatility.
4. Trend Zones
o When the trend is bullish, the stop is green and the chart background is shaded softly green.
o When bearish, the stop is red and the background is shaded softly red.
o This makes the market’s directional bias visually clear at all times.
5. Flip Signals (Buy/Sell Arrows)
o Whenever the VStop flips, arrows appear:
Green BUY arrows below price when the trend turns bullish.
Red SELL arrows above price when the trend turns bearish.
o These are also tied to built-in alerts for automation.
6. Volatility Spike Detection
o The script compares current ATR to its recent average.
o If ATR suddenly expands above a threshold, a small yellow “VOL” marker appears at the top of the chart.
o This highlights potential breakout phases or unusual volatility events.
7. Stop Labels
o At every trend flip, a small label appears at the bar, showing the exact stop level.
o This makes it easy to use the stop as a reference for risk management.
________________________________________
📊 How it works in practice
• When price is above the VStop line, the market is considered in an uptrend.
• When price is below the VStop line, the market is in a downtrend.
• The bands expand/contract with volatility, helping traders gauge risk and position sizing.
• Flip arrows signal when trend direction changes.
• Volatility spikes warn traders that the market is entering a higher-risk phase, often before strong moves.
________________________________________
🎯 How it may help traders
• Trend following → Helps traders identify whether the market is trending up or down.
• Stop placement → Provides a dynamic stop level that adjusts to volatility.
• Volatility awareness → Shaded bands and spike markers show when the market is likely to become unstable.
• Trade timing → Flip arrows and labels help identify potential entry or exit points.
• Risk management → Wide bands indicate higher risk; narrow bands suggest safer, tighter ranges.
________________________________________
🌍 In what markets it is useful
Because the indicator is based purely on volatility, it works across all asset classes and timeframes:
• Stocks & ETFs → Helps identify breakouts and long-term trends.
• Forex → Very useful in spot FX where volatility shifts frequently.
• Crypto → ATR reacts strongly to high volatility, helping traders adapt stops dynamically.
• Futures & Commodities → Great for tracking trending commodities and managing risk.
Scalpers, swing traders, and position traders can all benefit by adjusting the ATR length and multipliers to suit their trading style.
________________________________________
💡 Originality of this script
This is not just a mashup of existing indicators. It integrates:
• ATR-based Volatility Bands for context,
• A stateful Volatility Stop (adapted and rewritten cleanly),
• Flip arrows and labels for actionable trading signals,
• Volatility spike detection to highlight regime shifts.
The result is a comprehensive volatility-aware trading tool that goes beyond just plotting ATR or trend stops.
________________________________________
🔔 Alerts
• Buy Flip → triggers when the trend changes bullish.
• Sell Flip → triggers when the trend changes bearish.
Traders can connect these alerts to automated strategies, bots, or notification systems.
GEXStrik BarS EUR USDGEX strike bars on the left side measure the prevailing amount of positive or negative gamma. On the right side, the volume of calls and puts traded in the region.
Market structure + TF Bucket Market Structure + TF Bucket
This Pine Script™ indicator, published under the Mozilla Public License 2.0, extends the "Market Structure" script by mickes (), with full credit to mickes. It integrates the enhanced MarketStructure library by Fenomentn (), also based on mickes’ library under MPL 2.0, to provide advanced market structure analysis with multi-timeframe pivot length customization.
Functionality
Market Structure Analysis: Detects internal (orderflow) and swing market structures, visualizing Break of Structure (BOS), Change of Character (CHoCH), Equal High/Low (EQH/EQL), and liquidity zones using the MarketStructure library.
Timeframe Bucket (TF Bucket): Dynamically adjusts pivot lengths for six user-defined timeframes (e.g., 3m, 5m, 10m, 15m, 4h, 12h), optimizing structure detection across different chart timeframes.
Trend Strength Visualization: Displays a trend strength metric (from the library) for internal and swing structures, indicating trend reliability based on pivot frequency and volatility.
Statistics Table: Shows yearly counts of BOS and CHoCH events for internal and swing structures, configurable by a user-defined period.
Screener Support: Outputs BOS and CHoCH signals for TradingView’s screener, with a configurable signal persistence period.
Customizable Alerts: Enables alerts for BOS and CHoCH events, separately configurable for internal and swing structures.
Methodology
Pivot Detection: Uses the library’s Pivot function, which applies a volatility filter (ATR-based) to confirm significant pivots, reducing false signals in low-volatility markets.
TF Bucket: Maps user-selected timeframes to Pine Script’s timeframe.period using f_getTimeframePeriod, applying custom pivot lengths when the chart’s timeframe matches a selected one (or base lengths in Static mode).
Trend Strength: Calculates a score as pivotCount / LeftLength * (currentATR / ATR), displayed via labels to help traders assess trend reliability.
BOS/CHoCH Detection: Identifies BOS when price breaks a pivot in the trend direction and CHoCH when price reverses against the trend, labeling events as “MSF” or “MSF+” based on pivot patterns.
EQH/EQL and Liquidity: Draws boxes for equal high/low zones within ATR-based thresholds and visualizes liquidity levels with confirmation bars.
Statistics and Screener: Tracks BOS/CHoCH events in a yearly table and outputs signals for screener use, with persistence controlled by a user-defined period.
Usage
Integration: Apply the indicator to any chart and import the library via import Fenomentn/MarketStructure/1.
Configuration: Set up to six timeframes with custom pivot lengths, enable/disable internal and swing structures, configure alerts, and adjust statistics years in the settings panel.
Alerts: Enable BOS and CHoCH alerts for real-time notifications, triggered on bar close to avoid repainting.
Screener: Use the plotted signals to monitor BOS/CHoCH events across multiple tickers in TradingView’s screener.
Best Practices: Optimal for forex and crypto charts on 1m to 12h timeframes. Adjust pivot lengths and the library’s volatility threshold for specific market conditions.
Originality
This indicator enhances mickes’ original script with:
Timeframe Bucket: Dynamic pivot length selection for multi-timeframe analysis, not present in the original.
Trend Strength Display: Visualizes the library’s TrendStrength metric for enhanced trend analysis.
Enhanced Library Integration: Leverages Fenomentn/MarketStructure/1, which adds a volatility-based pivot filter, dynamic label sizing, and customizable BOS/CHoCH visualization styles.No additional open-source code was reused beyond mickes’ script and library, fully credited under MPL 2.0.
Smart Pattern Scanner ProSmart Pattern Scanner Pro — Trainer’s Guide (Step-by-Step)
1) What this tool does
Smart Pattern Scanner Pro (SPS Pro) scans multiple timeframes at once for classic candlestick patterns, filters them by trend, and presents everything in a clean table with price, signal direction, volume context, a “Vol Strength” progress bar, and a human-friendly timestamp. It also composes a single alert message when one or more patterns are found on the latest bar close.
________________________________________
2) The table at a glance (how to read one row)
Each row = one timeframe (e.g., 5m, 15m, 1h, 4h, Daily, Weekly)
• Timeframe – Shown with a readable name (“5 Minutes”, “1 Hour”, “Daily”, etc.).
• Price – The latest close at the moment the pattern is confirmed on that timeframe.
• Pattern – The first qualifying pattern detected on the last confirmed bar of that timeframe (or “—” if none).
• Signal –
o 🟢 ▲ = Bullish
o 🔴 ▼ = Bearish
o 🔵 ◆ = Neutral (e.g., Doji/Spinning Top)
• Buy Vol / Sell Vol (optional) – A rough split of volume for the most recent closed candle on that timeframe (up-close volume vs. down-close volume).
• Vol Strength (optional) – A 10-block text bar showing Total Volume ÷ SMA(Volume); quick read:
o ~0–1.0: muted activity
o 1.0: above average
o 1.5: notably elevated
• Time – The end time of the bar in your selected Timezone (Exchange by default).
If a timeframe shows “—” under Pattern, it simply means no eligible pattern was confirmed on the last completed candle for that TF.
________________________________________
3) Inputs & customization (what each section controls)
📊 Table Settings
• Table Position – Choose where the table sits on the chart (Top/Middle/Bottom + Left/Center/Right).
• Table Size – Controls the text size for all table cells.
• Show Volume Analysis – Toggles Buy Vol / Sell Vol columns.
• Show Progress Indicators – Toggles the Vol Strength column.
• Timezone – Set to Exchange, or override it to view timestamps in your local preference.
🎨 Color Theme
• Bullish / Bearish / Neutral colors – Control signal and highlight accents.
• Volume Up / Volume Down colors – Control the colors of the volume numbers and the Vol Strength bar.
• Backgrounds, borders, and text use a professional dark palette for contrast and readability.
⏱️ Timeframes
• Timeframes (comma-separated) – e.g., 5,15,60,240,1D,1W
Valid entries: 1,3,5,15,30,60,120,240,480,720,1D/D,1W/W,1M/M,3M
The scanner will create one row per timeframe.
📈 Technical Analysis
• Detect Trend Based on SMA – If on, patterns are trend-qualified using an SMA gate:
o Uptrend (uTrd) = close > SMA(maLen)
o Downtrend (dTrd) = close < SMA(maLen)
• SMA Length (maLen) – Length for the trend SMA gate (default 50).
• Volume MA Length (volMaLen) – SMA length used to compute Vol Strength.
🕯️ Pattern Selection
• Pattern Type – Scan Bullish, Bearish, or Both.
• Checkboxes – Turn specific patterns on/off (Engulfing, Morning/Evening Stars, Three Soldiers/Crows, Doji family, Hammers, Tasuki Gaps, Windows, Harami, Piercing/Dark Cloud, etc.).
Tip: For faster performance, disable patterns you don’t use.
________________________________________
4) How detection actually works (under the hood)
1. Per-timeframe scanning
The script iterates through your list of timeframes. For each TF it calls the detection engine via request.security(…tf…, main(true)) so that the logic runs natively on that timeframe.
2. Trend qualifier (optional)
If Detect Trend Based on SMA is enabled:
o Bullish patterns often require the recent context to be at/after downtrend (e.g., a reversal) or during an uptrend depending on the pattern.
o Bearish patterns similarly check for uTrd/dTrd.
You’ll notice some checks use offsets like , , to ensure the trend context existed before the current bar, making signals more realistic.
3. First-match wins
Inside each TF scan, patterns are checked in a fixed order. The code assigns the first eligible pattern to the row and ignores subsequent ones for that bar. This keeps rows clean and avoids double-signaling.
4. Confirmed bar only
The script saves a pattern only when the bar is confirmed (barstate.isconfirmed), reducing the “painting” of signals that vanish before close.
Important: For higher TFs, the table won’t update that TF’s row until its bar closes. E.g., a Daily pattern appears only after the daily candle closes.
5. Volume context
o BuyVol = TF volume if that TF bar closed up, else 0
o SellVol = TF volume if that TF bar closed down, else 0
o VolRatio = TF total volume ÷ SMA(volume, volMaLen)
That ratio feeds the Vol Strength bar for quick “is today active?” context.
6. Time formatting
The time shown is the end time of the TF bar, formatted to your Timezone input (Exchange by default). Intraday TFs show HH:mm; higher TFs show a clean date or time per your settings.
________________________________________
5) Alerts — how they’re built and how to use them
• On each bar close, SPS Pro assembles one multiline alert if any timeframe reported a pattern.
Example format:
• 🎯 Pattern Alert - NIFTY
• ├ 15: Engulfing (Bull) @ 24650.20
• ├ 60: Dark Cloud (Bear) @ 24580.90
• └─────────────
• To receive alerts in TradingView:
1. Add the indicator to your chart.
2. Click Create Alert.
3. In the Condition, choose “Any alert() function call” for this script.
4. Set “Once per bar close” (recommended, matches the script).
5. Choose your delivery channels and save.
________________________________________
6) Practical workflows (for new traders)
A) Intraday momentum trade (scalp/day trade)
1. Set TFs to 5,15,60.
2. Enable Engulfing, Hammer/Hanging Man, Morning/Evening Star, Shooting Star, Doji.
3. Keep Trend Based on SMA ON (SMA 50).
4. Wait for 5m + 15m to align in the same direction (both 🟢 or both 🔴).
5. Prefer entries when Vol Strength > 1.0 on the entry TF.
6. Place stop beyond the pattern’s invalidation (e.g., below Hammer low for long).
7. Scale out near prior intraday S/R; trail stops.
B) Swing reversal trade
1. Use higher TFs: 60,240,1D,1W.
2. Focus on Rising/Falling Three Methods, Morning/Evening (Doji) Stars, Three Soldiers/Crows.
3. Look for a fresh pattern on 4h or Daily, ideally with Vol Strength > 1.3.
4. Confirm confluence with structure (trendlines, weekly levels).
5. Plan wider stops and multi-day hold; review news/catalysts.
C) News avoidance & confirmation
• If Vol Strength spikes without a clean pattern, consider standing aside or waiting for the next bar to avoid whipsaw.
• When a pattern appears with a strong Vol Strength bar, it often signals attention-worthy activity—still validate with your own plan.
________________________________________
7) Best-practice interpretation tips
• Confluence beats single signals. Two TFs pointing the same way + decent Vol Strength is more reliable than a lone 5m signal.
• Neutral patterns (Doji/Spinning Top) are context markers, not trade triggers by themselves. Wait for follow-through.
• Trend gate matters. Keeping SMA gating ON reduces counter-trend noise.
• Bars must close. Remember: higher-TF rows only change after that TF bar closes.
• “First-match wins” means the order of checks matters. You can reorder or disable patterns to fit your style.
________________________________________
8) Performance & limits (TradingView realities)
• You’re scanning several TFs, running many pattern checks. Disable unused patterns or trim TFs if you hit resource limits.
• dynamic_requests=true helps, but extreme combinations (lots of TFs + all patterns + small chart TF) can still be heavy.
• If an exchange symbol’s volume behaves oddly, re-check Volume MA Length and your Timezone for clarity.
________________________________________
9) Common FAQs & troubleshooting
• “Why do I see ‘—’ on some rows?”
No qualifying pattern on the last closed bar of that TF, or your trend gate filtered it out.
• “Why are some signals late?”
Signals appear only on bar close (by design). That’s deliberate to avoid premature triggers.
• “My alert didn’t fire.”
Make sure the chart has an active alert set to “Any alert() function call” for this script and your alert frequency is Once per bar close.
• “Can I change the strength thresholds?”
Yes—edit the line that colors Vol Strength (currently >1.5 = stronger). Adjust to your preference.
• “I want more than one pattern per TF.”
This version stores one (the first match). You can adapt the logic to collect multiple, but keep the UI readable.
________________________________________
10) Suggested training exercises for new traders
1. Replay Mode drill – On a liquid symbol, step through 2 weeks of 5m/15m data. Log which SPS signals would you take/skip and why.
2. Confluence journal – Require at least two TFs aligned. Track outcomes for 20 trades.
3. Vol Strength filter – Only act when Vol Strength > 1.2. Compare results vs. no filter.
4. Pattern-specific week – Trade only Engulfing setups for one week (paper trading), then only Stars next week. Learn the nuances.
5. Risk practice – Fix risk at 0.5–1R per trade. Journal adherence to stops and take-profits.
________________________________________
11) Advanced customization ideas (optional)
• Re-order pattern checks to favor your preferred setups.
• Tighten/loosen trend gates (e.g., require uTrd and uTrd around breakout patterns).
• Add a score column (e.g., +2 for multi-TF alignment, +1 for Vol Strength >1.3, −1 if Neutral on higher TF).
• Map “Body/Header/Title” text sizes to table sizes if you want more granular typography (current code uses the overall Table Size).
________________________________________
12) Strict disclaimer (aiTrendview)
aiTrendview Educational Notice & Risk Warning
• This scanner is provided strictly for education and research. It is not investment advice, a recommendation, or a solicitation to buy/sell any security, derivative, or cryptocurrency.
• Candlestick patterns and volume context are imperfect and can fail. Past performance does not guarantee future results.
• Markets involve substantial risk. You can lose more than your principal, especially with margin, options, or leveraged products.
• Signals are generated after bar close and may be delayed at higher timeframes or due to data/vendor issues.
• Always validate with your own analysis, risk management rules, and, where appropriate, consult a qualified financial advisor.
• By using this tool, you agree not to misuse it for unlawful activity, spam alerts, or to represent it as a guaranteed system. You accept full responsibility for any trades taken and outcomes incurred.
________________________________________
13) Quick setup checklist
• Add SPS Pro to your chart.
• Configure Timeframes you actually trade.
• Toggle Show Volume and Vol Strength as desired.
• Keep SMA Trend Gate ON for cleaner signals (tune maLen to your market).
• Create a TradingView alert for “Any alert() function call” → Once per bar close.
• Paper-trade a sample of signals before going live.
MACROFLOW 200 — Bias & Triggersstephtradez model
MACROFLOW 200 — at a glance (the elevator pitch)
Trade direction = Macro Bias + 1H 200 EMA filter + DXY confirm.
Locations = 1H supply/demand zones.
Triggers (15m): (T1) Retest rejection, (T2) Liquidity sweep + BOS/CHOCH, (T3) Momentum break + shallow pullback.
Stops: structure‑based beyond zone with ATR buffer.
Targets: 2R base, scale at 1.5R, trail to next HTF zone.
Sessions: 7–10 pm ET and 9:30–10:30 am ET.
Risk: tight, prop‑friendly max 1% per session
Clustered Support/Resistance (±% Tolerance, Last N Bars) – NO OFIn the last 1500 candles (user-adjustable), pivot highs and lows are clustered. If more than 20 touches occur within a ±1% tolerance zone, that level is marked as a support or resistance line.
The following parameters are configurable:
Tolerance (%)
Minimum touch count
Pivot left/right length
Maximum number of lines
This allows flexible identification of significant support and resistance zones based on repeated pivot clustering within the chosen lookback period.






















