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)
Indicators and strategies
NEXT GEN INSPIRED BY OLIVER VELEZDYOR NFA
1. Initial Setup & Application
Load the Strategy to your desired chart (e.g., EURUSD M5, as suggested by the script's backtest).
Overlay: Ensure the script is set to overlay=true (which it is) so the signals and Moving Averages plot directly on the price chart.
Equity Management: Review the initial strategy settings for capital and position sizing:
Initial Capital: Defaults to 10,000.
Default Qty Type: Set to strategy.percent_of_equity (22%), meaning 22% of your available equity is used per trade. Adjust this percentage based on your personal risk tolerance.
2. Reviewing Key Indicator Inputs
The script uses default values that are optimized, but you can adjust them in the settings panel:
Fast EMA: Defaults to 9 (e.g., a 9-period Exponential Moving Average).
Slow EMA: Defaults to 21 (e.g., a 21-period Exponential Moving Average). These EMAs define the short-term trend.
ATR: Defaults to 14 (Average True Range). Used to dynamically calculate volatility for SL/TP distances.
Final R:R: Defaults to 4.5 (minimum R:R required for a signal). This is the core of the strategy's high reward goal.
3. Interpreting Entry Signals
A trade signal is generated only when all conditions—EMA trend, "Elephant Logic" momentum, and non-ranging market—are met.
Long Signal: Appears as a green triangle (▲) below the bar, labeled "COMBO".
Short Signal: Appears as a red triangle (▼) above the bar, labeled "COMBO".
Live Plan: Upon signal, a detailed label is immediately plotted on the chart showing the FULL BATTLE PLAN:
SL: Calculated Stop Loss price.
TP: Calculated Take Profit price (based on the Final R:R).
Risk/Reward Pips: The calculated pips for the trade's risk and reward.
R:R = 1:4.5: The exact Risk-to-Reward ratio.
4. Understanding Market Conditions & Visuals
The script provides visuals to help you understand the current market state:
Trend EMAs: The 9 EMA (green) and 21 EMA (purple/magenta) are plotted to show the underlying trend.
Long trades only fire when Price > 9 EMA > 21 EMA.
Short trades only fire when Price < 9 EMA < 21 EMA.
Ranging Market (Rejection): Bars turn a light gray/silver when the proprietary "Reject Ranging" logic is active, indicating a low-volatility period. No new trades will be taken during these bars.
Momentum Bar: Bars turn a gold/yellow color when the "Elephant Logic" (high-momentum, large-body candles over 2-3 periods) is detected, highlighting powerful price movement.
5. Execution and Exit Logic
The strategy handles entry, scaling, and exit automatically:
Entry: A market order is placed (strategy.entry) immediately upon the bar where the longSetup or shortSetup condition is met.
Scaling Out (+1R): If the trade moves favorably by an amount equal to the initial risk (1R), the script closes a portion of the position (strategy.close with comment "+1R"). This partial exit locks in profit equivalent to the initial risk.
Re-entry (Pyramiding): After the +1R exit, the strategy attempts a re-entry (LONG RE/SHORT RE diamond plot) if the price meets certain criteria near the 9 EMA, trying to capitalize on further trend continuation.
Final Exits:
Take Profit: A limit order is set at the calculated TP level (stopDist * minRR).
Stop Loss: A stop order is set at the calculated SL level (stopDist * 1.3), slightly wider than the initial SL distance, likely to account for spread/slippage, ensuring the maximum loss is defined.
Trailing Stop: A trailing stop is applied to the re-entry positions (LONG RE/SHORT RE) to protect profits as the market moves further in the direction of the trade.
WMAX-D-TPS1 (USD setup)Here I show you a strategy that I have been developing for years based on breakouts of maximum and minimum price levels.This work good in 1d
Range Trading StrategyOVERVIEW
The Range Trading Strategy is a systematic trading approach that identifies price ranges
from higher timeframe candles or trading sessions, tracks pivot points, and generates
trading signals when range extremes are mitigated and confirmed by pivot levels.
CORE CONCEPT
The strategy is based on the principle that when a candle (or session) closes within the
range of the previous candle (or session), that previous candle becomes a "range" with
identifiable high and low extremes. When price breaks through these extremes, it creates
trading opportunities that are confirmed by pivot levels.
RANGE DETECTION MODES
1. HTF (Higher Timeframe) Mode:
Automatically selects a higher timeframe based on the current chart timeframe
Uses request.security() to fetch HTF candle data
Range is created when an HTF candle closes within the previous HTF candle's range
The previous HTF candle's high and low become the range extremes
2. Sessions Mode:
- Divides the trading day into 4 sessions (UTC):
* Session 1: 00:00 - 06:00 (6 hours)
* Session 2: 06:00 - 12:00 (6 hours)
* Session 3: 12:00 - 20:00 (8 hours)
* Session 4: 20:00 - 00:00 (4 hours, spans midnight)
- Tracks high, low, and close for each session
- Range is created when a session closes within the previous session's range
- The previous session's high and low become the range extremes
PIVOT DETECTION
Pivots are detected based on candle color changes (bullish/bearish transitions):
1. Pivot Low:
Created when a bullish candle appears after a bearish candle
Pivot low = minimum of the current candle's low and previous candle's low
The pivot bar is the actual bar where the low was formed (current or previous bar)
2. Pivot High:
Created when a bearish candle appears after a bullish candle
Pivot high = maximum of the current candle's high and previous candle's high
The pivot bar is the actual bar where the high was formed (current or previous bar)
IMPORTANT: There is always only ONE active pivot high and ONE active pivot low at any
given time. When a new pivot is created, it replaces the previous one.
RANGE CREATION
A range is created when:
(HTF Mode) An HTF candle closes within the previous HTF candle's range AND a new HTF
candle has just started
(Sessions Mode) A session closes within the previous session's range AND a new session
has just started
Or Range Can Be Created when the Extreme of Another Range Gets Mitigated and We Have a Pivot low Just Above the Range Low or Pivot High just Below the Range High
Range Properties:
rangeHigh: The high extreme of the range
rangeLow: The low extreme of the range
highStartTime: The timestamp when the range high was actually formed (found by looping
backwards through bars)
lowStartTime: The timestamp when the range low was actually formed (found by looping
backwards through bars)
highMitigated / lowMitigated: Flags tracking whether each extreme has been broken
isSpecial: Flag indicating if this is a "special range" (see Special Ranges section)
RANGE MITIGATION
A range extreme is considered "mitigated" when price interacts with it:
High is mitigated when: high >= rangeHigh (any interaction at or above the level)
Low is mitigated when: low <= rangeLow (any interaction at or below the level)
Mitigation can happen:
At the moment of range creation (if price is already beyond the extreme)
At any point after range creation when price touches the extreme
SIGNAL GENERATION
1. Pending Signals:
When a range extreme is mitigated, a pending signal is created:
a) BEARISH Pending Signal:
- Triggered when: rangeHigh is mitigated
- Confirmation Level: Current pivotLow
- Signal is confirmed when: close < pivotLow
- Stop Loss: Current pivotHigh (at time of confirmation)
- Entry: Short position
Signal Confirmation
b) BULLISH Pending Signal:
- Triggered when: rangeLow is mitigated
- Confirmation Level: Current pivotHigh
- Signal is confirmed when: close > pivotHigh
- Stop Loss: Current pivotLow (at time of confirmation)
- Entry: Long position
IMPORTANT: There is only ever ONE pending bearish signal and ONE pending bullish signal
at any given time. When a new pending signal is created, it replaces the previous one
of the same type.
2. Signal Confirmation:
- Bearish: Confirmed when price closes below the pivot low (confirmation level)
- Bullish: Confirmed when price closes above the pivot high (confirmation level)
- Upon confirmation, a trade is entered immediately
- The confirmation line is drawn from the pivot bar to the confirmation bar
TRADE EXECUTION
When a signal is confirmed:
1. Position Management:
- Any existing position in the opposite direction is closed first
- Then the new position is entered
2. Stop Loss:
- Bearish (Short): Stop at pivotHigh
- Bullish (Long): Stop at pivotLow
3. Take Profit:
- Calculated using Risk:Reward Ratio (default 2:1)
- Risk = Distance from entry to stop loss
- Target = Entry ± (Risk × R:R Ratio)
- Can be disabled with "Stop Loss Only" toggle
4. Trade Comments:
- "Range Bear" for short trades
- "Range Bull" for long trades
SPECIAL RANGES
Special ranges are created when:
- A range high is mitigated AND the current pivotHigh is below the range high
- A range low is mitigated AND the current pivotLow is above the range low
In these cases:
- The pivot value is stored in an array (storedPivotHighs or storedPivotLows)
- A "special range" is created with only ONE extreme:
* If pivotHigh < rangeHigh: Creates a range with rangeHigh = pivotLow, rangeLow = na
* If pivotLow > rangeLow: Creates a range with rangeLow = pivotHigh, rangeHigh = na
- Special ranges can generate signals just like normal ranges
- If a special range is mitigated on the creation bar or the next bar, it is removed
entirely without generating signals (prevents false signals)
Special Ranges
REVERSE ON STOP LOSS
When enabled, if a stop loss is hit, the strategy automatically opens a trade in the
opposite direction:
1. Long Stop Loss Hit:
- Detects when: position_size > 0 AND position_size <= 0 AND low <= longStopLoss
- Action: Opens a SHORT position
- Stop Loss: Current pivotHigh
- Trade Comment: "Reverse on Stop"
2. Short Stop Loss Hit:
- Detects when: position_size < 0 AND position_size >= 0 AND high >= shortStopLoss
- Action: Opens a LONG position
- Stop Loss: Current pivotLow
- Trade Comment: "Reverse on Stop"
The reverse trade uses the same R:R ratio and respects the "Stop Loss Only" setting.
VISUAL ELEMENTS
1. Range Lines:
- Drawn from the time when the extreme was formed to the mitigation point (or current
time if not mitigated)
- High lines: Blue (or mitigated color if mitigated)
- Low lines: Red (or mitigated color if mitigated)
- Style: SOLID
- Width: 1
2. Confirmation Lines:
- Drawn when a signal is confirmed
- Extends from the pivot bar to the confirmation bar
- Bearish: Red, solid line
- Bullish: Green, solid line
- Width: 1
- Can be toggled on/off
STRATEGY SETTINGS
1. Range Detection Mode:
- HTF: Uses higher timeframe candles
- Sessions: Uses trading session boundaries
2. Auto HTF:
- Automatically selects HTF based on current chart timeframe
- Can be disabled to use manual HTF selection
3. Risk:Reward Ratio:
- Default: 2.0 (2:1)
- Minimum: 0.5
- Step: 0.5
4. Stop Loss Only:
- When enabled: Trades only have stop loss (no take profit)
- Trades close on stop loss or when opposite signal confirms
5. Reverse on Stop Loss:
- When enabled: Hitting a stop loss opens opposite trade with stop at opposing pivot
6. Max Ranges to Display:
- Limits the number of ranges kept in memory
- Oldest ranges are purged when limit is exceeded
KEY FEATURES
1. Dynamic Pivot Tracking:
- Pivots update on every candle color change
- Always maintains one high and one low pivot
2. Range Lifecycle:
- Ranges are created when price closes within previous range
- Ranges are tracked until mitigated
- Mitigation creates pending signals
- Signals are confirmed by pivot levels
3. Signal Priority:
- Only one pending signal of each type at a time
- New signals replace old ones
- Confirmation happens on close of bar
4. Position Management:
- Closes opposite positions before entering new trades
- Tracks stop loss levels for reverse functionality
- Respects pyramiding = 1 (only one position per direction)
5. Time-Based Drawing:
- Uses time coordinates instead of bar indices for line drawing
- Prevents "too far from current bar" errors
- Lines can extend to any historical point
USAGE NOTES
- Best suited for trending and ranging markets
- Works on any timeframe, but HTF mode adapts automatically
- Sessions mode is ideal for intraday trading
- Pivot detection requires clear candle color changes
- Range detection requires price to close within previous range
- Signals are generated on bar close, not intra-bar
The strategy combines range identification, pivot tracking, and signal confirmation to
create a systematic approach to trading breakouts and reversals based on price structure, past performance does not in any way predict future performance
RSI + MACD Multi-Timeframe StrategyThis strategy combines the Relative Strength Index (RSI) from the daily timeframe with the Moving Average Convergence Divergence (MACD) from the 4-hour timeframe to generate precise long entry and exit signals.
The system uses a multi-timeframe approach to align longer-term trend conditions with shorter-term momentum shifts — allowing traders to catch dips with confirmation and exit before reversals.
🧠 Strategy Logic
✅ Long Entry Condition:
- RSI on the daily (1D) timeframe is oversold (below your defined threshold)
- MACD on the 4H timeframe crosses above the signal line
→ A long trade is opened when these two align
✅ Long Exit Condition:
- RSI on the daily timeframe is overbought
- MACD on the 4H timeframe crosses below the signal line
→ The long trade is closed when these two conditions are met
💡 This strategy currently supports long entries only. Short logic can be added if needed.
📊 Indicator Components
🔹 RSI (Relative Strength Index):
- A momentum oscillator that measures the speed and magnitude of price changes.
- Helps identify overbought (potential sell) and oversold (potential buy) conditions.
- Applied on the 1D timeframe (by default) to reflect broader market trend or exhaustion levels.
🔹 MACD (Moving Average Convergence Divergence):
- A trend-following momentum indicator based on moving averages.
- The MACD Line (fast EMA - slow EMA) crossing above the Signal Line indicates bullish momentum.
- Used here on the 4-hour timeframe (by default) for shorter-term momentum confirmation.
🔹 Multi-Timeframe (MTF) Logic:
- Uses request.security() to pull higher timeframe data (1D for RSI, 4H for MACD).
- Ensures no repainting, as it only uses closed candles from the higher timeframe.
- Aligns longer-term signals with shorter-term entries, reducing false signals.
📈 Plotting Options
The script includes a plot selector input allowing you to toggle between:
- RSI Plot (with overbought/oversold lines)
- MACD Plot (MACD line and signal line)
- This helps visualize signal conditions clearly on your chart.
🛠 Customization
- RSI & MACD settings are fully configurable
- RSI and MACD timeframes can be adjusted independently
⚠️ Disclaimer
This strategy is provided for educational and informational purposes only.
It is not financial advice or a recommendation to buy or sell any asset.
Past performance does not guarantee future results. Always test strategies in a simulated environment before live use, and consult with a licensed financial advisor for investment decisions.
Target Trend + Filter Toggles Strategy [ChadAnt]The strategy aims to enter a trade when the price crosses over/under a dynamic trend band and when a combination of user-selected filters confirms the move.
1. Trend Bands (Entry)
The core trend is defined by two smoothed moving averages (SMA based on length input) offset by a smoothed Average True Range (ATR) value.
Upper Band (sma_high): ta.sma(high, length) + atr_value
Lower Band (sma_low): ta.sma(low, length) - atr_value
atr_value is ta.sma(ta.atr(atrLength), smaLength) * atrMultiplier.
Trend Determination:
Long Trend (trend = true): Price crossovers the sma_high band.
Short Trend (trend = false): Price crossesunder the sma_low band.
Raw Signal: A trade signal (signal_up_raw / signal_down_raw) is triggered only when the trend state changes.
2. Stop Loss and Take Profit
Stop Loss (SL):
For a Long entry, the original stop price is the Lower Band (sma_low) at the time of the cross.
For a Short entry, the original stop price is the Upper Band (sma_high) at the time of the cross.
The Stop Loss Price is calculated using the distance from the entry price to the original stop, adjusted by the slAdjustment multiplier.
Take Profit (TP):
Calculated based on a Risk/Reward (R:R) ratio, which is rr_increment * tp_target_number.
TP Distance = Adjusted Stop Distance * R:R Ratio.
The strategy enters and exits in a single order pair using strategy.entry and strategy.exit, using the calculated stop_loss_price and take_profit_price.
3. Filters and Confirmation
The strategy includes toggles (use_..._filter) for many popular indicators: MACD, Volume, StochRSI, Awesome Oscillator (AO), and Moving Average/VWAP (Trend/Counter-Trend).
Filter Logic: Each filter checks for its specific confirmation condition (e.g., MACD zero-cross, AO color change, StochRSI out of extreme, Volume > SMA, Price above MA).
Lookback Period: The script uses a for loop (i = 0 to filter_lookback) to check if the required confirmation happened within the last filter_lookback bars.
Final Signal: The actual entry signal (signal_up / signal_down) is triggered only if the Raw Trend Change Signal occurs AND all currently active (toggled on) filters had their required confirmation event within the lookback period AND the trade is within the Time Window.
The draw_targets method is responsible for the powerful visual display on the chart:
When a new filtered signal occurs, it clears any old lines/labels and draws the new:
Entry line
Stop Loss line
Multiple Take Profit lines (up to num_targets), with the strategy's active TP level highlighted (🎯).
It also features logic to dynamically change the label/line of a TP level to a "✔" or the SL level to a "✖" if the price touches that level on subsequent bars.
The strategy is a highly flexible, multi-factor system built on the concept of trend reversal confirmation.
Velocity SmartMoney Engine work - Delta Exchange📈 Velocity SmartMoney Engine
Adaptive Breakout & Order Block Strategy with Dynamic Risk Control
---
🔍 Overview
The Velocity SmartMoney Engine is a next-generation trading strategy that fuses Smart Money breakout logic , Order Block structure detection , and Supertrend-based directional filtering into one precision-built system.
It identifies institutional-level breakouts , manages positions with ATR-based adaptive risk , and executes disciplined exits using stop-loss, trailing stop, and profit target logic.
Designed for swing and short-term system traders, this strategy performs excellently on BTC, ETH, NIFTY, BANKNIFTY, Gold, and major FX pairs — best on 15m to 4h timeframes .
---
⚙️ Core Components
1️⃣ Smart Money Breakout Logic
Detects real breakouts using dynamic support/resistance pivots.
Confirms entries only during strong volatility bursts.
Avoids false breakouts in sideways markets.
2️⃣ Order Block Gap Detection
Finds institutional imbalance zones (Smart Money footprints).
Bullish gaps = Long bias; Bearish gaps = Short bias.
Works with candle confirmation and momentum validation.
3️⃣ Supertrend Directional Filter
Trades only in direction of Supertrend bias.
Exits instantly when Supertrend flips.
Prevents entries against dominant trend.
4️⃣ ATR-Based Risk & Volatility Filter
Uses ATR × multiplier for adaptive stop sizing.
Volatility filter ensures trades trigger only during active markets.
Avoids whipsaw zones.
---
💰 Position Management
Stop-Loss: Adaptive ATR-based.
Take-Profit: Default 5% target (editable input).
Trailing Stop: Auto-adjusts to lock profits.
No-Exit Hold: Hold position for defined candles before exits.
Supertrend Flip Exit: Instant trend-based closure.
---
🧠 Built-In Trade Discipline
One-trade-per-bar guard prevents duplicate entries.
Volatility-weighted breakout validation.
Clean and conflict-free exit hierarchy.
---
🎯 Key Features
✅ Smart Money breakout + Order Block fusion
✅ Supertrend-based trend confirmation
✅ ATR dynamic stop + 5% profit target
✅ Adaptive trailing logic
✅ One-trade-per-bar control
✅ Works across Crypto, Indices, FX, Commodities
✅ Ideal for 1h–4h swing setups
---
📊 Recommended Settings
Parameter | Typical Value | Purpose
--- | --- | ---
Levels Period | 20 | Pivot lookback for S/R zones
Volatility Filter | 20–40 | Filters out low-momentum areas
ATR Multiplier | 1.5 | Adjust stop size by volatility
Supertrend Length | 10 | ATR period for trend bias
Supertrend Multiplier | 3.0 | Supertrend sensitivity
Target Profit | 5% | Default take-profit level
---
⚡ Suggested Use
• Best suited for swing entries on 1H / 4H charts .
• Combine with session filters or trend confluence for automation.
• Ideal as a base module for TradingView + Broker integrations .
---
🧩 Disclaimer
This script is for educational purposes only .
Past performance does not guarantee future returns.
Use responsibly. The developer assumes no liability for financial losses.
---
💬 Community & Access
Developed by: Shubham Singh
Version: Velocity SmartMoney Engine v1.0
For premium modules & automation: DM "Velocity Access" on chat to request access.
---
© 2025 Velocity SmartMoney Engine — All Rights Reserved
Confirmed Momentum QQQ (RSI/MACD Filter)Gemini and Myself,
How This Targets a Higher Win Rate
The key to the win rate increase is the RSI 20/80 filter.
Long Signal: A long entry is now only taken if the trend is up (SMA cross), the MACD is bullish, and the RSI is not overbought (below 80). By only entering when momentum is not yet exhausted, you increase the chance that the price can travel far enough to hit your 4.0 point Take Profit.
Wider SL: The wider Stop Loss of 2.5 points reduces the chance of being stopped out prematurely by routine market movements (whipsaws), which is the number one killer of win rates in high-frequency trading.
After applying these changes, you will need to run the Strategy Tester again to see the new win rate and the new total number of trades.
Would you like me to help you interpret the new Strategy Tester results once you apply these settings?
TitanEdge Algo Suite — 4H BTC & ETH (Delta Exchange Ready)TitanEdge Algo Suite — 4H BTC & ETH (Delta Exchange Ready)
TitanEdge Algo Suite is a next-generation trading system that fuses volatility-adaptive logic, order-block structure, SuperTrend direction filtering, and ATR-based exits into a single modular framework.
It’s engineered for 4-hour BTC and ETH swing trading, delivering institutional-grade entries, dynamic risk control, and precise exits.
⚙️ Core Features
1. Volatility Oscillator (0–100)
• Filters trades by volatility intensity.
• Uses ATR, Range, or Bollinger Band Width normalization.
• Trades trigger only when market volatility is high — filtering out sideways or weak trends.
• Ensures trades occur during real momentum expansions.
2. Breakout + Order Block Engine
• Detects pivot highs/lows to confirm authentic breakout levels.
• Identifies “smart money” gaps — institutional imbalance zones often leading to strong reversals or continuations.
• Captures both breakout continuations and order-block reversals.
• Works as a hybrid structure detector combining price action and volatility alignment.
3. SuperTrend Directional Filter
• Optional filter that only allows trades in the direction of the SuperTrend.
• Can automatically close trades when a SuperTrend flip occurs.
• Provides strong trend-following bias and helps avoid countertrend traps.
4. ATR-Based Stop & Trailing System
• Adaptive stop-loss and trailing logic that expands or tightens based on volatility.
• Supports three modes: StopOnly, TrailOnly, and StopAndTrail.
• Works in both ATR-based distance or percentage-based configuration.
• Keeps losing trades small and lets winning trades extend dynamically.
5. Volume-Based Exit Logic
• Detects low-volume exhaustion to identify momentum loss.
• Detects opposite-volume spikes as early reversal signals.
• Optional hybrid “Both” mode combines both detection methods for stronger reliability.
• Ideal for markets where volume surges indicate smart money exits or trap formations.
6. Session Filter & Anti-Churn Control
• Restrict trading hours (optional; not required for crypto).
• Prevents repeated signals and noise-based entries through minimum bars between trades.
• Cooldown logic ensures disciplined trading and avoids strategy overlap.
• Prevents multiple entries in a single bar and filters unconfirmed breakouts.
7. SmartMoney Preset Mode
• Institutional-grade configuration automatically adjusting volatility, ATR, and structural logic.
• Mimics smart money behavior by prioritizing clean structure and high liquidity volatility zones.
• Great for traders who want simplified institutional logic without manual tuning.
Optimized for 4H BTC & ETH
TitanEdge performs best on BTCUSDT and ETHUSDT pairs in the 4-hour timeframe.
The 4H chart captures high-volatility institutional swings, eliminates intraday noise, and provides clear order-block setups.
This timeframe aligns with BTC/ETH volatility cycles, providing consistent signals and cleaner trend confirmation.
Recommended settings for 4H charts:
• Levels Period: 25
• Volatility Filter: 20
• volatility oscillator Auto: disable ( it depend upon your plan test with Disable/enable)
• Volatility Method: BBWidth
• ATR Multiplier: 1.8
• ATR Stop %: 5
• SuperTrend ATR Length: 10
• SuperTrend Factor: 3
• ATR Mode: StopAndTrail
• Hold Bars: 1
• Volume Exit: Disable (Both)
• Session Filter: Off (Crypto runs 24/7)
Entry Logic
• Long Entry: Price breaks above resistance (pivot high), volatility above threshold, and optional SuperTrend confirmation.
• Short Entry: Price breaks below support (pivot low), volatility above threshold, and optional bearish SuperTrend confirmation.
• Additional Entry: Triggered by order-block gaps (smart money imbalances) in volatility expansion phases.
• Trades only when both direction and volatility align to ensure precision entries.
Exit Logic
• ATR Stop and Trail dynamically manage open trades.
• SuperTrend Flip forces exit on trend reversal.
• Volume Exit triggers when volume momentum drops or opposite spike occurs.
• Optional session close exit to flatten trades outside hours.
• Logic prevents premature exits with “Hold Bars” delay after entry.
Why You Need TitanEdge Algo Suite
• Trades only during high-volatility, strong-momentum phases — no false breakouts or choppy trades.
• ATR risk control automatically adjusts to each market’s volatility conditions.
• Identifies institutional order-blocks and clean breakouts for precise entries.
• SuperTrend filter adds directional bias, boosting win-rate consistency.
• Volume exit logic ensures profits are protected when market momentum fades.
• Works 24/7 across all major crypto pairs — fully automated and customizable.
• Built for 4H swing trades — fewer but higher-quality setups.
• Fully compatible with TradingView alerts and bot integration for hands-free execution.
How TitanEdge Makes Profit
• TitanEdge only trades during volatility expansion, when breakout continuation probability is statistically high.
• ATR dynamic stops prevent large losses by scaling protection according to real volatility.
• Trend filtering keeps positions aligned with major market flows.
• Order-block detection ensures entries are based on price structure rather than random signals.
• Volume-based exits secure profits early when momentum weakens.
• SmartMoney Preset provides optimal balance between trade frequency, accuracy, and drawdown control.
• The system compounds edge by maintaining trade discipline — fewer but stronger trades over time.
Delta Exchange Integration (TradingView Bot Ready)
TitanEdge is fully compatible with TradingView alert webhooks and can connect to Delta Exchange or any bot-supported broker.
Alert JSON message format:
{"symbol":"{{ticker}}","side":"{{strategy.order.action}}","qty":1,"trigger_time":"{{timenow}}","strategy_id":"code"}
qty 1 represent 1 lot so if you want to take trade with 5 lots or 0.05eth and write
{"symbol":"{{ticker}}","side":"{{strategy.order.action}}","qty":5,"trigger_time":"{{timenow}}","strategy_id":"code"}
Steps to automate:
Create an alert on TradingView using “Once Per Bar Close”.
Paste your bot or automation webhook URL.
Paste the JSON above as the message.
Configure your bot or API bridge (like PineConnector, AutoView, or WunderTrading) to route signals to Delta Exchange.
On Delta, use BTCUSD or ETHUSD Perpetual pairs with moderate leverage (3x–5x).
Enable Cross Margin for smooth drawdown handling.
Test first on Delta Testnet for safety.
Why 4H BTC & ETH Works Best
• 4H candles capture true volatility swings and filter lower-timeframe noise.
• Aligns with institutional liquidity cycles in BTC and ETH.
• ATR and volume-based stops perform optimally on larger bars.
• Smoother equity curve and less drawdown compared to intraday trading.
• Ideal for traders seeking structured, medium-term trades with high reward-to-risk.
Unique Edge
• Combines breakout, order-block, and volatility principles into one adaptive model.
• Incorporates volatility normalization (ATR/BBWidth) for multi-market adaptability.
• Dynamic ATR stops and trailing protect capital during unstable phases.
• Volume and trend exits create layered protection systems.
• 4H optimization eliminates noise and provides clear institutional alignment.
• SmartMoney preset auto-configures settings to mimic large-player behavior.
• Fully automated via webhooks — no manual execution required.
• Modular design lets you customize each component for different trading styles.
TradingView Bot Integration
TitanEdge is fully plug-and-play with all TradingView-compatible bots.
Each alert sends structured JSON data containing direction, symbol, and quantity, ready for execution on your connected broker.
You can route the data to:
• PineConnector (MT4/MT5 bridge)
• WunderTrading
• AutoView
• Custom Node/REST API handler
This makes TitanEdge a professional-grade strategy suitable for semi-automatic or fully automated crypto trading setups.
Professional Recommendations
• Timeframe: 4H
• Instruments: BTCUSDT, ETHUSDT
• Exchange: Delta Exchange (Perpetual Futures)
• Leverage: 3x–5x
• Session Filter: Off (crypto 24/7)
• Risk per trade: 0.5%–1% of total equity
• Alert Type: Once Per Bar Close
• Volatility Filter: 25–35 depending on market activity
• Always use realistic slippage and fees for backtests.
Summary
TitanEdge Algo Suite is a complete trading framework built to deliver institutional-quality precision with full automation support.
It captures powerful volatility expansions on 4H BTC and ETH charts using clean structure, adaptive stops, and directional trend filters.
Every feature — from entry logic to exits — is designed to protect capital and amplify performance through disciplined, volatility-aware execution.
TitanEdge is not just another script — it’s a professional-grade algorithm that combines volatility intelligence, structural precision, and adaptive risk control.
TitanEdge Algo Suite = Smart Logic × Trend Discipline × Adaptive Risk Control
Optimized for BTC & ETH on 4H charts. Built for traders who demand precision, control, and consistency.
W%R Pullback+EMA Trend [TS_Indie]🔰 Core Concept of the Strategy
The main idea is “Trend-Following with Momentum Pullback.”
This means trading in the direction of the main trend (defined by EMA) while using Williams %R to identify pullback entries (buying the dip or selling the rally) where momentum returns to the trend direction.
📊 Indicators Used
1. EMA Fast – Defines the short-term trend.
2. EMA Slow – Defines the long-term trend (used as a trend filter).
3. Williams %R
• Overbought zone: above -20
• Oversold zone: below -80
⚙️ Entry Rules
🔹 Buy Setup
1. EMA Fast > EMA Slow → Uptrend condition.
2. Williams %R on the previous candle dropped below -80, and on the current candle, it crosses back above -80 → indicates momentum returning to the upside.
3. Current close is above EMA Fast.
4. Entry Buy at the close of the candle where %R crosses above -80.
🎯 Entry, Stop Loss, and Take Profit
1. Entry : At the candle close where the signal occurs.
2. Stop Loss : At the lowest low between the current and previous candles.
3. Take Profit : Calculated based on entry price and stop loss distance multiplied by the Risk/Reward Ratio.
🔹 Sell Setup
1. EMA Fast < EMA Slow → Downtrend condition.
2. Williams %R on the previous candle went above -20, and on the current candle, it crosses back below -20 → indicates renewed selling momentum.
3. Current price is below EMA Fast.
4. Entry Sell at the close of the candle where %R crosses below -20.
🎯 Entry, Stop Loss, and Take Profit
1. Entry : At the candle close where the signal occurs.
2. Stop Loss : At the highest high between the current and previous candles.
3. Take Profit : Calculated based on entry price and stop loss distance multiplied by the Risk/Reward Ratio.
⚙️ Optional Parameters
• Custom Risk/Reward Ratio for Take Profit.
• Option to add ATR buffer to Stop Loss.
• Adjustable EMA Fast period.
• Adjustable EMA Slow period.
• Adjustable Williams %R period.
• Option to enable Long only / Short only positions.
• Customizable Backtest start and end date.
• Customizable trading session time.
⏰ Alert Function
Alerts display:
• Entry price
• Stop Loss price
• Take Profit price
Guys, try adjusting the parameters yourselves!
I’ve been tweaking the settings for several days and managed to get great results on XAU/USD in the 5-minute timeframe.
I think this strategy is quite interesting and could potentially deliver good results on other instruments as well.
⚠️ Disclaimer
This indicator is designed for educational and research purposes only.
It does not guarantee profits and should not be considered financial advice.
Trading in financial markets involves significant risk, including the potential loss of capital.
12M SMA Timing (HTF-safe, 100% equity)Buy when S&P500 closes above 12M moving average. Sell when it closes below it. Monthly only.
For Albert**Strategy Name:** Agile Marketing Strategy
**Description:**
The Agile Marketing Strategy is a flexible and iterative approach to marketing that emphasizes rapid experimentation, customer feedback, and continuous improvement. This strategy enables marketers to adapt quickly to changing market conditions and customer needs, ensuring that marketing efforts remain relevant and effective.
**Key Principles:**
1. **Iterative Planning:** marketing activities are planned in short sprints, allowing for regular reassessment and adjustment of goals.
2. **Cross-Functional Teams:** collaboration between different departments (e.g., sales, product development, customer service) is encouraged to ensure a holistic approach to marketing.
3. **Data-Driven Decision Making:** decisions are based on real-time data and customer insights, enabling marketers to optimize their efforts for maximum impact.
4. **Continuous Learning:** the strategy promotes a culture of learning and experimentation, where marketers can test new ideas and learn from failures.
5. **Customer-Centric Approach:** understanding and meeting customer needs is prioritized through regular feedback and iterative improvements.
**Benefits:**
- **Increased Efficiency:** by focusing on iterative and incremental improvements, marketers can achieve better results with fewer resources.
- **Enhanced Customer Satisfaction:** a customer-centric approach helps to build stronger relationships and drive customer loyalty.
- **Faster Response to Market Changes:** the ability to quickly adapt to market trends and customer preferences ensures that marketing efforts remain effective.
- **Improved Collaboration:** cross-functional teams foster better communication and collaboration across departments.
- **Greater Innovation:** a culture of experimentation encourages marketers to explore new ideas and innovations.
Bybit BTCUSD.P 자동매매 전략 v12 (Pi Cycle 비율 필터)Abstract
Sigma Trinity Model is an educational framework that studies how three layers of market behavior interact within the same trend: (1) structural momentum (Rasta), (2) internal strength (RSI), and (3) continuation/compounding structure (Pyramid). The model deliberately combines bar-close momentum logic with intrabar, wick-aware strength checks to help users see how reversals form, confirm, and extend. It is not a signal service or automation tool; it is a transparent learning instrument for chart study and backtesting.
Why this is not “just a mashup”
Many scripts merge indicators without explaining the purpose. Sigma Trinity is a coordinated, three-engine study designed for a specific learning goal:
Rasta (structure): defines when momentum actually flips using a dual-line EMA vs smoothed EMA. It gives the entry/exit framework on bar close for clean historical study.
RSI (energy): measures internal strength with wick-aware triggers. It uses RSI of LOW (for bottom touches/reclaims) and RSI of HIGH (for top touches/exhaustion) so users can see intrabar strength/weakness that the close can hide.
Pyramid (progression): demonstrates how continuation behaves once momentum and strength align. It shows the logic of adds (compounding) as a didactic layer, also on bar close to keep historical alignment consistent.
These three roles are complementary, not redundant: structure → strength → progression.
Architecture Overview
Execution model
Rasta & Pyramid: bar close only by default (historically stable, easy to audit).
RSI: per tick (realtime) with bar-close backup by default, using RSI of LOW for entries and RSI of HIGH for exits. This makes the module sensitive to intra-bar wicks while still giving a close-based safety net for backtests.
Stops (optional in strategy builds): wick-accurate: trail arms/ratchets on HIGH; stop hit checks with LOW (or Close if selected) with a small undershoot buffer to avoid micro-noise hits.
Visual model
Dual lines (EMA vs smoothed EMA) for Rasta + color fog to see direction and compression/expansion.
nOI + Funding + CVD • strategynOI + Funding + CVD Strategy
Overview
This strategy is designed for cryptocurrency trading on platforms like TradingView, focusing on perpetual futures markets. It combines three key indicators—Normalized Open Interest (nOI), Funding Rate, and Cumulative Volume Delta (CVD)—to generate buy and sell signals for long and short positions. The strategy aims to capitalize on market imbalances, such as overextended open interest, funding rate extremes, and volume deltas, which often signal potential reversals or continuations in trending markets.
The script supports pyramiding (up to 10 positions), uses percentage-based position sizing (default 10% of equity per trade), and allows customization of trade directions (longs and shorts can be enabled/disabled independently). It includes multiple signal systems for entries, various exit mechanisms (including stop-loss, take-profit, time-based exits, and conditional closes based on indicators), a Martingale add-on system for averaging positions during drawdowns, and handling of opposite signals (ignore, close, or reverse).
This strategy is not financial advice; backtest thoroughly and use at your own risk. It requires data sources for Open Interest (OI) and Funding Rates, which are fetched via TradingView's security functions (e.g., from Binance for funding premiums).
Key Indicators
1. Normalized Open Interest (nOI)
Group: Open Interest
Purpose: Measures the relative level of open interest over a lookback window to identify overbought (high OI) or oversold (low OI) conditions, which can indicate potential exhaustion in trends.
Calculation:
Fetches OI data (close) from the symbol's standard ticker (e.g., "{symbol}_OI").
Normalizes OI within a user-defined window (default: 500 bars) using min-max scaling: (OI - min_OI) / (max_OI - min_OI) * 100.
Upper threshold (default: 70%): Signals potential short opportunities when crossed from above.
Lower threshold (default: 30%): Signals potential long opportunities when crossed from below.
Visualization: Plotted as a line (teal above upper, red below lower, gray in between). Horizontal lines at upper, mid (50%), lower, and a separator at 102%.
Notes: Handles non-crypto symbols by adjusting timeframe to daily if intraday. Errors if no OI data available.
2. Funding Rate
Group: Funding Rate
Purpose: Tracks the average funding rate (premium index) to detect market sentiment extremes. Positive funding suggests bull bias (longs pay shorts), negative suggests bear bias.
Calculation:
Fetches premium index data from Binance (e.g., "binance:{base}usdt_premium").
Supports lower timeframe aggregation (default: enabled, using 1-min TF) for smoother data.
Averages open and close premiums, clamps values, and scales/shifts for plotting (base: 150, scale: 1000x).
Upper threshold (default: 1.0%): Overheat for shorts.
Lower threshold (default: 1.0%): Overcool for longs.
Ultra level (default: 1.8%): Extreme for additional short signals.
Smoothing: Uses inverse weighted moving average (IWMA) or lower-TF aggregation to reduce noise.
Visualization: Shifted plot (green positive, red negative) with filled areas. Horizontal lines for overheat, overcool, base (0%), and ultra.
Notes: Custom ticker option for non-standard symbols.
3. Cumulative Volume Delta (CVD)
Group: CVD (Cumulative Volume Delta)
Purpose: Measures net buying/selling pressure via volume delta, normalized to identify divergences or confirmations with price.
Calculation:
Delta: +volume if close > open, -volume if close < open.
Cumulative: Rolling cumsum over a window (default: 500 bars), smoothed with EMA (default: 20).
Normalized: Scaled by absolute max in window (-1 to 1 range).
Scaled/shifted for plotting (base: 300 or 0 if anchored, scale: 120x).
Upper threshold (default: 1.0%): Over for shorts.
Lower threshold (default: 1.0%): Under for longs.
Visualization: Shifted plot (aqua positive, purple negative) with filled areas. Horizontal lines for over, under, and separator (default: 252).
Filter Options (for Signal A):
Enable filter (default: false).
Require sign match (Long ≥0, Short ≤0).
Require extreme zones.
Require momentum (rising/falling over N bars, default: 3).
Signal Logics for Entries
Entries are triggered by buy/sell signals from multiple systems (A, B, C, D), filtered by direction toggles and entry conditions.
Signal System A: OI + Funding (with optional CVD filter)
Enabled: Default true.
Sell (Short): nOI > upper threshold, falling over N bars (default: 3), delta ≥ threshold (default: 3%), funding > overheat, and CVD filter OK.
Buy (Long): nOI < lower threshold, rising over N bars (default: 3), delta ≥ threshold (default: 3%), funding < overcool, and CVD filter OK.
Signal System B: Short - Funding Crossunder + Filters
Enabled: Default true.
Sell (Short): Funding crosses under overheat level, optional: CVD > over, nOI < upper.
Signal System C: Short - Ultra Funding
Enabled: Default false.
Sell (Short): Funding crosses ultra level (up or down, both default true).
Signal System D: Long - Funding Crossover + Filters
Enabled: Default true.
Buy (Long): Funding crosses over overcool level, optional: CVD < under, nOI > lower.
Combined: Sell if A/B/C active; Buy if A/D active.
Entry Filters
Cooldown: Optional pause between entries (default: false, 3 bars).
Max Entries: Limit pyramiding (default: true, 6 max).
Entries only if both filters pass and direction allowed.
Opposite Signal Handling
Mode: Ignore (default), Reverse (close and enter opposite), or Close (exit only).
Processed before regular entries.
Position Management
Martingale (3 Steps):
Enabled per step (default: all true).
Triggers add-ons at loss levels (defaults: 5%, 8%, 11%) by adding % to position (default: 100% each).
Resets on position close.
Break Even:
Enabled (default: true).
Activates at profit threshold (default: 5%), sets SL better by offset (default: 0.1%).
Exit Systems
Multiple exits checked in sequence.
Exit 1: SL/TP
Enabled: Separate for long/short (default: true).
SL: % from avg price (defaults: 1% long/short).
TP: % from avg price (defaults: 2% long/short).
Exit 2: Funding
Enabled: Separate for long (up) / short (down) (default: true).
Long Exit: Funding > upper exit threshold (default: 0.8%).
Short Exit: Funding < lower exit threshold (default: 0.8%).
Exit 3: nOI
Enabled: Separate for long (up) / short (down) (default: true).
Long Exit: nOI > upper exit (default: 85%).
Short Exit: nOI < lower exit (default: 15%).
Exit 4: Global SL
Enabled: Default true.
Exit: If position loss ≥ % (default: 7%).
Exit 5: Break Even (integrated in position block)
Exit 6: Time Limit
Enabled: Separate for long/short (default: true).
Exit: After N bars in trade (defaults: 30 each).
Timer updates on add-ons if enabled (default: true).
Visual Elements
Buy/Sell Labels: Small labels ("BUY"/"SELL") on bars with signals, limited to last 30.
All indicators plotted on a separate pane (overlay=false).
Usage Notes
Backtesting: Adjust parameters based on asset/timeframe. Test on historical data.
Data Requirements: Works best on crypto perps with OI and funding data.
Risk Management: Incorporates SL/TP and global SL; monitor drawdowns with Martingale.
Customization: All thresholds, enables, and scales are inputs for fine-tuning.
Version: Pine Script v6.
For questions or improvements, contact the author. Happy trading!
🚀 DocBrown PRO Edition V14++(Institutional Level - Open Source - 1 month Development - Live Testing)
🚀 DocBrown PRO Edition V14++
Author: Jesús Nicolás Astorga
Telegram: @jesus_nicolas_astorga
Origin: Junín – Mendoza – Argentina
DocBrown PRO Edition V14++ is an institutional-level, adaptive trend-following strategy designed for precision and stability across crypto, forex, and index markets. It was developed with a scientific and systematic approach, merging volatility modeling, risk control, and market structure detection into one unified algorithm. The result is a robust system capable of adapting to any market condition while maintaining discipline and safety.
This version represents the evolution of the SuperTrader Pro framework, built to detect strong directional moves, avoid range traps, and manage trades with intelligent automation. It is optimized for high-quality entries, precise exits, and adaptive protection that minimizes drawdowns while allowing full trend exploitation.
The strategy integrates several cooperative subsystems that work together in real time:
Adaptive Regime Filter: Detects trending versus ranging conditions using ADX, Bollinger Band Width, and EMA slope normalized by ATR.
Dynamic Support and Resistance System: Identifies real-time S/R levels and automatically adjusts take-profit targets or triggers trailing after confirmed breakouts.
Derivative Anti-Loss Engine: Calculates multi-level price derivatives to identify adverse momentum and micro-reversals before they expand.
Volatility Adaptive Trailing Stop (VATS): A fully automatic volatility-based stop-loss that reacts dynamically to expansion and contraction phases.
ATR Dynamic Stop System: A classic trailing ATR layer, giving additional flexibility and control for long-term trade management.
Counter-Trend Logic: Detects exhaustion phases and closes positions when the trend shows weakening momentum, using derivative and volatility confirmation.
Drawdown Rescue Mechanism: Follows retracement bounces inside losing trades, exiting only when recovery strength is lost.
Bracket Protection System: Provides exchange-level safety by placing hard stop and limit orders to prevent liquidation events.
Technically, the strategy uses multiple EMA packs (5/13/21, 8/21/50, or 13/34/89), derivative and hysteresis control with ATR gating, dual stop systems (VATS + ATR), and a dynamic S/R-based take profit model. It includes anti-range logic that filters out weak ADX zones, breakeven-plus logic to secure early profits, consecutive-bar and volume-spike exits, and a real-time information panel showing metrics such as net profit, win rate, MFE, and derivative signal strength. It also includes multiple alert conditions for entries, exits, and stop-loss events.
Philosophically, DocBrown PRO Edition was designed with institutional discipline but remains accessible to all traders. Every mechanism was engineered to protect capital and maximize opportunity. It adapts to volatility, avoids noise, and seeks clean, directional movement. When markets sleep, it stands aside. When they awaken, it rides the wave with precision.
Recommended use:
Markets: Crypto Futures, Spot, Indices, or Forex
Timeframes: 5m to 1h (optimized for 10m)
Leverage: Up to 5x tested. Higher leverage requires tight safety brackets.
Risk Model: Approximately 1 USDT risk per trade (≈75 USDT notional at 5x isolated margin)
This system is the result of extensive testing, iteration, and refinement. It embodies a clear philosophy: control risk first, then capture trend momentum efficiently.
Every variable, condition, and exit trigger has been tuned to serve this principle.
If this strategy helps you in your trading journey — whether by improving your discipline, understanding market structure, or enhancing your performance — I invite you to follow my work and give this strategy a Boost on TradingView. Your support encourages further open research and helps develop even more advanced versions for the community.
— Jesús Nicolás Astorga
SuperTrader Pro Lab – Junín, Mendoza, Argentina
ORB Breakout Strategy w/ Filters - Dynamic Sizing - MTFHere is a comprehensive description of the strategy, written in a clear and structured format. You can use this for your script's "how-to-use" guide or documentation.
---
## 📈 Opening Range Breakout (ORB) Strategy
This is a comprehensive, multi-timeframe strategy built for trading opening range breakouts. It is designed with a "filters-first" approach, allowing you to validate a breakout with trend, volume, and volatility.
The strategy's core power comes from its flexibility. You can trade on a low timeframe (like a 1-minute chart) while basing your breakout levels on a higher timeframe's opening bar (e.g., the first 15-minute bar). It includes dynamic position sizing based on risk and a wide array of advanced exit management options.
### Key Features
* **Multi-Timeframe Opening Range:** The core of the strategy. You can define the "Opening Range" timeframe (5, 10, 15, 30, or 60 min) *independently* of your chart timeframe.
* **Custom Trading Session:** Define the exact session (e.g., "0930-1600" in "America/New_York") you want to trade.
* **One Trade Per Session:** The strategy will only take the *first valid breakout* signal per day to avoid over-trading.
---
### 🚦 Entry Signals & Filters
A trade is only initiated when the price closes above the Session High or below the Session Low **AND** all active filters are passed.
* **Trend Filter:** (Optional) Requires price to be above a long-term MA (e.g., 100 EMA) for long trades and below it for short trades.
* **Volume Filter:** (Optional) Requires the breakout bar's volume to be a specified multiplier (e.g., 1.5x) of the recent average volume.
* **Volatility Filter:** (Optional) Requires the current ATR to be higher than its long-term average, ensuring you only trade during periods of expanding volatility.
* **Direction Filter:** Allows you to isolate the strategy to **Long Only**, **Short Only**, or **Both**.
---
### 💰 Dynamic Position Sizing
The strategy includes a robust "Risk %" sizing model.
* **Risk-Based Sizing:** Instead of fixed contracts, it calculates the position size based on your **Account Size**, **Risk % per Trade**, and the **Stop Loss distance**.
* **Auto-Detect Point Value:** It automatically detects the correct point value for popular futures contracts (ES, NQ, MES, MNQ) and provides a manual override for other assets.
---
### 📤 Exit & Risk Management
This strategy features a multi-layered exit system, giving you complete control over how trades are managed.
#### 1. Stop Loss (SL)
Your initial stop loss can be calculated using a fixed **Tick** offset or an **ATR** multiplier. It can be anchored from two different points:
* **Breakout Level:** The stop is placed relative to the `sessionHigh` or `sessionLow` level.
* **Entry Bar:** The stop is placed relative to the high/low of the bar that *triggered* the entry.
#### 2. Take Profit (TP)
A standard Take Profit can be set using a fixed **Tick** offset or an **ATR** multiplier.
#### 3. Advanced Exit Logic
These options override the standard Take Profit to allow for more dynamic trade management:
* **Trailing Take Profit (TTP):**
* **Fixed/ATR Trail:** A standard trailing stop that activates after price moves a certain amount in your favor.
* **MA Price Cross:** Exits the trade as soon as the price closes across a fast-moving average (e.g., 9-EMA).
* **MA Crossover:** Exits the trade as soon as a fast MA crosses below a slow MA (for longs) or above (for shorts).
* **Close on Reversal:** (Optional) Exits immediately if the **very next bar** after entry closes back *inside* the opening range (a "failed breakout" signal).
* **Close on Opposite Range Cross:** (Optional) Exits a long trade if the price ever closes below the `sessionLow` (and vice-versa for shorts).
* **End of Session Exit:** All open positions are automatically closed at the end of the defined trading session.
Dynamic Momentum Scalper | Gold & Volatility Strategy V1.0This is a high-frequency trading strategy optimized for volatile instruments, specifically XAUUSD (Gold). It utilizes a proprietary blend of momentum, volume, and volatility metrics to identify minor market reversal points and trend exhaustion.
The system employs a sophisticated, dynamic stop-loss mechanism based on Average True Range (ATR) to adjust risk automatically to current market conditions. It manages trades via a two-tiered Take-Profit system to secure partial profits quickly and let the remaining position run to a secondary target, effectively locking in gains and achieving an optimal risk-reward balance.
Best suited for the 1-Minute (M1) timeframe.
Visibility: Invite-Only Script.
5-min Strat Strategy V2 (With Stop Loss)README: 5-min Strat Strategy V2 – $7,500 Stop Loss Version
✅ Description
This is a rules-based intraday trading strategy developed for use on futures contracts like MNQ (Micro Nasdaq) or MES (Micro S&P). It focuses on momentum-based breakout entries above pre-market highs, during regular trading hours, and uses EMAs to define trend alignment.
⚙️ Strategy Components
✅ Trade Type
Long-Only strategy
Entry and exit based on EMAs, price position, and time windows
✅ Time Frame
Built for 5-minute charts
✅ Symbols
Optimized for MNQ (Micro Nasdaq Futures)
Works on MES or other U.S. index futures with similar structure
📅 Time Windows
Pre-Market Hours (PMH/PML): 04:00 – 09:30 AM EST
Regular Trading Hours (RTH): 09:30 AM – 4:00 PM EST
Auto Exit Time: 4:59 PM EST (to comply with prop firm rules)
📌 Entry Conditions (Long)
48 EMA > 200 EMA (Bullish alignment)
Price > Locked Pre-Market High
Green Candle (close > open)
During RTH (9:30–16:00 EST)
Cooldown: Must wait 4 candles after last entry
Max Trades per Day: 3
💥 Exit Conditions
Primary Exit: Close below the 48 EMA
Max Loss Exit: Stop loss set to $7,500 per trade
EOD Exit: All positions are closed at 4:59 PM EST
💰 Risk Management
Contracts: 6 Micro contracts per trade
Stop Loss: Dynamic point-based SL calculated based on:
MNQ point value = $20/point per contract
30 contracts = $120/point
Max SL points = $7,500 / $120 = 62.5 points
📊 Key Variables for Logging
Parameter Value
Max Stop Loss $7,500
Position Size 30 Micro Contracts - ***Varies depending on account size***
Cooldown Bars 4 (20 min)
Max Daily Trades 3
Strategy Version V2 – $7.5K SL
BB SPY Mean Reversion Investment StrategySummary
Mean reversion first, continuation second. This strategy targets equities and ETFs on daily timeframes. It waits for price to revert from a Bollinger location with candle and EMA agreement, then manages risk with ATR based exits. Uniqueness comes from two elements working together. One, an adaptive band multiplier driven by volatility of volatility that expands or contracts the envelope as conditions change. Two, a bias memory that re arms the same direction after any stop, target, or time exit until a true opposite signal appears. Add it to a clean chart, use the markers and levels, and select on bar close for conservative alerts. Shapes can move while the bar is open and settle on close.
Scope and intent
• Markets. Currently adapted for SPY, needs to be optimized for other assets
• Timeframes. Daily primary. Other frames are possible but not the default
• Default demo. SPY on daily
• Purpose. Trade mean reversion entries that can chain into a longer swing by splitting holds into ATR or time segments
Originality and usefulness
• Novelty. Adaptive band width from volatility of volatility plus a persistent bias array that keeps the original direction alive across sequential entries until an opposite setup is confirmed
• Failure modes mitigated. False starts in chop are reduced by candle color and EMA location. Missed continuation after a take profit or stop is addressed by the re arm engine. Oversized envelopes during quiet regimes are avoided by the adaptive multiplier
• Testability. Every module has Inputs and visible levels so users can see why a suggestion appears
• Portable yardstick. All risk and targets are expressed in ATR units
Method overview in plain language
The engine measures where price sits relative to Bollinger bands, confirms with candle color and EMA location, requires ADX for shorts(in our case long close since we use it currently as long only), and optionally requires a trend or mean reversion regime using band width percent rank and basis slope. Risk uses ATR for stop, target, and optional breakeven. A small array stores the last confirmed direction. While flat, the engine keeps a pending order in that direction. The array flips only when a true opposite setup appears.
Base measures
• Range basis. True Range smoothed over a user defined ATR Length
• Return basis. Not required
Components
• Bollinger envelope. SMA length and standard deviation multiplier. Entry is based on cross of close through the band with location bias
• Candle and EMA filter. Close relative to open and close relative to EMA align direction
• ADX gate for shorts. Requires minimum trend strength for short trades
• Adaptive multiplier. Band width scales using volatility of volatility so envelopes breathe with conditions
• Regime gate optional. Band width percent rank and basis slope identify trend or mean reversion regimes
• Risk manager. ATR stop, ATR target, optional breakeven, optional time exit
• Bias memory. Array stores last confirmed direction and re arms entries while flat
Fusion rule
Minimum satisfied gates count style. All required gates must be true. Optional gates are controlled in Inputs. Bias memory never overrides an opposite confirmed setup.
Signal rule
• Long setup when close crosses up through the lower band, the bar closes green, and close is above the long EMA
• Short setup when close crosses down through the upper band, the bar closes red, close is below the short EMA, and ADX is above the minimum
• While flat the model keeps a pending order in the stored direction until a true opposite setup appears
• IN LONG or IN SHORT describes states between entry and exit
What you will see on the chart
• Markers for Long and Short setups
• Exit markers from ATR or time rules
• Reference levels for entry, stop, and target
• Bollinger bands and optional adaptive bands
Inputs with guidance
Setup
• Signal timeframe. Uses the chart timeframe
• Invert direction optional. Flips long and short
Logic
• BB Length. Typical 10 to 50. Higher smooths more
• BB Mult. Typical 1.0 to 2.5. Higher widens entries
• EMA Length long. Typical 10 to 50
• EMA Length short. Typical 5 to 30
• ADX Minimum for short. Typical 15 to 35
Filters
• Regime Type. none or trend or mean reversion
• Rank Lookback. Typical 100 to 300
• Basis Slope Length and Threshold. Larger values reduce false trends
Risk
• ATR Length. Typical 10 to 21
• ATR Stop Mult. Typical 1.0 to 3.0
• ATR Take Profit Mult. Typical 2.0 to 5.0
• Breakeven Trigger R. Move stop to entry after the chosen multiple
• Time Exit. Minimum bars and extension when profit exceeds a fraction of ATR
Bias and rearm
• Bias flips kept. Array depth
• Keep rearm when flat. Maintain a pending order while flat
UI
• Show markers and levels. Clean defaults
Usage recipes
Alerts update in real time and can change while the bar forms. Select on bar close for conservative workflows.
Properties visible in this publication
• Initial capital 25000
• Base currency USD
• If any higher timeframe calls are enabled, request.security uses lookahead off
• Commission 0.03 percent
• Slippage 3 ticks
• Default order size method Percent of equity with value 5
• Pyramiding 0
• Process orders on close On
• Bar magnifier Off
• Recalculate after order is filled Off
• Calc on every tick Off
Realism and responsible publication
No performance claims. Costs and fills vary by venue. Shapes can move intrabar and settle on close. Strategies use standard candles only.
Honest limitations and failure modes
High impact releases and thin liquidity can break assumptions. Gap heavy symbols may require larger ATR. Very quiet regimes can reduce contrast in the mean reversion signal. If stop and target can both be touched inside one bar, outcome follows the TradingView order model for that bar path.
Regimes with extreme one sided trend and very low volatility can reduce mean reversion edges. Results vary by symbol and venue. Past results never guarantee future outcomes.
Open source reuse and credits
None.
Backtest realism
Costs are realistic for liquid equities. Sizing does not exceed five percent per trade by default. Any departure should be justified by the user.
If you got any questions please le me know
RSI Mean-Reversion StrategyLong entry when RSI ≤ 30; exit at RSI ≥ 70. 100% equity per trade, 0.1% commission + 1 tick slippage. Optional 2% stop-loss. Visual buy/sell signals, dynamic SL line, and background highlight on oversold zones. Clean, backtest-ready Pine Script v5. Everything is easily adjustable to suit your liking.
PDHL Breakout SMA50 By Ajit TiwariThis indicator help you to find buy sell from previous day high low basis
FVG Strategy with One Trade Per Hour and Tick-based TP/SLThis strategy hunts for Fair Value Gaps (FVGs)—three-bar displacement gaps that mark imbalances where price moved so fast it left a “void.” It detects bullish (green) and bearish (red) FVGs on the chart timeframe or a higher timeframe you choose via the Timeframe input. Each detected zone is stored and optionally drawn as a box (static or “dynamic” that tightens with price). A simple threshold lets you filter out tiny gaps: either set a fixed percent (Threshold %) or let the script estimate it automatically. As price trades later, the engine watches for interaction with any stored zone.
Entries are taken on a touch/retest of the zone: buy when price intersects a green (bullish) FVG; short when it intersects a red (bearish) FVG. Risk management is manual and straightforward—your stop loss and take profit are set in ticks, placed off the signal bar’s close. To avoid over-trading, there’s a cap of one trade per hour (it resets when the clock hour changes). In short, it’s an intraday “gap fill / bounce” system: identify an imbalance, wait for price to revisit it, and take a directional trade with fixed tick targets and stops.






















