amir mohammad lorA script to automate and streamline the process of . It is designed to be efficient, reliable, and easy to configure. just use easy
النطاقات والقنوات
XAutoTrade Alert Builder v1.1Automate Your NinjaTrader Trading with TradingView Alerts
The XAutoTrade Alert Builder is a flexible Pine Script strategy that bridges TradingView alerts with
NinjaTrader automated trading. Design custom entry signals, configure exit strategies, and execute trades
automatically on your NinjaTrader account - all from TradingView charts.
Key Features
📊 Flexible Signal Logic
- Configure buy/sell signals independently
- Compare any two indicators or price sources using crossover, crossunder, greater than, or less than
logic
- Visual buy/sell markers on chart for easy signal verification
🎯 Multiple Exit Methods
1. ATM Strategy - Leverage your existing NinjaTrader ATM templates for advanced order management
2. Source Signals - Exit positions based on opposite entry signals
3. Fixed Levels - Set stop loss and profit targets using ticks or percentage
⚙️ NinjaTrader Integration
- Direct webhook integration with XAutoTrade backend service
- Multi-account support (trade multiple accounts simultaneously)
- Position sizing and max position limits
- Market or limit order types with configurable offset
- Time-in-force options (DAY/GTC)
- Active hours filter (US ET timezone) to control when alerts execute
🔐 Secure & Reliable
- Webhook secret authentication
- Symbol override capability
- Real-time status indicator showing configuration readiness
How It Works
1. Configure Entry Signals - Choose your buy/sell logic by comparing any two data sources (price,
indicators, etc.)
2. Set Exit Strategy - Select ATM templates, signal-based exits, or fixed stop/profit levels
3. Connect to NinjaTrader - Enter your XAutoTrade webhook secret and account details
4. Create Alert - Use the strategy's alert system to send formatted JSON payloads to your XAutoTrade
webhook
5. Trade Futures & Stocks Automatically - TradingView alerts trigger real trades in your NinjaTrader account
Perfect For
- Traders wanting to automate TradingView strategies in NinjaTrader
- Users with existing ATM templates who want TradingView signal automation
- Multi-account traders managing several NinjaTrader accounts
- Anyone seeking a no-code bridge between TradingView and NinjaTrader
Requirements
- Active XAutoTrade account and subscription
- NinjaTrader 8 with XAutoTrade AddOn installed
- TradingView Premium/Pro account (for webhook alerts)
Documentation & Support
Full setup guide and API reference available at:
xautotrade.com/docs/api-reference/order-actions
License: Mozilla Public License 2.0
---
Note: This strategy is designed for use with the XAutoTrade automation service. A valid XAutoTrade
subscription and NinjaTrader setup is required for live trading functionality.
Amir mohammd lorA advanced TradingView indicator built with Pine Script that identifies . Features customizable parameters, real-time alerts, and visual signals on the chart for enhanced trading decision-making.
XAutoTrade Alert BuilderAutomate Your NinjaTrader Trading with TradingView Alerts
The XAutoTrade Alert Builder is a flexible Pine Script strategy that bridges TradingView alerts with
NinjaTrader automated trading. Design custom entry signals, configure exit strategies, and execute trades
automatically on your NinjaTrader account - all from TradingView charts.
Key Features
📊 Flexible Signal Logic
- Configure buy/sell signals independently
- Compare any two indicators or price sources using crossover, crossunder, greater than, or less than
logic
- Visual buy/sell markers on chart for easy signal verification
🎯 Multiple Exit Methods
1. ATM Strategy - Leverage your existing NinjaTrader ATM templates for advanced order management
2. Source Signals - Exit positions based on opposite entry signals
3. Fixed Levels - Set stop loss and profit targets using ticks or percentage
⚙️ NinjaTrader Integration
- Direct webhook integration with XAutoTrade backend service
- Multi-account support (trade multiple accounts simultaneously)
- Position sizing and max position limits
- Market or limit order types with configurable offset
- Time-in-force options (DAY/GTC)
- Active hours filter (US ET timezone) to control when alerts execute
🔐 Secure & Reliable
- Webhook secret authentication
- Symbol override capability
- Real-time status indicator showing configuration readiness
How It Works
1. Configure Entry Signals - Choose your buy/sell logic by comparing any two data sources (price,
indicators, etc.)
2. Set Exit Strategy - Select ATM templates, signal-based exits, or fixed stop/profit levels
3. Connect to NinjaTrader - Enter your XAutoTrade webhook secret and account details
4. Create Alert - Use the strategy's alert system to send formatted JSON payloads to your XAutoTrade
webhook
5. Trade Futures & Stocks Automatically - TradingView alerts trigger real trades in your NinjaTrader account
Perfect For
- Traders wanting to automate TradingView strategies in NinjaTrader
- Users with existing ATM templates who want TradingView signal automation
- Multi-account traders managing several NinjaTrader accounts
- Anyone seeking a no-code bridge between TradingView and NinjaTrader
Requirements
- Active XAutoTrade account and subscription
- NinjaTrader 8 with XAutoTrade AddOn installed
- TradingView Premium/Pro account (for webhook alerts)
Documentation & Support
Full setup guide and API reference available at:
www.xautotrade.com
License: Mozilla Public License 2.0
---
Note: This strategy is designed for use with the XAutoTrade automation service. A valid XAutoTrade
subscription and NinjaTrader setup is required for live trading functionality.
HEK Dinamik Fiyat Kanalı Stratejisi v1HEK Dynamic Price Channel Strategy
Concept
The HEK Dynamic Price Channel provides a channel structure that expands and contracts according to price momentum and time-based equilibrium.
Unlike fixed-band systems, it evaluates the interaction between price and its balance line through an adaptive channel width that dynamically adjusts to changing market conditions.
How It Works
When the price reacts to the midline, the channel bands automatically reposition themselves.
Touching the upper band indicates a strengthening trend, while touching the lower band signals weakening momentum.
This adaptive mechanism helps filter out false signals during sudden directional changes, enhancing overall signal quality.
Advantages
✅ Maintains trend continuity while avoiding overtrading.
✅ Automatically adapts to changing volatility conditions.
✅ Detects early signals of short- and mid-term trend reversals.
Applications
Directional confirmation in spot and futures markets.
A supporting tool in channel breakout strategies.
Identifying price consolidation and equilibrium zones.
Note
This strategy is intended for educational and research purposes only.
It should not be considered financial advice. Always consult a professional financial advisor before making investment decisions.
© HEK — Adaptive Channel Approach on Dynamic Market Structures
6 gün önce
Sürüm Notları
HEK Dynamic Price Channel Strategy
Concept
The HEK Dynamic Price Channel provides a channel structure that expands and contracts according to price momentum and time-based equilibrium.
Unlike fixed-band systems, it evaluates the interaction between price and its balance line through an adaptive channel width that dynamically adjusts to changing market conditions.
How It Works
When the price reacts to the midline, the channel bands automatically reposition themselves.
Touching the upper band indicates a strengthening trend, while touching the lower band signals weakening momentum.
This adaptive mechanism helps filter out false signals during sudden directional changes, enhancing overall signal quality.
Advantages
✅ Maintains trend continuity while avoiding overtrading.
✅ Automatically adapts to changing volatility conditions.
✅ Detects early signals of short- and mid-term trend reversals.
Applications
Directional confirmation in spot and futures markets.
A supporting tool in channel breakout strategies.
Identifying price consolidation and equilibrium zones.
Note
This strategy is intended for educational and research purposes only.
It should not be considered financial advice. Always consult a professional financial advisor before making investment decisions.
© HEK — Adaptive Channel Approach on Dynamic Market Structures
MA Break Trend Strategy - Multi Stop MethodsThis is a trend-following trading strategy with multiple stop loss options for both long and short positions.
Entry Signal: Trades are triggered when price crosses above (long) or below (short) a configurable moving average (EMA or SMA, default 200-period)
Volume Confirmation: Optional filter requiring volume to exceed a multiplier (default 1.5x) of the 20-period volume average before entering trades
Five Stop Loss Methods:
- ATR-based: Dynamic stop using Average True Range multiplier below/above entry price
- MA Buffer: Stop set at a percentage offset from a separate moving average (default 50-period EMA)
- Donchian Channel: Uses the lowest low/highest high over a specified lookback period
- Keltner Channel: ATR-based bands around an EMA basis
- Lowest Low/Highest High: Simple swing point stops based on recent price extremes
- Trailing Stops: All stop methods automatically trail in the profitable direction (upward for longs, downward for shorts) to lock in gains while never moving against the position
Visual Indicators:
- Plots the trend-following moving average in blue
- Shows active stop loss levels in red when in a position
- Displays reference lines for all stop types when flat
- Entry signals marked with triangles (green up for long, red down for short)
- Background highlighting for volume-confirmed crossovers
KZ One — Scalping Training StrategyKZ One is a scalping strategy developed for M1 and M5 timeframes. It is designed to help traders study and practice short-term market behavior by using structured zones to highlight potential entry and exit areas. The strategy allows customization of Risk (USD) and Take Profit (R multiple) parameters for flexible trade management. Additional tools include ATR-based filters to skip low-volatility conditions and a Pre-Alert Lead (bars) option that notifies users ahead of possible setups. KZ One is intended for educational and analytical purposes, promoting disciplined and consistent trading practice.
Smart Money Breakout & Order Block Strategy v2 (Algo)⚙️ Smart Money Breakout & Order Block Strategy v2 (Algo)
Created by: Shubham
Category: Smart Money Concepts • Breakout • Order Block • Volatility + Trend Algo
🧠 Description:
Smart Money Breakout & Order Block Strategy v2 (Algo) is an advanced version of the original system that blends Breakout Trading, Order Block Detection, and Supertrend Trend Confirmation .
It’s built to identify institutional-style entries with high momentum and manage them using dynamic ATR-based stops, trailing protection, and volatility-based filters.
This version is a full Algo system — optimized for performance, backtesting, and automated execution.
⚡ Major Improvements Over Older Version:
Supertrend Filter Added – Trades only in confirmed trend direction (Up = Long, Down = Short).
Supertrend Flip Exit – Automatically closes trades when Supertrend changes direction.
Hold N Candles Before Exit – Prevents early exits after entry, improving stability.
Advanced Exit Logic – Tracks bar of entry and allows conditional exit control.
Improved Volatility Filter – Avoids choppy or flat market conditions.
Algo-Only Mode – No visuals, lightweight logic for live or strategy-based execution.
Dynamic ATR Stops – Risk adapts automatically to market volatility.
More Controlled Breakout Logic – Cleaner structure and smarter order-block detection.
🧩 Core Concept:
Detects recent Support & Resistance Breakouts .
Spots Order Block / Gap Reversals for smart-money entry timing.
Confirms strong momentum with a Volatility Filter .
Applies Supertrend Trend Confirmation for direction filtering.
Manages risk using ATR-based dynamic stop loss and trailing protection .
Closes trades automatically on Supertrend Flip or trailing trigger.
Allows holding for a set number of candles before normal exits start.
⚙️ Adjustable Inputs:
Levels Period
Volatility Filter
ATR Multiplier
Hold N Candles Before Exit
Supertrend ATR Length
Supertrend Multiplier
ON/OFF for Supertrend Filter
🎯 Optimized & Tested Conditions:
Specially optimized and backtested for ETH/USDT on the 30-minute timeframe .
Verified and live-tested by me personally for consistency and reliability.
Performs strongly during trending sessions and volatility expansions.
Suitable for Crypto, Forex, and Index pairs with similar behavior.
💡 Trading Logic Summary:
Long Entry: Price breaks resistance → volatility passes filter → Supertrend UP → Buy.
Short Entry: Price breaks support → volatility passes filter → Supertrend DOWN → Sell.
Order Block Entries: Gap or block structure confirmed → entry triggered.
Stop Loss: ATR × Multiplier (auto-scaled).
Trailing Stop: Locks profits as price moves in favor.
Supertrend Flip: Instant exit to secure results.
Hold Period: Trade remains locked for defined bars before normal exit logic starts.
b]📊 Highlights:
Institutional logic simplified into an easy, automated algo.
Combines structure + trend + volatility for high-probability trades.
ATR and Supertrend make the system adaptive to all market conditions.
Fully automated — perfect for backtesting or live algo trading.
Tuned for ETH 30-min chart but can be adapted to other assets.
⚠️ Tips & Notes:
Adjust settings based on instrument volatility.
Use larger “Hold Candles” on lower timeframes to avoid false exits.
Always forward-test before going live on new markets.
Avoid overtrading during low-volume or sideways sessions.
Maintain single active position per direction for clarity.
✅ Summary:
Smart Money Breakout & Order Block Strategy v2 (Algo) combines institutional structure logic, volatility filters, and adaptive ATR risk control into one professional system.
Specially optimized and tested live on ETH 30-minute timeframe , it delivers precise, trend-aligned entries with smart exit management.
A clean, reliable, and automation-ready algo for serious traders.
Advanced Smart Money Algo for ETH (30m) — breakout + order-block entries with volatility and Supertrend filters, ATR-based dynamic stops. Tested live; invite-only soon — test now while it's free.
NY ORB - Full Dynamic SystemNY ORB - Full Dynamic Strategy Summary
1. Opening Range and Session Timing
Opening Range (ORB) Calculation: The strategy identifies the ORB High and ORB Low by tracking the highest high and lowest low during the specified New York pre-market window, which is set by default from 8:30 to 8:45 (New York time).
Entry Window: Trading activity is restricted to a specific entry period, typically starting shortly after the ORB is established (default: 8:50 to 12:00).
Hard Exit Time: Any remaining open positions are automatically closed at a fixed exit time (default: 13:25).
2. Trade Entry Logic and Filters
An entry (Long or Short) is generated when the price breaks out of the established ORB, provided it passes a series of optional filters:
Direction Control: The user can restrict the strategy to trade Long Only, Short Only, or Both.
Second Breakout Logic: An optional filter that requires the price to break out, reverse back into the range, and then break out again, confirming momentum after a consolidation.
Confirmation Candle Count: An optional filter that checks the close of a previous candle (e.g., 1 or 2 candles ago) to ensure the price was still inside the range, preventing premature entry.
Technical Filters (Optional): The entry is only executed if it aligns with selected indicators:
RSI: Filters for non-overbought (Long) or non-oversold (Short) conditions.
MACD: Requires the MACD line to be above/below the Signal line for alignment.
VWAP: Requires the price to be above/below the Volume-Weighted Average Price.
Trend Filter (SMMA): Requires the price to be above/below a 50-period Simple Moving Average.
3. Dynamic Risk and Exit Management
This strategy features highly configurable stop-loss and profit-taking mechanics:
Primary Stop Loss Methods: The Stop Loss distance can be dynamically chosen from four types:
Fixed: A fixed number of ticks.
ATR: Based on a multiple of the Average True Range (ATR).
Capped ATR: ATR-based, but with a hard maximum tick limit.
OR-Based: Based on a multiple of the actual ORB High-to-Low range.
Dynamic Profit Target: The Take Profit level is calculated dynamically based on a multiplier of either the ATR or the ORB Range.
Breakeven Stop:
If enabled, the Stop Loss automatically moves to the entry price (Breakeven) once the price moves a predetermined distance in the profitable direction.
An Adaptive Breakeven option allows the trigger distance to be calculated as a percentage of the overall ATR Profit Target.
Trailing Stop: The strategy uses a trailing stop, which can be custom-set (fixed ticks) or dynamically tied to the ATR. An optional feature Auto Tighten Trailing reduces the trailing multiplier once the breakeven level is hit.
MA Cross Exit: An alternative, counter-trend exit mechanism that closes the trade if the price crosses back over the chosen Moving Average (either SMMA or VWAP), overriding the pending profit target.
4. Daily Account Management
The strategy includes crucial daily risk controls to protect capital and lock in profits:
Daily Profit Limit: If the total daily PnL (realized and unrealized) hits a predefined maximum profit threshold (in ticks), all trades are closed, and new entries are blocked for the remainder of the trading day.
Daily Loss Limit: Conversely, if the total daily PnL hits a predefined maximum loss threshold, all trades are closed, and new entries are blocked for the remainder of the day.
量化多空策略 4H趋势+15M进场(高胜率高R:R·完整报警版)这是一套结合多周期结构(4小时趋势 + 15分钟入场)的量化交易策略,
核心理念是「顺势而为 + 动量二次确认 + 高R:R风险控制」。
策略特点:
• 使用 4H EMA 趋势判定方向
• 结合 15m RSI + MACD 动量信号确认入场
• 二次确认(2~3 根内突破 + 动量共振)过滤假信号
• 自适应止盈止损(基于 ATR 和 ADX)
• 全自动计算 R:R、冷却周期、成交量放大过滤
适用场景
• 加密货币(BTC、ETH、SOL、BNB 等)
• 黄金 / 外汇 / 指数CFD
• 15m~1h短线趋势盯盘
• 适合希望提高信号质量、过滤假突破的交易者
注意事项
• 该策略为研究与教学用途,不构成投资建议
• 实盘前请先在回测与模拟盘验证参数
• 适度调整「确认根数」「R:R」「ADX阈值」以适应不同市场波动性
This is a multi-timeframe quantitative trading strategy combining the 4-hour trend with 15-minute entry signals.
Its core philosophy is “Trend following + Momentum confirmation + High R:R risk control.”
Key Features
• Uses 4H EMA structure to determine market trend
• Combines 15m RSI + MACD momentum for entry confirmation
• Dual confirmation within 2–3 bars (breakout + momentum alignment) to filter false signals
• Adaptive take-profit and stop-loss based on ATR and ADX
• Automatically calculates Risk/Reward ratio, cooldown period, and volume expansion filters
Best Use Cases
• Cryptocurrencies (BTC, ETH, SOL, BNB, etc.)
• Gold / Forex / Index CFDs
• Short-term trend tracking (15m–1h)
• Traders aiming to improve signal quality and avoid false breakouts
Notes
• This strategy is for research and educational purposes only — not financial advice.
• Always backtest and paper trade before live deployment.
• Adjust confirmation bars, R:R ratio, and ADX threshold to suit different market volatilities.
KCB Strategy [Ncentry]This strategy is a strong trend breaking strategy based on the Keltner channel.
Optimized for the bitcoin okx exchange chart.
Enhanced MA Crossover Pro📝 Strategy Summary: Enhanced MA Crossover Pro
This strategy is an advanced, highly configurable moving average (MA) crossover system designed for algorithmic trading. It uses the crossover of two customizable MAs (a "Fast" MA 1 and a "Slow" MA 2) as its core entry signal, but aggressively integrates multiple technical filters, time controls, and dynamic position management to create a robust and comprehensive trading system.
💡 Core Logic
Entry Signal: A bullish crossover (MA1 > MA2) generates a Long signal, and a bearish crossover (MA1 < MA2) generates a Short signal. Users can opt to use MA crossovers from a Higher Timeframe (HTF) for the entry signal.
Confirmation/Filters: The basic MA cross signal is filtered by several optional indicators (see Filters section below) to ensure trades align with a broader trend or momentum context.
Position Management: Trades are managed with a sophisticated system of Stop Loss, Take Profit, Trailing Stops, and Breakeven stops that can be fixed, ATR-based, or dynamically adjusted.
Risk Management: Daily limits are enforced for maximum profit/loss and maximum trades per day.
⚙️ Key Features and Customization
1. Moving Averages
Primary MAs (MA1 & MA2): Highly configurable lengths (default 8 & 20) and types: EMA, WMA, SMA, or SMMA/RMA.
Higher Timeframe (HTF) MAs: Optional MAs calculated on a user-defined resolution (e.g., "60" for 1-hour) for use as an entry signal or as a trend confirmation filter.
2. Multi-Filter System
The entry signal can be filtered by the following optional conditions:
SMA Filter: Price must be above a 200-period SMA for long trades, and below it for short trades.
VWAP Filter: Price must be above VWAP for long trades, and below it for short trades.
RSI Filter: Long trades are blocked if RSI is overbought (default 70); short trades are blocked if RSI is oversold (default 30).
MACD Filter: Requires the MACD Line to be above the Signal Line for long trades (and vice versa for short trades).
HTF Confirmation: Requires the HTF MA1 to be above HTF MA2 for long entries (and vice versa).
3. Dynamic Stop and Target Management (S/L & T/P)
The strategy provides extensive control over exits:
Stop Loss Methods:
Fixed: Fixed tick amount.
ATR: Based on a multiple of the Average True Range (ATR).
Capped ATR: ATR stop limited by a maximum fixed tick amount.
Exit on Close Cross MA: Position is closed if the price crosses back over the chosen MA (MA1 or MA2).
Breakeven Stop: A stop can be moved to the entry price once a trigger distance (fixed ticks or Adaptive Breakeven based on ATR%) is reached.
Trailing Stop: Can be fixed or ATR-based, with an optional feature to auto-tighten the trailing multiplier after the breakeven condition is met.
Profit Target: Can be a fixed tick amount or a dynamic target based on an ATR multiplier.
4. Time and Session Control
Trading Session: Trades are only taken between defined Start/End Hours and Minutes (e.g., 9:30 to 16:00).
Forced Close: All open positions are closed near the end of the session (e.g., 15:45).
Trading Days: Allows specific days of the week to be enabled or disabled for trading.
5. Risk and Position Limits
Daily Profit/Loss Limits: The strategy tracks daily realized and unrealized PnL in ticks and will close all positions and block new entries if the user-defined maximum profit or maximum loss is hit.
Max Trades Per Day: Limits the number of executed trades in a single day.
🎨 Outputs and Alerts
Plots: Plots the MA1, MA2, SMA, VWAP, and HTF MAs (if enabled) on the chart.
Shapes: Plots visual markers (BUY/SELL labels) on the bar where the MA crossover occurs.
Trailing Stop: Plots the dynamic trailing stop level when a position is open.
Alerts: Generates JSON-formatted alerts for entry ({"action":"buy", "price":...}) and exit ({"action":"exit", "position":"long", "price":...}).
MACD 3P共振
三周期 MACD 同時金/死叉,且遠離零軸 N% 股價才進場。
小周期給訊號 + ATR 止損,RR 止盈。
可關中/大周期,靈活抓短線或波段。
圖表標 L/S + SL/TP 線,一目了然。
Triple-timeframe MACD cross + far from zero = entry.
ATR stop, RR profit. Toggle mid/big TF.
Shows L/S + SL/TP lines.
Clean. Sharp. Works.
MSB Gold Trend Breakout [TV]: The High-Stability Gold Scalper🏆 MSB Gold Trend Breakout : The High-Stability Gold Scalper
This is the official signal for the MSB Pro brand, designed for traders who demand low-drawdown, consistent performance on the XAUUSD (Gold) market.
📈 Verified Performance & Risk Contro l
The strategy's stability has been verified over 1.8 years of historical data.
Max Drawdown (DD): 12.53% (Exceptional capital safety.)
Total Net Profit (1.8 Yrs): +8.15% (Consistent Growth.)
Profit Factor: 1.055 (Proven reliability.)
🛡️ Why Choose This Signal?
True Risk Control: The low drawdown is achieved through a strict EMA filtering system, preventing entry into high-volatility, directionless markets.
Breakout Logic: Uses high-probability breakout movements confirmed by trend alignment (EMA Cross and Trend Filter).
No Martingale/Grid: This is a safe, single-order strategy.
👑 Upgrade to Full License
This signal is priced low to allow you to validate the performance.
Upgrade to the full license ($499) to get:
Lifetime Updates & Future Strategy: Guaranteed access to all future professional upgrades of the MSB Pro Dynamic Risk strategy (V2.0, V3.0, etc.) at no extra cost.
Significant Savings: Purchasing the full license is significantly cheaper than continuous renting.
Candle Breakout StrategyShort description (one-liner)
Candle Breakout Strategy — identifies a user-specified candle (UTC time), draws its high/low range, then enters on breakouts with configurable stop-loss, take-profit (via Risk:Reward) and optional alerts.
Full description (ready-to-paste)
Candle Breakout Strategy
Version 1.0 — Strategy script (Pine v5)
Overview
The Candle Breakout Strategy automatically captures a single "range candle" at a user-specified UTC time, draws its high/low as a visible box and dashed level lines, and waits for a breakout. When price closes above the range high it enters a Long; when price closes below the range low it enters a Short. Stop-loss is placed at the opposite range boundary and take-profit is calculated with a user-configurable Risk:Reward multiplier. Alerts for entries can be enabled.
This strategy is intended for breakout style trading where a clearly defined intraday range is established at a fixed time. It is simple, transparent and easy to adapt to multiple symbols and timeframes.
How it works (step-by-step)
On every bar the script checks the current UTC time.
When the first bar that matches the configured Target Hour:Target Minute (UTC) appears, the script records that candle’s high and low. This defines the breakout range.
A box and dashed lines are drawn on the chart to display the range and extended to the right while the range is active.
The script then waits for price to close outside the box:
Close > Range High → Long entry
Close < Range Low → Short entry
When an entry triggers:
Stop-loss = opposite range boundary (range low for longs, range high for shorts).
Take-profit = entry ± (risk × Risk:Reward). Risk is computed as the distance between entry price and stop-loss.
After entry the range becomes inactive (waitingForBreakout = false) until the next configured target time.
Inputs / Parameters
Target Hour (UTC) — the hour (0–23) in UTC when the range candle is detected.
Target Minute — minute (0–59) of the target candle.
Risk:Reward Ratio — multiplier for computing take profit from risk (0.5–10). Example: 2 means TP = entry + 2×risk.
Enable Alerts — turn on/off entry alerts (string message sent once per bar when an entry occurs).
Show Last Box Only (internal behavior) — when enabled the previous box is deleted at the next range creation so only the most recent range is visible (default behavior in the script).
Visuals & On-chart Info
A semi-transparent blue box shows the recorded range and extends to the right while active.
Dashed horizontal lines mark the range high and low.
On-chart shapes: green triangle below bar for Long signals, red triangle above bar for Short signals.
An information table (top-right) displays:
Target Time (UTC)
Active Range (Yes / No)
Range High
Range Low
Risk:Reward
Alerts
If Enable Alerts is on, the script sends an alert with the following formats when an entry occurs:
Long alert:
🟢 LONG SIGNAL
Entry Price:
Stop Loss:
Take Profit:
Short alert:
🔴 SHORT SIGNAL
Entry Price:
Stop Loss:
Take Profit:
Use TradingView's alert dialog to create alerts based on the script — select the script’s alert condition or use the alert() messages.
Recommended usage & tips
Timeframe: This strategy works on any timeframe but the definition of "candle at target time" depends on the chart timeframe. For intraday breakout styles, use 1m — 60m charts depending on the session you want to capture.
Target Time: Choose a time that is meaningful for the instrument (e.g., market open, economic release, session overlap). All times are handled in UTC.
Position Sizing: The script’s example uses strategy.percent_of_equity with 100% default — change default_qty_value or strategy settings to suit your risk management.
Filtering: Consider combining this breakout with trend filters (EMA, ADX, etc.) to reduce false breakouts.
Backtesting: Always backtest over a sufficiently large and recent sample. Pay attention to slippage and commission settings in TradingView’s strategy tester.
Known behavior & limitations
The script registers the breakout on close outside the recorded range. If you prefer intrabar breakout rules (e.g., high/low breach without close), you must adjust the condition accordingly.
The recorded range is taken from a single candle at the exact configured UTC time. If there are missing bars or the chart timeframe doesn't align, the intended candle may differ — choose the target time and chart timeframe consistently.
Only a single active position is allowed at a time (the script checks strategy.position_size == 0 before entries).
Example setups
EURUSD (Forex): Target Time 07:00 UTC — captures London open range.
Nifty / Index: Target Time 09:15 UTC — captures local session open range.
Crypto: Target Time 00:00 UTC — captures daily reset candle for breakout.
Risk disclaimer
This script is educational and provided as-is. Past performance is not indicative of future results. Use proper risk management, test on historical data, and consider slippage and commissions. Do not trade real capital without sufficient testing.
Change log
v1.0 — Initial release: range capture, box and level drawing, long/short entry by close breakout, SL at opposite boundary, TP via Risk:Reward, alerts, info table.
If you want, I can also:
Provide a short README version (2–3 lines) for the TradingView “Short description” field.
Add a couple of suggested alert templates for the TradingView alert dialog (if you want alerts that include variable placeholders).
Convert the disclaimer into multiple language versions.
INDIAN INTRADAY BEASTThe Indian Intraday Beast is a precision-built intraday strategy optimized for the 15-minute timeframe.
It captures high-probability momentum shifts and trend reversals using adaptive price-action logic and proprietary confirmation filters.
Designed for traders who demand clarity, speed, and consistency in India’s fast-paced markets.
VWAP & Band Cross Strategy v6 - AdvancedThese are a few updates made to the original script. The daily take profit and stop loss functions correctly for 1 contract but because of the pyramiding input even if not used you'll need to multiply the values by the number of contracts to keep consistent results. I have been unable to correct that function. Let me know if you test the script and have any recommendations for improvement. If trading an actual account I do recommend setting hard daily limits with your provider because there is still slippage from the original exit alerts even with the daily stop loss in place.
1. Real-Time Execution & Hard PnL Limits (The Focus)
The most critical changes were implemented to ensure the daily profit and loss limits act as hard, real-time barriers instead of waiting for the candle to close.
• Intrabar Tick Execution: The parameter calc_on_every_tick=true was added to the strategy() declaration. This forces the entire script to re-evaluate its logic on every single price update (tick), enabling immediate action.
• Real-Time PnL Tracking: The PnL calculation was updated to track the total_daily_pnl by summing the realized profit/loss (from closed trades) and the unrealized profit/loss (strategy.openprofit) on every tick.
• Immediate Closure: The script now checks the total_daily_pnl against the user-defined limits (daily_take_profit_value, daily_stop_loss_value) and immediately executes strategy.close_all() the moment the threshold is breached, preventing further trading.
• Combined Risk Enforcement: The user-defined "Max Intraday Risk ($)" and the "Daily Stop Loss (Value)" are compared, and the script enforces the tighter of the two limits.
2. Visibility and External Alerting
To address the unavoidable issue of slippage (which causes price overshoot in fast markets even with tick execution), dedicated alert mechanisms were added.
• Dedicated Alert Condition: An alertcondition named DAILY PNL LIMIT REACHED was added. This allows you to set up a TradingView alert that triggers the instant the daily_limit_reached variable turns true, giving you the fastest possible notification.
• Visual Marker: A large red triangle (\u25b2) is plotted on the chart using plotchar at the exact moment the daily limit condition is met, providing a clear visual confirmation of the trigger bar.
3. Strategy Features and Input Flexibility
Several user-requested features were integrated to make the strategy more robust and customizable.
• Trailing Stop / Breakeven (TSL/BE): A new exit option, Fixed Ticks + TSL, was added, allowing you to set a fixed profit target while also deploying a trailing stop or breakeven level based on points/ticks gained.
• Multiple Exit Types: The exit strategy was expanded to include logic for several types: Fixed Ticks, ATR-based, Capped ATR-based, VWAP Cross, and Price/Band Crosses.
• Pyramiding Control: An input Max Pyramiding Entries was introduced to control how many positions the strategy can have open at the same time.
• Confirmation Logic Toggle: Added an input to choose how multiple confirmation indicators (RSI, SMMA, MACD) are combined: "AND" (all must be true) or "OR" (at least one must be true).
• Indicator Confirmations: Logic for three external indicators—RSI, SMMA (EMA), and MACD—was fully integrated to act as optional filters for entry.
• VWAP Reset Anchors: Logic was corrected to properly reset the VWAP calculation based on the selected period ("Daily", "Weekly", or "Session") by using Pine Script v6's required anchor series.
Trading Day Filters: Inputs were added to select which specific days of the week the strategy is allowed to trade.
BH BTC LS Atopetrader Bitcoin 15M Advanced Trading Strategy
This strategy is designed to trade Bitcoin on the 15-minute timeframe for long and short positions. It uses an advanced system adapted to price action, combined with automated risk management through stop loss and take profit. It is optimized to adapt to the high volatility and speculative nature of BTC, seeking out trend-driven momentum opportunities and avoiding low-probability periods detected through historical analysis.
Timeframe Compatibility
While the strategy is specifically adapted and optimized for the 15-minute timeframe (15M), it has been engineered to perform across multiple timeframes ranging from 5-minute to 4-hour intervals. This multi-timeframe versatility allows traders to adjust the strategy parameters according to their preferred trading style and market conditions.
This adaptability across different timeframes significantly enhances the strategy's robustness, making it more resilient to varying market regimes and reducing over-optimization to a single timeframe. By testing and validating across 5-minute to 4-hour intervals, the strategy demonstrates consistent edge across diverse trading environments, which strengthens confidence in its performance across broader market conditions.
Cross-Asset Testing
Beyond Bitcoin, this strategy could be tested and adapted for trading other cryptocurrencies, making it a flexible framework for exploring momentum-based opportunities across different digital assets with varying volatility profiles.
Performance Summary
This strategy has significantly outperformed a simple buy-and-hold approach over the 6-year backtest period. Here are the standout metrics:
Total P&L: +$41,277.80 USDT (+2,063.89%)
Net Profit: +$41,277.80 USDT with only 18.35% max drawdown
Total Trades: 2,169 with 44.63% win rate
Profit Factor: 2.17x (strong edge)
Key Advantage Over Buy & Hold
The Buy & Hold return was +$16,576.63 USDT (+828.83%), meaning this strategy more than doubled Buy & Hold returns over the same period. The active trading approach consistently captured momentum while the 2.17x profit factor demonstrates edge-based entries.
Commission Structure: A 0.1% commission per trade has been factored into the backtesting analysis, which is more than sufficient to cover typical exchange trading fees on major platforms. This conservative fee structure ensures the reported results account for real-world trading costs while still demonstrating substantial profitability.
Important Disclaimer
This strategy does not guarantee future profits and should be used after testing and analyzing in a simulated environment. A disciplined approach and appropriate risk management are recommended for the cryptocurrency market. Past performance is not indicative of future results, and actual trading may differ from backtested scenarios due to market slippage, liquidity conditions, and changing market dynamics.
HEK Dynamic Price Channel StrategyHEK Dynamic Price Channel Strategy
Concept
The HEK Dynamic Price Channel provides a channel structure that expands and contracts according to price momentum and time-based equilibrium.
Unlike fixed-band systems, it evaluates the interaction between price and its balance line through an adaptive channel width that dynamically adjusts to changing market conditions.
How It Works
When the price reacts to the midline, the channel bands automatically reposition themselves.
Touching the upper band indicates a strengthening trend, while touching the lower band signals weakening momentum.
This adaptive mechanism helps filter out false signals during sudden directional changes, enhancing overall signal quality.
Advantages
✅ Maintains trend continuity while avoiding overtrading.
✅ Automatically adapts to changing volatility conditions.
✅ Detects early signals of short- and mid-term trend reversals.
Applications
Directional confirmation in spot and futures markets.
A supporting tool in channel breakout strategies.
Identifying price consolidation and equilibrium zones.
Note
This strategy is intended for educational and research purposes only.
It should not be considered financial advice. Always consult a professional financial advisor before making investment decisions.
© HEK — Adaptive Channel Approach on Dynamic Market Structures
Trendline Breakout Strategy Strategy should place entries & exits so that it can be backtested (use strategy.entry and strategy.exit with explicit stop and limit prices). Include an option for fixed percent position sizing and an option for fixed contract size. Draw the trendline on the chart (with option to hide/show) and add labels that show: bias (Bull/Bear), trendline slope, entry price, SL, TP and the reason (e.g., "Trendline Breakout"). Provide user inputs for: EMA length (default 200), lookback for pivot detection, pivot sensitivity (left/right bars), quantity mode (percent / contracts), risk percent or fixed size, enable/disable backtest prints, and enable alerts. Avoid repainting: use confirmed pivot logic (pivot detection must use completed bars) and only take entry after breakout confirmed on close. Document any limitations (for example, trendline using two highest/highest bars inside lookback is approximate). Add clear comments, helpful variable names, and include example alertcondition lines for entry and exit signals.
Pitchfork-Trading Friendsuses the pitchfork to give entry and exit zones, and gives a net overall summary for a beginner trader to enter into.
FVG Donchian Channel strategy30min FVG + Donchian Channel strategy
buy sell by 30min fvg
and stoploss , take profit by Donchian Channel
Run the strategy on the 1min timeframe!
VWAP & Band Cross Strategy v6VWAP & Band Cross Strategy v6: Script Summary
This Pine Script implements a highly flexible, multi-layered trading strategy centered around the Volume Weighted Average Price (VWAP) and its associated Standard Deviation Bands.
The strategy is designed to test various entry/exit models based on how the price interacts with the central VWAP line and the upper/lower volatility bands, with extensive risk management and confirmation filters.
1. Core Mechanics (VWAP & Bands)
VWAP Calculation: Calculates the VWAP based on a user-defined source (default is the close price).
Standard Deviation Bands: Creates upper and lower bands by calculating the standard deviation of the price (over 20 periods by default) and multiplying it by a user-defined Multiplier (default is 2.0). These bands dynamically expand and contract with volatility.
Plotting: The script clearly plots the VWAP (purple), the Upper Band (green), and the Lower Band (red), with a colored fill between the bands.
2. Entry Triggers
The core entry logic is based on a single, user-selected cross event between the price and the VWAP/Bands. The user can choose from six predefined entry types:
Entry Type Category
Entry Trigger (Long)
Entry Trigger (Short)
Mean Reversion
Price crosses over the Lower Band.
Price crosses under the Upper Band.
Trend Following
Price crosses over the Upper Band (Breakout).
Price crosses under the Lower Band (Breakout).
VWAP Cross
Price crosses over the VWAP.
Price crosses under the VWAP.
3. Filters and Confirmation
Trades are only executed if they pass a series of optional filters, making the strategy highly customizable:
Technical Confirmation (Optional): Users can enable and configure up to three additional indicators that must align with the trade direction:
RSI: Price must be Oversold (for Long) or Overbought (for Short).
SMMA: Price must be above the SMMA (for Long) or below (for Short).
MACD: MACD line must cross the Signal line and the Histogram must be positive/negative.
Time and Day Filters: Trades are restricted to a defined Entry Start/End Hour/Minute window, and only execute on user-selected Trading Days of the week.
Trade Direction: Can be toggled to execute Long Only, Short Only, or Both.
4. Advanced Risk Management (Daily Limits)
The strategy incorporates robust daily limits that reset at a configured Daily Reset Hour/Minute:
Daily Profit/Loss Limits: If the running total of Realized PnL (closed trades) + Unrealized PnL (open position) exceeds a user-defined Daily Take Profit (in Ticks) or falls below the Daily Stop Loss (in Ticks), the strategy locks out new trades and immediately closes any open position.
Max Daily Trades: Prevents the strategy from entering more than a specified number of trades per day.
5. Exit Logic
The strategy exit is also highly configurable via the Exit Type setting:
Fixed Ticks / ATR / Capped ATR: If one of these is selected, the script calculates a static Stop Loss and Take Profit level upon entry, using either fixed tick values or dynamic values based on the Average True Range (ATR), which are then executed using Pine Script's strategy.exit function.
Cross Exits (VWAP/Bands): If selected, the position is closed when the price crosses the VWAP or a specific band in the opposite direction.
End-of-Day Close: An unconditional exit that closes all open positions at a user-defined Close All Hour/Minute, regardless of profit/loss or limit status, preventing positions from being held overnight.






















