Advanced Market Structure Sniper -> PROFABIGHI_CAPITAL Strategy🌟 Overview
The Advanced Market Structure Sniper → PROFABIGHI_CAPITAL Strategy is a precision market structure trading system that leverages Break of Structure (BOS) and Change of Character (CHoCH) detection for trend continuation and reversal signals, integrated with multi-mode EMA trend validation and interim swing-based risk placement . It offers directional trading flexibility , conservative or aggressive position management , dynamic stop-loss and take-profit levels , and comprehensive visual feedback including colored candles and performance metrics for optimized backtesting and live execution.
⚙️ Strategy Configuration
- Initial Capital : Starting account balance for simulation and performance calculation
- Slippage Modeling : Adjustable execution cost to reflect real-market friction
- Position Sizing : Equity percentage allocation per trade for consistent risk exposure
- Pyramiding Control : Disabled to limit directional exposure to single positions
- Order Execution : Processes trades on confirmed bar close to avoid repainting
- Margin Settings : Zero leverage for both long and short positions, focusing on cash-based trading
- Overlay Display : Renders all elements directly on the price chart for contextual analysis
📅 Date Range Settings
- Date Filter Activation : Toggle to limit backtesting to user-defined periods or enable full history
- Backtest Start Date : Customizable starting point for trade evaluation, ignoring prior data
- Range Validation : Ensures entries and exits only occur within the specified timeframe
- Historical Flexibility : Disable filter for comprehensive analysis across entire dataset
📊 PROFABIGHI_CAPITAL Metrics Display
Performance Visualization Options:
- Equity Curve : Plots account growth including unrealized positions for trend assessment
- Open Profit Tracking : Monitors current trade profitability in real-time
- Gross Profit Summary : Cumulative wins before deductions for raw performance view
- Net Profit Calculation : Final returns after all costs and losses
- Strategy Overview : Holistic equity path from initial capital
- Display None : Clean chart without performance overlays
Table Customization:
- Positioning Choices : Flexible placement across chart edges or centers for visibility
- Full Detail Mode : In-depth stats like win rate, Sharpe ratio, and maximum drawdown
- Simplified View : Core metrics only, such as total profit and trade count
- Hidden Option : Remove table entirely for focused price action review
🎯 Mode and Style Settings
- Directional Mode : Select long-only for bullish bias, short-only for bearish, or both for balanced approach
- Trade Style Selection : Conservative limits to one active position; aggressive allows concurrent trades
- Bias Alignment : Ensures signals match selected mode to filter irrelevant opportunities
- Position Overlap Control : Aggressive mode enables multi-trade scenarios while maintaining risk limits
📊 BOS/CHoCH Swing Detection
- Left Bar Confirmation : Adjustable lookback bars before pivot for robust high/low identification
- Right Bar Validation : Post-pivot bars required to confirm swing strength and reliability
- Body-Focused Pivots : Analyzes candle body extremes for cleaner structure over wick noise
- Fractal Formation : Detects new highs/lows to establish reference levels for breaks
- Crossover Logic : Triggers on price crossing prior swing levels to signal structure shifts
📊 Interim High/Low Swing Detection
- Dedicated Left Bars : Independent lookback for identifying recent swing extremes
- Dedicated Right Bars : Confirmation period tailored for interim pivot accuracy
- Opposing Candle Tracking : Monitors last bearish candle low for long stops, bullish high for short stops
- Pivot Fallback Integration : Uses interim pivots when available, defaults to recent candle bodies
- Reactive Reference : Provides tighter, more current levels for dynamic risk placement
👁️ Display Settings
- BOS/CHoCH Label Toggle : Show or hide text markers for structure break events
- Swing Line Visibility : Enable lines connecting pivot points for structural mapping
- Line Extension Duration : Configurable forward projection of swing levels for future reference
- Label Styling : Tiny, direction-colored text (green for bullish, red for bearish) with arrow styles
- Clean Visualization : Options to declutter chart by disabling non-essential elements
📈 EMA Trend Confirmation System
Mode Selection:
- Basis Mode : Unified short/long EMA pair for simple, consistent trend reading
- Advanced Mode : Separate EMA pairs optimized for long (bullish) and short (bearish) biases
Basis Parameters:
- Short EMA Length : Faster moving average for responsive trend signals
- Long EMA Length : Slower moving average for overall direction confirmation
Advanced Parameters:
- Long Trend Short EMA : Quick EMA for bullish trend detection
- Long Trend Long EMA : Supporting EMA for sustained uptrend validation
- Short Trend Short EMA : Responsive EMA for bearish momentum
- Short Trend Long EMA : Confirmatory EMA for downtrend persistence
Trend Validity:
- Uptrend Condition : Short EMA above long EMA in Basis; aligned pair in Advanced
- Downtrend Condition : Short EMA below long EMA in Basis; misaligned pair in Advanced
- Dynamic Plotting : Lines color-coded (green up, red down, gray invalid) with varying thickness
🎨 Color Customization
- EMA Trend Colors : Green for uptrends, red for downtrends in Basis mode
- Advanced EMA Colors : Green/gray for long pairs, red/gray for short pairs
- Entry Arrow Colors : Green up arrows for buys, red down for sells
- Exit Signal Colors : Dark blue for profitable closes, purple for loss exits
- Interim Line Color : Yellow for swing reference lines
- Risk Line Colors : Red for stops, green for take-profits
🛡️ Risk Management Framework
- Risk/Reward Ratio : Scalable profit target based on stop distance for asymmetric returns
- Stop Offset Percentage : Buffer added to interim levels to protect against whipsaws
- Long Stop Placement : Below last bearish candle low or interim swing low, with offset
- Short Stop Placement : Above last bullish candle high or interim swing high, with offset
- Target Derivation : Automatically calculates take-profit from entry and risk distance
- Buffer Safety : Offset ensures stops avoid tight structure for better execution
📊 Market Structure Tracking
- Structure State Variables : Tracks upper/lower swing values, locations, and cross status
- Direction Flag : Maintains bullish (1) or bearish (-1) bias based on breaks
- CHoCH Detection : Flags major reversals when breaking against prior trend
- BOS Confirmation : Validates continuations after initial CHoCH in same direction
- Cross Prevention : Boolean locks prevent duplicate signals on same level
- Fractal Updates : Dynamically refreshes swing references on new pivots
📈 Entry Signal Generation
Long Signal Requirements:
- CHoCH Confirmation : Initial bullish structure shift detected
- BOS Validation : Subsequent continuation break in uptrend
- EMA Alignment : Trend valid per selected mode (Basis or Advanced)
- Mode Permission : Long trades enabled in selected directional setting
- New Trade Allowance : No active long in conservative style
- Date Compliance : Within backtest range for execution
Short Signal Requirements:
- CHoCH Confirmation : Initial bearish structure shift detected
- BOS Validation : Subsequent continuation break in downtrend
- EMA Alignment : Trend valid per selected mode (Basis or Advanced)
- Mode Permission : Short trades enabled in selected directional setting
- New Trade Allowance : No active short in conservative style
- Date Compliance : Within backtest range for execution
Signal Filtering:
- Structure Sequence : Requires CHoCH first, then BOS for layered confirmation
- Trend Gate : EMA validity blocks counter-trend entries
- Position Lock : Conservative mode halts new signals until exit
- Visual Markers : Small triangle shapes below/above bars for immediate recognition
📤 Exit Management Logic
Stop Loss Triggers:
- Long Exit : Price reaches or breaches calculated stop below interim low
- Short Exit : Price reaches or breaches calculated stop above interim high
- Immediate Closure : Position closed on touch for strict risk adherence
Take Profit Triggers:
- Long Exit : Price hits target above entry by risk/reward multiple
- Short Exit : Price hits target below entry by risk/reward multiple
- Profit Locking : Secures gains at predefined level for disciplined trading
EMA Reversal Exits:
- Basis Mode : Short EMA crosses against long EMA direction
- Advanced Mode : Direction-specific pair misalignment triggers exit
- Profit/Loss Sorting : Classifies as profit if favorable to entry price, else loss
- Bar Confirmation : Exits processed on close to filter noise
Position Reset:
- State Clearing : Flags reset post-exit to allow new setups
- Line Deletion : Removes SL/TP visuals for chart clarity
- Condition Refresh : BOS/CHoCH trackers cleared for fresh analysis
- Allowance Unlock : Conservative mode re-enables signals after closure
🎨 Visualization Features
Entry and Exit Markers:
- Buy Arrows : Green triangles below bars for long signals
- Sell Arrows : Red triangles above bars for short signals
- Profit Exits : Dark blue triangles marking successful closes
- Loss Exits : Purple triangles indicating stopped trades
Structure and Swing Lines:
- BOS/CHoCH Lines : Horizontal extensions from break points in trend colors
- Interim Swing Lines : Yellow dashed lines for high/low references
- Risk Lines : Dashed red (stops) and green (targets) projecting forward
- Label Placement : Centered text between pivot and break for context
EMA Trend Lines:
- Basis Plots : Single pair with color shifts for unified trend view
- Advanced Plots : Four lines with direction-specific coloring and gray invalid states
- Line Weights : Thinner for shorts, thicker for longs to emphasize hierarchy
Candle Coloring System:
- Long Trade Candles : Full green fill, border, and wicks during active positions
- Short Trade Candles : Full red fill, border, and wicks during active positions
- Exit Bar Highlight : Maintains trade color on closure bars for lifecycle tracking
- Neutral Default : Transparent when no active trade for standard view
🔔 Alert System
- Entry Alerts : Notifications for buy/sell signals with ticker and timeframe
- Exit Alerts : Separate messages for profit/loss closes in each direction
- Structure Alerts : CHoCH and BOS detections for proactive monitoring
- Custom Messages : Include instrument and interval for quick context
- Real-Time Triggers : Fire on condition met for timely trade decisions
📈 Strategy Execution Framework
Entry Execution:
- Long Orders : strategy.entry() on confirmed buy signal within date range
- Short Orders : strategy.entry() on confirmed sell signal within date range
- Confirmation Gate : barstate.isconfirmed ensures no intrabar repaints
- Range Restriction : Ignores signals outside backtest period
Exit Execution:
- Position Closes : strategy.close() on any profit, loss, or EMA reversal
- Unified Handling : Single call manages full position exit
- Condition Priority : SL/TP checked first, then EMA for layered protection
- Post-Entry Management : Continues exits even if outside date range
Position State Management:
- Trade Flags : Boolean trackers for long/short activity and entry prices
- Conservative Lock : Disables new entries until current position resolves
- Aggressive Freedom : Permits overlapping trades without restrictions
- Direction Switch : New opposite entry closes prior position automatically
- Reset Mechanism : Clears all states on exit for clean restarts
🔍 Advanced Features
Structure Break Logic:
- Crossover Detection : ta.crossover/close for precise level breaches
- Label Differentiation : 'CHoCH' for reversals, 'BOS' for continuations
- Trend Flip Handling : os flag updates bias on confirmed shifts
- Line Drawing : Connects pivot to break bar for visual confirmation
Interim Level Dynamics:
- Candle Body Priority : Uses max/min open/close for interim references
- Continuous Update : Refreshes on every opposing candle or pivot
- Fallback Safety : Defaults to prior bar high/low if no recent level
- Offset Application : Percentage adjustment for volatility adaptation
EMA Mode Adaptability:
- Unified vs Specialized : Basis for simplicity, Advanced for nuanced biases
- Validity Gating : Blocks entries on invalid trends to reduce whipsaws
- Exit Sensitivity : Detects flips from prior to current bar for timely action
- Color Feedback : Gray lines signal non-valid states for quick assessment
Trade Lifecycle Integration:
- Entry Price Capture : Locks close price on signal for accurate calculations
- Line Management : Deletes prior visuals before new draws for non-clutter
- State Persistence : var declarations maintain values across bars
- Exit Classification : Distinguishes profit/loss for metrics accuracy
Performance Safeguards:
- Barstate Checks : Confirmed states prevent lookahead in tests
- Date Gating : Strict range enforcement for reproducible results
- No Repaint Design : All detections use historical pivots
- Alert Granularity : Direction-specific notifications for focused monitoring
✅ Key Takeaways
- Precision Structure Trading : BOS/CHoCH combo delivers high-confidence breakouts and reversals
- Flexible Directional Control : Long/short/both modes adapt to market bias or user preference
- Dual EMA Frameworks : Basis for ease, Advanced for tailored trend validation per direction
- Interim Swing Risk : Reactive stops using recent candles or pivots for tighter protection
- Scalable Risk/Reward : Custom RR ratios with offsets ensure favorable trade math
- Conservative/Aggressive Styles : Single vs multi-position management for risk tuning
- Visual Trade Lifecycle : Arrows, lines, colored candles, and labels track every step
- Layered Exits : SL/TP fixed levels plus EMA dynamic closes for complete coverage
- Backtest Optimization : Date filters, metrics tables, and confirmed signals for reliable testing
- Alert-Driven Monitoring : Comprehensive notifications for entries, exits, and structure events
- Body-Based Cleanliness : Ignores wicks for robust pivot detection in noisy markets
- Stateful Tracking : Variables maintain structure memory without overload
- No-Leverage Focus : Emphasizes capital preservation over amplified exposure
Pivot noktaları ve seviyeleri
Market Structure Strategy - Level 1This strategy identifies peaks and valleys (local tops and bottoms) in price to construct a dynamic market structure, labeling Higher Highs (HH), Lower Lows (LL), Higher Lows (HL), and Lower Highs (LH). From this evolving structure, the script determines the dominant market regime, which can be:
Bull (green) – when price forms new highs and maintains a bullish structure, the strategy favors long entries.
Bear (red) – when price forms new lows and confirms a bearish structure, the strategy favors short entries.
Range (brown) – when price fluctuates between recent highs and lows, suggesting sideways conditions where no trades are initiated.
The transition between these regimes depends mainly on four key parameters.
The first parameter controls the lookback period into the past to find the top or bottom.
The second controls the period of the looback to the right of the top or bottom.
The “Entry Margin” parameter determines how much ranging behavior the model will detect before switching regimes.
The 4 parameter select the source to construct the top and bottom, the close the wick, etc.
The user can configure the strategy to run long-only, short-only, or both directions, depending on the market or preference. In addition to the core regime logic, the strategy includes several risk and trade management controls that are featured in all my strategies.
Four oscillators are also integrated into the logic to detect short-term overbought and oversold conditions. These help the strategy avoid entering or exiting a trade when price has already extended too far in one direction, improving timing and potentially reducing false entries and exits. When overbought or oversold are detected, a red or green dot appears on the chart.
The script is designed to be flexible across different assets and timeframes. However, to achieve consistent results, it is important to optimize parameters carefully. A recommended workflow is as follows:
Disable the walk-forward option during the optimization phase.
Optimize the first main parameter while keeping others fixed.
Once a satisfactory value is found, move to the second parameter.
Continue the process for subsequent parameters.
Optionally, repeat the full sequence once more to refine the results.
Finally, activate walk-forward analysis and check the out-of-sample results.
This strategy is published as invite-only with hidden source code. Access may be granted upon request for research or evaluation purposes. It is part of a broader collection of technical analysis strategies I have developed, which focus on regime detection and adaptive trading systems.
There are five levels of strategy complexity and performance in my collection. This script represents a Level 1 strategy, designed as a solid foundation and introduction to the framework. More advanced levels progressively add greater complexity, adaptability, and robustness.
Finally, when multiple strategies are combined under this same framework, the results become more robust and stable. In particular, combining my suite of technical analysis strategies with my macro strategies and alternative data strategies, such as onchain for cryptocurrencies. It creates a multi-layered system that adapts across regimes, timeframes, and market conditions.
Tight Entry Trend Engine Strategy═══════════════════════════════════════
TIGHT ENTRY TREND ENGINE
═══════════════════════════════════════
A breakout-based trend-following system designed to capture explosive
moves by entering at precise resistance/support breakouts with minimal
entry risk and massive profit potential.
⚠️ LOW WIN RATE, HIGH REWARD SYSTEM ⚠️
This is NOT a high win-rate strategy. Expect 25-35% winners, but
when it hits, winners are typically 10X+ larger than losers.
═══════════════════════════════════════
🎯 WHAT THIS SYSTEM DOES
═══════════════════════════════════════
The Tight Entry Trend Engine identifies powerful breakout opportunities
by detecting when price breaks through established trendlines with
confirmation from higher timeframe trends:
1. DYNAMIC TRENDLINE DETECTION (3 BANKS)
• Automatically draws support and resistance trendlines
• 3 separate "banks" capture short-term, medium-term, and long-term levels
• Each bank has configurable parameters (required pivot touch count,
angle limits, lengths)
2. BREAKOUT ENTRY TIMING
• Enters LONG when price breaks ABOVE resistance trendlines
• Enters SHORT when price breaks BELOW support trendlines
• Entry Alert occurs at the exact moment of breakout = "tight entry"
• Stop-loss placed just below/above the broken trendline (configurable)
3. HIGHER TIMEFRAME TREND FILTER
• Uses Hull Moving Average (HMA) on higher timeframe for trend following
• Auto-adjusts HTF based on your chart timeframe
• Optional filters prevent entries against major trend
• Optional "overextension" filter avoids buying parabolic moves
4. VOLATILITY-ADAPTIVE RISK MANAGEMENT
• Stop-loss calculated using Average True Range (ATR)
• Tighter stops = better R:R
• Profit targets adjust dynamically with volatility
• Breakeven stop moves automatically when in profit
• Extended profit targets when far from HTF trend
═══════════════════════════════════════
📊 HOW IT WORKS (METHODOLOGY)
═══════════════════════════════════════
STEP 1: TRENDLINE FORMATION
The system continuously scans for pivot highs and pivot lows to
construct trendlines. You control:
BANK 1 (Short-Term):
- Pivot Length: How many bars to look back for swing points
- Min Touches: How many pivots needed to form a line (default: 3)
- Max Length: How far back lines can reach (default: 180 bars)
- Angle Limits: Maximum steepness allowed for valid trendlines
- Tolerance: How close pivots must align to form horizontal lines
BANK 2 (Medium-Term):
- Slightly longer pivot periods for more significant levels
- Captures medium-term trend structure
- Default Max Length: 200 bars
BANK 3 (Long-Term):
- Focuses on major support/resistance zones
- Often uses horizontal levels (angled lines disabled by default)
- Default Max Length: 300 bars
The system draws RESISTANCE lines (red) above price and SUPPORT
lines (green) below price. These adapt in real-time as new pivots form.
STEP 2: BREAKOUT DETECTION
LONG SIGNALS:
- Price closes above a resistance trendline
- Higher timeframe trend is up (optional filter)
- Price not overextended from HTF trend (optional filter)
- No position currently open
SHORT SIGNALS:
- Price closes below a support trendline
- Higher timeframe trend is down (optional filter)
- Price not overextended from HTF trend (optional filter)
- No position currently open
The "tight" aspect: Because you're entering right at the trendline
break, your stop-loss can be placed very close (just below the
broken resistance for longs), creating exceptional risk/reward ratios.
STEP 3: POSITION SIZING
Choose between:
- Fixed $ Risk Per Trade: Risk same dollar amount every trade
- % Risk Per Trade: Risk percentage of current equity
Position size automatically calculated based on:
- Your risk amount
- Distance to stop-loss (ATR-based)
- Works with stocks, futures, crypto (auto-adjusts for contract multipliers)
STEP 4: EXIT MANAGEMENT
Multiple exit methods working together:
- PROFIT TARGET: Exits when profit reaches 100x your risk
- EXTENDED PROFIT: Earlier exit (80R) when very far from HTF trend
- STOP LOSS: Fixed ATR-based stop below entry
- HTF TREND EXIT: Exits when price crosses below HTF trend with profit
- BREAKEVEN PULLBACK: Exits if profit drops below 0.6R after reaching breakeven
- PARTIAL PROFITS: Optional - take partial profits at specified R-multiple
═══════════════════════════════════════
🔧 KEY COMPONENTS EXPLAINED
═══════════════════════════════════════
HULL MOVING AVERAGE (HMA)
A smoothed moving average that reduces lag compared to traditional
MAs. The system uses HMA on a higher timeframe to determine the
dominant trend direction. You can choose:
- Auto HTF: System picks appropriate HTF based on your chart timeframe
- Manual HTF: You specify the higher timeframe
AVERAGE TRUE RANGE (ATR)
Measures current market volatility. Used for:
- Stop-loss distance (tighter when volatility low)
- Profit targets (larger when volatility high)
- Position sizing (smaller positions in volatile conditions)
- Breakeven trigger distance
TRENDLINE ANGLE FILTERING
Each trendline bank has angle limits to ensure quality:
- Resistance lines: Max downward/upward slope allowed
- Support lines: Max downward/upward slope allowed
- Angles automatically adjust based on current volatility
- Prevents overly steep/unreliable trendlines
SENSITIVITY CONTROL
One master slider adjusts multiple parameters:
- Trendline detection sensitivity
- HTF MA length
- Exit timing
- Auto-adjusts for daily+ timeframes (60% increase)
═══════════════════════════════════════
⚙️ WHAT YOU SEE ON YOUR CHART
═══════════════════════════════════════
TRENDLINES:
✓ Red resistance lines above price
✓ Green support lines below price
✓ Orange broken lines (past breakouts)
✓ Lines extend to show current levels
HTF TREND:
✓ Thick colored line showing higher timeframe trend
✓ Color gradient: Red (bearish) → Orange → Yellow → Green (bullish)
✓ 250-bar smoothed curve for visual clarity
ENTRY/EXIT SIGNALS:
✓ Small green dot below bar = Long entry
✓ Small red dot above bar = Short entry
✓ Small red dot above = Long exit
✓ Small black dot below = Short exit
OPTIONAL DETAILED LABELS:
✓ Bank number that triggered entry (Bank 1, 2, or 3)
✓ Exit reason (Profit Target, Stop Loss, HTF Exit, etc.)
✓ Partial profit notifications
POSITION TRACKING:
✓ Yellow dashed line at entry price (extends right)
✓ Green/red fill showing current profit/loss zone
✓ Lime arrows at top = Currently in long position
✓ Red arrows at bottom = Currently in short position
✓ Gray background = No position (flat)
STATS TABLE (Top Right):
✓ Current position (LONG/SHORT/FLAT)
✓ Risk per trade ($ or %)
✓ Entry price
✓ Unrealized P/L in dollars
✓ P/L in R-multiples (how many R's profit/loss)
✓ Average winner/loser R ($ mode) OR CAGR (% mode)
═══════════════════════════════════════
📈 OPTIMAL USAGE
═══════════════════════════════════════
BEST ASSETS:
- NASDAQ:QQQ on 1-hour (reg) chart ⭐ (PRIMARY OPTIMIZATION)
- Strong trending stocks: NVDA, AAPL, TSLA, MSFT, GOOGL, AMZN
- High volatility tech stocks
- Crypto: BTC, ETH
- Any liquid asset with clear trends and momentum (GOLD)
AVOID:
- Low volatility stocks
- Ranging/choppy markets
- Penny stocks or illiquid assets
- Assets without clear directional movement
BEST TIMEFRAMES:
- PRIMARY: 1-hour charts (optimal for QQQ)
- ALSO EXCELLENT: 2H, 4H, 8H
- WORKS: 15min, 30min (only momentum leaders, more noise)
- WORKS WITH ADJUSTMENTS: 1D, 2D (decrease trendline pivot lengths)
═══════════════════════════════════════
📊 BACKTEST RESULTS (QQQ 1H (Reg hours), 1999-2024)
═══════════════════════════════════════
The system showed on NASDAQ:QQQ 1-hour timeframe (regular hours):
- Total Return: 1,100,000%+ over 24 years
- Total Trades: 500+
- Win Rate: ~20-24% (LOW - this is by design!)
- Average Winner: 8-15% gain
- Average Loser: 2-4% loss
- Win/Loss Ratio: 10:1 (winners much bigger than losers)
- Profit Factor: 3+
- Max Drawdown: 45-50%
- Risk per trade: 3% of capital
KEY INSIGHT: This is a LOW WIN RATE, HIGH REWARD system. You will
lose more trades than you win, but the few winners are so large
they more than compensate for many small losses.
IMPORTANT: These are backtested results using optimal parameters
on historical data. Real trading results will vary based on:
- Your execution and timing
- Slippage and commissions
- Your emotional discipline
- Market conditions during your trading period
═══════════════════════════════════════
🎓 WHO IS THIS FOR?
═══════════════════════════════════════
IDEAL FOR:
✓ Swing traders comfortable holding winners for longer period
✓ Part-time traders (1H = check 2-3x per day)
✓ Traders seeking exceptional risk/reward ratios
✓ Those comfortable with low win rates if winners are huge
✓ Technical analysis enthusiasts
✓ Breakout traders
✓ Trend followers
═══════════════════════════════════════
🚀 GETTING STARTED - STEP BY STEP
═══════════════════════════════════════
STEP 1: APPLY TO YOUR CHART
- Search "Tight Entry Trend Engine" in indicators
- Click to apply to your chart
- Trendlines and HTF line will appear immediately
STEP 2: CHOOSE YOUR SETTINGS
For BEGINNERS - Use These Settings First:
1. Trade Direction & Filters:
• ENABLE LONGS: ✓ ON
• ENABLE SHORTS: ✗ OFF (start with longs only)
• Sensitivity: 1.0 (default)
• HTF Trend Entry Filter: ✓ ON (safer entries)
• Block Entries When Overextended: ✓ ON (avoid parabolic tops)
2. Position Sizing & Risk:
• Position Sizing: "Per Risk"
• RISK Type: "$ Per Trade"
• Risk Amount: $200 (or 1-3% of your account)
3. Visual Settings:
• Show Support Lines: ✗ OFF (unless trading shorts)
• Show Detailed Entry/Exit Labels: ✓ ON
• Show Stats Table: ✓ ON
• Show Entry Line & P/L Fill: ✓ ON
4. Leave everything else at DEFAULT for now
STEP 3: UNDERSTAND WHAT YOU SEE
When trendlines appear:
- RED lines above = Resistance (watch for price breaking UP through these)
- GREEN lines below = Support (watch for price breaking DOWN)
- When price breaks a red line = Potential LONG entry
- When price breaks a green line = Potential SHORT entry
The HTF trend line (thick colored):
- Green/lime = Strong uptrend (favorable for longs)
- Red = Strong downtrend (favorable for shorts if enabled)
- Orange/yellow = Transitioning
STEP 4: OBSERVE SIGNALS
- Small GREEN dot below bar = System entered LONG
- Small RED dot above bar = System exited LONG
- Check the label to see which "Bank" triggered (Bank 1, 2, or 3)
- Watch the yellow entry line and colored fill show your P/L
STEP 5: PAPER TRADE FIRST
- Use TradingView's paper trading feature
- Watch how signals perform on YOUR chosen asset
- Understand the win rate will be LOW (20-35%)
- Verify that winners are indeed much larger than losers
- Test for at least 20-30 signals before going live
STEP 6: OPTIMIZE FOR YOUR ASSET (OPTIONAL)
If default settings aren't working well:
For FASTER signals (more trades):
- Reduce Pivot Length 1 to 3-4
- Reduce Max Length 1 to 120-150
- Increase Sensitivity to 1.2-1.5
For SLOWER signals (higher quality):
- Increase Pivot Length 1 to 7-10
- Increase Max Length 1 to 250+
- Decrease Sensitivity to 0.7-0.9
For DAILY timeframes:
- Increase all Pivot Lengths by 30-50%
- Increase all Max Lengths significantly
- Sensitivity: 0.6-0.8
═══════════════════════════════════════
⚙️ ADVANCED SETTINGS EXPLAINED
═══════════════════════════════════════
TRENDLINE BANK SETTINGS:
Each bank (1, 2, 3) has these parameters:
- Min Touches: Minimum pivots to form a line
- Lower (2) = More lines, earlier detection
- Higher (4+) = Fewer lines, higher quality
- Pivot Length: Lookback for swing points
- Lower (3-5) = Reacts to recent price action
- Higher (10+) = Only major swing points
- Max Length: How old a trendline can be
- Shorter (100-150) = Only recent lines
- Longer (300+) = Include historical levels
- Tolerance: Alignment strictness for horizontal lines
- Lower (3.0-3.5) = Very strict horizontal
- Higher (4.5+) = More forgiving alignment
- Allow Angled Lines: Enable diagonal trendlines
- ON = Catches sloped support/resistance
- OFF = Only horizontal levels
- Angle Limits: Maximum steepness allowed
- Lower (1-2) = Only gentle slopes
- Higher (4-6) = Accept steeper angles
- Automatically adjusts for volatility
ATR MULTIPLIERS:
- STOP LOSS ATR (0.6): Distance to stop-loss
- Lower (0.4-0.5) = Tighter stops, stopped out more
- Higher (0.8-1.0) = Wider stops, more room
- PROFIT TARGET ATR (100): Main profit target
- This is 100x your risk = 10,000% R:R
- Lower (50-80) = Take profits sooner
- Higher (120+) = Let winners run longer
- BREAKEVEN ATR (40): When to move stop to breakeven
- Lower (20-30) = Protect profits earlier
- Higher (60+) = Give more room before protecting
HIGHER TIMEFRAME:
- Auto HTF: Automatically selects appropriate HTF
- 5min chart → uses 2H
- 15-30min → uses 6H
- 1-4H → uses 2D
- Daily → uses 4D
- HTF MA Length (300): HMA period for trend
- Lower (150-250) = More responsive
- Higher (400-500) = Smoother, less whipsaw
- HTF Trend Following Exit: Exits when crossing HTF
- ON = Additional exit method
- OFF = Rely only on profit targets/stops
- HTF Trend Entry Filter: Only trade with HTF trend
- ON = Safer, fewer signals
- OFF = More aggressive, more signals
- Block Entries When Overextended: Prevents chasing
- ON = Avoids parabolic tops/bottoms
- OFF = Enter all breakouts regardless
═══════════════════════════════════════
💡 TRADING PHILOSOPHY & EXPECTATIONS
═══════════════════════════════════════
This system is built on one core principle:
"ACCEPT SMALL, FREQUENT LOSSES TO CAPTURE RARE, MASSIVE WINS"
What this means:
- You WILL lose 65%-75% of your trades
- Most losses will be small (1-2R)
- Some winners hit 80R+
- Over time, math works in your favour
OneHolo-TGAPSNRTGAPSNR: Multi time frame - Trend Gap Stop And Reverse strategy/Study PnL. This script outlines a systematic approach to generating buy and sell signals by combining Fair Value Gaps (FVGs), specific market structures, and three different trend direction methods (Swing, Gravity, and FVG Inverse direction). The strategy incorporates multiple entry modes, such as Hyper Mode, Swiper Mode, and a Custom mode, allowing users to tailor signal conditions, alongside extensive logic for trade management, higher time frame analysis, and various visual indicators for plotting trend, pivots, and profit and loss information.
I. Core Trend Direction Consensus (The Three-Pillar System)
The primary method for determining market bias is a three-pillar consensus model, requiring all directional methods to align before the overall Trend Direction is established (up or down). This ensures high conviction for trend signals.
• Pillar 1: Swing Direction: Determines market direction based on classic price action, specifically checking for continuous higher highs and higher lows for an upward bias, or lower lows and lower highs for a downward bias.
• Pillar 2: Gravity Direction (Peak and Valley): This uses specific market structure pivots. Direction is set based on whether the close price successfully crosses the established recent Peak High (indicating upward momentum) or crosses under the recent Valley Low (indicating downward pressure).
• Pillar 3: FVG Inverse Direction: This relies on Fair Value Gaps (FVGs), defined as a gap between the current bar's price and the price two bars prior. Direction shifts occur when the Close price crosses the midpoint of the last relevant FVG. For instance, crossing above the midpoint of the last FVG Down signals a potential inverse long trade.
II. Flexible Signal Generation Modes
The strategy offers several pre-configured and highly detailed entry modes, plus a powerful Custom Mode:
• Session Open Range Break (ORB) Mode: Uses the high/low of the session's first bar to generate initial signals, then defaults to the Three-Pillar Trend Direction after the ORB session concludes.
• Swiper Mode: Designed to identify continuations, combining a confirmed Trend Direction with a Stop and Reverse signal (SnR) while actively avoiding confirmed pivot breaks.
• Hyper/Aggressive Modes: These modes use broad combinations of signals, allowing for earlier entry based on momentum and structural breaks (like PeakCrossLong, SnRtrapLong, or FVG signals).
• Custom Query Mode (The Seven-Slot Logic): This non-redundant system allows the user to define complex, tailored entry conditions by selecting any combination of 14 core patterns across seven distinct slots.
◦ AND/OR Combination: For each of the seven slots, the user determines if the chosen pattern must be met (AND component) or if it can serve as an alternative trigger (OR component).
◦ The final signal requires that all configured AND conditions are true and then integrates the result of the OR conditions, allowing for highly specific "hook queries" (e.g., "Condition A AND Condition B, OR Condition C").
III. Advanced PnL and Mobile App Diagnostics
A key proprietary element is the implementation of a dual PnL system and customized visualization features:
• Dual PnL Display (Strategy PnL vs. Study PnL): Users can choose to view either the native platform's strategy performance data or the script's internal, proprietary Study PnL. The Study PnL calculates profits/losses based strictly on the close price and tracks performance using Pine Script® arrays, providing a transparent, diagnostic view of performance independent of broker/platform simulation biases.
• Lower Panel Visualization: Both PnL types are displayed on the lower panel using detailed bar plots (style=plot.style_columns), which color according to profitability, and include labels that show current open profit and total net profit.
• Detailed Trade Labels: The script generates detailed, customizable labels on both the chart (above/below bars) and the lower PnL panel, providing historical PnL, number of trades, and real-time profit information for each entry or exit.
IV. Higher Time Frame (HTF) Context and Lookahead Prevention
The strategy integrates multi-time frame analysis using strict methodology to prevent lookahead bias:
• HTF Bias Filtering: When enabled, the strategy uses the position calculated on a user-defined higher time frame (HTF) as a mandatory filter. A long signal on the current chart is only executed if the HTF is also in a long position, and vice-versa.
• Lookahead Prevention: To maintain integrity, all HTF data requests use a mandatory lookback index (often ) to ensure the script only accesses confirmed data from the prior completed bar on the higher timeframe.
• HTF Visual Mode: The user can opt to display key structural elements—such as the Gravity Pivots and the Trend Direction blocks—as calculated on the HTF, overlaying this higher-level context onto the current chart for visual analysis.
The TGAPSNR: Multi time frame - Trend Gap Stop And Reverse strategy/Study PnL script, despite its complexity, intentionally excludes realistic considerations such as fees, slippage, and explicit risk management settings (like fixed stop-loss or take-profit rules) from its primary logic.
Here is an explanation of why these elements are omitted in the strategy's current implementation and why they must be applied by the user for real-world application, drawing on the context of the sources:
1. Absence of Realistic Fees, Commissions, and Slippage
The primary function of the TGAPSNR script is to execute intricate signal generation and diagnostic PnL calculation based on its three-pillar trend system and Custom Mode logic.
However, the strategy's backtesting results, particularly those displayed by the internal Study PnL feature, are based purely on price difference (e.g., (close - lse) * syminfo.pointvalue * IUnits).
• Strategy Result Requirements: TradingView explicitly states that strategies published publicly should strive to use realistic commission AND slippage when calculating backtesting results to avoid misleading traders.
• User Responsibility: Since the script currently focuses on signal integrity and uses a fixed contract size (IUnits = 1) without configurable commission/slippage inputs shown in the source, the user must manually configure these fees within the Pine Script® Strategy Tester settings (Properties tab) to ensure the strategy results are reflective of actual trading costs.
2. Omission of Built-in Risk Management (Stop-Loss and Take-Profit)
The TGAPSNR strategy's core focuses on entry signals and trend confirmation. Exits are primarily governed by:
• Reversal signals (BuyStop or SellStop).
• End-of-Day (EOD) session closures (EODStop).
• HTF bias opposition.
What is Missing: The script does not include explicit, hard-coded risk management parameters for traditional stop-loss (SL) or take-profit (TP) levels (e.g., risk percentage or ATR-based exits).
• Viable Risk: TradingView guidelines stipulate that strategies should generally risk sustainable amounts of equity, usually not exceeding 5-10% on a single trade, and trade size must be appropriate.
• User Application: To ensure the strategy operates within realistic risk boundaries, users must apply their own risk management rules. This includes:
◦ Implementing realistic stops and profit targets, which can be added via Pine Script® code or manually managed during live trading.
◦ Sizing trades to only risk sustainable amounts of equity. The current default unit size (IUnits = 1) is unrealistic for risk assessment unless the symbol is micro-sized.
3. Execution Quality (Fills)
The strategy is set to fill_orders_on_standard_ohlc = true and operates on confirmed bar closes (barstate.isconfirmed).
• Fill Assumption: This suggests the strategy primarily uses close price or the HTF close price (EntryPrice = HTFClose) for execution.
• Real-World Limitation: In volatile markets, obtaining a fill price equal to the close of the bar is rare. The user must be aware that the simulated fill price shown in backtesting may differ significantly from actual execution prices due to market action and chosen order type, reinforcing the importance of applying slippage settings.
In summary, while the script provides highly detailed and unique signal generation and internal PnL diagnostics, users must exercise caution and apply their own realistic parameters for fees, slippage, and explicit risk controls to prevent misleading performance results and ensure viable trading
LeiRos PRO — Smart Entry & Target System⚡ Short Description
LeiRos PRO is more than an indicator.
It is an intelligent next-generation analytical tool designed to visualize the true trajectory of market movement.
It reveals the hidden mechanics of price — the attraction points where liquidity is collected and extremes are updated before reversal.
🟢 During bullish phases, the market often reaches for previous highs.
Green points of LeiRos PRO highlight the levels price is most likely to reach before completing the impulse.
⚪ In bearish phases, the market tends to sweep uncollected lows.
White points indicate where stop hunts and local reversals commonly occur.
Built upon the interaction of EMA20 / EMA50 / EMA200, volatility analysis and momentum strength,
LeiRos PRO doesn’t just mark levels — it displays realistic targets price is drawn to with high probability.
📈 The higher the timeframe, the clearer and more stable the picture becomes.
On H1 and above, the plotted points act as reference zones for those seeking structured, logical price behavior rather than noise.
💡 The main advantage of LeiRos PRO is clarity — it removes guessing.
You see where price tends to move and where impulses are likely to end.
This is not theory — it’s market behavior visualized.
📘 Full Description
LeiRos PRO is a proprietary analytical tool created to precisely visualize directional bias, target zones, and protective stop areas.
It combines trend structure, volatility, and price action logic — helping traders see the key areas where the market’s intent becomes clear.
📈 Core Features:
Automatic trend detection: analyzes direction using EMA20, EMA50, and EMA200 to define the dominant side of the market.
Target visualization (Take-Profit): marks potential liquidity-grab zones where price often completes its move.
Protective stop zones (Stop-Loss): highlights areas where logical stops can be placed based on current structure.
Adaptive to timeframe: higher timeframes provide cleaner and more reliable reference points, suitable for short-, medium-, and long-term analysis.
⚙️ Recommended Use:
As a visual analytical tool for confirming trade direction.
On lower TFs — for identifying intraday entry points and potential objectives.
On higher TFs (H1 and above) — for building overall market context and defining major targets.
Marked points are not entry signals,
but contextual reference zones showing potential areas of liquidity collection or impulse completion.
⚠️ Disclaimer:
LeiRos PRO is an analytical and visualization tool, not a trading signal or guarantee of results.
All trading decisions, entries, exits, and risk management remain solely the responsibility of the user.
✳️ Note:
This indicator is part of the LeiRos Project, which develops intelligent systems for advanced market analysis and visualization.
Displayed levels adapt dynamically to volatility and timeframe, providing a flexible view of current market structure.
Daily Breakout Strategy
🧠 Daily Breakout Strategy • No Repaint
This is a non-repainting backtestable strategy built on clean breakout logic using daily pivot-based levels. It executes one trade per day, following simple rules: wait for breakouts, aim for the target, and log whether it hits.
Designed for traders who want uncluttered, rule-based backtests using price action without lagging indicators or repaint tricks.
🔍 Strategy Logic:
The system calculates daily key levels based on previous day's high, low, and close:
Pivot (P) = (High + Low + Close) / 3
Buy Entry (r1) = P + 0.382 × (High - Low)
Buy TP (r2) = P + 0.618 × (High - Low)
Sell Entry (s1) = P – 0.382 × (High - Low)
Sell TP (s2) = P – 0.618 × (High - Low)
✅ Entry & Exit Rules (Non-Repainting):
🔹 A Buy trade is entered when price closes above r1, confirmed on the next bar.
🔹 A Sell trade is entered when price closes below s1, also confirmed.
🚫 Only 1 signal per day is allowed.
✅ Each trade targets its respective TP level (r2 or s2).
If TP is hit during the session, the trade closes as a win.
If TP is not hit by end of day, the system registers a loss.
⛔ No repainting — all entries are based on closed candles.
📊 Performance Table (Built-in):
A live table tracks and displays:
🟢 Buy/Sell Status (e.g., "Buy Active", "Sideways")
📌 Current Entry/TP Prices
📅 Today’s Breakout Levels
📈 Buy Win % and Sell Win %
📊 Total Accuracy over last N trades (default: 300)
This helps users understand edge, expectancy, and directional bias.
🧪 Backtesting Tips:
Works best on intraday timeframes like 5m, 15m, or 1H.
You may combine it with your own risk management, filters, or alerts.
Results are accurate for what this strategy simulates: 1 entry per day, no SL, TP-only logic.
⚙️ Strategy Settings:
🔧 Accuracy Lookback: Number of trades to track for % win stats.
🎯 Default Quantity: 100% equity by default — adjust to suit your model.
💡 No leverage, pyramiding, or position sizing built in — this is kept clean and logic-focused.
🔒 Access Info:
This strategy is FREE to use
🔐 Source code is locked to protect stability and performance
You can use this for backtesting, education, and signal modeling — no payment required.
💬 Feedback Welcome!
If you want this script extended with:
Stop Loss
Trailing Exit
Risk Management
Alert Conditions
...just leave a comment or message. This script is built to grow with the community!
📈 Add it to your chart, study the clean stats, and use it to model your own breakout logic with confidence.
Pivot SuperTrend Auto-Opt + WFO + MultiObj + Filter/Diag# Pivot SuperTrend (NetProfit Auto-Optimization) — Summary & Quick Start
## What this strategy is
A self-optimizing **SuperTrend-style** strategy for TradingView Pine v6 that:
- builds a **walk-forward, net-profit optimizer** directly on the chart,
- adapts its trailing stop/entry logic to **market regime** and **volatility**, and
- exposes a **filter/gate suite** so you can dial aggressiveness vs. noise without breaking auto-optimization.
Default tuning: **Bybit ETHUSDT Perpetual, 30m** (works elsewhere once tuned).
---
## Core logic (high level)
### 1) SuperTrend backbone (with Center/Pivots)
- **Center line**: smoothed running pivot from `ta.pivothigh/low`.
- **SuperTrend bands**: `Center ± Factor × ATR(length)` with a carry rule to reduce whipsaws.
- **Trend state**: `+1` above band, `-1` below band.
- **Flip**: trend change; can require **1-bar confirmation**.
### 2) Adaptive smoothing (AMA of ST)
- Performance-weighted **alpha** smooths the trailing stop.
- Alpha clamped to `alpha_min…alpha_max` using optimizer’s fitness.
### 3) On-chart net-profit optimizer (walk-forward)
- Grid of parameters:
- ATR Length `len` (min…max…step)
- ATR Factor `F` (min…max…step)
- Performance memory `A` (min…max…step)
- Each grid point is paper-traded **each bar** including fees/slippage → **fitness = net profit EMA**.
- Every `opt_interval` bars the **best** candidate is activated (with hysteresis).
- Optional: apply only **ATR margin** gate inside the optimizer for speed/stability.
### 4) Regime detection & anti-chop
- Custom **ADX** + **Center slope** to classify **trend** vs **range**.
- Adaptive thresholds in range regime (distance-to-center, ST-near-center block, etc.).
- Optional **ATR fast/slow ratio** gate.
- Other tools: **min bars since flip**, **hold bars after flip**, **distance to center**, **ST near center** block.
### 5) Entry logic
- **Immediate on flip** or **1-bar confirm**.
- Must pass the **Filter Suite** (toggleable gates):
- ATR-margin cross (hard cross or wick reject)
- Trend Regime (require trend)
- Hold-after-flip
- Distance-to-center
- ST-near-center block
- Volatility ratio (ATR fast/slow)
- Min bars since flip (flip cooldown)
- Daily trade cap & post-loss cooldown
- Trading session window
### 6) Starter preset (failsafe)
- Lenient defaults so trades start quickly to build warm-up data; then you can tighten gates.
### 7) Position management
- Strategy entries for “LONG” / “SHORT”.
- Optional **50% take-profit on Center** (“usecenter”).
- **Only-Long** mode supported with separate exit logic if regime turns bearish.
### 8) Risk controls
- **Max trades per day**, **cooldown bars after loss**, **session window**.
- Optional **bar coloring**, **trend shading**, **signal markers**.
- **Diagnostics** labels show which gate blocked an entry (letters `M T H D N V F C CD S`).
### 9) Alerts & Bybit webhook
- Use alert condition: **Any alert() function call**.
- Fires `"LONG_CONFIRMED"` / `"SHORT_CONFIRMED"`.
---
## Inputs overview
- **Pivot / Center**: pivot length; show pivots & center.
- **Visual**: line widths, bar colors, shading; warm-up bars.
- **Execution / Costs**: fee (bps), slippage (bps), “Only long”, 50% center-close.
- **Auto-Optimize**: grids for `len`, `F`, `A`, interval, memory, acceptance floor.
- **Signal Controls**: 1-bar confirm, ATR margin, min bars since flip.
- **Anti-Chop**: distance to center, hold bars, slope len, ST-near-center ATR, ATR slow len & ratio.
- **Trend Regime**: ADX len/threshold, center slope threshold, “require trend”.
- **Risk Gates**: max trades/day, loss cooldown bars.
- **Session**: optional 07:00–22:00 UTC filter.
- **Diagnostics**: show gate diagnostics labels.
- **Filter Suite**: toggle each gate; optional “apply margin to optimizer”.
- **Starter preset** selector.
---
## Plots & UI
- **Adaptive SuperTrend** (active candidate),
- **PP Center** (optional),
- **Trend shading** (price vs ST zone),
- **Entry/Exit markers** (triangles),
- **Diagnostics** text labels (optional).
---
## Webhook notes (Bybit v5)
If you use a direct Bybit webhook:
- **Symbol**: TradingView may emit `ETHUSDT.P`. Bybit wants `ETHUSDT`. Your relay should **strip `.P`**.
- **Side**: TV provides `buy/sell`. Bybit expects `Buy/Sell` → normalize casing in the relay.
- **Reduce-only**: mark exits and partial closes reduce-only to avoid reversals in Hedge mode.
- **Market orders**: pass `"orderType":"Market"`; ignore price or set to `"marketPrice"` if your relay requires it.
**Entry (Market)**
```json
{
"exchange": "BYBIT",
"category": "linear",
"symbol": "{{ticker}}",
"side": "{{strategy.order.action}}",
"orderType": "Market",
"qty": "{{strategy.order.contracts}}",
"reduceOnly": false,
"timestamp": "{{timenow}}",
"clientOrderId": "pst_{{strategy.order.id}}_{{timenow}}"
}
AI - Gaussian Channel Strategy AI – Gaussian Channel Strategy is a long-only swing trading strategy designed for Bitcoin and other assets on daily charts. It combines an adaptive Gaussian Channel with Supertrend and Stochastic RSI filters to identify potential bullish breakouts or pullback entries. The channel defines trend direction and volatility, while the Stochastic RSI provides momentum confirmation. Positions are opened only when the price closes above the channel’s upper band under favorable momentum conditions, and are closed when the price crosses back below the band.
This script is intended for educational and research purposes. Parameters such as poles, period length, ATR factor, and RSI settings can be adjusted to fit different markets and timeframes.
Disclaimer: This script does not guarantee profits and should not be considered financial advice. Past performance is not indicative of future results. Trading involves risk, and you are solely responsible for your own decisions and outcomes.
NQ Trading Strategy by Kaok TradesThe Kaok Trades NQ Scalping Strategy is designed for traders who want to capture high-probability intraday moves on Nasdaq Futures with minimal screen time. This strategy combines momentum confirmation with volatility-based stop placement, helping traders manage risk and maximize reward.
MOHStrategy Description
Uses Heikin Ashi candles to filter market noise and identify trend direction.
Entry is allowed only when strong HA candles appear (bullish without lower wick, bearish without upper wick).
Doji candles signal possible reversal.
استخدام شموع Heikin Ashi لتقليل الضوضاء وتحديد اتجاه الترند.
الدخول فقط عند ظهور شموع قوية (صاعدة بدون ذيل سفلي، هابطة بدون ذيل علوي).
شمعة الدوجي = إشارة انعكاس محتملة.
Sr.Rma.Breakout.Fib (Merged)DO YOUR DUE DILIGENCE – THIS IS FOR EDUCATIONAL PURPOSE AND NOT A TRADE ADVICE-
This strategy is designed for traders who want to merge pattern recognition (breakouts) with market structure context (Fibonacci), while maintaining disciplined trade management through automated stop-loss and reversal logic. “Once the chart is added, please ensure the candle pattern is set to Heikin Ashi.”
1. Breakout Finder Logic
The breakout finder identifies bullish and bearish breakouts using pivots, thresholds, and test counts:
• Pivot Highs & Lows (PH/PL): Calculated using user-defined periods.
• Breakout Threshold: Dynamic channel width based on recent volatility.
• Confirmation: A breakout is validated when price action clears the breakout Conditions
• Bullish Breakout: Triggered when multiple pivot highs are cleared by bullish Conditions.
• Bearish Breakout: Triggered when multiple pivot lows are broken by bearish Conditions.
• Sessions ignored: Traders can exclude up to three custom time windows to prevent signals during low-quality periods.
Risk & Reversal Controls
• Stop-Loss: Adjustable % thresholds for both long and short trades.
• Reversal Entries: Optional signals that trigger after a stop-loss, capturing potential price reversals.
2. Strategy Order Management
The strategy executes entries and exits based on confirmed breakout and reversal signals:
• Entries:
o Long on confirmed bullish breakout.
o Short on confirmed bearish breakout.
• Stops:
o Automatic closure of open positions when stop-loss conditions are hit.
• Reversals:
o Transition directly from long to short or vice versa when reversal conditions are met.
3. Auto Fibonacci Retracement
A ZigZag-based system automatically plots Fibonacci retracement levels on the chart:
• Swing Context: Derived dynamically from pivots with adjustable depth and deviation settings.
• Fib Levels: Standard retracement and extension levels (0.236, 0.382, 0.5, 0.618, 0.786, 1.0, 1.618, 2.618, 3.618, 4.236, etc.) are supported.
• Custom Options:
o Extend lines left or right.
o Show/hide level prices and percentage values.
o Control label positions (left or right).
o Adjustable transparency for background fills between levels.
• Crossing Alerts: Alerts are fired when the price crosses specific Fibonacci levels, enhancing confluence with breakout signals.
5. Key Benefits
• Comprehensive Trading Framework: Combines breakout confirmation, risk management, and Fibonacci context.
• Visual Clarity: Automatic plotting of breakout structures and Fib levels makes the chart intuitive.
• Flexible Controls: Full customization of pivots, thresholds, sessions, stop-loss %, and Fib settings.
• Automation Ready: Alerts and strategy orders allow seamless integration with brokers or external systems.
Ramen & OJ V1Ramen & OJ V1 — Strategy Overview
Ramen & OJ V1 is a mechanical price-action system built around two entry archetypes—Engulfing and Momentum—with trend gates, session controls, risk rails, and optional interval take-profits. It’s designed to behave the same way you’d trade it manually: wait for a qualified impulse, enter with discipline (optionally on a measured retracement), and manage the position with clear, rules-based exits.
Core Idea (What the engine does)
At its heart, the strategy looks for a decisive candle, then trades in alignment with your defined trend gates and flattens when that bias is no longer valid.
Entry Candle Type
Engulfing: The body of the current candle swallows the prior candle’s body (classic momentum shift).
Momentum: A simple directional body (close > open for longs, close < open for shorts).
Body Filter (lookback): Optional guard that requires the current body to be at least as large as the max body from the last N bars. This keeps you from chasing weak signals.
Primary MA (Entry/Exit Role):
Gate (optional): Require price to be above the Primary MA for longs / below for shorts.
Exit (always): Base exit occurs when price closes back across the Primary MA against your position.
Longs: qualifying bullish candle + pass all enabled filters.
Shorts: mirror logic.
Entries (Impulse vs. Pullback)
You choose how aggressive to be:
Market/Bars-Close Entry: Fire on the bar that confirms the signal (respecting filters and sessions).
Retracement Entry (optional): Instead of chasing the close, place a limit around a configurable % of the signal candle’s range (e.g., 50%). This buys the dip/sells the pop with structure, often improving average entry and risk.
Flip logic is handled: when an opposite, fully-qualified signal appears while in a position, the strategy closes first and then opens the new direction per rules.
Exits & Trade Management
Primary Exit: Price closing back across the Primary MA against your position.
Interval Take-Profit (optional):
Pre-Placed (native): Automatically lays out laddered limit targets every X ticks with OCO behavior. Each rung can carry its own stop (per-rung risk). Clean, broker-like behavior in backtests.
Manual (legacy): Closes slices as price steps through the ladder levels intrabar. Useful for platforms/brokers that need incremental closes rather than bracketed OCOs.
Per-Trade Stop: Choose ticks or dollars, and whether the $ stop is per position or per contract. When pre-placed TP is on, each rung uses a coordinated OCO stop; otherwise a single hard stop is attached.
Risk Rails (Session P&L Controls)
Session Soft Lock: When a session profit target or loss limit is hit, the strategy stops taking new trades but does not force-close open positions.
Session Hard Lock: On reaching your session P&L limit, all orders are canceled and the strategy flattens immediately. No new orders until the next session.
These rails help keep good days good and bad days survivable.
Filters & How They Work Together
1) Trend & Bias
Primary MA Gate (optional): Only long above / only short below. This keeps signals aligned with your primary bias.
Primary MA Slope Filter (optional): Require a minimum up/down slope (in degrees over a defined bar span). It’s a simple way to force impulse alignment—green light only when the MA is actually moving up for longs (or down for shorts).
Secondary MA Filter (optional): An additional trend gate (SMA/EMA, often a 200). Price must be on the correct side of this higher-timeframe proxy to trade. Great for avoiding countertrend picks.
How to combine:
Use Secondary MA as the “big picture” bias, Primary MA gate as your local regime check, and Slope to ensure momentum in that regime. That three-layer stack cuts a lot of chop.
2) Volatility/Exhaustion
CCI Dead Zone Filter (optional): Trades only when CCI is inside a specified band (default ±200). This avoids entries when price is extremely stretched; think of it as a no-chase rule.
TTM Squeeze Filter (optional): When enabled, the strategy avoids entries during a squeeze (Bollinger Bands inside Keltner Channels). You’re effectively waiting for the release, not the compression itself. This plays nicely with momentum entries and the slope gate.
How to combine:
If you want only the clean breaks, enable Slope + Squeeze; if you want structure but fewer chases, add CCI Dead Zone. You’ll filter out a lot of low-quality “wiggle” trades.
3) Time & Market Calendar
Sessions: Up to two session windows (America/Chicago by default), with background highlights.
Good-Till-Close (GTC): When ON, trades can close outside the session window; when OFF, all positions are flattened at session end and pending orders canceled.
Market-Day Filters: Skip US listed holidays and known non-full Globex days (e.g., Black Friday, certain eves). Cleaner logs and fewer backtest artifacts.
How to combine:
Run your A-setup window (e.g., cash open hour) with GTC ON if you want exits to obey system rules even after the window, or GTC OFF if you want the book flat at the bell, no exceptions.
Practical Profiles (mix-and-match presets)
Trend Rider: Primary MA gate ON, Slope filter ON, Secondary MA ON, Retracement ON (50%).
Goal: Only take momentum that’s already moving, buy the dip/sell the pop back into trend.
Structure-First Pullback: Primary MA gate ON, Secondary MA ON, CCI Dead Zone ON, Retracement 38–62%.
Goal: Filter extremes, use measured pullbacks for better R:R.
Break-Only Mode: Slope ON + Squeeze filter ON (avoid compression), Body filter ON with short lookback.
Goal: Only catch clean post-compression impulses.
Session Scalper: Tight session window, GTC OFF, Interval TP ON (small slices, short rungs), per-trade tick stop.
Goal: Quick hits in a well-defined window, always flat after.
Automation Notes
The system is built with intrabar awareness (calc_on_every_tick=true) and supports bracket-style behavior via pre-placed interval TP rungs. For webhook automation (e.g., TradersPost), keep chart(s) open and ensure alerts are tied to your order events or signal conditions as implemented in your alert templates. Always validate live routing with a small-size shakedown before scaling.
Tips, Caveats & Good Hygiene
Intrabar vs. Close: Backtests can fill intrabar where your broker might not. The pre-placed mode helps emulate OCO behavior but still depends on feed granularity.
Slippage & Fees: Set realistic slippage/commission in Strategy Properties to avoid fantasy equity curves.
Session Consistency: Use the correct timezone and verify that your broker’s session aligns with your chart session settings.
Don’t Over-stack Filters: More filters ≠ better performance. Start with trend gates, then add one volatility filter if needed.
Disclosure
This script is for educational purposes only and is not financial advice. Markets carry risk; only trade capital you can afford to lose. Test thoroughly on replay and paper before using any automated routing.
TL;DR
Identify a decisive candle → pass trend/vol filters → (optionally) pull back to a measured limit → scale out on pre-planned rungs → exit on Primary MA break or session rule. Clear, mechanical, repeatable.
Extremum Range MA Crossover Strategy1. Principle of Work & Strategy Logic ⚙️📈
Main idea: The strategy tries to catch the moment of a breakout from a price consolidation range (flat) and the start of a new trend. It combines two key elements:
Moving Average (MA) 📉: Acts as a dynamic support/resistance level and trend filter.
Range Extremes (Range High/Low) 🔺🔻: Define the borders of the recent price channel or consolidation.
The strategy does not attempt to catch absolute tops and bottoms. Instead, it enters an already formed move after the breakout, expecting continuation.
Type: Trend-following, momentum-based.
Timeframes: Works on different TFs (H1, H4, D), but best suited for H4 and higher, where breakouts are more meaningful.
2. Justification of Indicators & Settings ⚙️
A. Moving Average (MA) 📊
Why used: Core of the strategy. It smooths price fluctuations and helps define the trend. The price (via extremes) must cross the MA → signals a potential trend shift or strengthening.
Parameters:
maLength = 20: Default length (≈ one trading month, 20-21 days). Good balance between sensitivity & smoothing.
Lower TF → reduce (10–14).
Higher TF → increase (50).
maSource: Defines price source (default = Close). Alternatives (HL2, HLC3) → smoother, less noisy MA.
maType: Default = EMA (Exponential MA).
Why EMA? Faster reaction to recent price changes vs SMA → useful for breakout strategies.
Other options:
SMA 🟦 – classic, slowest.
WMA 🟨 – weights recent data stronger.
HMA 🟩 – near-zero lag, but “nervous,” more false signals.
DEMA/TEMA 🟧 – even faster & more sensitive than EMA.
VWMA 🔊 – volume-weighted.
ZLEMA ⏱ – reduced lag.
👉 Choice = tradeoff between speed of reaction & false signals.
B. Range Extremes (Previous High/Low) 📏
Why used: Define borders of recent trading range.
prevHigh = local resistance.
prevLow = local support.
Break of these levels on close = trigger.
Parameters:
lookbackPeriod = 5: Searches for highest high / lowest low of last 5 candles. Very recent range.
Higher value (10–20) → wider, stronger ranges but rarer signals.
3. Entry & Exit Rules 🎯
Long signals (BUY) 🟢📈
Condition (longCondition): Previous Low crosses MA from below upwards.
→ Price bounced from the bottom & strong enough to push range border above MA.
Execution: Auto-close short (if any) → open long.
Short signals (SELL) 🔴📉
Condition (shortCondition): Previous High crosses MA from above downwards.
→ Price rejected from the top, upper border failed above MA.
Execution: Auto-close long (if any) → open short.
Exit conditions 🚪
Exit Long (exitLongCondition): Close below prevLow.
→ Uptrend likely ended, range shifts down.
Exit Short (exitShortCondition): Close above prevHigh.
→ Downtrend likely ended, range shifts up.
⚠️ Important: Exit = only on candle close beyond extremes (not just wick).
4. Trading Settings ⚒️
overlay = true → indicators shown on chart.
initial_capital = 10000 💵.
default_qty_type = strategy.cash, default_qty_value = 100 → trades fixed $100 per order (not lots). Can switch to % of equity.
commission_type = strategy.commission.percent, commission_value = 0.1 → default broker fee = 0.1%. Adjust for your broker!
slippage = 3 → slippage = 3 ticks. Adjust to asset liquidity.
currency = USD.
margin_long = 100, margin_short = 100 → no leverage (100% margin).
5. Visualization on Chart 📊
The strategy draws 3 lines:
🔵 MA line (thickness 2).
🔴 Previous High (last N candles).
🟢 Previous Low (last N candles).
Also: entry/exit arrows & equity curve shown in backtest.
Disclaimer ⚠️📌
Risk Warning: This description & code are for educational purposes only. Not financial advice. Trading (Forex, Stocks, Crypto) carries high risk and may lead to full capital loss. You trade at your own risk.
Testing: Always backtest & demo test first. Past results ≠ future profits.
Responsibility: Author of this strategy & description is not responsible for your trading decisions or losses.
Trend Following S/R Fibonacci StrategyTrend Following S/R Fibonacci Strategy
Trend Following S/R Fibonacci Strategy
CHoCH Block Strategy 2Experimental strategy that uses fractals to find pivot points. Based on these pivot points it determines CHoCH points and opening places.
АЗЪ 3.610 - Squeeze Momentum + ADX + FastTF + Alerts + PnLStrata genius squeeze momentum + tester + adx +fast tf
Trend MasterOverview
The Strategy is a trend-following trading system designed for forex, stocks, or other markets on TradingView. It uses pivot points to identify support and resistance levels, combined with a 200-period Exponential Moving Average (EMA) to filter trades. The strategy enters long or short positions based on trend reversals during specific trading sessions (London or New York). It incorporates robust risk management, including position sizing based on risk percentage or fixed amount, trailing stop-losses, breakeven moves, and weekly/monthly profit/loss limits to prevent overtrading.
This script is ideal for traders who want a semi-automated approach with visual aids like colored session backgrounds, support/resistance lines, and a performance dashboard. It supports backtesting from a custom start date and can limit trades to one per session for discipline. Alerts are built-in for entries, exits, and stop-loss adjustments, making it compatible with automated trading bots.
Key Benefits:
Trend Reversal Detection: Spots higher highs/lows and lower highs/lows to confirm trend changes.
Session Filtering: Trades only during high-liquidity sessions to avoid choppy markets.
Risk Control: Automatically calculates position sizes to risk only a set percentage or dollar amount per trade.
Performance Tracking: Displays a table of weekly or monthly P&L (profit and loss) with color-coded heatmaps for easy review.
Customizable: Adjust trade direction, risk levels, take-profit ratios, and more via inputs.
The strategy uses a 1:1.2 risk-reward ratio by default but can be tweaked.
How It Works
Trend Identification:
The script calculates pivot highs and lows using left (4) and right (2) bars to detect swing points.
It identifies patterns like Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL) to determine the trend direction (uptrend if above resistance, downtrend if below support).
Support (green dotted lines) and resistance (red dotted lines) are drawn dynamically and update on trend changes.
Bars are colored blue (uptrend) or black (downtrend) for visual clarity.
Entry Signals:
Long Entry: Price closes above the 200 EMA, trend shifts from down to up (e.g., breaking resistance), during an active session (London or NY), and no trade has been taken that session (if enabled).
Short Entry: Price closes below the 200 EMA, trend shifts from up to down (e.g., breaking support), during an active session, and no prior trade that session.
Trades can be restricted to "Long Only," "Short Only," or "Both."
Entries are filtered by a start date (e.g., from January 2022) and optional month-specific testing.
Position Sizing and Risk:
Risk per trade: Either a fixed dollar amount (e.g., $500) or percentage of equity (e.g., 1%).
Quantity is calculated as: Risk Amount / (Entry Price - Stop-Loss Price).
This ensures you never risk more than intended, regardless of market volatility.
Stop-Loss (SL) and Take-Profit (TP):
SL for Longs: Set below the recent support level, adjustable by a "reduce value" (e.g., tighten by 0-90%) and gap (e.g., add a buffer).
SL for Shorts: Set above the recent resistance level, with similar adjustments.
TP: Based on risk-reward ratio (default 1.2:1), so if SL is 100 pips away, TP is 120 pips in profit.
Visual boxes show SL (red) and TP (green) on the chart for the next 4 bars after entry.
Trade Management:
Trailing SL: Automatically moves SL to the new support (longs) or resistance (shorts) if it tightens the stop without increasing risk.
Breakeven Move: If enabled, SL moves to entry price once profit reaches a set ratio of initial risk (default 1:1). For example, if risk was 1%, SL moves to breakeven at 1% profit.
One Trade Per Session: Prevents multiple entries in the same London or NY session to avoid overtrading.
Sessions include optional weekend inclusion and are highlighted (blue for London, green for NY).
Risk Limits (Weekly/Monthly):
Monitors P&L for the current week or month.
Stops trading if losses hit a limit (e.g., -3%) or profits reach a target (e.g., +7%).
Resets at the start of each new week/month.
Alerts notify when limits are hit.
Exits:
Trades exit at TP, SL, or manually via alerts.
No time-based exits; relies on price action.
Performance Dashboard:
A customizable table (position, size, colors) shows P&L percentages for each week/month in a grid.
Rows = Years, Columns = Weeks (1-52) or Months (1-12).
Color scaling: Green for profits (darker for bigger wins), red for losses (darker for bigger losses).
Yearly totals in the last column.
Helps visualize strategy performance over time without manual calculations.
Input Parameters Explained
Here's a breakdown of the main inputs for easy customization:
Trade Direction: "Both" (default), "Long Only," or "Short Only" – Controls allowed trade types.
Test Only Selected Month: If true, backtests only the specified month from the start year.
Start Year/Month: Sets the backtest start date (default: Jan 2022).
Include Weekends: If true, sessions can include weekends (rarely useful for forex).
Only One Trade Per Session: Limits to one entry per London/NY session (default: true).
Risk Management Time Frame: "Weekly" or "Monthly" – For P&L limits.
Enable Limits: Toggle weekly/monthly stop trading on loss/profit thresholds.
Loss Limit (%)/Profit Target (%): Stops trading if P&L hits these (e.g., -3% loss or +7% profit).
London/New York Session: Enable/disable, with time ranges (e.g., London: 0800-1300 UTC).
Left/Right Bars: For pivot detection (default: 4 left, 2 right) – Higher values smooth signals.
Support/Resistance: Toggle lines, colors, style, width.
Change Bar Color: Colors bars based on trend.
TP RR: Take-profit risk-reward (default: 1.2).
Stoploss Reduce Value: Tightens SL (negative values widen it, 0-0.9 range).
Stoploss Gap: Adds a buffer to SL (e.g., 0.1% away from support).
Move to Breakeven: Enables SL move to entry at a profit ratio (default: true, 1:1).
Use Risk Amount $: If true, risks fixed $ (e.g., 500); else, % of equity (default: 1%).
EMA 3: The slow EMA period (default: 200) for trend filter.
Performance Display: Toggle table, location (e.g., Bottom Right), size, colors, scaling for heatmaps.
Setup and Usage Tips
Add to Chart: Copy the script into TradingView's Pine Editor, compile, and add to your chart.
Backtesting: Use the Strategy Tester tab. Adjust inputs and test on historical data.
Live Trading: Connect alerts to a broker or bot (e.g., via webhook). The script sends JSON-formatted alerts for entry, exit, SL moves, and limits.
Best Markets: Works well on crypto pairs like SOLUSD or RUNEUSD on 4H timeframes.
Risk Warning: This is not financial advice. Always use demo accounts first. Past performance doesn't guarantee future results. Commission is set to 0.05% by default – adjust for your broker.
Customization: Experiment with EMA length or RR ratio for your style.
Golden Cross + Support/Resistance + SL/TP + SignalsGolden Cross + Support/Resistance + SL/TP + Signals
Golden Cross + Support/Resistance + SL/TP + Signals
The Barking Rat PROThe Barking Rat PRO is designed around high/low pivot structure to capture meaningful market reversals. It intelligently identifies turning points by combining higher high/lower low (HH/LL) pivot detection, Fair Value Gap (FVG) confirmation, volatility-aware filters, and momentum checks. Unique features, such as a one-bar flip handler and a contextual ribbon overlay, provide traders with both clarity and precision. These tools help isolate high-probability setups while filtering out low-conviction signals, making trade opportunities easier to spot and act upon.
🧠 Core Logic: Structure-First, Filtered Reversals
The strategy takes a methodical, disciplined approach, prioritizing structural pivots over random signals. By layering multiple validation checks—structural pivots, gap confirmation, volatility filters, and momentum alignment—it highlights trades with high conviction while reducing exposure to noisy market conditions. The result is a clear, repeatable framework for reversal trading that can be applied across timeframes.
HH/LL Pivot Framework
Trades are triggered based on simple structural pivots: higher highs (HH) and lower lows (LL). When a structure flip occurs, the strategy either opens a new position or executes a one-bar delayed flip if an opposing position already exists. This ensures smooth transitions and avoids premature entries on minor market swings, keeping trading decisions focused on meaningful trend shifts.
Volatility & Distance Filters
To avoid low-quality trades, entries are validated against relative volatility, ensuring that pivots represent significant market movement. Trades must also be sufficiently spaced from previous entries and separated by a minimum number of bars, which prevents overtrading and clustered signals that can dilute performance.
Momentum Filter (RSI)
The strategy optionally aligns entries with momentum conditions using RSI. Long trades are favored when RSI is relatively low, suggesting potential exhaustion on the downside, while short trades are favored when RSI is relatively high, indicating potential overextension on the upside. This additional layer improves timing, helping traders avoid entering against strong, ongoing momentum.
Background Ribbon (Contextual Visuals)
A translucent ribbon overlays the chart to provide visual context of active trades. The ribbon displays volatility envelopes and position direction: green for long trades, red for short trades. It enhances clarity by giving traders a quick visual reference of the market environment without cluttering the chart.
Why These Parameters Were Chosen
The strategy focuses only on structurally meaningful pivots to ensure high-conviction trades.
Volatility filters confirm that trade signals are significant relative to recent price action, while FVG confirmation captures institutional-style imbalances.
Momentum and spacing rules prevent low-quality entries and overtrading, while the one-bar flip handler ensures seamless transitions when the structure reverses.
Ribbon overlays provide intuitive, real-time visualization of active trades and market context.
📈 Chart Visuals: Clear & Intuitive
- Green “▲” below a candle: Long entry triggered on LL → HH structure flip
- Red “▼” above a candle: Short entry triggered on HH → LL structure flip
- Translucent Ribbon: Green when long, Red when short
🔔 Alerts: Stay Notified Without Watching
The strategy supports real-time alerts on candle close, ensuring that only fully confirmed signals trigger notifications.
You must manually configure alerts within your TradingView account. Once set up, a single alert per instrument covers all relevant entries and exits, making hands-free monitoring simple and efficient.
⚙️ Strategy Report Properties
Position size: 25% of equity per trade
Initial capital: 10,000.00 USDT
Pyramiding: 25 entries per direction
Slippage: 2 ticks
Commission: 0.055% per side
Backtest timeframe: 1-minute
Backtest instrument: HYPEUSDT
Backtesting range: Aug 11, 2025 — Aug 28, 2025
💡Why 25% Equity Per Trade?
While it's always best to size positions based on personal risk tolerance, we defaulted to 25% equity per trade in the backtesting data — and here’s why:
Backtests using this sizing show manageable drawdowns even under volatile periods
The strategy generates a sizeable number of trades, reducing reliance on a single outcome
Combined with conservative filters, the 25% setting offers a balance between aggression and control
Users are strongly encouraged to customize this to suit their risk profile.
🔍 What Makes This Strategy Unique?
HH/LL Pivot Focus: Trades pivot structure flips instead of relying on generic indicators.
Fair Value Gap Confirmation: Only pivots supported by FVGs are acted upon, reducing noise.
One-Bar Flip Handler: Ensures clean transitions when the structure reverses, avoiding same-bar conflicts.
Volatility & Spacing Filters: Trades require sufficient movement from prior entries and minimum bar spacing to maintain quality.
Momentum-Aware Entries: RSI alignment favors entries near potential exhaustion points, improving signal reliability.
Contextual Ribbon Overlay: Visualizes volatility and active positions clearly, without cluttering the chart.
MACDEMAAutomatic Strategy for Litecoin on 5-Minute Chart in BingX Perpetual Futures. Combines MACD and 10- & 55-Period EMA. ✅
Script_Algo - ORB Strategy with Filters🔍 Core Concept: This strategy combines three powerful technical analysis tools: Range Breakout, the SuperTrend indicator, and a volume filter. Additionally, it features precise customization of the number of candles used to construct the breakout range, enabling optimized performance for specific assets.
🎯 How It Works:
The strategy defines a trading range at the beginning of the trading session based on a selected number of candles.
It waits for a breakout above the upper or below the lower boundary of this range, requiring a candle close.
It filters signals using the SuperTrend indicator for trend confirmation.
It utilizes trading volume to filter out false breakouts.
⚡ Strategy Features
📈 Entry Points:
Long: Candle close above the upper range boundary + SuperTrend confirmation
Short: Candle close below the lower range boundary + SuperTrend confirmation
🛡️ Risk Management:
Stop-Loss: Set at the opposite range boundary.
Take-Profit: Calculated based on a risk/reward ratio (3:1 by default).
Position Size: 10 contracts (configurable).
⚠️ IMPORTANT SETTINGS
🕐 Time Parameters:
Set the correct time and time zone!
❕ATTENTION: The strategy works ONLY with correct time settings! Set the time corresponding to your location and trading session.
📊 This strategy is optimized for trading TESLA stock!
Parameters are tailored to TESLA's volatility, and trading volumes are adequate for signal filtering. Trading time corresponds to the American session.
📈 If you look at the backtesting results, you can see that the strategy could potentially have generated about 70 percent profit on Tesla stock over six months on 5m timeframe. However, this does not guarantee that results will be repeated in the future; remain vigilant.
⚠️ For other assets, the following is required:
Testing and parameter optimization
Adjustment of time intervals and the number of candles forming the range
Calibration of stop-loss and take-profit levels
⚠️ Limitations and Drawbacks
🔗 Automation Constraints:
❌ Cannot be directly connected via Webhook to CFD brokers!
Additional IT solutions are required for automation, thus only manual trading based on signals is possible.
📉 Risk Management:
Do not risk more than 2-3% of your account per trade.
Test on historical data before live use.
Start with a demo account.
💪 Strategy Advantages
✅ Combined approach – multiple signal filters
✅ Clear entry and exit rules
✅ Visual signals on the chart
✅ Volume-based false breakout filtering
✅ Automatic position management
🎯 Usage Recommendations
Always test the strategy on historical data.
Start with small trading volumes.
Ensure time settings are correct.
Adapt parameters to current market volatility.
Use only for stocks – futures and Forex require adaptation.
📚 Suitable Timeframes - M1-M15
Only highly liquid stocks
🍀 I wish all subscribers good luck in trading and steady profits!
📈 May your charts move in the right direction!
⚠️ Remember: Trading involves risk. Do not invest money you cannot afford to lose!
Script_Algo - Fibo Correction Strategy🔹 Core Concept
The strategy is built on combining Fibonacci retracement levels, candlestick pattern confirmation, and trend filtering for trade selection. It performs well on the 1-hour timeframe across many cryptocurrency pairs. Particularly on LINKUSDT over the past year and a half, despite the not very optimal 1:1 risk/reward ratio.
The logic is simple: after a strong impulse move, the price often retraces to key Fibonacci levels (specifically, the 61.8% level). If a confirming candlestick (pattern) appears at this moment, the strategy looks for an entry in the direction of the main trend.
🔹 Indicators Used in the Strategy
ATR (Average True Range) — Used to calculate the stop-loss and take-profit levels.
EMA (9 and 21) — Additional moving averages for assessing the direction of movement (not directly used in entry conditions, but the logic can be expanded to include them).
SMA (Trend Filter, 20 by default) — The trend direction filter. Trades are only opened in its direction.
Fibonacci Levels — The 61.8% retracement level is calculated based on the high and low of the previous candle.
🔹 Entry Conditions
🟢 Long (Buy):
Previous Candle:
Must be green (close higher than open).
Must have a body not smaller than a specified minimum.
The upper wick must not exceed 30% of the body size.
→ This filters out "weak" or "indecisive" candles.
Current Candle:
Price touches or breaches the Fibonacci 61.8% retracement level from the previous range.
Closes above this level.
Closes above the Trend Filter (SMA) line.
A position is opened only if there are no other open trades at the moment.
🔴 Short (Sell):
Previous Candle:
Must be red (close lower than open).
Must have a body not smaller than a specified minimum.
The lower wick must not exceed 30% of the body size.
Current Candle:
Price touches or breaches the Fibonacci 61.8% retracement level from the previous range.
Closes below this level.
Closes below the Trend Filter (SMA) line.
A trade is opened only if there are no other open positions.
🔹 Risk Management
Stop-Loss = ATR × multiplier (default is 5).
Take-Profit = ATR × the same multiplier.
Thus, the default risk/reward ratio is 1:1, but it can be easily adjusted by changing the coefficient. Although, strangely enough, this ratio has shown the best results on some assets on the 1-hour timeframe.
🔹 Chart Visualization
Fibonacci level for Long — Green line with circles.
Fibonacci level for Short — Red line with circles.
Trend Filter line (SMA) — Blue.
🔹 Strengths of the Strategy
✅ Utilizes a proven market pattern — retracement to the 61.8% level.
✅ Further filters entries using trend and candlestick patterns.
✅ Simple, transparent logic that is easy to expand (e.g., adding other Fib levels, an EMA filter, etc.).
🔹 Limitations
⚠️ Performs better in trending markets; can generate false signals during ranging (sideways) conditions.
⚠️ The fixed 1:1 risk/reward ratio is not always optimal and could be refined.
⚠️ Performance depends on the selected timeframe and ATR parameters.
📌 Summary:
The strategy seeks corrective entries in the direction of the trend, confirmed by candlestick patterns. It is versatile and can be applied to forex pairs, cryptocurrencies, and stocks.
⚠️ Not financial advice. Pay close attention to risk management to avoid blowing your account. The strategy is not repainting — I have personally verified it through real testing — but it may not necessarily replicate the same results in the future, as the market is constantly changing. Test it, profit, and good luck to everyone!
PP_Solstice StrategyThis strategy was developed by Vinay with inputs from Warren, Dodgie and others to replicate TOS AGAIG indicators. It is available for free of use.