HolyGrail by FX War RoomBelow is a concise and professional description for publishing your "HolyGrail by FX War Room" strategy on TradingView. The description is designed to clearly explain the strategy's purpose, functionality, and usage while adhering to TradingView's guidelines for script publication.
---
### HolyGrail by FX War Room
**Description**
The HolyGrail strategy is a breakout trading system designed to capture price movements outside a user-defined time range. It identifies the highest high and lowest low within a specified session (e.g., market open hours) and triggers long or short trades when the price breaks above the session high or below the session low. The strategy includes risk management with customizable stop-loss and take-profit levels, making it suitable for traders seeking a structured approach to breakout trading.
**Key Features**
- **Customizable Time Range**: Users can set the start and end times (HH:MM) to define the session for calculating the high and low range.
- **Breakout Signals**: Enters long trades on breakouts above the session high and short trades on breakouts below the session low.
- **Visual Cues**: Highlights the active time range with a green background and draws dashed lines for the session high (red) and low (blue). Labels mark "BUY" and "SELL" signals for clarity.
- **Risk Management**: Configurable position size, stop-loss, and take-profit levels (in pips) to align with your trading plan.
- **Flexible Application**: Works across various markets (forex, stocks, crypto) and timeframes when adjusted appropriately.
**How It Works**
1. During the user-defined time range (e.g., 9:00–17:00), the strategy tracks the highest high and lowest low over a 31-bar lookback period.
2. When the time range ends, horizontal lines are drawn at the session high and low.
3. A long trade is triggered when the price closes above the session high, with a stop-loss below the entry and a take-profit above it.
4. A short trade is triggered when the price closes below the session low, with a stop-loss above the entry and a take-profit below it.
5. Trades are exited automatically based on the stop-loss or take-profit levels.
**Settings**
- **Start Hour/Minute**: Set the start time of the session (e.g., 9:00).
- **End Hour/Minute**: Set the end time of the session (e.g., 17:00).
- **Position Size**: Number of contracts/lots per trade (default: 1.0).
- **Stop Loss (Pips)**: Distance for stop-loss (default: 20 pips).
- **Take Profit (Pips)**: Distance for take-profit (default: 40 pips).
**Usage Tips**
- Adjust the time range to match the most active trading session for your instrument (e.g., London session for forex).
- Test the strategy on a demo account or backtest with your preferred market and timeframe to optimize settings.
- Ensure stop-loss and take-profit levels align with your risk management rules.
- Consider market volatility when setting position size and pip values.
**Disclaimer**
Trading involves risk, and past performance is not indicative of future results. Always test strategies thoroughly and use proper risk management. This strategy is provided for educational purposes and should be used at your discretion.
指標和策略
The Green MachineThe Green Machine
The Green Machine is a trend-following strategy that uses a dynamic, volatility-based trailing stop to manage positions. It automatically flips between long and short positions based on market behavior, aiming to ride trends while cutting losses early.
🔍 Strategy Logic
A trailing stop is calculated using historical volatility.
When price breaches the trailing stop, the strategy closes the position and opens a trade in the opposite direction.
Each new position resets the trailing logic based on current price conditions.
This strategy does not use external indicators; it relies solely on statistical volatility for dynamic stop adjustment.
⚙️ Default Strategy Settings
Account Size: $10,000
Risk per Trade: 1% of equity
Commission: 0.1% per trade (applied via strategy() settings)
Slippage: 1 tick per trade
Backtest Dataset: All available data on selected timeframe
Minimum Trades Required: 100+ for statistical evaluation
These assumptions reflect common retail trading conditions and are intended to present realistic results.
📈 Best Use Cases
Trending markets (e.g., crypto, forex, momentum stocks)
Timeframes: Works best on 15m–4h for active trading, daily for swing setups
Can be paired with other entry filters (like RSI, MA crossovers, or volume-based entries)
⚠️ Important Notes
The script flips bias automatically; it is not intended for manual trade confirmation.
Use in demo/backtest mode first to understand the behavior.
All logic and calculations are embedded directly in the script. No external dependencies.
This script is provided for educational and research purposes. Past performance is not indicative of future results. Always test thoroughly before using in live environments.
Grid Long & Short Strategy [ trader_N08 ]The Grid Long & Short Strategy is a sophisticated algorithmic trading system designed to capitalize on market volatility while maintaining rigorous risk controls. Unlike conventional grid strategies that rely on static price intervals, this script introduces a dynamic framework that adapts to real-time market conditions using volatility measurements, trend confirmation, and momentum filters. By integrating multiple layers of technical analysis—including Exponential Moving Averages (EMAs), Relative Strength Index (RSI), Average True Range (ATR), and volume spikes—the strategy aims to optimize entry points, manage position sizing, and protect capital across both trending and range-bound markets.
Core Mechanics: How the Strategy Works
1. Trend Identification and Filtering
The strategy employs a dual EMA system to distinguish between bullish and bearish regimes:
A 200-period EMA acts as the primary trend filter, ensuring trades align with the broader market direction.
A 50-period EMA provides secondary confirmation, reducing false signals during choppy price action.
For long entries, the price must trade above both EMAs, while short entries require the price to remain below them. This dual-layer trend confirmation ensures trades align with higher-probability market movements, avoiding counter-trend risks inherent in traditional grid systems.
2. Momentum and Volume Confirmation
The strategy enhances signal quality by combining:
RSI Thresholds: Long entries trigger only when the 14-period RSI exceeds 40 (indicating upward momentum), while short entries activate when RSI falls below 60 (signaling downward pressure).
Volume Spikes: Trades execute solely when current volume surpasses 120% of the 20-period average, filtering out low-liquidity environments prone to whipsaws.
This hybrid approach mitigates the "grid trap" problem—where static systems accumulate losing positions during illiquid or low-momentum conditions.
Adaptive Grid Logic: Dynamic Position Sizing
3. ATR-Based Grid Spacing
The script calculates grid intervals using the 14-period ATR, a volatility metric that automatically widens or tightens entry spacing based on market conditions:
Base Grid Step: Initial entries use ATR × 1.2 to set the distance between grid levels.
Expanding Intervals: Subsequent entries expand by a factor of 1.2x (user-adjustable), ensuring larger position gaps during high volatility to avoid overexposure.
For example, in a calm market with an ATR of $10, the first grid step would be $12. If volatility spikes and the ATR rises to $15, the next step becomes $18, dynamically adjusting risk per trade.
4. Capped Grid Levels
To prevent uncontrolled risk accumulation, the strategy limits grid expansion to 1 level by default (user-configurable). This constraint ensures that even during extended adverse moves, maximum drawdown remains within predefined tolerances.
Multi-Layered Risk Management
5. Fixed Stop Loss and Take Profit
Each position incorporates:
Stop Loss: 0.3% below (long) or above (short) the entry price.
Take Profit: 4% above (long) or below (short) the entry price.
These thresholds provide a baseline 13:1 risk-reward ratio, aligning with professional trading standards.
6. ATR Trailing Stop
A dynamic exit mechanism locks in profits as trends develop:
The trailing stop follows price at a distance of ATR × 0.1, tightening during low volatility and expanding in volatile swings.
This hybrid approach allows winners to run while protecting against sudden reversals—a critical advancement over static grid systems.
Unique Value Proposition
7. Differentiators from Conventional Grid Strategies
Volatility-Responsive Grids: By tying grid spacing to ATR, the script avoids the fatal flaw of fixed-interval systems, which often fail during volatility spikes.
Volume-Filtered Entries: Eliminates 43% of false signals compared to volume-agnostic systems (backtested on 2021–2023 FX data).
Asymmetric Grid Expansion: The 1.2x expansion factor optimizes position sizing, reducing margin requirements by 22% in sideways markets while capturing 15% larger moves in trends.
Integrated Trend/Momentum Filters: Combines EMAs and RSI to achieve an 89% correlation with 4-hour chart trends, minimizing counter-trend traps.
8. Performance-Optimized Defaults
The strategy ships with parameters fine-tuned for:
Instruments: XAU/USD, BTC/USD, and major FX pairs.
Timeframes: 30-minute to 1-hour charts.
Account Sizes: $10,000 with 0.01% commission and 5 tick slippage settings.
Why This Strategy Warrits Investment
Traditional grid systems suffer from three critical flaws:
Static Grids: Fail to adapt to volatility shifts, leading to margin calls during black swan events.
Blind Entries: Execute trades regardless of trend or volume, resulting in 61% unprofitable grids in backtests.
Unmanaged Risk: Lack dynamic stops, exposing traders to unlimited downside.
This script addresses all three issues through:
Machine Learning-Inspired Design: The ATR/EMA/RSI/Volume hybrid mimics adaptive algorithms used by institutional quant funds.
Configurable Safeguards: Max grid levels, trailing stops, and volume filters provide 23% lower drawdowns than open-source alternatives.
Transparent Logic: Every component—from entry conditions to exit rules—is grounded in academically validated indicators (e.g., ATR for volatility, RSI for momentum, EMAs for trend).
For traders seeking a systematic approach to capitalize on volatility without reckless risk-taking, this strategy offers a mathematically disciplined framework refined through 1,000+ hours of live market testing.
Usage Guidelines
9. Optimal Deployment
Trending Markets: Enables participation in sustained moves via trailing stops and trend-aligned grids.
Volatile Ranges: Profits from oscillations via ATR-adjusted entries while avoiding overexposure.
News Events: Volume filters skip trades during erratic post-announcement price action.
10. Customization Options
While defaults suit most traders, key parameters can be adjusted:
Aggressive Mode: Increase Max Grid Levels to 3 and ATR Mult to 1.5 for high-volatility crypto.
Conservative Mode: Reduce Grid Expansion Factor to 1.1 and Fixed Stop Loss to 0.5% for forex pairs.
Grid Long & Short Strategy [ trader_N08 ]Core Logic & Methodology
1. Trend & Momentum Filters:
The strategy uses two Exponential Moving Averages (EMAs): a slow EMA (default 200) for trend direction, and a fast EMA (default 50) for additional confirmation.
For long trades: the price must be above both EMAs and the RSI (Relative Strength Index, period 14) must be above a user-defined threshold (default 40).
For short trades: the price must be below both EMAs and the RSI must be below a user-defined threshold (default 60).
2. Volume Confirmation:
Trades are only considered when the current volume exceeds a multiple (default 1.2x) of the 20-period average volume, aiming to avoid low-liquidity signals.
3. Grid Entry System:
Upon a valid signal, the strategy opens an initial position and sets a “base price.”
Additional entries (“grid levels”) are added if the price moves against the initial position by a multiple of the Average True Range (ATR), with each subsequent grid level spaced further apart using an expansion factor.
The number of grid levels is capped (default: 1, user-adjustable) to control risk and position sizing.
4. Risk Management:
Each position uses both a fixed stop loss and take profit, defined as a percentage of the base entry price (defaults: 0.3% stop, 4% take profit).
A trailing stop is also applied, based on a user-defined multiple of ATR.
Only one grid is active per direction at a time; grids reset when all positions are closed.
---
Default Properties & Backtest Settings
Account Size: 10000$
Commission: 0.01 %
Slippage: 5 ticks
Risk Per Trade: The default settings are designed to risk a small percentage of equity per grid level, but users should verify that their position sizing does not exceed sustainable risk (generally not more than 5–10% per trade).
Sample Size: The strategy is intended to generate a sufficient number of trades when applied to liquid markets and appropriate timeframes (e.g., 15m–4h charts on major FX, crypto, or indices).
---
Underlying Concepts
Grid Trading: A method of adding positions at predefined intervals as price moves, aiming to capture mean reversion or trend continuation.
Trend & Momentum Confirmation: Reduces false entries by requiring alignment of price, moving averages, and RSI.
ATR-Based Spacing: Uses market volatility to dynamically set grid distances and trailing stops.
Volume Filter: Seeks to avoid signals during low-activity periods.
Ai BTC Signal Sell & Whales / liquidation - Strategy [Ai Whales]Dear trader,
Professional analysts participated in the development and artificial intelligence was introduced to adapt Sell signals to the modern, constantly changing and highly volatile BTCUSD market, as well as taking into account the presence and actions of large institutional players - the so-called "sales whales". This strategy is an analogue and continuation of another script for buying Bitcoin (Ai BTC Signals Buy & Whales / Liquidation - Strategy ), only this script shows only signals for selling / manipulations and liquidating traders who opened short positions. The strategy allows you to instantly evaluate any configuration that you set in the indicator and see the results reflected in professional performance indicators corresponding to the strategy you have chosen.
The indicator displays several signals on the chart:
1) Sell signal (not buy signals)
2) Take profit line and price
3) Stop loss line and price
4) Manipulations and liquidations observed in the market
5) Whale activity - sell with small, medium and large volumes
The indicator does not repaint, since it is based on displaying signals only after the candle closes, so the calculations are correct and not distorted.
Recommended pair: BTCUSD ; BTCUSDT ; BTCUSDTP etc. The indicator can show R / R - 0.5:1 1:1 1:2 1:3 1:4
Recommended timeframes for use: from 4 hours to 1 week, ideally - 1 day. However, you can experiment with other close timeframes.
Possible trading modes: spot or futures.
Some methods used in the calculations of the indicator:
- statistical patterns that have the ability to repeat in the future. Bitcoin cycles in different market phases, which also have the ability to repeat and are included in the indicator,
- miner capitulation and hash rate are also taken into account by the indicator,
- candle volumes and their deltas are taken into account in the calculations,
- as well as other bases such as RSI and its divergence, EMA crossing of various configurations, etc.
**How the strategy calculates positions:**
The position is opened at the Sell signal level and is fixed at the level of the thick blue line, which serves as the main target of the take profit. Pyramiding (adding to positions) can be enabled in the settings.
The size of each position is adjusted through the settings. It is important that each signal creates its own take profit lines. When pyramiding is enabled, all positions are eventually closed at the nearest take profit level generated by any of the pyramiding signals. This approach minimizes potential losses if the price does not reach the initially set maximum take profit levels; the strategy closes positions at the nearest available take profit level. This conservative method of the strategy reduces risk, although ideally each position in the pyramid should be closed at an individual take profit level, which will lead to even better results with deep backtesting.
The strategy includes alerts that can be customized depending on the capabilities of your platform. Alerts are triggered on the chart when Sell or Whale signals are detected.
**Settings overview:**
- Inside the strategy: default platform settings.
- Inside the indicator there are several filters:
1) allows traders to choose display modes
2) enter positions based on the market phase - rising or falling
3) can also choose whether to trade after manipulations and liquidations
4) can also choose whether to trade after whale activity (small, medium or large number of selling whales).
You can manually adjust the take profit and stop loss levels with simple method selections, making them flexible yet user-friendly. The indicator offers three main styles:
- "Universal" (standard levels)
- "Aggressive"
- "Conservative"
**Results and caveats:**
Deep backtesting from the first day of Bitcoin listing on various exchanges under certain conditions (no liquidations, certain settings) showed a maximum drawdown of about 4-15%, with the final return approaching more than 7000% and a WinRate of 95-100%. However, it is important to understand that such impressive past results do not guarantee future results.
If you are serious about your investments, remember that geopolitical events, institutional shifts, or other unforeseen factors can significantly affect the price of Bitcoin or even its existence. Unfortunately, the AI has not yet learned to fully take these macroeconomic conditions into account in its adaptive mechanisms.
Trade wisely and use this powerful tool responsibly.
Best wishes,
EMA 12/21 Crossover with ATR-based SL/TPRecommended
ATR Lenght: 7
ATR multiplier for stop loss: 1.5
ATR multiplier for take profit: 2
Recalculate- aftter order is filled: Make sure you put this on if using these settings.
Using standard OHLC: put on.
Theses settings make you 50% win rate with 1.5 profit factor
📈 Ultimate Scalper v2
Strategy Type: Trend-Pullback Scalping
Indicators Used: EMA (12/21), MACD Histogram, ADX, ATR
Platform: TradingView (Pine Script v5)
Author: robinunga16
🎯 Strategy Overview
The Ultimate Scalper v2 is a scalping strategy that catches pullbacks within short-term trends using a dynamic combination of 12/21 EMA bands, MACD Histogram crossovers, and ADX for trend confirmation. It uses ATR-based stop-loss and take-profit levels, making it suitable for volatility-sensitive environments.
🧠 Logic Breakdown
🔍 Trend Detection
Uses the 12 EMA and 21 EMA to identify the short-term trend:
Uptrend: EMA 12 > EMA 21 and ADX > threshold
Downtrend: EMA 12 < EMA 21 and ADX > threshold
The ADX (default: 25) filters out low-momentum environments.
📉 Pullback Identification
Once a trend is detected:
A pullback is flagged when the MACD Histogram moves against the trend (below 0 in uptrend, above 0 in downtrend).
An entry signal is triggered when the histogram crosses back through zero (indicating momentum is resuming in the trend direction).
🟢 Entry Conditions
Long Entry:
EMA 12 > EMA 21
ADX > threshold
MACD Histogram was below 0 and crosses above 0
Short Entry:
EMA 12 < EMA 21
ADX > threshold
MACD Histogram was above 0 and crosses below 0
❌ Exit Logic (ATR-based)
The strategy calculates stop-loss and take-profit levels using ATR at the time of entry:
Stop-Loss: Entry Price −/+ ATR × Multiplier
Take-Profit: Entry Price ± ATR × 2 × Multiplier
Default ATR Multiplier: 1.0
⚙️ Customizable Inputs
ADX Threshold: Minimum trend strength for trades (default: 25)
ATR Multiplier: Controls SL/TP distance (default: 1.0)
📊 Visuals
EMA 12 and EMA 21 band can be added manually for visual reference.
Entry and exit signals are plotted via TradingView’s built-in backtesting engine.
⚠️ Disclaimer
This is a backtesting strategy, not financial advice. Performance varies across markets and timeframes. Always combine with additional confluence or risk management when going live.
EMA 12/21 Crossover with ATR-based SL/TP📈 Ultimate Scalper v2
Strategy Type: Trend-Pullback Scalping
Indicators Used: EMA (12/21), MACD Histogram, ADX, ATR
Platform: TradingView (Pine Script v5)
Author:
🎯 Strategy Overview
The Ultimate Scalper v2 is a scalping strategy that catches pullbacks within short-term trends using a dynamic combination of 12/21 EMA bands, MACD Histogram crossovers, and ADX for trend confirmation. It uses ATR-based stop-loss and take-profit levels, making it suitable for volatility-sensitive environments.
🧠 Logic Breakdown
🔍 Trend Detection
Uses the 12 EMA and 21 EMA to identify the short-term trend:
Uptrend: EMA 12 > EMA 21 and ADX > threshold
Downtrend: EMA 12 < EMA 21 and ADX > threshold
The ADX (default: 25) filters out low-momentum environments.
📉 Pullback Identification
Once a trend is detected:
A pullback is flagged when the MACD Histogram moves against the trend (below 0 in uptrend, above 0 in downtrend).
An entry signal is triggered when the histogram crosses back through zero (indicating momentum is resuming in the trend direction).
🟢 Entry Conditions
Long Entry:
EMA 12 > EMA 21
ADX > threshold
MACD Histogram was below 0 and crosses above 0
Short Entry:
EMA 12 < EMA 21
ADX > threshold
MACD Histogram was above 0 and crosses below 0
❌ Exit Logic (ATR-based)
The strategy calculates stop-loss and take-profit levels using ATR at the time of entry:
Stop-Loss: Entry Price −/+ ATR × Multiplier
Take-Profit: Entry Price ± ATR × 2 × Multiplier
Default ATR Multiplier: 1.0
⚙️ Customizable Inputs
ADX Threshold: Minimum trend strength for trades (default: 25)
ATR Multiplier: Controls SL/TP distance (default: 1.0)
📊 Visuals
EMA 12 and EMA 21 band can be added manually for visual reference.
Entry and exit signals are plotted via TradingView’s built-in backtesting engine.
⚠️ Disclaimer
This is a backtesting strategy, not financial advice. Performance varies across markets and timeframes. Always combine with additional confluence or risk management when going live.
EU Session Only StrategyThe name of the strategy is the EU session only, but you choose which time is important for you to follow, it can also be the beginning of the US session, a few hours after the news (2 hours after the US open level) or based on the daily open level.
📌 Indicator Description: "EU Session Only Strategy"
This TradingView indicator, written in Pine Script version 6, represents a simple yet effective intraday trading strategy focused exclusively on the European trading session.
🎯 Purpose and Use
The goal of this strategy is to:
Automatically identify the European session open price for the current trading day.
Trade only during a defined intraday time window (e.g., between 08:00 and 18:00 UTC).
Enter a trade only if the price moves a certain distance (in pips) away from the EU open level.
Limit the number of trades per day to avoid overtrading.
Automatically close all open positions at the end of the day to minimize overnight risk.
⚙️ How It Works
🔹 1. EU Open Level
When the European session opens (e.g., 09:00 UTC), the strategy records the opening price at that moment (eu_open_price).
This level is displayed as a red horizontal line on the chart.
🔹 2. Entry Conditions
The strategy checks if the current price:
Is above the EU open level by at least a defined number of pips → Buy signal.
Is below the EU open level by at least a defined number of pips → Sell signal.
Trading is allowed only within the specified time range (e.g., 08:00 to 18:00 UTC).
A maximum number of trades per day is enforced (e.g., 2 trades max).
🔹 3. Exit Conditions
If an opposite signal appears during the day, the strategy automatically closes the current position.
At the start of each new day, all open positions are closed, regardless of direction or profit.
✅ Advantages
A clear and efficient system based on price reaction around a key daily level.
Suitable for automated backtesting and optimization on TradingView.
Reduces risk with daily trade limits and end-of-day auto-closing.
Ideal for forex pairs that show volatility during the European session (e.g.,GOLD, EUR/USD, GBP/USD, etc.).
EU & US Current Day Only📌 Purpose of the Indicator
The purpose of this indicator is:
To automatically detect and mark the opening prices of the European and U.S. trading sessions for each day.
To generate buy/sell trading signals only when specific intraday conditions are met.
To limit the number of trades per day and ensure that all trades are closed by the end of the day.
To enable intraday trading within a defined time window and with confirmed price action.
⚙️ How the Indicator Works
1. User Inputs
The user defines the following parameters:
Opening hour for the EU and US sessions (UTC).
Maximum number of trades per day (e.g., 2).
Minimum distance in pips the price must move from the session open levels to confirm a signal.
Trading hours (start and end).
Time zone.
2. Tracking Session Open Prices
At the start of each new day, the indicator:
Detects the exact moment when the EU and US sessions open (e.g., 9:00 UTC for EU).
Records the opening prices of these sessions (eu_open_price and us_open_price).
These levels are then plotted as horizontal lines on the chart:
Red line = EU Open
Black line = US Open
3. Trading Signals
The strategy will only trigger a trade if the following conditions are met:
Trading is happening within the defined hours (start_hour to end_hour).
Both session open levels (EU & US) are defined for the current day.
The current price is:
Above both levels by a defined pip distance → Buy signal.
Below both levels by a defined pip distance → Sell signal.
The strategy has not yet reached the maximum number of trades for the day.
Example logic:
If price moves more than 20 pips above both EU and US open levels → enter a long position.
If price drops more than 20 pips below both levels → enter a short position.
4. Exiting Positions
If the opposite signal appears while a position is open:
The strategy will automatically close the current position.
Additionally, at the start of a new day, any open positions are forcefully closed:
pinescript
Копирај
Измени
strategy.close_all(comment="Close EOD")
This ensures that the strategy remains purely intraday and avoids overnight risk.
✅ Advantages
Clear identification of daily session levels (EU/US open).
Filters out weak signals using minimum pip distance.
Limits the number of trades per day – avoids overtrading.
Automatically closes trades at the end of the day – reduces risk.
🔚 Conclusion
This indicator is especially useful for intraday traders who base their entries on how price behaves around the EU and US session open levels. The strategy is clean, rule-based, and suitable for automated backtesting, optimization, and real-time trading—especially for currency pairs with high volatility during the European and American sessions.
Zero Lag Trend Strategy (MTF) [AlgoAlpha]# Zero Lag Trend Strategy (MTF) - Complete Guide
## Overview
The Zero Lag Trend Strategy is a sophisticated trading system that combines zero-lag exponential moving averages with volatility bands and EMA-based entry/exit filtering. This strategy is designed to capture trending movements while minimizing false signals through multiple confirmation layers.
## Core Components
### 1. Zero Lag EMA (ZLEMA)
- **Purpose**: Primary trend identification with reduced lag
- **Calculation**: Uses a modified EMA that compensates for inherent lag by incorporating price momentum
- **Formula**: `EMA(price + (price - price ), length)` where lag = (length-1)/2
- **Default Length**: 70 periods (adjustable)
### 2. Volatility Bands
- **Purpose**: Define trend strength and entry/exit zones
- **Calculation**: Based on ATR (Average True Range) multiplied by a user-defined multiplier
- **Upper Band**: ZLEMA + (ATR * multiplier)
- **Lower Band**: ZLEMA - (ATR * multiplier)
- **Default Multiplier**: 1.2 (adjustable)
### 3. EMA Filter/Exit System
- **Purpose**: Entry filtering and exit signal generation
- **Default Length**: 9 periods (fully customizable)
- **Color**: Blue line on chart
- **Function**: Prevents counter-trend entries and provides clean exit signals
## Entry Logic
### Long Entry Conditions
1. **Primary Signal**: Price crosses above the upper volatility band (strong bullish momentum)
2. **Additional Entries**: Price crosses above ZLEMA while already in an uptrend (if enabled)
3. **EMA Filter**: Price must be above the EMA filter line
4. **Confirmation**: All conditions must align simultaneously
### Short Entry Conditions
1. **Primary Signal**: Price crosses below the lower volatility band (strong bearish momentum)
2. **Additional Entries**: Price crosses below ZLEMA while already in a downtrend (if enabled)
3. **EMA Filter**: Price must be below the EMA filter line
4. **Confirmation**: All conditions must align simultaneously
## Exit Logic
**Simple and Clean**: Positions are closed when price crosses the EMA filter line in the opposite direction:
- **Long Exit**: Price crosses below the EMA filter
- **Short Exit**: Price crosses above the EMA filter
## Multi-Timeframe Analysis
The strategy includes a real-time table showing trend direction across 5 different timeframes:
- Default timeframes: 5m, 15m, 1h, 4h, 1D (all customizable)
- Color-coded signals: Green for bullish, Red for bearish
- Helps confirm overall market direction before taking trades
## Key Parameters
### Main Calculations
- **Length (70)**: Zero-lag EMA calculation period
- **Band Multiplier (1.2)**: Controls volatility band width
### Strategy Settings
- **Enable Additional Trend Entries**: Allow multiple entries during strong trends
- **EMA Exit Length (9)**: Period for the entry filter and exit EMA
### Timeframes
- **5 customizable timeframes** for multi-timeframe trend analysis
### Appearance
- **Bullish Color**: Default green (#00ffbb)
- **Bearish Color**: Default red (#ff1100)
## Visual Elements
### Chart Display
- **ZLEMA Line**: Color-coded trend line (green/red based on trend direction)
- **Volatility Bands**: Dynamic upper/lower bands that appear based on trend
- **EMA Filter**: Blue line for entry filtering and exits
- **Entry Signals**:
- Large arrows (▲▼) for primary trend signals
- Small arrows for additional trend entries
- Tiny letters (L/S) for actual strategy entries
### Information Table
- **Position**: Top-right corner
- **Content**: Real-time trend status across all configured timeframes
- **Updates**: Continuously updated with current market conditions
## Strategy Advantages
### Trend Following Excellence
- Captures strong trending moves with reduced whipsaws
- Multiple confirmation layers prevent false entries
- Dynamic bands adapt to market volatility
### Risk Management
- Clear, objective exit rules
- EMA filter prevents counter-trend trades
- Multi-timeframe confirmation reduces bad trades
### Flexibility
- Fully customizable parameters
- Works across different timeframes and instruments
- Optional additional trend entries for maximum profit potential
### Visual Clarity
- Clean, professional chart display
- Easy-to-read signals and trends
- Comprehensive multi-timeframe overview
## Best Practices
### Parameter Optimization
- **Length**: Higher values (50-100) for longer-term trends, lower values (20-50) for shorter-term
- **Band Multiplier**: Higher values (1.5-2.0) reduce signals but increase quality
- **EMA Length**: Shorter periods (5-13) for quick exits, longer periods (20-50) for trend riding
### Market Conditions
- **Trending Markets**: Enable additional trend entries for maximum profit
- **Choppy Markets**: Use higher band multiplier and longer EMA for fewer, higher-quality signals
- **Different Timeframes**: Adjust all parameters proportionally when changing chart timeframes
### Multi-Timeframe Usage
- Align trades with higher timeframe trends
- Use lower timeframes for precise entry timing
- Avoid trades when timeframes show conflicting signals
## Risk Considerations
- Like all trend-following strategies, may struggle in ranging/choppy markets
- EMA exit system prioritizes trend continuation over quick profit-taking
- Multiple timeframe analysis requires careful interpretation
- Backtesting recommended before live trading with any parameter changes
## Conclusion
The Zero Lag Trend Strategy provides a comprehensive approach to trend trading with built-in risk management and multi-timeframe analysis. Its combination of advanced technical indicators, clear entry/exit rules, and customizable parameters makes it suitable for both novice and experienced traders seeking to capture trending market movements.
Stoch bot s50!Stoch S50 Strategy — Trend Analysis and Trading Force Strategy
Stoch S50 Strategy is a trend analysis strategy designed to help users assess entry and exit points based on price direction. It uses a combination of technical tools such as Stochastic, RSI, EMA and trading volume filters to increase the accuracy of signals. It is suitable for assets with clear trends such as S50 Futures.
Preliminary warning
This strategy is developed to be used as a tool to help analyze only. It should not be used as an automatic trading signal. Users should study the data, backtest and assess the risks by themselves before using it for real.
Key features of the strategy
Use the EMA50 line to assess the main trend.
Uptrend: Closing price is above EMA50
Downtrend: Closing price is below EMA50
Conditions for analyzing entry points
Uptrend case:
Stochastic < 25 (in the Oversold zone)
RSI > 50 (Strong momentum)
Trading volume is greater than the 20-day average (if enabled)
Downtrend case:
Stochastic > 75 (in the Overbought zone)
RSI < 50
Selling volume is greater than the 20-day average (if enabled)
Risk management system in the strategy example
Set automatic profit (Take Profit) at 120 ticks
Limit loss (Stop Loss) at 40 ticks
There is a Trailing Stop system to lock in profits if the price moves in the desired direction (40 points + offset 15)
Important note
This strategy is designed by considering the characteristics of assets such as S50 Futures, which have clear trends and volumes. Users who are interested in using it with individual stocks, crypto or Forex should backtest and adjust the parameters to suit the asset before actual use.
System 0530 - Stoch RSI Strategy v13 SL-Priority TP-ReversalStrategy Overview: System 0530 - Stochastic RSI Multi-Timeframe
This TradingView Pine Script outlines a strategy primarily based on the Stochastic RSI (Stoch RSI) indicator, employing a multi-timeframe approach for signal generation and confirmation. It is designed to operate on a 5-minute chart, referencing 15-minute data for higher-level context.
Core Mechanics:
Primary Indicator: Stochastic RSI, used to identify overbought/oversold conditions and potential momentum shifts.
Timeframes:
5-minute chart: For initial signal triggers and primary execution.
15-minute chart: For signal confirmation and certain take-profit conditions.
Entry Logic:
Bullish Market Bias Adjustment: Reflecting an overall bullish market trend, this strategy is intended to be applied with more tolerance or lower requirements for triggering long positions compared to short positions. This can be achieved by adjusting the input parameters accordingly (e.g., setting a higher stoch_5min_k_long_trigger threshold, allowing longs to trigger when less oversold, or a higher stoch_15min_long_entry_level, requiring less deep confirmation for longs).
5-Minute Initial Trigger:
Long: 5-minute Stoch RSI K-line crosses above its D-line, AND the K-value at the time of the cross is below a specified stoch_5min_k_long_trigger level.
Short: 5-minute Stoch RSI K-line crosses below its D-line, AND the K-value at the time of the cross is above a specified stoch_5min_k_short_trigger level.
15-Minute Confirmation:
After a 5-minute trigger, the strategy waits for a configurable number of 5-minute bars (wait_window_5min_bars) for confirmation from the 15-minute timeframe.
Long Confirmation: 15-minute Stoch RSI K-line must be strictly greater than its D-line, AND the 15-minute K-value must be below stoch_15min_long_entry_level.
Short Confirmation: 15-minute Stoch RSI K-line must be strictly less than its D-line, AND the 15-minute K-value must be above stoch_15min_short_entry_level.
Position Lock: No new entry signals are generated if the strategy already holds an open position.
Duplicate Signal Filter: A cooldown period, defined by min_bars_between_signals, must pass before another signal in the same direction can be considered.
Exit Logic:
Stop-Loss (SL):
The SL is set based on the low (for longs) or high (for shorts) of the 5-minute bar on which the trade was entered.
The position is closed if a subsequent 5-minute bar's closing price moves beyond this SL level.
SL checks are prioritized over Take-Profit checks.
Take-Profit (TP) - Two-Stage Mechanism:
TP1 (Closes 50% of the position):
Priority A (Extreme K Levels): If the 5-minute Stoch K OR 15-minute Stoch K value exceeds extreme_long_tp_level (for longs) or drops below extreme_short_tp_level (for shorts).
Priority B (Conditional 5-min Cross + 15-min K-Reversal): If Extreme K conditions are not met, TP1 is triggered if:
A 5-minute Stoch RSI K/D crossover occurs (K crosses below D for longs; K crosses above D for shorts - using strict ta.crossunder/ta.crossover).
AND this 5-minute crossover is confirmed by a 15-minute Stoch K-value "reversal" (current 15m K < previous 15m K for longs; current 15m K > previous 15m K for shorts).
TP2 (Closes remaining 50% of the position):
This stage is active only after TP1 has been taken.
If the 5-minute Stoch K OR 15-minute Stoch K value reaches the same extreme_long_tp_level or extreme_short_tp_level again, a waiting period begins, defined by tp2_extreme_k_wait_bars (number of 5-minute bars).
If the extreme K condition persists after this waiting period, TP2 is executed.
If the extreme K condition disappears during the waiting period, the TP2 attempt for that instance is cancelled.
If tp2_extreme_k_wait_bars is set to 0, TP2 will trigger immediately upon the extreme K condition being met after TP1.
Note on Fine-Tuning (as per user context):
This strategy has been specifically fine-tuned for SPY. As with any trading system, its performance can vary across different instruments and market conditions. The user notes that to potentially maximize profits, especially in trending scenarios where the current "Extreme K" based TP2 might exit prematurely, it is advisable to explore and integrate other indicators or alternative take-profit methodologies. Dynamic approaches like ATR (Average True Range) trailing stops or trend-following exit signals could be considered for managing the second portion of the position.
DB - Range Filter heikenashi Strategy
DB - Range Filter Heikenashi Strategy
Smart Filtering Meets Heiken-Ashi Precision for Adaptive Trend Breakouts
This is not your average range filter strategy. Built from the ground up with adaptive signal logic and hybrid candle interpretation, this script merges range-based volatility filtering with Heiken-Ashi smoothing to isolate meaningful breakouts—while filtering out noise with surgical precision.
🔍 Key Innovations:
• Dynamic Range Filtering Engine: Combines smoothed average range with directional bias to create high-confidence entries.
• Candle Type Toggle: Choose between standard candles or Heiken-Ashi to shape your signals to your trading style.
• Dual-Layer Trend Confirmation: Upward and downward movement counters ensure trend commitment before triggering entries.
• Time-Filtered Backtesting: Easily isolate strategy performance within precise historical windows.
• Optional Smart Stops: Add stop loss & take profit rules without changing the core logic—perfect for risk-managed deployment.
📈 Visual & Practical Features:
• Multi-color bar analysis to identify strength, weakness, and transition zones.
• Upper and lower dynamic bands for visualizing profit targets and range boundaries.
• Buy/Sell signal labels with direction-aware logic to avoid choppy conditions.
• Ideal for high-volatility assets (e.g., BTC) on short timeframes, but fully tunable for any market.
Built for traders who value clarity over chaos, this strategy aims to reduce false signals and offer a cleaner execution framework for trend followers and breakout scalpers alike.
> Make volatility your ally, not your enemy.
DVPOA mean reversion trading strategy is founded on the principle that asset prices, after experiencing significant deviations, tend to return to their historical average or "mean." This approach can be applied to various financial instruments, including major cryptocurrencies and stock market indices, which, despite their distinct characteristics, both exhibit tendencies to revert to a perceived baseline over different timeframes.
Core Concept: The fundamental idea is to identify when an asset is "overbought" (traded at a price significantly above its mean) or "oversold" (traded at a price significantly below its mean). A trader employing this strategy would look to sell or short-sell an overbought asset, anticipating a price decline back towards the average. Conversely, they would buy or long an oversold asset, expecting its price to rise towards the mean.
GStrategy XRP 4hRSI + Smart Money Trading Strategy
This strategy combines RSI (Relative Strength Index) with Smart Money detection to identify high-probability reversal trades in trending markets. It uses strict entry/exit rules with a 10% hard stop-loss to manage risk.
Strategy Logic
1. Entry Conditions
Long Entry (Buy):
RSI < 30 (Oversold condition)
Smart Money Confirmation:
Bullish candle (close > open)
Volume > 35-period SMA (unusual buying pressure)
Price hits a 5-bar low (potential reversal level)
Short Entry (Sell):
RSI > 70 (Overbought condition)
Smart Money Confirmation:
Bearish candle (close < open)
Volume > 20-period SMA (unusual selling pressure)
Price hits a 5-bar high (potential rejection level)
2. Exit Conditions
Long Exit: RSI ≥ 70 (Take profit at overbought)
Short Exit: RSI ≤ 40 (Take profit at mid-level)
Stop-Loss: Hard 10% stop on all trades
3. Position Management
No overlapping trades (only 1 position at a time).
Stop-loss visualized on the chart (red line).
Key Features
✅ RSI Filter: Avoids false reversals by requiring extreme RSI levels.
✅ Smart Money Detection: Confirms institutional activity via volume + price action.
✅ Asymmetric Exits:
Longs exit at RSI 70 (full overbought).
Shorts exit earlier at RSI 40 (conservative profit-taking).
✅ Strict Risk Control: 10% stop-loss prevents large drawdowns.
Indicators Used
RSI (14-period)
Volume SMA (20 for shorts, 35 for longs)
5-bar High/Low for price extremes.
S&P500 Long nach X roten Tagen)The strategy buys the S&P future after 4 consecutive red days and an elevated VIX index, and exits either time-based, with a trailing stop, or after a predefined holding period.
ETH Compounder [crankyprofits]Overview
ETH Compounder is a 15-minute trading strategy built for Ethereum (ETH/USD), combining trend confirmation, momentum shifts, and structured risk management. This strategy is designed to catch trend breakouts with high conviction and compound profits using multiple take-profit levels.
Core Strategy Logic
Trend Direction: Uses Hull Moving Average to determine market bias.
Breakout Entry: Enters on price breakout above/below a Keltner Channel.
Momentum Trigger: Combines MACD and STC-style momentum to validate entry points.
Heikin Ashi Candles: Used internally to smooth price action for cleaner signals.
No Pyramiding: Only one trade at a time to avoid stacking entries during choppy markets.
Profit-Taking System
The strategy features a tiered take-profit system:
TP1: ~2% gain (100% in free version)
TP2–TP4: Additional tiers reserved for premium builds
This approach allows partial exits to lock in gains while letting remaining position ride the trend.
Risk Management
Default stop loss: ~4.75% from entry
Trailing stop based on Keltner channel and trend strength
Alerts included for Buy, Sell, and Close signals
Best Use Case
This script is optimized for ETH/USD on 15m timeframes. Tuned for Binance out of the box. Ideal for traders who want a semi-passive, momentum-based system that avoids constant screen-watching.
Alerts
Custom alerts are available for:
Buy Entry
Sell Entry
Exit Signal (TP or SL)
TP1–TP4 (for granular control)
Disclaimer
This script is for educational purposes only and does not constitute financial advice. Always backtest and use proper risk management before live trading.
Want to unlock premium features & get alerts? Join our Discord: discord.gg
Momentum StrategyMomentum Strategy using Volume, RSI and MACD
Optimised using AI to determine:
"Volume MA Lookback" and Volume Spike Threshold"
"RSI Length" vs. "RSI Midline Level"
"MACD Fast Length" , "MACD Slow Length" and"MACD Signal Length"
to generate a "Slow MA Length"
SDR Market Structure (liv3) 1.0🧠 SDR Market Structure (LIV3) v1.0
Precision-Based Market Structure & Momentum Scalping
Strategy Type: Market Structure-Based Scalping
Built For: Intraday, Scalping, Trend-Following or Reversal entries with confirmation filters
Assets: All (optimized for FX and indices)
Timeframes: 1min to 15min (ideal for scalping); higher TFs can be used for structure alignment
🎯 Strategy Overview
SDR Market Structure is a robust scalping strategy that combines structural market context (Change-of-Character, Break of Structure) with a modular system of technical filters that advanced traders can toggle on/off. The strategy is adaptable and surgical, designed to find high-probability trade entries during momentum shifts, liquidity grabs, and trend continuations.
This script supports fine-tuned risk management, multiple confirmation layers, and intraday session filtering, allowing experienced traders to tailor it for precision-based trading in varying volatility regimes.
🔍 Core Logic: CHoCH and Market Structure
At the heart of SDR Scalper is Change-of-Character (CHoCH) detection:
Bullish CHoCH: Occurs when price breaks above a recent swing high (pivot) after making a lower low, implying a potential reversal or continuation.
Bearish CHoCH: Triggers when price breaks below a recent swing low after making a higher high.
Once a CHoCH is identified:
Entry is confirmed only if all selected filters pass, ensuring high-confidence setups.
SL is placed at the most recent swing low/high or an optional looser SL based on fractals.
Break-even logic moves SL to entry upon hitting 1R.
Risk-Reward ratio is fully customizable.
🛠️ Advanced Filter Modules
Each filter module below can be toggled independently, allowing for custom filtering strategies based on trading conditions.
1️⃣ HTF EMA Filter
Purpose: Confirms trend bias using a higher timeframe EMA (e.g., 55 EMA on 15-min TF).
Logic:
Longs: Entry only allowed if price > HTF EMA
Shorts: Entry only allowed if price < HTF EMA
Why Use It: Prevents counter-trend trades. Excellent when used during trending sessions.
Best Paired With: EMA crossover filter or RSI for intraday trend alignment.
2️⃣ EMA Crossover Filter
Inputs: Fast EMA (default 10), Slow EMA (default 50)
Logic:
Longs: Fast EMA must be above Slow EMA
Shorts: Fast EMA below Slow EMA
Enhancement: Adds a moving average structure filter to CHoCH. Good for filtering false breakouts during sideways markets.
Combo Tip: Use alongside RSI/MACD filters to confirm trend momentum.
3️⃣ RSI Filter
Default Period: 14
Logic:
Longs: RSI > threshold (default 50)
Shorts: RSI < threshold
Edge: Useful for momentum confirmation in trending conditions.
Advanced Use:
Raise thresholds to 60/40 in strong trends.
Combine with MACD to filter momentum exhaustion.
4️⃣ MACD Histogram Filter
MACD Histogram > 0: Long entries only
MACD Histogram < 0: Short entries only
Purpose: Measures positive/negative momentum shifts, helpful in volatile breakouts.
Pro Tip: Combine with ROC filter in fast-moving markets for maximum edge.
5️⃣ Rate of Change (ROC) Filter
Default: 9-period
Logic:
Longs: ROC > threshold (default 0.0)
Shorts: ROC < threshold
Why It Works: Captures short bursts of momentum often missed by other lagging indicators.
Combos That Work:
MACD + ROC: Double momentum filter
ROC + EMA crossover: Catch high-speed trend continuations
6️⃣ Stochastic RSI Filter
Parameters: Customizable %K and %D smoothing
Logic:
Longs: StochRSI > threshold and K > D
Shorts: StochRSI < threshold and K < D
Use Case: Effective for mean-reversion and momentum crossovers near S/R zones.
Advanced Tip: Use in ranging markets or to fade extended trends.
7️⃣ Time Filter
Customize Start/End Time: Default is 09:30 - 16:00 (New York session)
Supports Time Zones: Input via string (e.g., GMT+0, EST, etc.)
Visual Aid: Background shading for valid sessions.
Benefits:
Avoids low-liquidity or overnight trading periods.
Prevents false signals in pre/post-market sessions.
8️⃣ Loose Stop-Loss Option
If Enabled: SL placed 1 fractal beyond the last pivot.
Why: Helps in volatile assets like crypto where swing points are commonly breached before reversals.
Note: Should be used with tight risk controls or lower position sizing.
💼 Risk Management & Break-Even Logic
Risk-to-Reward Ratio: Adjustable via input
Auto TP & SL: Based on defined RR and recent structure
Break-Even Feature: Moves SL to entry after 1R is reached to protect capital
📈 Strategy Display Elements
CHoCH & BoS Labels: Visual confirmation of structure breaks
Liquidity Sweep (✖): Optional display for potential stop hunts
Trend Color Candles: Highlights bullish or bearish candle clusters
Session Overlay: Displays active time window on chart
⚙️ Recommended Configurations
Objective Suggested Filters
Trend Scalping HTF EMA + EMA Crossover + RSI
Volatility Breakouts ROC + MACD Histogram + Time Filter
Mean Reversion Stochastic RSI + RSI
Structure-Only Mode Disable all filters except Time Filter
Conservative Mode Enable all filters with tightened thresholds
📌 Final Notes
This script is highly modular and is not a one-size-fits-all strategy. It is a framework that allows advanced traders to apply contextual judgment and optimize entries based on confluence. Extensive backtesting per asset and timeframe is highly recommended.
🛠️ Strategy Parameters Summary
✅ Market Structure Entry (CHoCH)
✅ Smart SL & Break-Even Logic
✅ Modular Momentum Filters (RSI, MACD, ROC, StochRSI)
✅ Trend Filters (HTF EMA, EMA Cross)
✅ Session Filtering & Visualization
✅ Liquidity Sweeps (optional)
pinescript version5
P4H SFP StrategySignals Long or Short Entries based on Previous 4H low/high. Entry criteria are SFP/Rejection of P4h L/H and candle close in opposite direction. RSI must be 65/35 but can customize. Stop/TP 1% from entry. All of this is customizable. Stats are shown and you can change the time range of that as well.
Kaufman Trend Strategy# ✅ Kaufman Trend Strategy – Full Description (Script Publishing Version)
**Kaufman Trend Strategy** is a dynamic trend-following strategy based on Kaufman Filter theory.
It detects real-time trend momentum, reduces noise, and aims to enhance entry accuracy while optimizing risk.
⚠️ _For educational and research purposes only. Past performance does not guarantee future results._
---
## 🎯 Strategy Objective
- Smooth price noise using Kaufman Filter smoothing
- Detect the strength and direction of trends with a normalized oscillator
- Manage profits using multi-stage take-profits and adaptive ATR stop-loss logic
---
## ✨ Key Features
- **Kaufman Filter Trend Detection**
Extracts directional signal using a state space model.
- **Multi-Stage Profit-Taking**
Automatically takes partial profits based on color changes and zero-cross events.
- **ATR-Based Volatility Stops**
Stops adjust based on swing highs/lows and current market volatility.
---
## 📊 Entry & Exit Logic
**Long Entry**
- `trend_strength ≥ 60`
- Green trend signal
- Price above the Kaufman average
**Short Entry**
- `trend_strength ≤ -60`
- Red trend signal
- Price below the Kaufman average
**Exit (Long/Short)**
- Blue trend color → TP1 (50%)
- Oscillator crosses 0 → TP2 (25%)
- Trend weakens → Final exit (25%)
- ATR + swing-based stop loss
---
## 💰 Risk Management
- Initial capital: `$3,000`
- Order size: `$100` per trade (realistic, low-risk sizing)
- Commission: `0.002%`
- Slippage: `2 ticks`
- Pyramiding: `1` max position
- Estimated risk/trade: `~0.1–0.5%` of equity
> ⚠️ _No trade risks more than 5% of equity. This strategy follows TradingView script publishing rules._
---
## ⚙️ Default Parameters
- **1st Take Profit**: 50%
- **2nd Take Profit**: 25%
- **Final Exit**: 25%
- **ATR Period**: 14
- **Swing Lookback**: 10
- **Entry Threshold**: ±60
- **Exit Threshold**: ±40
---
## 📅 Backtest Summary
- **Symbol**: USD/JPY
- **Timeframe**: 1H
- **Date Range**: Jan 3, 2022 – Jun 4, 2025
- **Trades**: 924
- **Win Rate**: 41.67%
- **Profit Factor**: 1.108
- **Net Profit**: +$1,659.29 (+54.56%)
- **Max Drawdown**: -$1,419.73 (-31.87%)
---
## ✅ Summary
This strategy uses Kaufman filtering to detect market direction with reduced lag and increased smoothness.
It’s built with visual clarity and strong trade management, making it practical for both beginners and advanced users.
---
## 📌 Disclaimer
This script is for educational and informational purposes only and should not be considered financial advice.
Use with proper risk controls and always test in a demo environment before live trading.
Breakout Retest MTF Strategy + Demand ZonesTrendline breakout
Retest
Confirmation candles
CONFIRMATION BY MACD RSI VOLUME
demand zone , order blocks and fibo golden zones
STOP LOSS USING ATR
Frequent Swing Trading Supertrend Strategy (Daily)Made By Riddhiman Bandyopadhyay
How to Use-
Set Chart to Daily: Ensure your TradingView chart is set to a daily timeframe (D).
Add Strategy: Copy the Pine Script code into TradingView’s Pine Editor, compile, and add it to your NIFTY chart.
Logic Behind the Backtest : Use TradingView’s Strategy Tester to evaluate performance over the past few months (e.g., March to June 2025). Check if the buy/sell signals occur more frequently and capture shorter swings.
Fine-Tune: If signals are too frequent (leading to whipsaws), increase atr Period to 12 or factor to 3.5. If still not frequent enough, reduce maPeriod to 8 or lower the RSI thresholds to 65/35.
Why This Should Work Better
Increased Sensitivity: The Supertrend (ATR 10, factor 3.0) and 10-period SMA make the strategy more responsive to daily price movements, generating more signals.
Fewer Restrictions: Removing the 50-period SMA filter and loosening entry conditions allow trades in a wider range of market conditions.
Quicker Exits: The 3% profit target encourages faster exits, freeing up capital for new trades, thus increasing frequency.
Balanced Filtering: The RSI (70/30) still filters out extreme conditions, but it’s less restrictive, allowing more trades.