BB LONG 2BX & FVB StrategyThis Strategy is optimized for the 2h timeframe. Happy Charting and you're welcome!
**BB LONG 2BX & FVB Strategy – Simple Text Guide**
---
### **What It Does**
A **long-only trading strategy** that:
- Enters on **strong upward momentum**
- Adds a second position when the trend gets stronger
- Takes profits in parts at **smart price levels**
- Exits fully if the trend weakens or reverses
---
### **Main Tools Used**
| Tool | Simple Meaning |
|------|----------------|
| **B-Xtrender (Oscillator)** | Measures speed of price move. Above 0 = bullish, below 0 = bearish |
| **Weekly & Monthly Timeframes** | Checks if higher timeframes agree with the trade |
| **Red ATR Line** | A moving stop-loss that follows price up |
| **Fair Value Bands (1x, 2x, 3x)** | Profit targets that adjust to market volatility |
---
### **When It Enters a Trade (Long)**
**First Entry:**
- Weekly momentum is **rising**
- Monthly momentum is **positive or increasing**
- No current position
**Second Entry (Pyramiding):**
- Already in trade
- Price breaks **above the Red ATR line** → add same size again
(Max 2 total entries)
---
### **When It Takes Profit (Scaling Out)**
| Level | Action |
|-------|--------|
| **1x Band** | Sell **50%** when price pulls back from this level |
| **2x Band** | Sell **50%** when price pulls back from this level |
| **3x Band** | **Exit everything** when price pulls back from this level |
> You can hit 1x and 2x **multiple times** – it will keep taking 50% each time
---
### **When It Exits Fully (Closes Everything)**
1. Price **closes below Red ATR line**
2. Weekly momentum shows **2 red bars in a row, both falling**
3. Weekly momentum **crosses below zero** AND price is below Red ATR
4. Weekly momentum **drops sharply** (more than 25 points in one bar)
> After full exit, it **won’t re-enter** unless price comes back below 2x band
---
### **Alerts You Get**
Every time price **touches** a profit band, you get an alert:
- “Price touched 1x band from below”
- “Price touched 1x band from above”
- Same for **2x** and **3x**
> One alert per touch, per bar
---
### **On the Chart – What You See**
- **Histogram bars (weekly momentum)**
Lime = up, Red = down
**Yellow highlight** = warning (exit soon)
- **Red broken line** = stop-loss level
- **Blue line** = fair middle price
- **Orange, Purple, Pink lines** = 1x, 2x, 3x profit targets
---
### **Best Used On**
- Daily or 4-hour charts
- Strong trending assets (like Bitcoin, Tesla, S&P 500)
---
### **Quick Rules Summary**
| Do This | When |
|--------|------|
| **Enter** | Weekly up + monthly support |
| **Add more** | Price breaks above Red line |
| **Take 50% profit** | Price pulls back from 1x or 2x |
| **Exit all** | Red line break, weak momentum, or 3x hit |
---
**Simple Idea:**
**Ride strong trends, add when confirmed, take profits in chunks, cut losses fast.**
Indicatori e strategie
Amiya's Doji / Hammer / Spinning Top Breakout Strategy v5How it works
1. Pattern Detection (Previous Candle):
• Checks if total shadow length ≥ 2 × body.
• Checks if candle height (high − low) is between 10 and 21.5 points.
• If true → marks that candle as a potential Doji, Hammer, or Spinning Top.
2. Long Setup:
• LTP (close) crosses above previous candle high.
• Previous candle is a valid pattern candle.
• Stop Loss = 3 points below previous candle low.
• Take Profit = 5 × (high − low) of previous candle added to previous high.
3. Short Setup:
• LTP (close) crosses below previous candle low.
• Previous candle is a valid pattern candle.
• Stop Loss = 3 points above previous candle high.
• Take Profit = 5 × (high − low) of previous candle subtracted from previous low.
4. Visualization:
• Yellow background highlights pattern candles.
• Green ▲ and Red ▼ markers show entry points.
Deep yellow candles → represent Doji / Hammer / Spinning Top patterns
• Green triangle → Buy signal
• Red triangle → Sell signal
• Dotted green line + label → Target
• Dotted red line + label → Stop loss
• Gray background → Outside trading hours
• Auto close → All trades square off at 3:29 PM IST
HV Spike Strategy (HVP + OR Breakout + Reversal + TP/SL Modes)Here is a script that I tried to make it simple, although it has several parameters, I will try to explain, here we go:
Logic: Open Range Breakout: otherwise knows as First Candle Rule, usually used for the first candle in the opening of a market session, in my strategy there is an option to use it even for Crypto that operate 24/7, how to do that? Simply by detecting Volatility from the HVP (Historical Volatility Percentile). Then the ORB logic kicks in and the first candle with high volatility gives the ranges for the trades. The proper HVP Activation Threshold has to be selected for each currency pair/index/crypto in order to have maximum profit.
Enter a trade: when the price goes 100% above/below the First Candle Rule Range. That way it is filtering fake breakouts. Also if the price reverses back into the range the strategy takes the opposite trade.
Exit a trade: SL/TP By percentage or ATR, selection in the input menu.
My intention is to avoid using lagging indicators or guessing of Price Action, purely Bull/Bear indication by the first candle.
I hope you find this helpful! Wishing all successful Trades!
BankNifty Etharia Aggresive Buyer / SellerOverview
Professional intraday trading strategy for BankNifty Futures that identifies high-probability setups by combining multiple technical indicators. Works in BOTH directions - LONG and SHORT.
Best Timeframe: 5-Minute Chart
Key Features:
✅ Multi-Confluence Entry System - All indicators must align for signal
✅ Bidirectional Trading - Captures both uptrends and downtrends
✅ Advanced Risk Management - Daily loss limits, consecutive loss protection
✅ Smart Exit System - Partial profit taking + trailing stops
✅ Session-Based Trading - Avoids opening and closing volatility
Entry Logic:
LONG Signals:
Price above Kernel Regression (trend confirmation)
Price above VWAP with positive slope (momentum)
Cumulative Volume Delta bullish (buying pressure)
Volume spike or increasing volume (strength confirmation)
Strong bullish candle with 60%+ body ratio
RSI filter to avoid overbought entries
SHORT Signals:
Price below Kernel Regression (downtrend confirmation)
Price below VWAP with negative slope (bearish momentum)
CVD bearish (selling pressure dominates)
High volume confirmation
Strong bearish candle pattern
RSI filter to avoid oversold entries
Exit Management:
🎯 Target 1: 1.5 R:R (50% position exit)
🎯 Target 2: 2.5 R:R (full exit)
🛡️ Stop Loss Options: ATR-based, Swing-based, or Fixed
🟡 Trailing Stop: Activates after 1.2 R:R, trails at 0.8 R:R
⏰ Time-Based Exit: Closes all positions 5 mins before session end
Risk Controls:
Maximum trades per day (default: 5)
Consecutive loss limit (default: 2)
Daily loss limit: 2.5% of capital
Daily profit target: 5% (stops trading when reached)
Position sizing based on account risk percentage
Recommended Settings:
Asset: BankNifty Futures (NSE:BANKNIFTY1!)
Timeframe: 5-minute
Initial Capital: ₹1,00,000
Risk per trade: 1%
Commission: 0.05%
Slippage: 5 points
Performance Expectations:
Win Rate: 55-65%
Profit Factor: 1.5-2.0
Average Trades/Day: 3-8
Risk:Reward: 1:1.8 average
Customizable Parameters:
Trading direction (Long Only / Short Only / Both)
Indicator lengths and thresholds
Stop loss type and targets
Risk management limits
Trading session hours
Best For:
Intraday traders seeking systematic, rule-based entries with strong confluence, proper risk management, and the ability to profit from both bullish and bearish market conditions.
Zero Lag Trend Signals (MTF) [Quant Trading] V7Overview
The Zero Lag Trend Signals (MTF) V7 is a comprehensive trend-following strategy that combines Zero Lag Exponential Moving Average (ZLEMA) with volatility-based bands to identify high-probability trade entries and exits. This strategy is designed to reduce lag inherent in traditional moving averages while incorporating dynamic risk management through ATR-based stops and multiple exit mechanisms.
This is a longer term horizon strategy that takes limited trades. It is not a high frequency trading and therefore will also have limited data and not > 100 trades.
How It Works
Core Signal Generation:
The strategy uses a Zero Lag EMA (ZLEMA) calculated by applying an EMA to price data that has been adjusted for lag:
Calculate lag period: floor((length - 1) / 2)
Apply lag correction: src + (src - src )
Calculate ZLEMA: EMA of lag-corrected price
Volatility bands are created using the highest ATR over a lookback period multiplied by a band multiplier. These bands are added to and subtracted from the ZLEMA line to create upper and lower boundaries.
Trend Detection:
The strategy maintains a trend variable that switches between bullish (1) and bearish (-1):
Long Signal: Triggers when price crosses above ZLEMA + volatility band
Short Signal: Triggers when price crosses below ZLEMA - volatility band
Optional ZLEMA Trend Confirmation:
When enabled, this filter requires ZLEMA to show directional momentum before entry:
Bullish Confirmation: ZLEMA must increase for 4 consecutive bars
Bearish Confirmation: ZLEMA must decrease for 4 consecutive bars
This additional filter helps avoid false signals in choppy or ranging markets.
Risk Management Features:
The strategy includes multiple stop-loss and take-profit mechanisms:
Volatility-Based Stops: Default stop-loss is placed at ZLEMA ± volatility band
ATR-Based Stops: Dynamic stop-loss calculated as entry price ± (ATR × multiplier)
ATR Trailing Stop: Ratcheting stop-loss that follows price but never moves against position
Risk-Reward Profit Target: Take-profit level set as a multiple of stop distance
Break-Even Stop: Moves stop to entry price after reaching specified R:R ratio
Trend-Based Exit: Closes position when price crosses EMA in opposite direction
Performance Tracking:
The strategy includes optional features for monitoring and analyzing trades:
Floating Statistics Table: Displays key metrics including win rate, GOA (Gain on Account), net P&L, and max drawdown
Trade Log Labels: Shows entry/exit prices, P&L, bars held, and exit reason for each closed trade
CSV Export Fields: Outputs trade data for external analysis
Default Strategy Settings
Commission & Slippage:
Commission: 0.1% per trade
Slippage: 3 ticks
Initial Capital: $1,000
Position Size: 100% of equity per trade
Main Calculation Parameters:
Length: 70 (range: 70-7000) - Controls ZLEMA calculation period
Band Multiplier: 1.2 - Adjusts width of volatility bands
Entry Conditions (All Disabled by Default):
Use ZLEMA Trend Confirmation: OFF - Requires ZLEMA directional momentum
Re-Enter on Long Trend: OFF - Allows multiple entries during sustained trends
Short Trades:
Allow Short Trades: OFF - Strategy is long-only by default
Performance Settings (All Disabled by Default):
Use Profit Target: OFF
Profit Target Risk-Reward Ratio: 2.0 (when enabled)
Dynamic TP/SL (All Disabled by Default):
Use ATR-Based Stop-Loss & Take-Profit: OFF
ATR Length: 14
Stop-Loss ATR Multiplier: 1.5
Profit Target ATR Multiplier: 2.5
Use ATR Trailing Stop: OFF
Trailing Stop ATR Multiplier: 1.5
Use Break-Even Stop-Loss: OFF
Move SL to Break-Even After RR: 1.5
Use Trend-Based Take Profit: OFF
EMA Exit Length: 9
Trade Data Display (All Disabled by Default):
Show Floating Stats Table: OFF
Show Trade Log Labels: OFF
Enable CSV Export: OFF
Trade Label Vertical Offset: 0.5
Backtesting Date Range:
Start Date: January 1, 2018
End Date: December 31, 2069
Important Usage Notes
Default Configuration: The strategy operates in its most basic form with default settings - using only ZLEMA crossovers with volatility bands and volatility-based stop-losses. All advanced features must be manually enabled.
Stop-Loss Priority: If multiple stop-loss methods are enabled simultaneously, the strategy will use whichever condition is hit first. ATR-based stops override volatility-based stops when enabled.
Long-Only by Default: Short trading is disabled by default. Enable "Allow Short Trades" to trade both directions.
Performance Monitoring: Enable the floating stats table and trade log labels to visualize strategy performance during backtesting.
Exit Mechanisms: The strategy can exit trades through multiple methods: stop-loss hit, take-profit reached, trend reversal, or trailing stop activation. The trade log identifies which exit method was used.
Re-Entry Logic: When "Re-Enter on Long Trend" is enabled with ZLEMA trend confirmation, the strategy can take multiple long positions during extended uptrends as long as all entry conditions remain valid.
Capital Efficiency: Default setting uses 100% of equity per trade. Adjust "default_qty_value" to manage position sizing based on risk tolerance.
Realistic Backtesting: Strategy includes commission (0.1%) and slippage (3 ticks) to provide realistic performance expectations. These values should be adjusted based on your broker and market conditions.
Recommended Use Cases
Trending Markets: Best suited for markets with clear directional moves where trend-following strategies excel
Medium to Long-Term Trading: The default length of 70 makes this strategy more appropriate for swing trading rather than scalping
Risk-Conscious Traders: Multiple stop-loss options allow traders to customize risk management to their comfort level
Backtesting & Optimization: Comprehensive performance tracking features make this strategy ideal for testing different parameter combinations
Limitations & Considerations
Like all trend-following strategies, performance may suffer in choppy or ranging markets
Default 100% position sizing means full capital exposure per trade - consider reducing for conservative risk management
Higher length values (70+) reduce signal frequency but may improve signal quality
Multiple simultaneous risk management features may create conflicting exit signals
Past performance shown in backtests does not guarantee future results
Customization Tips
For more aggressive trading:
Reduce length parameter (minimum 70)
Decrease band multiplier for tighter bands
Enable short trades
Use lower profit target R:R ratios
For more conservative trading:
Increase length parameter
Enable ZLEMA trend confirmation
Use wider ATR stop-loss multipliers
Enable break-even stop-loss
Reduce position size from 100% default
For optimal choppy market performance:
Enable ZLEMA trend confirmation
Increase band multiplier
Use tighter profit targets
Avoid re-entry on trend continuation
Visual Elements
The strategy plots several elements on the chart:
ZLEMA line (color-coded by trend direction)
Upper and lower volatility bands
Long entry markers (green triangles)
Short entry markers (red triangles, when enabled)
Stop-loss levels (when positions are open)
Take-profit levels (when enabled and positions are open)
Trailing stop lines (when enabled and positions are open)
Optional ZLEMA trend markers (triangles at highs/lows)
Optional trade log labels showing complete trade information
Exit Reason Codes (for CSV Export)
When CSV export is enabled, exit reasons are coded as:
0 = Manual/Other
1 = Trailing Stop-Loss
2 = Profit Target
3 = ATR Stop-Loss
4 = Trend Change
Conclusion
Zero Lag Trend Signals V7 provides a robust framework for trend-following with extensive customization options. The strategy balances simplicity in its core logic with sophisticated risk management features, making it suitable for both beginner and advanced traders. By reducing moving average lag while incorporating volatility-based signals, it aims to capture trends earlier while managing risk through multiple configurable exit mechanisms.
The modular design allows traders to start with basic trend-following and progressively add complexity through ZLEMA confirmation, multiple stop-loss methods, and advanced exit strategies. Comprehensive performance tracking and export capabilities make this strategy an excellent tool for systematic testing and optimization.
Note: This strategy is provided for educational and backtesting purposes. All trading involves risk. Past performance does not guarantee future results. Always test thoroughly with paper trading before risking real capital, and adjust position sizing and risk parameters according to your risk tolerance and account size.
================================================================================
TAGS:
================================================================================
trend following, ZLEMA, zero lag, volatility bands, ATR stops, risk management, swing trading, momentum, trend confirmation, backtesting
================================================================================
CATEGORY:
================================================================================
Strategies
================================================================================
CHART SETUP RECOMMENDATIONS:
================================================================================
For optimal visualization when publishing:
Use a clean chart with no other indicators overlaid
Select a timeframe that shows multiple trade signals (4H or Daily recommended)
Choose a trending asset (crypto, forex major pairs, or trending stocks work well)
Show at least 6-12 months of data to demonstrate strategy across different market conditions
Enable the floating stats table to display key performance metrics
Ensure all indicator lines (ZLEMA, bands, stops) are clearly visible
Use the default chart type (candlesticks) - avoid Heikin Ashi, Renko, etc.
Make sure symbol information and timeframe are clearly visible
================================================================================
COMPLIANCE NOTES:
================================================================================
✅ Open-source publication with complete code visibility
✅ English-only title and description
✅ Detailed explanation of methodology and calculations
✅ Realistic commission (0.1%) and slippage (3 ticks) included
✅ All default parameters clearly documented
✅ Performance limitations and risks disclosed
✅ No unrealistic claims about performance
✅ No guaranteed results promised
✅ Appropriate for public library (original trend-following implementation with ZLEMA)
✅ Educational disclaimers included
✅ All features explained in detail
================================================================================
Monthly First-Day Range Breakout (Long-Only)Monthly First-Day Range Breakout (Long-Only)
When the Close is above the first candle of the month - Long
Wait for the First Day Close
VWAP & Band Cross Strategy v6VWAP & Band Cross Strategy v6: Script Summary
This Pine Script implements a highly flexible, multi-layered trading strategy centered around the Volume Weighted Average Price (VWAP) and its associated Standard Deviation Bands.
The strategy is designed to test various entry/exit models based on how the price interacts with the central VWAP line and the upper/lower volatility bands, with extensive risk management and confirmation filters.
1. Core Mechanics (VWAP & Bands)
VWAP Calculation: Calculates the VWAP based on a user-defined source (default is the close price).
Standard Deviation Bands: Creates upper and lower bands by calculating the standard deviation of the price (over 20 periods by default) and multiplying it by a user-defined Multiplier (default is 2.0). These bands dynamically expand and contract with volatility.
Plotting: The script clearly plots the VWAP (purple), the Upper Band (green), and the Lower Band (red), with a colored fill between the bands.
2. Entry Triggers
The core entry logic is based on a single, user-selected cross event between the price and the VWAP/Bands. The user can choose from six predefined entry types:
Entry Type Category
Entry Trigger (Long)
Entry Trigger (Short)
Mean Reversion
Price crosses over the Lower Band.
Price crosses under the Upper Band.
Trend Following
Price crosses over the Upper Band (Breakout).
Price crosses under the Lower Band (Breakout).
VWAP Cross
Price crosses over the VWAP.
Price crosses under the VWAP.
3. Filters and Confirmation
Trades are only executed if they pass a series of optional filters, making the strategy highly customizable:
Technical Confirmation (Optional): Users can enable and configure up to three additional indicators that must align with the trade direction:
RSI: Price must be Oversold (for Long) or Overbought (for Short).
SMMA: Price must be above the SMMA (for Long) or below (for Short).
MACD: MACD line must cross the Signal line and the Histogram must be positive/negative.
Time and Day Filters: Trades are restricted to a defined Entry Start/End Hour/Minute window, and only execute on user-selected Trading Days of the week.
Trade Direction: Can be toggled to execute Long Only, Short Only, or Both.
4. Advanced Risk Management (Daily Limits)
The strategy incorporates robust daily limits that reset at a configured Daily Reset Hour/Minute:
Daily Profit/Loss Limits: If the running total of Realized PnL (closed trades) + Unrealized PnL (open position) exceeds a user-defined Daily Take Profit (in Ticks) or falls below the Daily Stop Loss (in Ticks), the strategy locks out new trades and immediately closes any open position.
Max Daily Trades: Prevents the strategy from entering more than a specified number of trades per day.
5. Exit Logic
The strategy exit is also highly configurable via the Exit Type setting:
Fixed Ticks / ATR / Capped ATR: If one of these is selected, the script calculates a static Stop Loss and Take Profit level upon entry, using either fixed tick values or dynamic values based on the Average True Range (ATR), which are then executed using Pine Script's strategy.exit function.
Cross Exits (VWAP/Bands): If selected, the position is closed when the price crosses the VWAP or a specific band in the opposite direction.
End-of-Day Close: An unconditional exit that closes all open positions at a user-defined Close All Hour/Minute, regardless of profit/loss or limit status, preventing positions from being held overnight.
SB LONG ENTRY/EXITBASED on HULL slope average. ISN'T IT VERY ROBUST?
Very good for daily, weekly and monthly timeframes. Stocks especially.....
I prefer it without optonal stop loss on other position protection stops.
Wonderful both equal weight position or with a D'alembert style weighting of positions....
Hold the Hull period parameter between 30 and 60 or more, but it's not so sensitive to this optimization.
All the best,
Sandro Bisotti
Entry / exit zones (only long positions)Great and simple helping tool to find good entry/exit point for mid/long term trading on stocks especially but also indexes and other..... Good on daily timeframe, but better with weekly and monthly. Based on Hull average slope. Hold the average period value among 30 and 50 or more. I prefer the version WITHOUT stop loss and other exit rules (optional).
All the best and good trading!
SB
Heiken Ashi BasProfessional Heiken Ashi + Ichimoku Baseline Scalping Strategy
Strategy Overview:
This advanced scalping methodology combines the smoothing power of Heiken Ashi candles with the reliable support/resistance levels of Ichimoku's Kijun-sen baseline. Designed for active traders seeking precise entry points in trending markets, the strategy incorporates multiple confirmation filters to enhance signal reliability.
Key Features:
• Dual Confirmation System : Heiken Ashi trend alignment with Ichimoku baseline crossover
• Smart Risk Management : Dynamic ATR-based take profit and stop loss across multiple timeframes
• Trend Filter Integration : Optional 200 EMA filter to align with broader market direction
• Divergence Detection : Real-time Ichimoku baseline momentum analysis
• Visual Trading Signals : Clear buy/sell markers with TP/SL level displays
Technical Components:
- Heiken Ashi Smoothing : Reduces market noise for cleaner trend identification
- Ichimoku Baseline (Kijun-sen) : Acts as dynamic support/resistance level
- Multi-timeframe ATR : Adaptive position sizing based on market volatility
- Momentum Confirmation : Baseline divergence filtering for enhanced timing
Ideal For:
- Forex and cryptocurrency markets
- 1-5 minute timeframes for scalping
- Trending market conditions
- Risk-aware traders seeking systematic approaches
Customization Options:
- Adjustable TP/SL multipliers based on risk tolerance
- Optional trend and divergence filters
- Flexible timeframe settings for different trading styles
- Visual display preferences for chart clarity
Educational Value:
This script demonstrates professional-grade techniques in:
- Multi-indicator convergence strategies
- Dynamic risk management implementation
- Real-time market structure analysis
- Systematic trade execution methodolog
DayFlow VWAP Relay Forex Majors StrategySummary in one paragraph
DayFlow VWAP Relay is a day-trading strategy for major FX pairs on intraday timeframes, demonstrated on EURUSD 15 minutes. It waits for alignment between a daily anchored VWAP regime check, residual percentiles, and lower-timeframe micro flow before suggesting trades. The originality is the fusion of daily VWAP residual percentiles with a live micro-flow score from 1 minute data to switch between fade and breakout behavior inside the same session. Add it to a clean chart and use the markers and alerts.
Scope and intent
• Markets: Major FX pairs such as EURUSD, GBPUSD, USDJPY, AUDUSD, USDCHF, USDCAD
• Timeframes: One minute to one hour
• Default demo in this publication: EURUSD on 15 minutes
• Purpose: Reduce false starts by acting only when context, location and micro flow agree
• Limits: This is a strategy. Orders are simulated on standard candles only
Originality and usefulness
• Core novelty: Residual percentiles to daily anchored VWAP decide “balanced versus expanding day”. A separate 1 minute micro-flow score confirms direction, so the same model fades extremes in balance and rides range breaks in expansion
• Failure modes addressed: Chop fakeouts and unconfirmed breakouts are filtered by the expansion gate and micro-flow threshold
• Testability: Every input is exposed. Bands, background regime color, and markers show why a suggestion appears
• Portable yardstick: Stops and targets are ATR multiples converted to ticks, which transfer across symbols
• Open source status: No reused third-party code that requires attribution
Method overview in plain language
The day is anchored with a VWAP that updates from the daily session start. Price minus VWAP is the residual. Percentiles of that residual measured over a rolling window define location extremes for the current day. A regime score compares residual volatility to price volatility. When expansion is low, the day is treated as balanced and the model fades residual extremes if 1 minute micro flow points back to VWAP. When expansion is high, the model trades breakouts outside the VWAP bands if slope and micro flow agree with the move.
Base measures
• Range basis: True Range smoothed by ATR for stops and targets, length 14
• Return basis: Not required for signals; residuals are absolute price distance to VWAP
Components
• Daily Anchor VWAP Bands. VWAP with standard-deviation bands. Slope sign is used for trend confirmation on breakouts
• Residual Percentiles. Rolling percentiles of close minus VWAP over Signal length. Identify location extremes inside the day
• Expansion Ratio. Standard deviation of residuals divided by standard deviation of price over Signal length. Classifies balanced versus expanding day
• Micro Flow. Net up minus down closes from 1 minute data across a short span, normalized to −1..+1. Confirms direction and avoids fades against pressure
• Session Window optional. Restricts trading to your configured hours to avoid thin periods
• Cooldown optional. Bars to wait after a position closes to prevent immediate re-entry
Fusion rule
Gating rather than weighting. First choose regime by Expansion Ratio versus the Expansion gate. Inside each regime all listed conditions must be true: location test plus micro-flow threshold plus session window plus cooldown. Breakouts also require VWAP slope alignment.
Signal rule
• Long suggestion on balanced day: residual at or below the lower percentile and micro flow positive above the gate while inside session and cooldown is satisfied
• Short suggestion on balanced day: residual at or above the upper percentile and micro flow negative below the gate while inside session and cooldown is satisfied
• Long suggestion on expanding day: close above the upper VWAP band, VWAP slope positive, micro flow positive, session and cooldown satisfied
• Short suggestion on expanding day: close below the lower VWAP band, VWAP slope negative, micro flow negative, session and cooldown satisfied
• Positions flip on opposite suggestions or exit by brackets
What you will see on the chart
• Markers on suggestion bars: L for long, S for short
• Exit occurs on reverse signal or when a bracket order is filled
• Reference lines: daily anchored VWAP with upper and lower bands
• Optional background: teal for balanced day, orange for expanding day
Inputs with guidance
Setup
• Signal length. Residual and regime window. Typical 40 to 100. Higher smooths, lower reacts faster
Micro Flow
• Micro TF. Lower timeframe used for micro flow, default 1 minute
• Micro span bars. Count of lower-TF bars. Typical 5 to 20
• Micro flow gate 0..1. Minimum absolute flow. Raising it demands stronger confirmation and reduces trade count
VWAP Bands
• VWAP stdev multiplier. Band width. Typical 0.8 to 1.6. Wider bands reduce breakout frequency and increase fade distance
• Expansion gate 0..3. Threshold to switch from fades to breakouts. Raising it favors fades, lowering it favors breakouts
Sessions
• Use session filter. Enable to trade only inside your window
• Trade window UTC. Default 07:00 to 17:00
Risk
• ATR length. Stop and target basis. Typical 10 to 21
• Stop ATR x. Initial stop distance in ATR multiples
• Target ATR x. Profit target distance in ATR multiples
• Cooldown bars after close. Wait bars before a new entry
• Side. Both, long only, or short only
View
• Show VWAP and bands
• Color bars by residual regime
Properties visible in this publication
• Initial capital 10000
• Base currency Default
• request.security uses lookahead off everywhere
• Strategy: Percent of equity with value 3. Pyramiding 0. Commission cash per order 0.0001 USD. Slippage 3 ticks. Process orders on close ON. Bar magnifier ON. Recalculate after order is filled OFF. Calc on every tick OFF. Using standard OHLC fills ON.
Realism and responsible publication
No performance claims. Past results never guarantee future outcomes. Fills and slippage vary by venue. Shapes can move while a bar forms and settle on close. Strategies must run on standard candles for signals and orders.
Honest limitations and failure modes
High impact news, session opens, and thin liquidity can invalidate assumptions. Very quiet days can reduce contrast between residuals and price volatility. Session windows use the chart exchange time. If both stop and target are touched within a single bar, TradingView’s standard OHLC price-movement model decides the outcome.
Expect different behavior on illiquid pairs or during holidays. The model is sensitive to session definitions and feed time. Past results never guarantee future outcomes.
Legal
Education and research only. Not investment advice. You are responsible for your decisions. Test on historical data and in simulation before any live use. Use realistic costs.
Multi-Module Full-Featured Trading Strategy System v1🧠 Key Features Summary:
🧩 Full Modular Structure: Entry / Position Adding / Take Profit & Stop Loss / Delay / Capital Management.
⏱️ Delay & Reverse System: Prevents frequent long-short switching with minute-based delay intervals.
💰 Capital Management System:
• Controls opening/adding positions based on account equity percentage;
• Limits maximum position ratio;
• Supports leverage multiplier.
⚙️ Each module is independently configurable and can be disabled;
📈 Unified variable naming for easy expansion with more indicators.
EVWMA VWAP MACD Strategy - HTF Trigger with SL & EMA ExitEVWMA VWAP MACD Strategy - HTF Trigger with SL & EMA Exit
EVWMA VWAP MACD Strategy - HTF Trigger with SL & EMA ExitRENEW TRY IT EVWMA VWAP MACD Strategy - HTF Trigger with SL & EMA Exit
Bollinger Bands Breakout StrategyHey guys check out this strategy script.
Chart plotting:
I use a classic plot of Bollinger Bands to define a consolidation zone, I also use a separate Trend Filter (SMA).
Logic:
When the price is above the SMA and above the Bollinger Upper Band the strategy goes Long. When the price is below the SMA and below the Bollinger Lower Band the strategy goes Short. Simple.
Exits:
TP and SL are a percentage of the price.
Notes: This simple strategy can be used at any timeframe (I prefer the 15min for day trading). It avoids consolidation, when the price is inside the Bollinger Bands, and has a good success rate. Adjust the Length of the BB to suit your style of trading (Lower numbers=more volatile, Higher numbers=more restrictive). Also you can adjust the Trend Filter SMA, I presonally chose the 50 SMA. Finally the SL/TP can be also adjusted from the input menu.
Test it for yourself!
Have great trades!
Venza Rocket ScalperVenza Rocket Scalper: Compliant Description (Plaintext)
This strategy is a complex, multi-indicator trend-following system designed for intraday scalping on low-timeframe charts. It uses a confluence of four distinct filters to ensure high-conviction entries during optimal momentum and volume.
1. Overview and Core Logic
The entry signal requires simultaneous confirmation from the following components:
Trend Confirmation (Heikin-Ashi EMAs): The primary trend is established using Heikin-Ashi price action combined with an EMA (Fast=8) crossing and remaining above an EMA (Slow=21). This provides a smoother, momentum-based trend signal.
Momentum Strength (ADX/RSI): The trend must be validated by the ADX (default 16) to confirm sufficient directional strength, and the RSI (default 42) to confirm continued positive internal momentum.
Volume Validation: A dynamic filter requires the current bar's volume to be greater than the 20-period Volume MA (multiplied by the default 1.0 factor), ensuring trades are executed during periods of active market participation.
Session & Volatility Filter: Trades are restricted to a defined trading window (default UTC 12:00 to 20:00). The script also includes an optional Volatility Cap filter based on a long-term ATR to suppress entries during extreme volatility.
2. Trade Management and Realistic Risk
This strategy employs a robust, partial-exit risk management plan driven by the Average True Range (ATR) for sustainable risk control.
Initial Stop Loss (SL): The initial SL is tight and calculated dynamically using the 14-period ATR multiplied by an adjustable factor (default 0.7). This size is designed for micro-losses appropriate for scalping and is adapted slightly during high volatility.
Partial Exits & Profit Taking: The position is split into two equal halves for exit management:
50% Position (TP1): Exited at a 1R profit target, where 1R is defined as the exact value of the initial ATR-based SL.
50% Position (Run): Managed by a Trailing Stop Loss (TSL), with trail points also calculated dynamically using the current ATR.
Breakeven (BE) Lock: An optional feature (default: ON) automatically moves the stop loss to Breakeven (entry price plus 1 tick) once the position is 2 ticks in profit, locking in capital protection rapidly.
Daily Risk Controls: The strategy includes mandatory daily money management features (default: ON):
Max Daily Loss Stop: Stops all trading for the day if the cumulative closed P&L reaches -$500 (default).
Profit Protection Floor: If the closed P&L reaches a minimum threshold (default $110), any open position will be closed if the total daily P&L drops back below this floor, locking in minimum daily gains.
3. Strategy Properties & Backtesting Disclosure
The default settings are configured for high-liquidity futures or FX markets. Users must ensure their backtesting environment is realistic:
Risk Per Trade: The ATR-based SL aims to keep the risk per trade below 5% of a reasonable account size, which is critical for sustainable trading.
Contracts/Size: Default quantity is 3 contracts.
Commissions/Slippage: Commissions and slippage MUST be configured by the user in the Strategy Properties window to reflect real-world brokerage fees and execution costs.
Sample Size: The strategy should be run on a dataset that generates over 100 trades for statistically valid results.
MANDATORY DISCLAIMER: Past performance is not necessarily indicative of future results. Trading involves substantial risk. All claims of historical performance are substantiated by the backtesting results on the chart, but these results do not guarantee actual trading outcomes. Keep your language realistic.
Granny Strategy [rdjxyz]This is the Granny Strategy, as described on TG Capital's Sunday Service stream .
Definitions
C0 - Candle 0 - the candle where the FVG start is plotted
C1 - Candle 1 - the candle that drives the FVG
C2 - Candle 2 - the candle where the FVG end is plotted
C3 - Candle 3 - the entry candle (assuming all criteria are met)
👵🏻 - Valid setup
🤡 - Invalid setup
The Setup
*As described on the stream.
*Look for longs when price is above 50 EMA; look for shorts when price is below the 50 EMA.
FVG is printed
C2 sweeps the low of C1 and closes bullish (for longs) or sweeps the high of C1 and closes bearish (for shorts)
C3 inverts FVG and closes below C1 open (for longs) or above C1 open (for shorts)
If criteria above is met, position is entered on the close of C3 with stop loss at the low of C3 (for longs) or high of C3 (for shorts)
Inputs
Time Window Filter - only look for setups within a certain range of time
EMA length - original strategy calls for 50
Stop loss offset - ticks to offset stop loss from low (for longs) / high (for shorts) of C3
Risk:Reward ratio - take profit as a multiple of the stop loss size from entry
Break even stop loss - optional, move stop loss to break even after price reaches a specific R:R; e.g. once price hits 1:1 R:R, move stop loss to break even
Exception Inputs
Allow some exceptions to the rigid rules
Select which candle in the sequence the EMA filter is applied to (can produce different results)
Disable EMA bias filter (will find shorts when price is above EMA and longs when price is below)
Allow C3 to close inside of FVG (instead of completely inverting it)
Allow C3 to close above C1 open (for longs) or below C1 open (for shorts)
Allow C2 to close opposite of setup direction; e.g. if long, C2 is allowed to close as a bearish candle instead of bullish candle
Play around with the different settings on various timeframes and instruments to find rules that work best for your strategy goals. Or just use it to find valid vs. invalid setups historically.
Will be working on adding a trailing stop loss.
Leave a comment with any bugs or ideas you have to improve the strategy.
IMPORTANT
Adjust account size, position size, commissions, etc in the properties tab for accurate results!
Zendog V3 Indicator DCAThis strategy is same as Zendog v3 but edited to be backtest compatible for SO additions through indicator
for Longs
Safety order type = External indicator
External indicator = RSI 30/70 : Long Trigger
Safety Order Value = 1
for Shorts
Safety order type = External indicator
External indicator = RSI 30/70 : Short Trigger
Safety Order Value = 2
ChadAnt- Ray to 2nd Fractal Time buy/sell strategyUsing Williams Fractals and adding rays that extend to the second fractal after a high/low looking for an entry
Squeeze Breakout Strategy [KedArc Quant]Description:
Squeeze Breakout strategy looks for volatility compression (Bollinger Bands inside Keltner Channels = a “squeeze”), then trades the volatility expansion in the direction of a momentum filter.
🧠 How the “Squeeze → Expansion” works
- Markets alternate between quiet (compressed) and active (expanded) phases.
- We call it a squeeze when Bollinger Bands (BB)—which reflect standard deviation around price—shrink inside the Keltner Channels (KC)—which reflect ATR/range.
- This means dispersion (stdev) is small relative to typical range (ATR). Price is coiling; participants are agreeing on value.
- When BB pops back outside KC, the squeeze releases. That’s the first sign that volatility is expanding again.
- A release alone doesn’t tell you direction. That’s why this strategy pairs the release with a momentum filter:
- We estimate momentum using a smoothed linear-regression slope of price (a clean proxy for acceleration).
- If the slope is positive at release, we favor longs; if negative, we favor shorts.
- Optionally, you can require Band Break + Momentum (price closes beyond the BB) for a stricter entry.
- This combination aims to capture the first leg of the range-to-trend transition while avoiding random pokes that often occur during tight consolidations.
💡 Why this is unique
Two entry modes (toggle):
1. Release + Momentum (enter when the squeeze turns off)
2. Band Break + Momentum (enter on a close beyond BB with momentum)
- Momentum = smoothed linear-regression slope, a clean thrust detector that’s less laggy than many oscillators.
- Risk module included: ATR stop, optional 1R partial take-profit, and a Chandelier trailing stop for the runner.
- Practical filters: higher-timeframe EMA trend alignment, volume surge, minimum BB width, and session window—so it adapts across markets/timeframes.
- Backtest-ready: uses TradingView’s `strategy.` framework with commission/slippage controls.
📈 How it helps traders
✅Regime clarity: distinguishes compression vs. expansion so you’re not forcing trades during dead zones.
✅Objective entries: momentum + band logic reduces discretionary “feel” and late chases.
✅Built-in risk plan: stop/targets/trailing defined in inputs—consistent execution across tickers.
✅Adaptable: works across instruments/timeframes; filters let you tailor noise tolerance per market session.
✅Alerts: real-time signals for entry and squeeze release.
✅Not a Mash-Up / Original Work
✅Fully authored in Pine Script v6; no external libraries or copied logic blocks.
✅Uses well-known, documented formulas (BB, KC, ATR, LinReg slope) combined into a new rule set (two entry modes + momentum + structured exits).
✅Code and parameters are transparent and adjustable; the script stands alone.
🧩 Formulas (core)
Bollinger Bands
# Basis = `SMA(close, bbLen)`
# Upper/Lower = `Basis ± bbMult × stdev(close, bbLen)`
# Width% = `(Upper − Lower) / Basis × 100`
Keltner Channels
# Basis = `EMA(close, kcLen)`
# Upper/Lower = `Basis ± kcMult × ATR(kcATR)`
Squeeze state
# ON: `BB_Upper < KC_Upper` and `BB_Lower > KC_Lower`
# Release: `squeeze_on ` and `not squeeze_on`
Momentum (this script)
# `lin = linreg(close, momLen, 0)`
# `mom = SMA( lin − lin , momSmoothing )`
# Long bias when `mom > 0`; short bias when `mom < 0`.
⚙️ Inputs
Compression
`bbLen`, `bbMult` — BB length & std-dev multiplier
`kcLen`, `kcATR`, `kcMult` — KC lengths & ATR multiplier
`Entry Mode` — Release + Momentum, Band Break + Momentum, or Either
Momentum
`momLen`, `momSmoothing`
Filters (optional)
`Use HTF Trend Filter` + `HTF Timeframe` + `HTF EMA Length`
`Require Volume Surge` (`volLen`, `volMult`)
`Avoid Ultra-Low Vol` (`Min BB Width %`)
`Session` window
Risk / Exits
`ATR Length`, `ATR Stop Multiplier`
`Take Profit at 1R` (with Partial 50%)
`Chandelier` (`chLen`, `chMult`)
Optional `Time Stop (bars)`
🎯 Entry & Exit Rules
Entry (choose one mode):
1. Release + Momentum (default)
Long: on the bar the squeeze releases and `mom > 0`, passing all enabled filters.
Short: on the bar the squeeze releases and `mom < 0`, passing filters.
2. Band Break + Momentum
Long: `close > BB_Upper` and `mom > 0`, with filters.
Short: `close < BB_Lower` and `mom < 0`, with filters.
Initial Stop
ATR-based: `Stop Distance = atrMult × ATR(atrLen)` from entry.
Targets & Runner
TP1 at 1R (optional): take 50% at `entry + 1R` (long) / `entry − 1R` (short).
Runner: remaining position trails a Chandelier stop:
Long trail = `highest(high, chLen) − chMult × ATR`
Short trail = `lowest(low, chLen) + chMult × ATR`
Optional Time Stop: close the trade after N bars in position.
Labels on chart
“Long” / “Short” = entry signals.
“L-TP1 / S-TP1” = partial exits at 1R.
“L-Runner / S-Runner” = trailing-stop exits of the runner.
Alerts
Provided for Long Entry, Short Entry, and Squeeze Release.
💬 How to use
1. Choose your market/timeframe (e.g., NSE 5–15m intraday, 60m–Daily for swing).
2. If you prefer cleaner trends, enable the HTF EMA filter (e.g., 240m/1D).
3. For intraday, consider Band Break + Momentum with Volume Surge and a small Min BB Width.
4. Adjust ATR/Chandelier multipliers to fit your risk tolerance and instrument.
Abbreviations
BB – Bollinger Bands
KC – Keltner Channels
ATR – Average True Range
SMA / EMA – Simple/Exponential Moving Average
HTF – Higher Timeframe
R – Risk unit (equal to the initial stop distance)
⚠️ Disclaimer
This script is for educational purposes only. Past performance ≠ future returns. Always paper trade first. Options trading carries high risk — manage exposure responsibly.
EMA Tutorial - 1Buy when in downtrend and close above EMA_50
Buy when in uptrend and below EMA_50
adjust ema length and risk reward for other stocks. Works good with nifty. Need to perform stress test on it
Adaptive Trend 1m ### Overview
The "Adaptive Trend Impulse Parallel SL/TP 1m Realistic" strategy is a sophisticated trading system designed specifically for high-volatility markets like cryptocurrencies on 1-minute timeframes. It combines trend-following with momentum filters and adaptive parameters to dynamically adjust to market conditions, ensuring more reliable entries and risk management. This strategy uses SuperTrend for primary trend detection, enhanced by MACD, RSI, Bollinger Bands, and optional volume spikes. It incorporates parallel stop-loss (SL) and multiple take-profit (TP) levels based on ATR, with options for breakeven and trailing stops after the first TP. Optimized for realistic backtesting on short timeframes, it avoids over-optimization by adapting indicators to market speed and efficiency.
### Principles of Operation
The strategy operates on the principle of adaptive impulse trading, where entry signals are generated only when multiple conditions align to confirm a strong trend reversal or continuation:
1. **Trend Detection (SuperTrend)**: The core signal comes from an adaptive SuperTrend indicator. It calculates upper and lower bands using ATR (Average True Range) with dynamic periods and multipliers. A buy signal occurs when the price crosses above the lower band (from a downtrend), and a sell signal when it crosses below the upper band (from an uptrend). Adaptation is based on Rate of Change (ROC) to measure market speed, shortening periods in fast markets for quicker responses.
2. **Momentum and Trend Filters**:
- **MACD**: Uses adaptive fast and slow lengths. In "Trend Filter" mode (default when "Use MACD Cross" is false), it checks if the MACD line is above/below the signal for long/short. In cross mode, it requires a crossover/crossunder.
- **RSI**: Adaptive period RSI must be above 50 for longs and below 50 for shorts, confirming overbought/oversold conditions dynamically.
- **Bollinger Bands (BB)**: Depending on the mode ("Midline" by default), it requires the price to be above/below the BB midline for longs/shorts, or a breakout in "Breakout" mode. Deviation adapts to market efficiency.
- **Volume Spike Filter** (optional): Entries require volume to exceed an adaptive multiple of its SMA, signaling strong impulse.
3. **Volatility Filter**: Entries are only allowed if current ATR percentage exceeds a historical minimum (adaptive), preventing trades in low-volatility ranges.
4. **Risk Management (Parallel SL/TP)**:
- **Stop-Loss**: Set at an adaptive ATR multiple below/above entry for long/short.
- **Take-Profits**: Three levels at adaptive ATR multiples, with partial position closures (e.g., 51% at TP1, 25% at TP2, remainder at TP3).
- **Post-TP1 Features**: Optional breakeven moves SL to entry after TP1. Trailing SL uses BB midline as a dynamic trail.
- All levels are calculated per trade using the ATR at entry, making them "realistic" for 1m charts by widening SL and tightening initial TPs.
The strategy enters long on buy signals with all filters met, and short on sell signals. It uses pyramid margin (100% long/short) for full position sizing.
Adaptation is driven by:
- **Market Speed (normSpeed)**: Based on ROC, tightens multipliers in volatile periods.
- **Efficiency Ratio (ER)**: Measures trend strength, adjusting periods for trending vs. ranging markets.
This ensures the strategy "adapts" without manual tweaks, reducing false signals in varying conditions.
### Main Advantages
- **Adaptability**: Unlike static strategies, parameters dynamically adjust to market volatility and trend strength, improving performance across ranging and trending phases without over-optimization.
- **Realistic Risk Management for 1m**: Wider SL and tiered TPs prevent premature stops in noisy short-term charts, while partial profits lock in gains early. Breakeven/trailing options protect profits in extended moves.
- **Multi-Filter Confirmation**: Combines trend, momentum, and volume for high-probability entries, reducing whipsaws. The volatility filter avoids flat markets.
- **Debug Visualization**: Built-in plots for signals, levels, and component checks (when "Show Debug" is enabled) help users verify logic on charts.
- **Efficiency**: Low computational load, suitable for real-time trading on TradingView with alerts.
Backtesting shows robust results on volatile assets, with a focus on sustainable risk (e.g., SL at 3x ATR avoids excessive drawdowns).
### Uniqueness
What sets this strategy apart is its **fully adaptive framework** integrating multiple indicators with real-time market metrics (ROC for speed, ER for efficiency). Most trend strategies use fixed parameters, leading to poor adaptation; here, every key input (periods, multipliers, deviations) scales dynamically within bounds, creating a "self-tuning" system. The "parallel SL/TP with 1m realism" adds custom handling for micro-timeframes: tightened initial TPs for quick wins and adaptive min-ATR filter to skip low-vol bars. Unlike generic mashups, it justifies the combination—SuperTrend for trend, MACD/RSI/BB for impulse confirmation, volume for conviction—working synergistically to capture "trend impulses" while filtering noise. The post-TP1 breakeven/trailing tied to BB adds a unique profit-locking mechanism not common in open-source scripts.
### Recommended Settings
These settings are optimized and recommended for trading ASTER/USDT on Bybit, with 1-minute chart, x10 leverage, and cross margin mode. They provide a balanced risk-reward for this volatile pair:
- **Base Inputs**:
- Base ATR Period: 10
- Base SuperTrend ATR Multiplier: 2.5
- Base MACD Fast: 8
- Base MACD Slow: 17
- Base MACD Signal: 6
- Base RSI Period: 9
- Base Bollinger Period: 12
- Bollinger Deviation: 1.8
- Base Volume SMA Period: 19
- Base Volume Spike Multiplier: 1.8
- Adaptation Window: 54
- ROC Length: 10
- **TP/SL Settings**:
- Use Stop Loss: True
- Base SL Multiplier (ATR): 3
- Use Take Profits: True
- Base TP1 Multiplier (ATR): 5.5
- Base TP2 Multiplier (ATR): 10.5
- Base TP3 Multiplier (ATR): 19
- TP1 % Position: 51
- TP2 % Position: 25
- Breakeven after TP1: False
- Trailing SL after TP1: False
- Base Min ATR Filter: 0.001
- Use Volume Spike Filter: True
- BB Condition: Midline
- Use MACD Cross (false=Trend Filter): True
- Show Debug: True
For backtesting, use initial capital of 30 USD, base currency USDT, order size 100 USDT, pyramiding 1, commission 0.1%, slippage 0 ticks, long/short margin 0%.
Always backtest on your platform and use risk management—risk no more than 1-2% per trade. This is not financial advice; trade at your own risk.






















