DNSE VN301!, ADX Momentum StrategyDiscover the tailored Pine Script for trading VN30F1M Futures Contracts intraday.
This strategy applies the Statistical Method (IQR) to break down the components of the ADX, calculating the threshold of "normal" momentum fluctuations in price to identify potential breakouts for entry and exit signals. The script automatically closes all positions by 14:30 to avoid overnight holdings.
www.tradingview.com
Settings & Backtest Results:
- Chart: 30-minute timeframe
- Initial capital: VND 100 million
- Position size: 4 contracts per trade (includes trading fees, excludes tax)
- Backtest period: Sep-2021 to Sep-2025
- Return: over 270% (with 5 ticks slippage)
- Trades executed: 1,000+
- Win rate: ~40%
- Profit factor: 1.2
Default Script Settings:
Calculates the acceleration of changes in the +DI and -DI components of the ADX, using IQR to define "normal" momentum fluctuations (adjustable via Lookback period).
Calculates the difference between each bar’s Open and Close prices, using IQR to define "normal" gaps (adjustable via Lookback period).
Entry & Exit Conditions:
Entry Long: Change in +DI or -DI > Avg IQR Value AND Close Price > Previous Close
Exit Long: (all 4 conditions must be met)
- Change in +DI or -DI > Avg IQR Value
- RSI < Previous RSI
- Close–Open Gap > Avg IQR Gap
- Close Price < Previous Close
Entry Short: Change in +DI or -DI > Avg IQR Value AND Close Price < Previous Close
Exit Short: (all 4 conditions must be met)
- Change in +DI or -DI > Avg IQR Value
- RSI > Previous RSI
- Close–Open Gap > Avg IQR Gap
- Close Price > Previous Close
Disclaimers:
Trading futures contracts carries a high degree of risk, and price movements can be highly volatile. This script is intended as a reference tool only. It should be used by individuals who fully understand futures trading, have assessed their own risk tolerance, and are knowledgeable about the strategy’s logic.
All investment decisions are the sole responsibility of the user. DNSE bears no liability for any potential losses incurred from applying this strategy in real trading. Past performance does not guarantee future results. Please contact us directly if you have specific questions about this script.
Osciladores
RSI Momentum Trend MM with Risk Per Trade [MTF]This is a comprehensive and highly customizable trend-following strategy based on RSI momentum. The core logic identifies strong directional moves when the RSI crosses user-defined thresholds, combined with an EMA trend confirmation. It is designed for traders who want granular control over their strategy's parameters, from signal generation to risk management and exit logic.
This script evolves a simple concept into a powerful backtesting tool, allowing you to test various money management and trade management theories across different timeframes.
Key Features
- RSI Momentum Signals: Uses RSI crosses above a "Positive" level or below a "Negative" level to generate trend signals. An EMA filter ensures entries align with the immediate trend.
- Multi-Timeframe (MTF) Analysis: The core RSI and EMA signals can be calculated on a higher timeframe (e.g., using 4H signals to trade on a 1H chart) to align trades with the larger trend. This feature helps to reduce noise and improve signal quality.
Advanced Money Management
- Risk per Trade %: Calculate position size based on a fixed percentage of equity you want to risk per trade.
- Full Equity: A more aggressive option to open each position with 100% of the available strategy equity.
Flexible Exit Logic: Choose from three distinct exit strategies to match your trading style
- Percentage (%) Based: Set a fixed Stop Loss and Take Profit as a percentage of the entry price.
- ATR Multiplier: Base your Stop Loss and Take Profit on the Average True Range (ATR), making your exits adaptive to market volatility.
- Trend Reversal: A true trend-following mode. A long position is held until an opposite "Negative" signal appears, and a short position is held until a "Positive" signal appears. This allows you to "let your winners run."
Backtest Date Range Filter: Easily configure a start and end date to backtest the strategy's performance during specific market periods (e.g., bull markets, bear markets, or high-volatility periods).
How to Use
RSI Settings
- Higher Timeframe: Set the timeframe for signal calculation. This must be higher than your chart's timeframe.
- RSI Length, Positive above, Negative below: Configure the core parameters for the RSI signals.
Money Management
Position Sizing Mode
- Choose "Risk per Trade" to use the Risk per Trade (%) input for precise risk control.
- Choose "Full Equity" to use 100% of your capital for each trade.
- Risk per Trade (%): Define the percentage of your equity to risk on a single trade (only works with the corresponding sizing mode).
SL/TP Calculation Mode
Select your preferred exit method from the dropdown. The strategy will automatically use the relevant inputs (e.g., % values, ATR Multiplier values, or the trend reversal logic).
Backtest Period Settings
Use the Start Date and End Date inputs to isolate a specific period for your backtest analysis.
License & Disclaimer
© waranyu.trkm — MIT License.
This script is for educational purposes only and should not be considered financial advice. Trading involves significant risk, and past performance is not indicative of future results. Always conduct your own research and risk assessment before making any trading decisions.
- Trading Bot – Dynamic RSI (LITE) - Robot Strategy -1. General Concept and Philosophy
Dynamic RSI (LITE) strategy was designed for systematic traders, especially on short timeframes (1 to 5 minutes), who seek to capture trend reversal movements with a high degree of confirmation. The goal is not to follow the trend, but to identify precise entry points in oversold or overbought zones, and then to exit the position dynamically to adapt to changing market conditions.
The originality of TopBot Dynamic RSI lies not in a single indicator, but in the intelligent fusion of several concepts:
Dynamic RSI bands for both entries and exits .
A triple confirmation filter to secure trade entries.
A design that is ready for automation .
2. Originality at the Core of the Strategy: Key Features
Dynamic Exits on RSI Bands: This is a main original feature of this script. Unlike traditional strategies that use fixed Take-Profits and Stop-Losses, this one uses an exit RSI band. This allows the strategy to:
Adapt to Volatility: In a volatile market, the exit band will move further away, allowing for the capture of larger moves. In a ranging market, it will tighten to secure smaller gains.
Optimize Profits: The exit occurs when momentum genuinely fades, not at an arbitrary price level, thus maximizing the potential of each trade.
Triple Confirmation Filter for Precise Entries: To avoid false signals, each entry is validated by the convergence of three distinct conditions:
The base signal is generated when the price reaches an overbought or oversold zone, materialized by an RSI band calculated directly on the chart.
The WaveTrend oscillator must also be in an extreme zone, confirming that the short-term momentum is ready for a reversal.
Finally, the StochRSI must validate that the RSI itself is in an overbought or oversold condition, adding an extra layer of security.
"Automation Ready" Design: The strategy was developed with automation in mind.
Compatible Alert Messages: Messages for entries and exits (Long/Short) are formatted to be compatible with automated trade execution platforms.
3. Detailed Operation
Entry Logic: A position is opened only if the following three conditions are met:
The market price touches (or closes below/above) the entry RSI band (lower for a buy, upper for a sell).
The WaveTrend indicator is in the oversold zone (for a buy) or overbought zone (for a sell).
The Stochastic RSI indicator is also in the oversold zone (for a buy) or overbought zone (for a sell).
The order is placed as a limit order on the RSI band, allowing for execution at the best possible price.
Exit Logic: The primary exit is dynamic.
For a Long position, the trade is closed when the price reaches the upper exit RSI band.
For a Short position, the trade is closed when the price reaches the lower exit RSI band.
The dynamic exit is the default management mechanism of the strategy.
4. Ease of Use and Display
Despite its internal complexity, the strategy is designed to be user-friendly :
Integrated Display: Key performance information is displayed in clean and discreet tables directly on the chart, allowing you to see the strategy's results at a glance.
Disclaimer
This strategy provides signals based on past market conditions. Past performance is not indicative of future results. Trading involves risk, and it is the responsibility of each user to manage their risk appropriately. It is strongly recommended to conduct thorough backtests and to understand the functioning of the strategy before using it in live conditions or automating it. Take into account transaction fees, spread, and slippage, which can impact real results.
Liquidation Strategy💣 Liquidation Strategy (High-Level Overview + Usage)
This strategy is built to trade extreme liquidation events on crypto exchanges like Bybit or OKX, using TradingView’s Liquidations indicator as input.
🔧 Core Logic
Long entries: Triggered when long liquidation values spike above a set threshold.
Short entries: Triggered when short liquidation values drop below a negative threshold.
Optional EMA filter ensures liquidation values are significantly above/below their moving average.
RSI crossover logic is used to exit trades.
🛠️ Usage Instructions
Add the Liquidations Indicator: Go to TradingView → Indicators → Search for “Liquidations” under the Financials section.
Select the Correct Chart: Use a chart from Bybit or OKX, as these exchanges provide liquidation data.
Link the Data Sources: In the strategy settings, set: Long Liquidation Data to the long liquidation series from the indicator. Short Liquidation Data to the short liquidation series.
Overlay the Strategy: You can overlay this strategy directly on the Liquidations indicator for better visual alignment.
W Bottom Reversal Strategy W Bottom Reversal Strategy (15m-close entries; intrabar TP; daily MACD exit; JSON alerts v49.3-expire2)
Overview
A precision reversal strategy designed for 15-minute charts on liquid symbols. It detects a capitulation-and-stabilization “W” base using 1-hour (1H) context, confirms momentum improvement, then enters only on bar close to avoid early/“ghost” signals. Exits combine a fast intrabar take-profit (~2.7%) with a daily MACD risk-off exit that closes positions when higher-timeframe momentum turns against the setup.
How it works (high-level, matching code)
1H volatility + oversold gate (arming)
Compute 1H Bollinger-style bands (basis = SMA(close, bbLength=20), stdev multiplier bbMult=2.0).
Arm the setup when a 1H bar closes with price < 1H lower band and 1H RSI( rsiLength=14 ) < rsiThreshold (default 20.0).
1H momentum flip → pending entry
When a new 1H bar closes and 1H MACD line (EMA12−EMA26) crosses above 0 while armed and flat, set an entryPending flag.
This does not enter yet—it prepares a confirmed, bar-close entry on the lower timeframe.
Bar-close execution on the chart timeframe (15m)
On the next 15m bar close (or within N bars, see below) and still flat, fire the entry using a limit order at close × (1 − 0.00001) (≈ 0.001% below close) to reduce slippage and maintain chart/alert alignment.
Anti-late filter (no stale triggers)
If the pending entry doesn’t trigger within N chart bars (input: “Pending entry valid for N chart bars”, default 1, range 1–8), it expires and the arm state resets. This prevents late fills long after the 1H confirmation.
Exit logic
Primary: Standing intrabar take-profit at +2.7% from the average entry price (managed via strategy.exit limit).
Risk-off: On daily bar close, if Daily MACD line (EMA12−EMA26) crosses under 0, close the position (flat on daily momentum flip).
Default Properties (used for this publication)
Timeframe: 15m (with 1H and Daily higher-timeframe confirmations via request.security)
Initial capital: $10,000
Position sizing: Percent of equity = 10% per trade (enters only when flat; no stacking while in a position)
Commission: 0.05% per side
Slippage: Recommend 1 tick in Strategy Properties for realistic fills
Inputs exposed:
BB Length: 20 • BB Multiplier: 2.0
RSI Length: 14 • RSI Threshold: 20.0
MACD: Short 12, Long 26, Signal 9 (signal kept for compatibility; logic uses MACD line vs 0)
Pending entry valid for N chart bars: default 1 (1–8)
Execution behavior (per code):
calc_on_every_tick = false (evaluates on bar close)
process_orders_on_close = true (orders placed at bar close)
Limit entry at close −0.001%
Intrabar TP (2.7%)
Daily risk-off exit on MACD<0 at daily bar close
Alerts (exact behavior in code)
Uses alert() function calls with standardized JSON.
Set your alert to “Only alert() function calls” and “Once per bar close.”
Two events are emitted:
LONG_CONFIRMED on entry fire (15m bar close)
EXIT_CONFIRMED_DAILY_MACD on daily MACD<0 (daily bar close)
JSON fields include: event, version ("v49.3-expire2"), symbol, interval, price, and time.
How to use
Apply on liquid tickers (tight spreads, healthy volume).
Keep defaults initially; run across a broad, liquid watchlist to gather a proper sample.
For automation, route bar-close alerts to your executor; confirm broker lot/route settings and that limit orders at close −0.001% are acceptable.
Expect fewer signals in powerful trends; the daily risk-off helps cut failed bases.
Methodology & expectations (results transparency)
Evaluate on a dataset yielding 100+ trades before drawing conclusions.
Keep commission & slippage enabled (see defaults).
Risk sizing: With 10% of equity per trade and flat-to-flat entries, exposure aligns with typical 5–10% guidance.
No performance guarantees—outcomes depend on symbol selection, volatility regime, news, and execution quality.
Originality & value (vendor justification)
While it uses familiar building blocks (BB/RSI/MACD), the edge comes from the 1H volatility + oversold arming, 1H momentum flip, strict 15m bar-close limit execution, and the N-bar pending expiry that prevents stale triggers—paired with a dual-exit design (intrabar TP + daily risk-off). The focus is on reducing premature fills, keeping alerts 1:1 with chart marks, and capturing the first impulse out of a W-base.
Disclaimers
For educational purposes only; not financial advice. Paper-test first. Verify alerts, fills, and symbol liquidity with your broker before live use.
Changelog: v49.3-expire2 — Bar-close limit entries; anti-late pending window; standardized JSON alerts; intrabar 2.7% TP; daily MACD risk-off exit.
Daily CMO + Volume Intraday Strategy v6 by Subirrmomentum strategy. buy on next hourly candle after signal. target 5%, sl 1%
ECG Sanbot IndicatorNot my best but my first strategy to pass prop firms. Strength based signals. Change the length and repainting settings before setting alerts up.
First strategy to pass my prop firm. Change the tf and length to see reliable signals. Option to remove repainting if you want to set alerts. Not the best compared to my other scripts but will always get you in the green.
Core Logic
Calculates a double-smoothed EMA source on a higher timeframe (tf input).
Builds two RSI streams:
Repainting RSI (lookahead on) → reacts quickly to market changes.
Non-repainting RSI (lookahead off) → provides stable, confirmed values.
Computes the ECG difference between the two RSI streams.
Generates a buy signal when the ECG difference crosses above the upper threshold.
Generates a sell signal when the ECG difference crosses below the lower threshold.
Risk Management
Each trade uses a fixed trade size (trade_size).
Built-in stop-loss and take-profit controls:
Stop Loss: default 0.1% from entry price.
Take Profit: default 0.2% from entry price.
Both long and short entries are supported (direction selectable).
Customization Options
Adjustable timeframe (tf) for RSI source.
Fully configurable thresholds, lengths, and EMA smoothing.
Toggle between repainting vs. non-repainting behavior.
Backtest period controls (start and end date).
Visualization
Plots the ECG difference line in red.
Displays horizontal threshold lines for signal reference.
Supertrend [TradingConToto]Supertrend — ADX/DI + EMA Gap + Breakout (with Mobile UI)
What makes it original
Supertrend combines trend strength (ADX/DI), multi-timeframe bias (EMA63 and EMA 200D equivalent), a structural filter based on the distance between EMA2400 and EMA4800 expressed in ATR units, and a momentum confirmation through a previous high breakout.
This is not a random mashup — it’s a sequence of filters designed to reduce trades in ranging markets and prioritize mature trends:
Direction: +DI > -DI (trend led by buyers).
Strength: ADX > mean(ADX) (avoids weak, choppy phases).
Short-term bias: Close > EMA63.
Long-term bias: Close > EMA4800 ≈ EMA200 daily on H1.
Momentum: Close > High (immediate breakout).
Structure: (EMA2400 − EMA4800) > k·ATR (ensures separation in ATR units, filters out flat phases).
Entries & exits
Entry: when all six conditions are met and no open position exists.
Exit: if +DI < -DI or Close < EMA63.
Visuals: EMA63 is painted green while in position and red otherwise, with a supertrend-style band; “BUY” labels appear below the green band and “SELL” labels above the red band.
UI: includes a compact table (mobile-friendly) showing the state of each condition.
Default parameters used in this publication
Initial capital: 10,000
Position size: 10% of equity (≤10% per trade is considered sustainable).
Commission: 0.01% per side (adjust to your broker/market).
Slippage: 1 tick
Pyramiding: 0 (only one position at a time)
Adjust commission/slippage to match your market. For US equities, commissions are often per share; for spot crypto, 0.10–0.20% total is common. I publish with 0.01% per side as a conservative example to avoid overestimating results.
Recommended backtest dataset
Timeframe: H1
Multi-cycle window (e.g. 2015–today)
Symbols with high liquidity (e.g. NASDAQ-100 large caps, or BTC/ETH spot) to generate 100+ trades. Avoid cherry-picked short windows.
Why each filter matters
+DI > -DI + ADX > mean: reduce counter-trend trades and weak signals.
Close > EMA63 + Close > EMA4800: enforce trend alignment in short and long horizons.
Breakout High : requires immediate momentum, avoids early entries.
EMA gap in ATR units: blocks flat or compressed structures where EMA200D aligns with price.
Limitations
The breakout filter may skip healthy pullbacks; the design prioritizes continuation over perfect entry price.
No fixed trailing stop/TP; exits depend on trend degradation via DI/EMA63.
Results vary with real costs (commissions, slippage, funding). Adjust defaults to your broker.
How to use
Apply it on a clean chart (no other indicators when publishing).
Keep in mind the default parameters above; if you change them, mention it in your notes and use the same values in the Strategy Tester.
Ensure your dataset produces 100+ trades for statistical validity.
Script_Algo - Double Smoothed CCI Strategy📉 The uniqueness of this non-trending oscillator strategy lies in the combination of two smoothed CCI lines: one signals entry into a position from overbought/oversold zones, and the other serves as a trend filter for entries. The smoothing of the fast and slow CCI lines significantly reduces market noise, allowing the filtering of false signals often generated by the standard CCI.
📚 For those unfamiliar with CCI:
The Commodity Channel Index (CCI) is a momentum-based oscillator used to identify overbought and oversold conditions.
It helps traders spot potential trend reversals or confirm trend strength by comparing the current price to its average over a period of time.
1️⃣ General Principle of Operation
⚡ Fast CCI: Generates main signals when exiting oversold and overbought zones.
📈 Slow CCI: Acts as a trend filter. For long positions, the slow CCI must be above zero (confirmation of an uptrend), and for short positions, it must be below zero (confirmation of a downtrend). This prevents the strategy from opening trades against the dominant trend.
🛡️ Dynamic ATR Stop-Loss: Unlike fixed-percentage stop-losses, a stop tied to the Average True Range (ATR) considers market volatility. During calm periods, the stop will be narrower, allowing for more profit capture. In highly volatile periods, the stop becomes wider, protecting against premature closures caused by noise.
📊 Comprehensive Risk Management: The strategy uses not only a take-profit based on signals (exit into the opposite zone) but also a protective ATR stop-loss and a mechanism to close trades upon receiving an opposite signal (e.g., closing a long when a short signal appears).
💡 Usefulness of the Strategy:
👨💻 For traders: Provides clear, mathematically justified entry and exit signals with built-in loss protection.
📉 For analysts: Visualizes the behavior of the double CCI on a separate panel, allowing study of the interaction of the fast and slow lines and their reaction to levels without mandatory trades.
📚 For learning: An excellent example of combining multiple indicators and capital management tools into a single trading system.
2️⃣ Detailed Algorithm Logic
📥 Long Entry Signals:
The fast smoothed CCI was below the oversold level (oversold_level, e.g., -100) and crossed this level upward (fast_exits_oversold).
The slow CCI at this moment is above zero (confirming an uptrend).
If both conditions are met, a long position is opened.
📤 Long Exit: Happens under one of these conditions:
The fast CCI crosses the overbought level (overbought_level) downward (exit_long).
The price reaches a stop-loss level calculated as entry price - (ATR * multiplier).
An opposite short signal appears (enter_short).
📥 Short Entry Signals:
The fast CCI was above the overbought level (overbought_level, e.g., 100) and crossed this level downward (fast_exits_overbought).
The slow CCI at this moment is below zero (confirming a downtrend).
If both conditions are met, a short position is opened.
📤 Short Exit: Happens under one of these conditions:
The fast CCI crosses the oversold level (oversold_level) upward (exit_short).
The price reaches a stop-loss level calculated as entry price + (ATR * multiplier).
An opposite long signal appears (enter_long).
3️⃣ Default Settings Description
⚙️ General Strategy Settings (strategy):
overlay=false: The indicator is displayed in a separate panel below the chart, not overlaid on it.
default_qty_type=strategy.cash, default_qty_value=1000, initial_capital=100000: The strategy manages a virtual capital of 100,000 USD, using 1,000 USD per trade.
commission_value=0.1, slippage=1: Commission (0.1%) and slippage (1 tick) are considered for more realistic testing.
⚡ Fast CCI (Signal Generator):
Length: 8 (short enough for quick price reactions).
Source: hlc3 (average of High, Low, Close).
Smoothing: WMA (Weighted Moving Average) for smoother results than SMA.
Smoothing Length: 5 (removes part of the noise).
📈 Slow CCI (Trend Filter):
Length: 20 (standard mid-term trend period).
Source: close.
Smoothing: WMA.
Smoothing Length: 21 (even stronger smoothing for a clean trend line).
📊 Levels:
Overbought Level: 100 (classic CCI level).
Oversold Level: -100 (classic CCI level).
🛡️ Stop-Loss (ATR):
ATR Length: 6 (short period for quick adaptation).
ATR Multiplier: 10.0 (very wide stop, designed for long-term trade holding and noise filtering).
💰 As seen in backtests, this strategy shows a steadily growing equity curve with minor drawdowns. On the highly liquid crypto pair XRPUSDT, the algorithm demonstrated a fairly high win rate and relatively high profit factor on a 4-hour timeframe over 4 years, though the overall profit is moderate.
⚠️ Important Notes
Always remember: Strategy results may not repeat in the future.
The market constantly changes, so:
✅ Monitor the situation
✅ Backtest regularly
✅ Adjust settings for each asset
Also remember about possible bugs in any algorithmic trading strategy.
Even if a script is well-tested, no one knows what unpredictable events the market may bring tomorrow.
⚠️ Risk Management:
Do not risk more than 1% of your deposit per trade, otherwise you may lose your account balance, since this strategy works without stop losses.
⚠️ Disclaimer
The author of the strategy does not encourage anyone to use this algorithm and bears no responsibility for any possible financial losses resulting from its application!
Any decision to use this strategy is made personally by the owners of TradingView accounts and cryptocurrency exchange accounts.
📝 Final Notes
This is not the final version. I already have ideas on how to improve it further, so follow me to not miss updates.
🐞 Bug Reports
If you notice any bugs or inconsistencies in my algorithm,
please let me know — I will try to fix them as quickly as possible.
💬 Feedback & Suggestions
If you have any ideas on how this or any of my other strategies can be improved, feel free to write to me. I will try to implement your suggestions in the script.
Wishing everyone good luck and stable profits! 🚀💰
VXN (NQ100) Implied Move — Bands StrategyVXN (NQ100) Implied Move — Bands Strategy
📌 Overview
This strategy uses the 30-day implied volatility from VXN (CBOE:VXN) to build an “implied move” envelope around a EMA computed in the indicator timeframe. The bands act like elastic zones where price stretches and often reverts. Signals trigger when the close re-enters the zone, and exits are managed via opposite band targets, band retests, and/or optional ATR thresholds. All logic confirms on bar close.
⚙️ Key Inputs
- Indicator Timeframe (tfInput): timeframe used to sample both the symbol EMA and VXN.
- EMA Length (emaLen): center line for the bands.
- Multiplier (mult): scales the implied move.
- Days (daysLook): horizon in days for square-root-of-time scaling.
- Trade Direction: Both / Longs only / Shorts only.
- Band TP / Band SL: enable take-profit or stop at bar close when price hits bands.
- ATR Stop (SL) & ATR Take Profit (TP): optional ATR-based exits.
- Bar Limit (Time Stop): closes a trade after N bars in market.
- Prevent PDT: caps day trades within a rolling window.
🧠 Band Construction (core)
Compute EMA of price in the Indicator Timeframe.
Fetch VXN (close) in the same timeframe.
Implied Move (IM) = EMA * (VXN/100) * sqrt(Days/365) * Multiplier.
Bands:
Upper = EMA + IM
Lower = EMA - IM
🚀 Entry Rules (all on bar close)
Long: first, the close moves below the lower band (arming). Later, when the close crosses above that band, go long.
Short: mirror logic. First, the close moves above the upper band (arming), then the close crosses below that band, go short.
🎯 Exit Logic (first event wins, on bar close)
Band Take-Profit: target at the opposite band.
Band Stop-Loss: if the close returns to the entry band (lower for longs, upper for shorts).
ATR Optional:
ATR SL: distance from entry price via multiplier.
ATR TP: profit target based on ATR.
Time Stop (Bar Limit): forces an exit after a maximum number of bars.
🛡️ Risk Management & Filters
Trade Direction: restrict sides (long-only, short-only, or both).
Prevent PDT: counts day trades per calendar day and limits them in a rolling window.
ATR Stops/TP: useful under higher volatility to control exposure.
🔔 Alerts
Includes alerts for entries and exits (bands and ATR). Set them to Once per bar close to align with the close-based logic.
📎 Important Notes
EMA and VXN are both computed in the Indicator Timeframe.
Signals confirm on bar close only; intrabar confirmation is not used.
VXN is essentially daily. If you pick an intraday Indicator Timeframe, TradingView will replicate the last daily value until the next update; the EMA and IM are still computed consistently in that timeframe.
Not financial advice. Backtest and adjust before live use.
🧩 Tips
- Tune Days and Multiplier to match your trading horizon and sensitivity.
- Combine Band TP/SL with ATR SL/TP for hybrid exit management.
- For intraday trading, consider a Bar Limit to avoid over-holding.
Quantura - Quantitative AlgorythmIntroduction
“Quantura – Quantitative Algorithm” is an invite-only Pine Script strategy designed for multi-timeframe analysis, combining technical filters with user-adjustable fundamental sentiment. It was primarily developed for cryptocurrency markets but can also be applied across other assets such as Forex, stocks, and indices. The goal is to generate structured trade signals through a confluence of techniques rather than relying on a single indicator.
Originality & Value
Quantura is not a simple mashup of indicators. Its originality comes from how multiple layers of analysis are integrated into a single decision framework . Instead of showing indicators separately, the strategy only issues trades when several conditions align simultaneously:
RSI entry triggers confirm overbought/oversold reversals.
Market structure on a higher timeframe confirms trend direction.
Order block detection highlights zones of concentrated supply and demand.
Premium/Discount zones identify potential over- and undervaluation.
HTF EMA provides trend confirmation.
Optional candlestick patterns strengthen reversal or continuation signals.
An optional correlation filter compares the main asset to a reference instrument.
This design forces agreement between different methodologies (momentum, structure, value, volume, sentiment), which reduces noise compared to using them in isolation.
Functionality & Indicators
Entry trigger: RSI exits from extreme zones.
Filters: Only valid when all selected filters (HTF structure, EMA, order blocks, premium/discount, candlesticks, correlation, volume) confirm the direction.
Fundamental bias: User-defined sentiment and analysis settings (bullish, bearish, neutral) influence whether long or short trades are permitted.
Exits: ATR-based take profit and stop loss, with optional breakeven, opposite-signal exit, and session-end exit.
Visualization: Buy/Sell markers, trend-colored candles, and an optional dashboard summarizing indicator status.
Parameters & Customization
Timeframes: Independent HTF and LTF selection.
Trading direction: Long / Short / Both.
Session and weekday filters.
RSI length and thresholds.
Filters: HTF structure, order blocks, premium/discount, EMA, candlestick, ATR volatility, volume zones, correlation.
Exit rules: ATR multipliers for TP/SL, breakeven logic, session-end exit, opposite-signal exit.
Visuals: Toggle signals, candles, dashboard, custom colors.
Default Properties (Strategy Settings)
Initial Capital: 200,000 USD
Position Size: 1 BTC
Commission: 0.25%
Slippage: enabled (1 tick)
Pyramiding: 0 (one position at a time)
Note: The position sizing of 1 BTC per trade is intentionally set for backtesting demonstration. Most traders prefer to risk 1-5% of equity.
Backtesting & Performance
Backtests on BTCUSD (2 years) with the above defaults showed:
103 trades
Win rate: 42%
Profit factor: 1.3
Maximum drawdown: 10%
These results illustrate how the confluence model behaves, but they are not predictive of future performance . Users should re-test with their own preferred symbols, settings, and timeframes.
Risk Management
ATR-based stops and targets scale with volatility.
Commission and slippage are included by default for realistic modeling.
Opposite-signal exit helps capture trend reversals.
Session-end exit can close intraday positions before illiquid hours.
Breakeven option protects profits when available.
Although the default allocation uses 1 BTC per trade for demonstration, this is not a recommendation. Users are encouraged to adjust risk sizing downwards to sustainable levels (commonly 1-5%).
Limitations & Market Conditions
Performs best in volatile, liquid markets (e.g., crypto).
May struggle in prolonged sideways markets with low volatility.
News events and fundamentals outside user inputs can override signals.
Usage Guide
Add “Quantura – Quantitative Algorithm” to your chart in strategy mode.
Select HTF and LTF timeframes, trading direction, and session filters.
Configure confluence filters (structure, EMA, order blocks, premium/discount, candlestick, correlation, volume).
Set sentiment and analysis bias in fundamental settings.
Adjust ATR multipliers and exits.
Review buy/sell signals and analyze performance in the Strategy Tester.
Author & Access
Developed 100% by Quantura . Distributed as an Invite-Only script . Access is granted upon request. Details are provided in the Author’s Instructions field.
Important: This description complies with TradingView’s Script Publishing Rules and House Rules. It does not guarantee profitability, avoids unrealistic claims, and explains how the strategy integrates multiple methods into a coherent decision framework.
HMK-2 | PCA-1 + Rejim + Chebyshev + VWAP (Input'lu, v6)📌 HMK-2 | PCA-1 + Regime + Chebyshev + VWAP Strategy
1️⃣ Core Structure
Instead of relying on a single indicator, this system uses the Z-Score normalized average of three oscillators (RSI, MFI, ROC).
Signal (PCA-1):
RSI(14), MFI(14), ROC(5) → each is converted into a z-score.
Their average becomes the “composite signal,” our PCA-1 value.
Trend direction: If the Z-score EMA is rising → trend UP. If falling → trend DOWN.
2️⃣ Side Filters
Regime Filter (ADX + EMA)
ADX is calculated manually.
If ADX > 20 → trend exists → a 50-period EMA of this value smooths it.
This turns “trend regime” into a probability between 0–1.
Chebyshev Filter
A return series is checked against mean ± k*sigma bands.
If the return is within this band → valid signal. Extreme moves are filtered out.
VWAP Filter
Long trades: price must be above VWAP.
Short trades: price must be below VWAP.
Trades are only taken on the correct side of institutional cost averages.
3️⃣ Entry Conditions
Long:
PCA-1 signal crosses above threshold.
Trend Up + Regime OK + Chebyshev OK + Above VWAP.
Short:
PCA-1 signal crosses below threshold.
Trend Down + Regime OK + Chebyshev OK + Below VWAP.
4️⃣ Exit Mechanism
Main Exit: ATR-based stop/target.
Stop = entry price – ATR × (SL factor).
Take profit = entry price + ATR × (TP factor).
Additional Exit:
If price crosses to the opposite side of VWAP.
If PCA-1 signal crosses zero.
👉 Prevents trades from being locked, makes exits adaptive.
5️⃣ Labels / Visualization
AL / SHORT → entry points.
SAT / COVER → exit points.
VWAP line plotted in blue.
🧩 Strategy Features
Optimizable parameters:
Z-window (zWin)
Threshold
Chebyshev factor
ATR stop/target multipliers
This system works with:
Disciplined core (PCA-1 signal)
Triple protection (Regime + Chebyshev + VWAP)
Adaptive exits (ATR + VWAP/signal cross)
👉 Not a “single-indicator robot,” but a multi-filtered trade direction engine.
💡 Final Note
This is a base model of the system — open for further development.
I’ve shared the logic to give you a roadmap.
If you spot errors, fix them → that’s how you’ll improve it.
Don’t waste time asking me questions — refine and build it better yourselves.
Wishing you profitable trades. Stay well 🙏
RSI Bands With RSI - ATR Trend StrategyRSI Bands With RSI-ATR Trend Line Strategy
Overview
A trend-following strategy that combines RSI regime detection with a smoothed baseline and ATR bands. Works similar to Supertrend: the line flips bullish or bearish only when price closes beyond the band, aiming to filter noise and catch clean moves.
How It Works
RSI above 50 = bullish bias, below 50 = bearish bias
A dynamic baseline is calculated from RSI and price range, then smoothed
ATR bands expand/contract with volatility
Close above the upper band → bullish flip → long entry
Close below the lower band → bearish flip → short entry
Between bands → prior trend continues
Features
Automatic Buy/Sell entries on confirmed flips
Configurable RSI, Smoothing, ATR, and Multiplier inputs
Visual trend line (green = bull, red = bear)
Backtest ready with initial capital and commission settings
Best Use Cases
Trending markets across Forex, Crypto, Indices, Commodities
Works on multiple timeframes (higher TFs = cleaner flips)
Flexible settings for conservative swing trading or aggressive scalping
⚠️ For testing/education only. Always manage risk and confirm with higher-timeframe or structure filters.
BDNS ORB Strategy v3BDNS Opening Range Breakout Strategy
What This Strategy Does This strategy implements an Opening Range Breakout (ORB) system that identifies the high and low prices during a customizable opening period, then trades breakouts above or below these levels with momentum confirmation. The strategy goes beyond basic ORB concepts by incorporating ADX momentum filtering, VWAP directional bias, dynamic position sizing, and sophisticated exit management including breakeven moves and trailing stops.
Core Strategy Logic
Opening Range Definition: The strategy tracks price action during a user-defined opening period (default: 9:30-9:35 AM ET for 5 minutes). During this time, blue horizontal lines appear marking the session high and low. A yellow background highlights this opening range period.
Breakout Detection: After the opening range completes, green and red horizontal lines appear showing the actual entry levels - these are offset from the range boundaries by a configurable number of ticks (default: 24 ticks) to filter out false breakouts and ensure committed moves.
Entry Conditions: Trades trigger when price breaks through these offset levels during the trading window (green background, default until 10:30 AM ET), but only when:
ADX momentum indicator exceeds threshold (default 24.0) in the breakout direction
Price relationship to VWAP confirms directional bias (when VWAP filter enabled)
Daily trade limits haven't been reached
Large range filtering conditions are met
Visual Elements and Usage
Range Lines: Blue lines show the actual opening range boundaries. These appear immediately when the opening session begins.
Entry Levels: Green (long) and red (short) lines show where trades will trigger, appearing after the opening range completes.
Information Table: A data table appears in the top-right showing real-time strategy status including range size in ticks, ADX readings, filter status, trade counts, and momentum conditions.
Position Management:
When in a trade, colored circles appear showing:
Lime circles: Long position targets (T1, T2, T3)
Orange circles: Short position targets
Red circles: Stop loss levels
Blue crosses: Breakeven levels (when that feature activates)
Purple lines: Trailing stop levels (when position 3 trailing activates)
Background Colors:
Yellow: Opening range session active
Green: Trading window active
Purple: Large range day detected
Gray: Large range day being skipped
Position Management System
The strategy uses a three-tier exit approach:
Position 1: Takes partial profits at first target (default 50% of range size)
Position 2: Exits at second target (default 100% of range size)
Position 3: Either exits at third target or uses trailing stop after Position 2 wins
Breakeven Feature: When enabled and price reaches the breakeven trigger level, all stop losses move to a more favorable breakeven level instead of the original stop, protecting against giving back profits.
Trailing Stop System: After Position 2 hits its target, Position 3 automatically switches to a trailing stop that moves in the trader's favor as price continues trending.
Customization for Different Instruments
The default settings are configured for MNQ (Micro NASDAQ futures) but the ORB concept is highly customizable for any futures instrument and timeframe. Range duration, breakout offsets, and filter thresholds should be adjusted based on the specific instrument's volatility characteristics and typical intraday patterns.
Filter Usage Guidelines
ADX Momentum Filter: Essential for avoiding breakouts during consolidation. Higher thresholds (30+) for trending markets, lower (20-25) for more opportunities.
VWAP Filter: Helpful in trending conditions but may reduce trade frequency. Better to disable during range-bound or mean-reverting periods.
Large Range Filter: Critical risk management tool. When the opening range exceeds your threshold:
Skip: Avoids trades when stops would be too large
Fade: Trades mean reversion back into the range
Trade: Takes breakouts regardless (higher risk)
Range Size Considerations: Setting a large range threshold (200-400 ticks) helps avoid days when both sides of the range get tested before any meaningful breakout occurs, which often leads to whipsaws.
Risk Management Features
Dynamic Stops and Targets: All exit levels scale with the opening range size, ensuring risk/reward remains consistent regardless of daily volatility. A 100-tick range day will have proportionally smaller stops than a 300-tick range day.
Position Sizing: Configure contract amounts for each position tier based on account size and risk tolerance.
Daily Trade Limits: Prevents overtrading by limiting trades per direction per day.
Breakout Offset: The tick offset from range boundaries is crucial - too small creates false signals, too large misses good moves. Test different values based on your instrument's typical noise levels.
Advanced Features
Large Third Target: Set Target 3 to 300-500% to essentially hold runners indefinitely, using the trailing stop as the primary exit method for capturing extended trends.
Fade Trading: On large range days, the strategy can trade mean reversion when initial breakouts fail, often providing good counter-trend opportunities.
Time-Based Exits: All positions close at the end of the trading window, preventing overnight risk.
Strategy Properties Used
Initial Capital: $5,000 (realistic for micro contract trading)
Commission: $0.50 per contract (realistic retail rates)
Position Size: 100% of equity (manages risk through contract quantities and stop placement)
Default quantities: 3/1/1 contracts across the three positions
The default settings assume larger account sizes or proprietary trading firm accounts where higher risk tolerance is acceptable. With MNQ at $0.50 per tick, a typical 200-tick opening range with 75% stop loss (150 ticks) would risk $375 on a 5-contract position. For smaller retail accounts, consider reducing position sizes significantly - using only Position 1 (3 contracts) would risk $225, or even reducing to 1-2 total contracts to maintain appropriate risk levels relative to account size.
Getting Started Apply the strategy to your preferred instrument
Adjust the opening range time and duration for your market
Set appropriate breakout offset based on typical noise levels
Configure large range threshold based on your risk tolerance
Test filter combinations to find what works best for your trading style
Adjust contract quantities based on your account size and risk management rules
The strategy works best on liquid instruments with clear opening sessions and sufficient volatility to generate meaningful ranges. Results will vary significantly based on market conditions, parameter settings, and the specific instrument traded.
I warrant that the information created and published by by me here on TradingView is not prohibited, doesn't constitute investment advice, and isn't created solely for qualified investors.
- Trading Bot – Dynamic RSI (Professional) - Robot Strategy -1. General Concept and Philosophy
This strategy was designed for systematic traders and work especially well on short timeframes (1 to 5 minutes), who seek to capture trend reversal movements with a high degree of confirmation. The goal is not to follow the trend, but to identify precise entry points in oversold or overbought zones, and then to exit the position dynamically to adapt to changing market conditions.
The originality of Trading Bot Dynamic RSI lies not in a single indicator, but in the intelligent fusion of several concepts:
Dynamic RSI bands for both entries and exits .
A triple confirmation filter to secure trade entries.
A fully parameterizable design ready for automation .
2. Originality at the Core of the Strategy: Key Features
Dynamic Exits on RSI Bands: This is a main original feature of this script. Unlike traditional strategies that use fixed Take-Profits and Stop-Losses, this one uses an exit RSI band, calculated with parameters independent of the entry ones. This allows the strategy to:
Adapt to Volatility: In a volatile market, the exit band will move further away, allowing for the capture of larger moves. In a ranging market, it will tighten to secure smaller gains.
Optimize Profits: The exit occurs when momentum genuinely fades, not at an arbitrary price level, thus maximizing the potential of each trade.
Triple Confirmation Filter for Precise Entries: To avoid false signals, each entry is validated by the convergence of three distinct conditions:
The base signal is generated when the price reaches an overbought or oversold zone, materialized by an RSI band calculated directly on the chart.
The WaveTrend oscillator must also be in an extreme zone, confirming that the short-term momentum is ready for a reversal.
Finally, the StochRSI must validate that the RSI itself is in an overbought or oversold condition, adding an extra layer of security.
"Automation Ready" Design: The strategy was developed with automation in mind.
Customizable Alert Messages: All messages for entries and exits (Long/Short) can be formatted to be compatible with automated trade execution platforms.
Precise Capital Management: The position size calculation can be set as a fixed amount (e.g., 100 USDT), a percentage of the total capital, or of the available capital, and includes leverage. These parameters are crucial for a trading bot.
3. Detailed Operation
Entry Logic: A position is opened only if the following three conditions are met:
The market price touches (or closes below/above) the entry RSI band (lower for a buy, upper for a sell).
The WaveTrend indicator is in the oversold zone (for a buy) or overbought zone (for a sell).
The Stochastic RSI indicator is also in the oversold zone (for a buy) or overbought zone (for a sell).
The order is placed as a limit order on the RSI band, allowing for execution at the best possible price.
Exit Logic: The primary exit is dynamic.
For a Long position, the trade is closed when the price reaches the upper exit RSI band.
For a Short position, the trade is closed when the price reaches the lower exit RSI band.
Optionally, a percentage-based Stop-Loss and Take-Profit can be activated for more traditional risk management, although the dynamic exit is the recommended default mechanism.
4. Ease of Use and Customization
Despite its internal complexity, the strategy is designed to be user-friendly :
Clear Settings Panel: Parameters are grouped by function (Long Entry, Long Exit, Quantity, etc.), and each option comes with an explanatory tooltip.
Integrated Display: All key information (performance, current settings) is displayed in clean and discreet tables directly on the chart, allowing you to see at a glance how the strategy is configured.
Total Flexibility: Although default settings are provided, every parameter (RSI lengths, levels, filters) can be adjusted to optimize the strategy on any asset (cryptocurrencies, Forex, indices...) and any timeframe.
5. Detailed Guide to User Settings
A comprehensive set of parameters
To offer you complete control and maximum flexibility, the strategy exposes a comprehensive set of parameters. Here is an overview of what you can customize:
Trading Mode and Display
Trading Mode: Choose to enable only long positions ("Long Only"), only short positions ("Short Only"), or both simultaneously ("Long and Short").
Display: Manage the information panels on the chart. You can opt for a full display, a minimal window showing the profit, or hide all information for a clean chart.
Filters Smoothing (StochRSI K)
Filters Smoothing: This key parameter adjusts the smoothing of the Stochastic RSI. A lower value will make the filter more responsive, generating more signals. A higher value will make it smoother, generating fewer but potentially more reliable signals.
LONG Position Settings
Long Only mode
Entry: Define the RSI length and Oversold level that draw the lower band for long position entries.
Exit: Independently configure the RSI length and Overbought level that draw the upper band for the dynamic position exit.
Options: Optionally enable a percentage-based Take-Profit and/or Stop-Loss.
SHORT Position Settings
Short Only Mode
Entry: Define the RSI length and Overbought level for the upper entry band for short positions.
Exit: Independently configure the RSI length and Oversold level for the lower dynamic exit band.
Options: Just like for long positions, you can enable a percentage-based Take-Profit and/or Stop-Loss.
Quantity and Leverage
Quantity Type: Calculate your position size in three ways: as a fixed cash amount, as a percentage of available capital, or as a percentage of the total account balance.
Amount: Specify the dollar amount or percentage to commit per trade.
Leverage: Set the leverage to be applied. This is crucial for automation.
Backtest Period
Backtest Period: Enable this option to limit the strategy's calculations to a specific time period. This is a powerful tool for testing performance under particular market conditions.
Bot Alert Messages
Bot Alert Messages: This section is dedicated to automation. Customize the exact text messages that will be sent by TradingView alerts for each event (enter long, exit long, etc.).
Other Settings (Advanced - Optional)
Other Settings: This section allows experienced users to fine-tune the confirmation engine. You can adjust the parameters of the WaveTrend and Stochastic RSI oscillators in detail.
Spread Calculator (Informative Only)
Spread Calculator: This handy tool helps you estimate the actual fees of your exchange to run a much more realistic backtest. This panel has no impact on the trading logic itself.
Disclaimer
This strategy provides signals based on past market conditions. Past performance is not indicative of future results. Trading involves risk, and it is the responsibility of each user to manage their risk appropriately. It is strongly recommended to conduct thorough backtests and to understand the functioning of each parameter before using this strategy in live conditions or automating it. Take into account transaction fees, spread, and slippage, which can impact real results.
PowerTrend Pro Strategy – Gold OptimizedTired of false signals on Gold?
PowerTrend Pro combines VWAP, Supertrend, RSI, and smart MA filters with trailing stops & break-even logic to deliver high-probability trades on XAUUSD.
PowerTrend Pro Strategy is a professional-grade trading system designed to capture high-probability swing and intraday opportunities on XAUUSD (Gold) and other volatile markets.
🔑 Core Features
VWAP Anchoring – institutional fair value reference to filter trades.
Supertrend (ATR-based) – adaptive trend filter tuned for Gold’s volatility.
Multi-Timeframe RSI – confirms momentum alignment across intraday and higher timeframe.
EMA + SMA Combo – ensures trades follow strong directional bias, reducing false signals.
Dynamic Risk Management
Adjustable Take Profit / Stop Loss (%)
Trailing Stop that locks in profits on extended moves
Break-Even Logic (stop loss moves to entry once price is in profit)
⚡ Gold-Tuned Presets
XAUUSD 1H → tighter TP/SL & faster entries for active intraday trading.
XAUUSD 4H → wider ATR filter & trailing stops to capture bigger swings.
Generic Mode → works on Forex, Indices, and Crypto (fully customizable).
🎯 Why It Works
Gold is notoriously volatile — quick spikes wipe out weak strategies. PowerTrend Pro solves this by combining:
✅ Institutional bias (VWAP)
✅ Adaptive trend filter (Supertrend)
✅ Momentum confirmation (RSI MTF)
✅ Robust trend structure (EMA + SMA)
✅ Smart exits (TP, SL, trailing & breakeven)
This multi-layer confirmation makes entries stronger and keeps risk under control.
🛠️ Usage
Add the strategy to your chart.
Choose a preset (XAUUSD 1H, 4H, or Generic).
Run Strategy Tester for performance metrics.
Optimize TP/SL and ATR values for your broker & market conditions.
🔥 Pro Tip: Combine this strategy with a session filter (London/NY overlap) or volume confirmation to boost accuracy in Gold.
MomentumThe strategy uses EMA200, ADX/DMI, RSI, and volume. Pivot levels and Heikin-Ashi ensure safe entries, while cooldowns and opposite-locks prevent overtrading. Exits are managed with ATR trailing stops and trend-reversal signals.
FFI-Trend Rider ProFFI-Trend Rider Pro is a trend-following strategy designed to help traders make more structured and disciplined entries.
It uses a crossover between the 11 EMA and 21 SMA to detect potential trend shifts, while avoiding premature entries by checking how far the price is from the moving averages. If the price is extended, it waits for a pullback — just like professional traders do.
The indicator also includes:
Auto stoploss based on 21 SMA
Visual background colors based on RSI to help gauge trend strength
A built-in trade info table showing current trade type, entry price, stoploss, and trailing SL
Strategy-enabled functionality for easy backtesting
🔍 Ideal For:
Intraday & Swing Traders
Traders who want fewer, high-quality trades
Anyone looking to reduce emotional decision-making
⚠️ Disclaimer:
This script is for educational purposes only and does not constitute financial advice. Always do your own analysis before making any trading decisions. Past performance is not indicative of future results.
Adaptive MVRV & RSI Strategy V6 (Dynamic Thresholds)Strategy Explanation
This is an advanced Dollar-Cost Averaging (DCA) strategy for Bitcoin that aims to adapt to long-term market cycles and changing volatility. Instead of relying on fixed buy/sell signals, it uses a dynamic, weighted approach based on a combination of on-chain data and classic momentum.
Core Components:
Dual-Indicator Signal: The strategy combines two powerful indicators for a more robust signal:
MVRV Ratio: An on-chain metric to identify when Bitcoin is fundamentally over or undervalued relative to its historical cost basis.
Weekly RSI: A classic momentum indicator to gauge long-term market strength and identify overbought/oversold conditions.
Dynamic, Self-Adjusting Thresholds: The core innovation of this strategy is that it avoids fixed thresholds (e.g., "sell when RSI is 70"). Instead, the buy and sell zones are dynamically calculated based on a long-term (2-year) moving average and standard deviation of each indicator. This allows the strategy to automatically adapt to Bitcoin's decreasing volatility and changing market structure over time.
Weighted DCA (Scaling In & Out): The strategy doesn't just buy or sell a fixed amount. The size of its trades is scaled based on conviction:
Buying: As the MVRV and RSI fall deeper into their "undervalued" zones, the percentage of available cash used for each purchase increases.
Selling: As the indicators rise further into "overvalued" territory, the percentage of the current position sold also increases.
This creates an adaptive system that systematically accumulates during periods of fear and distributes during periods of euphoria, with the intensity of its actions directly tied to the extremity of market conditions.
EDWARDS 3MIN DOW STRATEGYSqueeze Momentum Strategy with EMA780 Trend Filter, ATR-SL, PT, EMA5 Exit Filter, and 3:57 PM Close