Indicateurs et stratégies
Vini Algo StrategyThis strategy is intended to be used on an trading platform and should be run on a 5, 10, 15 minute chart for confirmations and signal relay to crypto platform.
I have spent quite a bit of time and I figured I would put it out to the community to share the work.
Ok, so let me say that I have spent some amount of time to make the indicator/Strategy not to repaint while still maintaining it's profitability. It has been a challenge so I am publishing.
What I have observed: the strategy will not repaint in real time.
Channel Balance
Bright Magenta Upper (Supply) side with Standard Deviation Interpretation +1σ, +2σ, +3σ above the mean — statistically “overbought” areas where price may reverse or slow down
Bright Cyan Lower (Demand) side with Standard Deviation Interpretation −1σ, −2σ, −3σ below the mean — “oversold” areas where buying interest may return
Supply Zone ---->> Resistance / Sell area
Demand Zone ------>> Support / Buy area
BOS ----->> Market structure break
Buy/Long markers ----->> Potential entry for long trades
Sell/Short markers ----->> Potential entry for short trades
Limitation on lower timeframe chart
That is, if you have the chart open and keep it open, the signals are the same as the ones that are sent out by the strategy. In certain cases, when I reload the chart- the signals might be off from what was sent. In some ways, that is repainting, but it is repainting based on losing the real time data and recalculating from a different set of bars- since I am running it on a one minute chart then the start becomes different when you refresh.
🧠 Price Action
Price action is the study of how price moves on a chart — without relying on indicators. If you master price action, you can trade confidently even without indicators — because you’ll understand what the market is telling you through structure, momentum, and liquidity.
How to Read Price Action Step by Step
Identify Market Structure
→ Are we trending or ranging?
Mark Key Levels
→ Swing highs/lows, supply/demand, liquidity zones.
Wait for Confirmation
→ BOS / CHoCH or rejection candles.
Align With Context
→ Where are we in the larger timeframe? (Top-down analysis)
Enter on Reaction
→ Wait for a clear rejection, engulfing candle, or BOS confirmation near your zone.
Manage Risk
→ Stop-loss below swing (for longs) or above swing (for shorts).
Having a good strategy is essential, but it’s only one piece of the puzzle. To be a consistently successful trader, you need a combination of psychology, risk management, discipline, and process — the things that keep you profitable when the strategy itself faces drawdowns.
1. Trading Psychology 🧠
2. Risk & Money Management 💵
3. Trading Plan & Strategy 📈
4. Discipline & Consistency 🧩
5. Continuous Learning & Review 🔍
💬 Final Thought
“Indicators follow price.
Price follows order flow.
To understand order flow — study price action.
⚠️ Disclaimer:
This indicator is intended for educational purposes only and should not be considered financial advice. Always use proper risk management.
"Trading involves risk. Trade responsibly.
No indicator gives 100% accurate signals."
Please forward test first and use at your own risk.
If you spot repaint issues, please Read the the Limitations again.
QV 4D BX ReversalThis algorithm excels in long-term trading and identifying momentum reversals on higher timeframes. To maximize profits, you can then leverage the QV 2H/4D 2BX & FVB Strategy algorithm, switching to a lower timeframe for precise short-term trades.
### Overview of the Strategy
The "QV 4D BX Reversal" is a Pine Script (version 5) trading strategy for TradingView, designed as a reversal-based system using a custom momentum oscillator called "B-Xtrender" on a higher timeframe (default 4-day). It supports user-selected long-only or short-only trading, entering on signs of momentum reversal or continuation in the oscillator's direction. The strategy uses 5% of equity per trade, with no commissions, and focuses on simple entry/exit rules based on the oscillator's value, changes, and thresholds. It's plotted in a separate pane as a colored histogram (green for positive/uptrending, red for negative/downtrending), with a centerline at 0. This script is suited for trend-reversal trading in assets like stocks, forex, or crypto, emphasizing higher-timeframe signals for reduced noise.
The name likely refers to:
- **QV**: QuantVault (the creator).
- **4D**: Default 4-day timeframe for the oscillator.
- **BX**: B-Xtrender oscillator.
- **Reversal**: Focus on detecting momentum shifts for entries and exits.
It's licensed under Mozilla Public License 2.0, making it open-source friendly.
### Key Indicators and Calculations
The core of the strategy is a single indicator fetched from a higher timeframe:
1. **B-Xtrender Oscillator (shortTermXtrender)**:
- Formula: `RSI(EMA(close, short_l1) - EMA(close, short_l2), short_l3) - 50`.
- Defaults: L1=5, L2=20, L3=5.
- This measures momentum in the difference between a fast and slow EMA, normalized via RSI, and centered around 0 (positive = bullish, negative = bearish).
- Fetched via `request.security` from the input timeframe (TF1, default "4D").
- Plotted as a histogram:
- Green (lime if increasing, darker if decreasing) when >0.
- Red (bright if increasing toward 0, darker if decreasing) when <0.
- A dashed gray hline at 0 acts as a centerline for crossovers.
No other indicators like ATR or bands are used—it's purely oscillator-driven.
### How the Strategy Works: Entries
Entries trigger on momentum shifts or continuations in the B-Xtrender, filtered by the selected trade direction. Only one direction is active at a time (no hedging).
- **Long Direction**:
- **Entry Condition** (`long_entry`): Triggers if either:
- Crossover above 0 (from below) AND the value is increasing (current > previous).
- OR simply increasing (current > previous), regardless of level.
- On entry, it records if the oscillator was below the exit level (exit_lvl, default 3.5) via `entryBelowExit` for a special exit rule.
- Enters a long position with 5% of equity.
- **Short Direction**:
- **Entry Condition** (`short_entry`): Triggers if either:
- Crossunder below 0 (from above) AND the value is decreasing (current < previous).
- OR simply decreasing (current < previous), regardless of level.
- Enters a short position with 5% of equity.
No pyramiding or position sizing variations—entries are straightforward and can re-enter immediately after exits if conditions met. No additional filters like volume or price action.
### How the Strategy Works: Exits
Exits close the entire position based on adverse momentum signals, with combined rules for robustness. Exits are direction-specific and only trigger if in a position.
- **Long Exits** (`long_exit`): Closes the long if any of:
- Crossunder below the exit level (default 3.5).
- Oscillator is red (<=0) AND decreasing for 2 consecutive bars (current < prev, prev < prev ).
- If entry was below exit level (`entryBelowExit` true), crossunder below 0.
- Comment on close indicates the reason (e.g., "Cross below 3.5" or "Red + 2-bar decline").
- Resets `entryBelowExit` after exit.
- **Short Exits** (`short_exit`): Closes the short if any of:
- Crossover above the negative exit level (-3.5).
- Oscillator is green (>=0) AND increasing for 2 consecutive bars (current > prev, prev > prev ).
- Comment on close indicates the reason (e.g., "Cross above -3.5" or "Green + 2-bar increase").
This setup aims to exit on weakening momentum or threshold breaches, protecting against reversals. No partial exits or trailing stops—full close only.
### Alerts
The script includes alert conditions for key events, which can be set up in TradingView for notifications:
- Long Entry (Crossover): "B-Xtrender crossed above 0 and is rising → LONG".
- Long Entry (Increasing): "B-Xtrender TF1 is increasing → LONG".
- Long Exit (Red + 2-Bar Decline): "B-Xtrender is red and decreased for 2 bars → EXIT LONG".
- Short Entry (Crossunder): "B-Xtrender crossed below 0 and is falling → SHORT".
- Short Entry (Decreasing): "B-Xtrender TF1 is decreasing → SHORT".
- Short Exit (Green + 2-Bar Increase): "B-Xtrender is green and increased for 2 bars → EXIT SHORT".
These use `alertcondition` for easy setup.
### Additional Notes
- **Customization**: Inputs allow tweaking EMA lengths, timeframe, exit level, and direction. Best for higher TFs like 4D to capture multi-day reversals.
- **Risk Management**: Relies on equity percentage sizing; no built-in stops beyond oscillator exits. Users should backtest for drawdowns.
- **Limitations**: Single-timeframe focus may miss broader trends; no volume or volatility filters. Assumes chart TF is lower than "4D" for accurate security requests.
- **Performance**: Suited for ranging or reversing markets where momentum shifts are frequent. In strong trends, it might enter/exit prematurely.
This strategy provides a simple, momentum-based reversal system, ideal for beginners or as a building block for more complex setups.
QV 1W/1M 2BX & FVB StrategyUse on Weekly Timeframe
### Overview of the Strategy
The "QV 1W/1M 2BX & FVB Strategy" is a TradingView Pine Script (version 5) strategy designed for trend-following trading on financial instruments like stocks, forex, or cryptocurrencies. It supports both long and short directions (user-selectable via input), with a focus on multi-timeframe momentum analysis using custom oscillators (called "Xtrender"), a volatility-based trailing line (Red ATR), Fair Value Bands (FVB) for deviation-based targets, and Break of Structure (BOS) for invalidation. The strategy allows pyramiding (adding to positions) and includes multiple exit mechanisms, including full exits and partial scale-outs. It's optimized for higher timeframes like weekly (1W) and monthly (1M) by default, but can be customized.
The strategy overlays indicators on the chart but runs in a non-overlay mode for its own panel (showing histograms). It uses 5% of equity per trade by default, with pyramiding limited to one additional entry (effectively doubling the position). It incorporates risk management through ATR-based stops and band deviations, and provides alerts for key events like band touches or BOS breaks.
The name likely refers to:
- **1W/1M**: Default timeframes for the two Xtrender oscillators.
- **2BX**: Dual "B-Xtrender" oscillators (short-term on two timeframes).
- **FVB**: Fair Value Bands for scaling out.
It assumes good intent for directional trading and doesn't enforce drawdown limits beyond the exits.
### Key Indicators and Calculations
The strategy relies on several custom indicators to generate signals:
1. **Short-Term Xtrender Oscillators**:
- These are momentum indicators based on RSI of the difference between two EMAs (Exponential Moving Averages), shifted by -50 to center around zero.
- **TF1 (e.g., 1W)**: Calculated as `RSI(EMA(close, short_l1) - EMA(close, short_l2), short_l3) - 50`, fetched from the specified timeframe.
- **TF2 (e.g., 1M)**: Same formula, but on a higher timeframe for broader trend confirmation.
- A combined version sums them for potential use, but the strategy primarily uses them separately.
- Plotted as histograms: Green shades for positive/upward momentum (brighter for 2-bar increases or zero crosses), red shades for negative/downward.
- TF2 direction persists across bars to detect if it's increasing or decreasing.
2. **Long-Term Xtrender**:
- Simpler RSI of an EMA: `RSI(EMA(close, long_l1), long_l2)`.
- Not directly used in entries/exits in this script (possibly a remnant or for visualization).
3. **Red ATR Line**:
- A volatility-based trailing line, similar to SuperTrend.
- Calculated using ATR (Average True Range) over a length (default 10), multiplied by a factor (default 2.5).
- It flips direction based on price closes above/below the previous line value, creating an upper/lower bound.
- Plotted as a red line on the price chart (overlay=true).
- Used for entries (pyramiding on cross), exits (full exit on adverse cross), and conditional checks.
4. **Fair Value Bands (FVB)**:
- Based on a smoothed "fair price" (SMA of OHLC4 over fair_value_length, default 33).
- Calculates median deviations from this fair price using historical high/low spreads and pivot highs/lows.
- Creates three upper bands (for longs) and three lower bands (for shorts) at multipliers (0.6x, 1.0x, 1.4x by default).
- Upper bands: Fair price + deviation spreads (boosted for pivots outside bands).
- Lower bands: Fair price - deviation spreads.
- Plotted in yellow/orange/red gradients, visible only for the selected direction.
- Used for scale-out exits and re-entry conditions after full exits.
5. **Break of Structure (BOS)**:
- Tracks the last swing low (for longs) or swing high (for shorts) using pivotlow/pivothigh over 5 bars left/right.
- Plotted as a white line if enabled.
- Acts as a support/resistance level for invalidation exits.
6. **2-Bar Conditions**:
- For longs: TF1 Xtrender red (below 0) and decreasing for two consecutive bars.
- For shorts: TF1 Xtrender green (above 0) and increasing for two consecutive bars.
- Used for adverse momentum exits.
7. **Other Checks**:
- TF1 cross above/below zero.
- Large changes in TF1 Xtrender (greater than exit_amount, default 40).
A custom T3 (Tillson T3) smoothing function is defined but not used in the visible code—possibly for future extensions.
### How the Strategy Works: Entries
The strategy enters positions based on momentum alignment across timeframes, with safeguards to avoid re-entering immediately after full exits.
- **Direction Selection**:
- User chooses "Long" or "Short" via input. The strategy only trades in that direction.
- **Main Entry** (if enabled):
- **For Longs**:
- TF2 Xtrender is increasing (change > 0) or above a threshold (default 10).
- TF1 Xtrender is increasing (current > previous).
- No existing long position (position_size <= 0).
- If previously fully exited a long, price must be <= 2x upper band (upper2) to re-enter.
- **For Shorts**:
- TF2 Xtrender is decreasing (change < 0) or below -threshold.
- TF1 Xtrender is decreasing (current < previous).
- No existing short position (position_size >= 0).
- If previously fully exited a short, price must be >= 2x lower band (lower2) to re-enter.
- Entry size: 5% of equity (default).
- **Pyramiding** (if enabled):
- Adds one more entry (doubling the position) when price crosses the Red ATR line in the favorable direction.
- For longs: Crossover above Red ATR.
- For shorts: Crossunder below Red ATR.
- Tracks initial quantity to ensure only one add-on per trade cycle.
- Pyramiding limit: 1 (as set in strategy declaration).
Upon entry, it records the initial position size, resets flags for scaling/exiting, and sets the BOS level (last swing low/high).
### How the Strategy Works: Exits
Exits are modular, with toggles for each type. Full exits set a "has_fully_exited" flag to prevent immediate re-entries until price retraces to the 2x band. Partial scale-outs (50%) can repeat unlimited times if price oscillates around bands.
- **Full Exits** (close entire position, mark as fully exited):
1. **ATR Exit** (if enabled): Adverse cross of Red ATR (e.g., close below for longs).
2. **2-Bar Exit** (if enabled): Adverse 2-bar momentum in TF1, and price below/above Red ATR (e.g., red and decreasing for longs).
3. **TF1 Below/Above Zero Exit** (if enabled): TF1 crosses zero adversely, only if price is on the wrong side of Red ATR.
4. **Large TF1 Change Exit** (if enabled): Adverse large drop/rise in TF1 (> exit_amount).
5. **BOS Exit** (if enabled): Price crosses BOS level adversely (e.g., below swing low for longs).
6. **3x Band Exit** (if enabled): Price crosses above 3x band (for longs) or below (for shorts), but waits for a cross back inside to exit fully.
- **Partial Scale-Outs** (50% of current position, repeatable):
1. **1x Band** (if enabled): Cross above 1x upper (longs) or below 1x lower (shorts), then cross back inside.
2. **2x Band** (if enabled): Similar logic for 2x bands.
Exits use waiting flags to detect the full cross-and-return cycle, ensuring they trigger only after touching and retreating from the band.
### Alerts
- **Band Touch Alerts** (if enabled): Triggers on price touching any 1x/2x/3x upper/lower band from above or below (real-time, freq_all).
- **BOS Touch Alert** (if enabled): Price touches BOS level from adverse side.
- **BOS Cross Alert** (if enabled and BOS exit on): Price crosses and closes beyond BOS (once per bar close).
- Alerts reset per new bar to allow multiple triggers if conditions recur.
### Additional Notes
- **State Management**: Uses `var` variables for persistent states like TF2 direction, swing levels, position tracking, and alert flags.
- **Visualization**: Histograms for Xtrenders, lines for Red ATR, Fair Value (blue middle), bands (colored), and BOS (white).
- **Customization**: All key params (lengths, multis, thresholds) are inputs. Disabling features simplifies the strategy.
- **Limitations**: No built-in stop-loss beyond BOS/ATR; relies on equity percent sizing. Assumes chart timeframe is lower than TF1/TF2 for security requests.
- **Performance**: Backtesting would depend on the asset and settings—e.g., works best in trending markets due to momentum filters.
This strategy combines trend confirmation (multi-TF oscillators), volatility trailing (Red ATR), and deviation targets (FVB) for a balanced approach to capturing moves while scaling out profits and cutting losses on reversals.
QV 1D/1W 2BX & FVB StrategyUse this on a 1D timeframe
### Overview of the Strategy
The "QV 1D/1W 2BX & FVB Strategy" is a custom trading strategy implemented in Pine Script v5 for the TradingView platform. It is designed for directional trading (long or short positions) on any asset, using a combination of momentum oscillators, trailing stops, fair value deviation bands, and structure breaks to generate entry and exit signals. The strategy name likely refers to "QuantVault" (the creator), using two timeframes (1D daily and 1W weekly) for "2BX" (possibly "2-Bar Xtrender" or similar), and "FVB" for Fair Value Bands.
This is not an overlay strategy (it plots indicators in a separate pane below the price chart), and it supports pyramiding (adding to positions) with a limit of 1 additional entry. It uses 5% of equity per trade by default, with an initial capital of $50,000 and commission accounted for. The strategy can be toggled for long-only or short-only modes and includes customizable enables/disables for various entry/exit rules and alerts. It aims to capture trends by entering on momentum confirmation across multiple timeframes and exiting based on reversals, profit targets (via bands), or stops.
The core idea is trend-following with risk management: Enter when higher-timeframe momentum aligns with lower-timeframe improvements, add to winners when price breaks a trailing level, and exit via multiple protective mechanisms or scaled profit-taking at deviation levels.
### Key Indicators and Calculations
The strategy relies on several custom indicators plotted on the chart or used for signals:
1. **Xtrender Oscillators (Short-Term and Long-Term)**:
- These are momentum indicators based on RSI (Relative Strength Index) applied to differences in EMAs (Exponential Moving Averages).
- **Short-Term Xtrender (on TF1 and TF2)**: Calculated as `RSI(EMA(close, short_l1) - EMA(close, short_l2), short_l3) - 50`. This creates an oscillator centered around 0.
- TF1 (default: 1D) is used for precise timing.
- TF2 (default: 1W) provides broader trend direction, with persistent state to detect if it's increasing or decreasing.
- Plotted as histograms: Green shades for positive/upward momentum, red for negative/downward. Special colors highlight 2-bar confirmations or centerline crosses.
- **Long-Term Xtrender**: Simpler RSI of EMA(close, long_l1) over long_l2, but it's defined and not directly used in the provided logic (possibly a remnant or for future expansion).
- A centerline at 0 separates bullish (above) from bearish (below) territories.
- 2-Bar Conditions: Checks for consecutive bars where the TF1 oscillator is red/green and decreasing/increasing, used for exits.
2. **Red ATR Line (Trailing Stop)**:
- A volatility-based trailing line similar to SuperTrend, using ATR (Average True Range) over a length (default: 10) multiplied by a factor (default: 2.5).
- It flips direction based on price closes: Upward trailing for longs (below price), downward for shorts (above price).
- Plotted as a red line on the price chart (forced overlay).
- Used for entries (pyramiding on cross), exits (full exit on adverse cross), and conditional checks.
3. **Fair Value Bands (FVB)**:
- These are dynamic deviation bands around a "fair price" middle line, which is an SMA (Simple Moving Average) of OHLC4 (average of open/high/low/close) over a length (default: 33).
- **Deviation Calculation**: Analyzes spreads from highs/lows to the fair price, using medians of historical deviations and pivot highs/lows (over 5 bars left/right).
- Upper bands (for longs): Boosted deviations above fair price, multiplied by factors (0.6 for 1x, 1.0 for 2x, 1.4 for 3x).
- Lower bands (for shorts): Similar but below fair price.
- Plotted only for the selected direction: Yellow (1x), orange (2x), red (3x) lines on the price chart.
- Acts as profit targets: Scale out or exit fully when price touches/crosses these bands.
- Uses arrays to store historical deviations/pivots, capped at 1000-2000 elements for efficiency.
4. **Break of Structure (BOS)**:
- Identifies the last swing low (for longs) or high (for shorts) using pivot lows/highs (5 bars left/right).
- Plotted as a white line on the price chart if enabled.
- Used as a stop-loss level: Exit if price breaks below (longs) or above (shorts).
5. **Other Elements**:
- Custom T3 (Tillson Moving Average) function is defined but not used in the script—possibly for future or removed features.
- Persistent variables track position states (e.g., initial quantity, doubled status, waiting for exits) to manage scaling and prevent re-entries after full exits until conditions reset.
### How the Strategy Works: Entry Logic
Entries are direction-specific and require alignment between timeframes for momentum.
- **Main Entry**:
- **For Longs**: Enabled if `enable_main_entry` is true.
- TF2 condition: Either increasing or above a threshold (default: 10).
- TF1 condition: Oscillator is increasing (current > previous).
- Position check: No current long position (or fully exited previously), and price is at or below the 2x upper band (to avoid chasing highs).
- Triggers a long entry with 5% equity.
- **For Shorts**: Symmetric but inverted.
- TF2 decreasing or below -threshold.
- TF1 decreasing.
- No short position (or fully exited), price at or above 2x lower band.
- Triggers a short entry.
- **Pyramiding (Adding to Position)**:
- If `enable_pyramiding` is true and not already doubled.
- For longs: When price crosses above the red ATR line (breaking resistance).
- For shorts: Crosses below red ATR.
- Adds the same initial quantity, effectively doubling the position (pyramiding=1 limits to one add).
Upon entry, it resets state variables (e.g., records initial qty, sets BOS level to last swing low/high).
### How the Strategy Works: Exit Logic
Exits are multifaceted, with full closes for protection and partial scale-outs for profit-taking. All are conditional on enabled inputs and position direction.
- **Full Exits (Close Entire Position)**:
1. **ATR Exit** (`enable_atr_exit`): For longs, if price crosses below red ATR (trailing stop hit). Symmetric for shorts (cross above).
2. **2-Bar Exit** (`enable_2bar_exit`): For longs, if TF1 is red and decreasing for 2 bars, and price is below red ATR. For shorts, green and increasing for 2 bars, price above red ATR.
3. **TF1 Centerline Exit** (`enable_tf1_below0_exit`): For longs, TF1 crosses below 0 and price below red ATR. For shorts, crosses above 0 and price above red ATR.
4. **Large TF1 Change Exit** (`enable_large_decrease_exit`): For longs, TF1 decreases by more than `exit_amount` (default: 40). For shorts, increases by that amount.
5. **BOS Exit** (`enable_bos_exit`): For longs, price crosses below swing low. For shorts, above swing high.
6. **3x Band Full Exit** (`enable_3x_exit`): Waits for crossover above 3x upper (longs) or below 3x lower (shorts), then closes on cross back under/over.
- **Partial Scale-Outs (50% of Position)**:
- Use "waiting" flags to detect touch and retreat from bands.
- **1x Scale-Out** (`enable_1x_scaleout`): Unlimited repeats. For longs, crossover above 1x upper, then close 50% on crossunder. Symmetric for shorts at 1x lower.
- **2x Scale-Out** (`enable_2x_scaleout`): Similar, at 2x bands.
After a full exit, it sets `has_fully_exited` to prevent immediate re-entry until price retreats to the 2x band.
### Alerts
- **Band Touch Alerts** (`enable_band_alerts`): Triggers on price touching any 1x/2x/3x upper/lower band from either side (e.g., "Price touched 1x Upper Deviation band from below").
- **BOS Touch Alert** (`enable_bos_touch_alert`): On touching BOS level.
- **BOS Cross Alert** (`enable_bos_cross_alert`): On crossing and closing beyond BOS.
- Alerts reset per bar and use `alert.freq_all` or `once_per_bar_close` to avoid spam.
### Additional Notes
- The strategy is backtestable in TradingView, with performance depending on parameters (e.g., timeframes, multipliers).
- It's momentum-driven on higher TFs for bias, with lower TF for timing, and volatility/fair value for risk/reward.
- No external data or ML; all calculations are self-contained using TA-Lib functions.
- Potential improvements: The unused T3 and long-term Xtrender could be integrated for filtering.
Futures Fighter MO: Multi-Confluence Day Trading System ADX/SMI👋 Strategy Overview: The Multi-Confluence Mashup
The Futures Fighter MO is a comprehensive, multi-layered day trading strategy designed for experienced traders focusing on high-liquidity futures contracts (e.g., NQ, ES, R2K).
This strategy is a sophisticated mashup that uses the 1-minute chart for surgical entries while enforcing strict environmental filtering through higher-timeframe data. We aim to capture high-conviction moves only when multiple, uncorrelated signals align.
🧠 How the Logic Works (Concepts & Confluence)
Our logic is built on four pillars, which must align for a trade to be executed:
Primary Trend Filter
Indicators :
ADX/DMI (15-Minute Lookback)
Role :
Price action is filtered to ensure the ADX (17/14) is above 25, confirming a strong, prevailing market trend (Bullish or Bearish). Trades are strictly rejected during "Flat" (sideways) market regimes.
Entry Signal Types
The system uses multiple entry types:
- 🟢 Trend Long/Short: A breakout/rejection near the 200-Period EMA is confirmed by the primary ADX trend.
- 🔴 Engulfing Rejection: A strong signal when a Bullish/Bearish Engulfing or Doji prints near the long-term 500-Period EMA (emaGOD) while the Stochastic Momentum Index (SMI on 30M) is in an extreme overbought/oversold state (below $-40$ or above $40$).
Volatility & Volume Confirmation
Indicators: Average True Range (ATR) and 20-Period SMA of Volume
Role: Every entry requires a volume spike (Current Volume $> 1.5 \times$ SMA Volume) to confirm that the move is supported by significant liquidity. Volatility is tracked via ATR to define bar range and stop boundaries.
Structural Guardrails
Indicators: Daily Pivot Points (PP, S1-S3, R1-R3)
Role: Trades are disabled if the current bar's price range intersects with a Daily Pivot Point. This is a critical filter to avoid high-chop consolidation zones near key structural levels.
📊 Strategy Results & Required Disclosures
I strive to publish backtesting results that are transparent and realistic for the retail futures trader.
- Initial Capital: $50,000 - A realistic base for Mini/Micro futures contracts.
- Order Size: 1 Contract (Pyramiding up to 3) - Conservative risk relative to the account size.
- Commission: $0.11 USD per order - Represents realistic costs for low-cost brokers.
- Slippage: 2 Ticks - Accounts for expected market friction.
⚠️ Risk Management & Deviations
Stop-Loss: The strategy uses a dynamic stop-loss system where positions are closed upon a reversal (e.g., breaking the 50-Period EMA or failure to hold a Pivot Point), rather than a fixed tick-based stop. This is suited for experienced traders using a low relative risk (single Micro-contract entry) on a larger account. Users must confirm that the first entry's maximum potential loss remains below $10\%$ of their capital for compliance.
Trade Sample Size: Due to data limitations of the TradingView Essential plan (showing $\approx 50$ trades over 2 weeks), the sample size is under the ideal $100+$ target. Justification: This system is designed to generate signals across a portfolio of correlated futures markets (NQ, ES, R2K, Gold, Crude), meaning the real sample size for a user tracking the portfolio is significantly higher.
Drawdown Control: This strategy is designed for manual management. It requires the user to turn the script/alerts OFF after a significant drawdown and only reactivate it once a recovery trend is established externally.
The strategy uses a combination of dynamic trailing stops, structural support/resistance zones, and a fixed profit target to manage open positions.
🛑 Strategy Exit Logic
1. General Stop-Loss (Dynamic Trailing Stop)
These conditions act as the primary dynamic stop, closing the position if the market reverses past a key Moving Average (MA):
- Long Positions Closed When: The current bar's close crosses under the 50-Period EMA (emaLong).
- Short Positions Closed When: The current bar's close crosses above the 50-Period EMA (emaLong).
2. Profit Target (Fixed Percentage)
The script includes a general exit based on a user-defined profit percentage:
Take Profit Trigger: The position is closed when the currentProfitPercent meets or exceeds the input Profit Target (%) (default is 1.0% of the entry price).
3. Structural Exits (Daily Pivot Points)
These exits are high-priority, "close all" orders that trigger when the price fails to hold or reclaims a recent Daily Pivot Point, suggesting a failure of the current move.
- VR Close All - Long ($\sym{size} > 0$) - Price crosses under a Daily Resistance Level (R1, R2, or R3) minus 1 ATR within the last 10 bars. This indicates the current momentum failed to hold Resistance as support.
- VS Close All - Short ($\sym{size} < 0$) - Price crosses above a Daily Support Level (S1, S2, or S3) plus 1 ATR within the last 10 bars. This indicates the current momentum failed to hold Support as resistance.
4. Trend Failure Exit (Trend-Following Signals Only)
This exit protects against holding a position when the primary high-timeframe trend used for the entry has failed:
- Long Positions Closed When: The primary trend is no longer "bullish" for more than 2 consecutive bars (i.e., it turned "bearish" or "flat").
- Short Positions Closed When: The primary trend is no longer "bearish" for more than 2 consecutive bars (i.e., it turned "bullish" or "flat").
5. End of Day (EOD) Session Control
The final hard exits based on time:
- End of Session (EoS): At 11:30 AM, new trades are disabled (TradingDay := false). Open positions are kept.
- End of Day (EoD): At 1:30 PM, all remaining open positions are closed (strategy.close_all).
🤝 Development & Disclaimer
This script and description were created with assistance from Gemini and GitHub Copilot. My focus is on helping fellow real estate investors and day traders develop mechanically sound systems.
Disclaimer: This is for educational purposes only and does not constitute financial advice. Always abide by the Realtor Code and manage your own risk.
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.
Two-Sided R1/S1 + Supertrend (Final v6)The core of this TradingView strategy combines classic intraday resistance with a volatility-based trend follower to identify strong breakout and breakdown opportunities while rigorously enforcing day trading rules.
This is an Intraday Mean Reversion / Trend Following strategy for the 5-minute (5m) chart with mandatory End-of-Day (EOD) closures.
In essence: You're only trading in the direction of the confirmed Supertrend when price action has demonstrated enough momentum to move past the important pivot support/resistance levels.
Adaptive Cortex Strategy (ACS)Strategy Title: Adaptive Cortex Strategy (ACS)
This script is invite-only.
Part 1: Philosophy and the Fundamental Problem It Solves
Adaptive Cortex Strategy (ACS) is an advanced decision support system designed to dynamically adapt to the ever-changing characteristics of the market. A major weakness of traditional approaches is that while successful in a specific market condition (e.g., a strong trend), they become ineffective when the market changes course (e.g., enters a sideways range). ACS solves this problem by continuously analyzing the market's current "regime" and instantly adapting its decision-making logic accordingly.
Its primary goal is to enable the strategy itself to "think" and evolve with the market, without requiring the trader to change their strategy.
Part 2: Original Methodology and Proprietary Logic
A Note on the Original Methodology and Intellectual Property
This algorithm is not based on or copied from any open-source strategy code. The system utilizes the mathematical principles of widely accepted indicators such as ADX, RSI, and Ichimoku as data sources for its analyses.
However, the intellectual property and unique value of the algorithm lies in its unique and closed-source architecture that processes, prioritizes, and synthesizes data from these standard tools. The methods used in core components, particularly the adaptive 'Cortex' memory system and statistical 'Forecast' engine, represent a unique set of logic developed from scratch for this script. The parameters, order of operations, and conditional logic are entirely custom-designed. Therefore, the system's performance is a result of its unique design, not a repetition of publicly available code.
ACS's power lies not in the individual indicators it uses, but in the unique and proprietary logic layers that process the information from these indicators.
1. Multi-Factor Scoring and Adaptive Weighting:
The heart of the methodology is a scoring system that analyzes the market in four main categories: Trend, Support/Resistance, Momentum, and Volume. However, what makes ACS unique is that it dynamically changes the importance it assigns to these categories based on the market regime.
Unique Application: Using ADX, DMI, and ATR indicators, the system detects whether the market is in different regimes, such as "Strong Trend" or "High Volatility Squeeze." When it detects a strong trend, it automatically increases the weight of the Trend scores from the Ichimoku and proprietary AMF Trend Engine. When it detects sideways or tightness, it shifts its focus to Support/Resistance zones determined by Dynamic Channels and the author's "Cortex" Memory System. A different approach was added here, inspired by the classic Fibonacci estimation. This "adaptive weighting" ensures that the strategy always focuses its attention on the most appropriate area.
2. Statistical Forecast Engine:
ACS goes beyond standard indicators and includes a proprietary forecasting algorithm that measures the probability of a potential price movement's success.
Unique Implementation: The system stores the results of past tests (successful bounces/breakouts) at key price levels in a "brain" (memory). At the time of a new test, it compares the current RSI momentum, volume anomalies, and market regime with similar past situations. Based on this comparison, it calculates the probability of the current test being successful as a statistical percentage and adds this percentage to the final score as a "bonus" or "penalty."
3. Walk-Forward Architecture:
Markets constantly evolve. ACS continues to learn from the latest market dynamics by resetting its memory at regular intervals (e.g., monthly) through its "Re-Learn Mode," rather than being trapped by old data. This is an advanced approach aimed at ensuring the strategy remains current and effective over the long term.
Part 3: Practical Features and User Benefits
HOW DOES IT HELP INVESTORS?
Customizable Trading Profiles: ACS does not come with a single set of settings. Users can instantly adapt all the algorithm's key periods and decision thresholds to their trading style by selecting one of the pre-configured trading profiles, such as "SCALPING," "INTRADAY TREND," or "SWING TRADE." Additionally, they can further fine-tune the selected profile with "Speed Adjustment."
Full Automation Compatibility (JSON): The strategy is equipped with fully configurable JSON-formatted alert messages for buy, sell, and position closing transactions. This makes it possible to establish a fully automated trading system by connecting ACS signals to automation platforms such as 3Commas and PineConnector. Dynamic values such as position size ({{strategy.order.contracts}}) are automatically added to alerts.
Advanced and Adaptive Risk Management: Protecting capital is as important as making a profit. ACS offers a multi-layered risk management framework for this purpose:
Flexible Position Size: Allows you to set the risk for each trade as a percentage of capital or a fixed dollar amount.
Adaptive ATR Stop: The stop-loss level is dynamically expanded or contracted based on current market volatility (the ratio of short-term ATR to long-term ATR).
Contingency Mechanisms: Includes safety nets such as "Maximum Drawdown Protection" and the "Praetorian Guard" engine, which detects sudden market shocks.
Clear and Comprehensible Dashboard: Transforms dozens of complex data points into an intuitive dashboard that provides critical information such as market trends, major trends, support/resistance zones, and final signals at a glance.
Section 4: Disclaimers and Rules
Transparency Note: This algorithm uses the mathematical foundations of publicly available indicators such as ADX, ATR, RSI, and Ichimoku. However, ACS's intellectual property and unique value lies in its unique architecture, which combines data from these standard tools, prioritizes it by market trend, and synthesizes it with its proprietary "Cortex" and "Statistical Forecast" engines.
Educational Use:
IMPORTANT WARNING: The Adaptive Cortex Strategy is a professional decision support and analysis tool. It is NOT a system that promises "guaranteed profits." All trading activities involve the risk of capital loss. Past performance is no guarantee of future results. All signals and analysis generated by this script are for educational purposes only and should not be construed as investment advice. Users are solely responsible for applying their own risk management rules and making their final trading decisions.
Strategy Backtest Information
Please remember that past performance is not indicative of future results. The published chart and performance report were generated on the 4-hour timeframe of the BTC/USD pair with the following settings:
Test Period: January 1, 2016 - November 2, 2025
Default Position Size: 15% of Capital
Pyramiding: Closed
Commission: 0.0008
Slippage: 2 ticks (Please enter the slippage you used in your own tests)
Testing Approach: The published test includes 123 trades and is statistically significant. It is strongly recommended that you test on different assets and timeframes for your own analysis. The default settings are a template and should be adjusted by the user for their own analysis.
量化多空策略 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.
Asian Session Sweep Reversal This strategy identifies liquidity sweeps of the Asian session range (09:00–15:00 JST) and trades the first confirmed reversal in the opposite direction — but only within the London morning window (08:00–12:00 Europe/Berlin).
Core Logic:
Marks the Asian session high and low (fixed Tokyo timezone, no DST).
After the Asian range ends, the first sweep of either the high or low triggers a watch for a reversal candle.
When a bearish candle forms after a high sweep, a Sell Stop is placed below the candle’s wick.
When a bullish candle forms after a low sweep, a Buy Stop is placed above the candle’s wick.
Orders are valid for 1 bar only; unfilled trades are canceled automatically.
Each day allows only one trade, taking the direction of the first sweep (either long or short).
The fixed risk/reward ratio is 1:2 (Take Profit = 2× Stop Loss).
Features:
Automatically detects and visualizes the Asian range.
Works consistently year-round (using Tokyo time).
Optional box display for the range.
Clear signal markers for entries.
Designed for clean backtesting with daily trade control.
QV 2H/4D 2BX & FVB StrategyQuantVault
### Strategy Description for Presentation
The **QV 2H/4D 2BX & FVB Strategy** is a versatile, timeframe-based trading system designed for TradingView using Pine Script v5. It combines momentum oscillators (B-Xtrender) across a 2-hour (120-minute) and 4-day timeframe with Fair Value Bands (FVB) for dynamic support/resistance levels, a trailing ATR-based stop (Red Line), and Break of Structure (BOS) detection. The strategy supports both long and short directions, allowing for main entries, optional pyramiding (adding to positions), and multiple exit mechanisms including full exits and partial scale-outs. It's optimized for trend-following in volatile markets like forex, stocks, or crypto, with built-in risk management via percent-of-equity sizing (default 5% per trade) and commission accounting. Alerts are included for band touches and BOS events to aid real-time monitoring. Key features include customizable toggles for entries/exits, making it adaptable for backtesting or live trading with an initial capital of $50,000.
This strategy emphasizes multi-timeframe confirmation: the higher timeframe (4D) provides directional bias, while the lower (2H) drives precise entries and exits. It aims to capture trends by entering on momentum shifts and exiting via profit-taking at deviation bands or protective stops, reducing drawdowns through pyramiding limits (max 1 add-on) and conditional re-entries only after full exits or band resets.
### Detailed Breakdown of How It Works
The strategy operates as a complete trading system with indicator calculations, entry logic, position management, exit conditions, and alerts. Below, I'll explain each section step by step, including the underlying calculations and logic flows. Note that all plots (e.g., histograms, lines, bands) are overlaid on the chart unless specified otherwise, but the strategy itself plots in a separate pane (overlay=false).
#### 1. Input Parameters
Users can customize the strategy via inputs, which control direction, features, and indicator settings. These are grouped into categories for ease:
| Category | Key Inputs | Description/Default |
|----------|------------|----------------------|
| **Direction** | `direction` | "Long" or "Short" – restricts strategy to one side (default: "Long"). |
| **Entry Settings** | `enable_main_entry`, `enable_pyramiding` | Toggle main entry and adding to positions (both default: true). |
| **Exit Settings** | `enable_atr_exit`, `enable_2bar_exit`, `enable_tf1_below0_exit`, `enable_large_decrease_exit`, `enable_bos_exit`, `enable_1x_scaleout`, `enable_2x_scaleout`, `enable_3x_exit` | Toggles for various full/partial exits (all default: true). |
| **Alert Settings** | `enable_band_alerts`, `enable_bos_touch_alert`, `enable_bos_cross_alert` | Toggles for deviation band and BOS alerts (all default: true). |
| **Indicator Lengths** | `short_l1` (5), `short_l2` (20), `short_l3` (5), `long_l1` (20), `long_l2` (5) | Periods for short/long Xtrender EMAs and RSIs. |
| **Timeframes** | `tf1` ("120" – 2 hours), `tf2` ("4D" – 4 days) | Multi-timeframe data sources. |
| **Exit/Thresholds** | `exit_amount` (40.0), `tf2_threshold` (10.0) | TF1 change for large exit; TF2 momentum threshold. |
| **ATR & Bands** | `len` (10 – ATR length), `mult_red` (2.5 – Red Line multiplier), `fair_value_length` (33), `fair_value_mult1/2/3` (0.6/1.0/1.4) | Settings for Red ATR trailing line and FVB deviation levels. |
A custom T3 moving average function is defined but not used in the core logic (possibly for future extensions).
#### 2. Indicator Calculations
The strategy relies on several computed indicators for signals:
- **B-Xtrender Oscillators (Short-Term)**:
- Calculated on TF1 (2H) and TF2 (4D): `shortTermXtrender_tf1/tf2 = RSI(EMA(close, short_l1) - EMA(close, short_l2), short_l3) - 50`.
- This creates a momentum histogram centered at 0, showing overbought (>0, green) or oversold (<0, red) conditions.
- Combined: `combinedShortTermXtrender = tf1 + tf2` (not directly used in entries/exits).
- TF2 direction is tracked persistently: `tf2_increasing` if change >0, `tf2_decreasing` if <0.
- Plotted as columns (TF1 with color variations for 2-bar trends/crosses) and area (TF2, translucent).
- **Long-Term Xtrender**:
- `longTermXtrender = RSI(EMA(close, long_l1), long_l2)`.
- Not used in the provided logic (potential remnant or for visualization).
- **2-Bar Conditions**:
- For longs: `tf1_green_and_increasing_2bars` – TF1 >0 and increasing for 2 bars.
- For shorts: `tf1_red_and_decreasing_2bars` – TF1 <0 and decreasing for 2 bars.
- Used for exits and histogram coloring.
- **Centerline Crosses**:
- `tf1_cross_above_zero` (crossover >0), `tf1_cross_below_zero` (crossunder <0).
- Influences histogram colors and exits.
- **Red ATR Line**:
- Base ATR: `atr = ta.atr(len)`.
- Trailing levels: `up_red = close - (mult_red * atr)`, `dn_red = close + (mult_red * atr)`.
- Trend detection: Switches between up/dn based on close vs previous trail, with breaks flipping direction.
- Plotted as a red broken line on the price chart – acts as a dynamic trailing stop.
- **Fair Value Bands (FVB)**:
- Fair price: `fairPriceSmooth = SMA(ohlc4, fair_value_length)` (blue midline).
- Deviations calculated from high/low spreads relative to fair price, using medians of historical pivots and boosts.
- Upper bands (for longs): `upper1/2/3 = fairPriceSmooth + mult1/2/3 * pivot-based spread` (colors: yellow, orange, red).
- Lower bands (for shorts): `lower1/2/3 = fairPriceSmooth - mult1/2/3 * pivot-based spread`.
- Only relevant bands plot based on direction.
- Uses arrays (limited to 1000-2000 elements) for median calculations to adapt dynamically.
- **Break of Structure (BOS)**:
- Swing levels: `last_swing_low = pivotlow(low, 5,5)`, `last_swing_high = pivothigh(high, 5,5)`.
- Plotted as white lines (SL for longs, SH for shorts) if enabled.
A centerline at 0 is plotted on the oscillator pane.
#### 3. Entry Logic
Entries are direction-specific and use multi-timeframe momentum for confirmation. Position sizing is 5% of equity, with pyramiding limited to one add-on.
- **Long Entries**:
- Main: If `enable_main_entry` and (TF2 increasing or > threshold) and TF1 increasing, and no position (or after full exit if close <= upper2).
- Command: `strategy.entry('Long', strategy.long)`.
- On new position: Reset flags, set initial qty, store swing low as SL.
- Pyramiding: If enabled and not doubled, add equal qty on crossover above Red Line.
- **Short Entries**:
- Mirror of longs: TF2 decreasing or < -threshold, TF1 decreasing, no position (or after full exit if close >= lower2).
- Command: `strategy.entry('Short', strategy.short)`.
- Pyramiding: Add on crossunder below Red Line.
Re-entries are blocked until full exit unless price resets to a band (e.g., below upper2 for longs).
#### 4. Position Management
Uses variables to track state:
- Initial qty, doubled flag, waiting for scale-out flags, full exit flag (per direction).
- Ensures scale-outs only trigger after crosses, and full exits set flags to allow re-entries.
#### 5. Exit Logic
Exits are checked only when in position and use multiple independent conditions. Full exits set `has_fully_exited` to true. Scale-outs are partial (50% of current size for longs, initial qty *0.5 for shorts – note asymmetry).
- **Long Exits**:
1. ATR: Crossunder below Red Line (full, if enabled).
2. 2-Bar: TF1 red/decreasing for 2 bars and below Red Line (full).
3. TF1 Below 0: Crossunder centerline and below Red Line (full).
4. Large TF1 Decrease: TF1 drop > exit_amount (full).
5. BOS: Crossunder swing low (full, if enabled).
6. 1x Scale-Out: Crossover upper1, then crossunder (50%).
7. 2x Scale-Out: Similar for upper2 (50%).
8. 3x Exit: Similar for upper3 (full).
- **Short Exits**:
- Mirror: ATR crossover above Red Line, TF1 green/increasing 2 bars above Red Line, TF1 above 0 above Red Line, large TF1 increase, BOS crossover swing high, scale-outs on lower bands (crossunder then crossover).
Exits include comments for chart labeling (e.g., 'Full ATR', '1x 50%').
#### 6. Alert Conditions
Alerts fire in real-time or on bar close, resetting flags at new bars to avoid duplicates:
- **Band Touches** (if enabled): Touch from below/above for each 1x/2x/3x upper/lower band.
- **BOS Touches** (if enabled): Touch from above/below for SL/SH.
- **BOS Cross & Close** (if enabled): Cross and close below SL (longs) or above SH (shorts) – once per bar close.
This setup provides comprehensive notifications for potential entries, exits, or reversals.
In summary, the strategy enters on aligned multi-timeframe momentum, adds on Red Line breaks, and exits via protective stops or profit-taking at adaptive bands, making it a robust trend-capture tool with risk controls. For presentation, emphasize its modularity – users can disable features to simplify or focus on specific signals. If backtesting, test on various assets/timeframes to tune parameters like multipliers.
High Accuracy Engulfing Strategy [PIPNEXUS]Title: EMA Engulfing Setup
Description:
This indicator focuses on identifying strong engulfing patterns that form around the EMA line, helping traders catch high-probability moves in line with market direction.
Concept Overview:
The idea is simple — when both the engulfing candle and the candle being engulfed have their bodies touching the EMA line, it often represents a key point of rejection or continuation. These areas can produce clean entries with strong momentum.
How to Use:
1. Wait for a valid engulfing formation near the EMA line.
Both the engulfing and the engulfed candles should have their bodies touching the EMA.
2. Enter in the direction of the engulfing candle once the pattern is confirmed.
3. For pinpoint entries, observe the market during session changes (especially in the first 3–5 minutes after a session opens).
4. For longer and more stable trades, look for the same pattern on 15-minute or 1-hour charts.
5. Always align your trades with the prevailing market structure and avoid counter-trend setups.
Note:
This indicator is designed for technical and educational use. It does not generate buy or sell signals automatically, nor does it guarantee performance. Use it alongside your own market analysis and proper risk management.
v2.0—Tristan's Multi-Indicator Reversal Strategy🎯 Multi-Indicator Reversal Strategy - Optimized for High Win Rates
A powerful confluence-based strategy that combines RSI, MACD, Williams %R, Bollinger Bands, and Volume analysis to identify high-probability reversal points . Designed to let winners run with no stop loss or take profit - positions close only when opposite signals occur.
Also, the 3 hour timeframe works VERY well—just a lot less trades.
📈 Proven Performance
This strategy has been backtested and optimized on multiple blue-chip stocks with 80-90%+ win rates on 1-hour timeframes from Aug 2025 through Oct 2025:
✅ V (Visa) - Payment processor
✅ MSFT (Microsoft) - Large-cap tech
✅ WMT (Walmart) - Retail leader
✅ IWM (Russell 2000 ETF) - Small-cap index
✅ NOW (ServiceNow) - Enterprise software
✅ WM (Waste Management) - Industrial services
These stocks tend to mean-revert at extremes, making them ideal candidates for this reversal-based approach. I only list these as a way to show you the performance of the script. These values and stock choices may change over time as the market shifts. Keep testing!
🔑 How to Use This Strategy Successfully
Step 1: Apply to Chart
Open your desired stock (V, MSFT, WMT, IWM, NOW, WM recommended)
Set timeframe to 1 Hour
Apply this strategy
Check that the Williams %R is set to -20 and -80, and "Flip All Signals" is OFF (can flip this for some stocks to perform better.)
Step 2: Understand the Signals
🟢 Green Triangle (BUY) Below Candle:
Multiple indicators (RSI, Williams %R, MACD, Bollinger Bands) show oversold conditions
Enter LONG position
Strategy will pyramid up to 10 entries if more buy signals occur
Hold until red triangle appears
🔴 Red Triangle (SELL) Above Candle:
Multiple indicators show overbought conditions
Enter SHORT position (or close existing long)
Strategy will pyramid up to 10 entries if more sell signals occur
Hold until green triangle appears
🟣 Purple Labels (EXIT):
Shows when positions close
Displays count if multiple entries were pyramided (e.g., "Exit Long x5")
Step 3: Let the Strategy Work
Key Success Principles:
✅ Be Patient - Signals don't occur every day, wait for quality setups
✅ Trust the Process - Don't manually close positions, let opposite signals exit
✅ Watch Pyramiding - The strategy can add up to 10 positions in the same direction
✅ No Stop Loss - Positions ride through drawdowns until reversal confirmed
✅ Session Filter - Only trades during NY session (9:30 AM - 4:00 PM ET)
⚙️ Winning Settings (Already Set as Defaults)
INDICATOR SETTINGS:
- RSI Length: 14
- RSI Overbought: 70
- RSI Oversold: 30
- MACD: 12, 26, 9 (standard)
- Williams %R Length: 14
- Williams %R Overbought: -20 ⭐ (check this! And adjust to your liking)
- Williams %R Oversold: -80 ⭐ (check this! And adjust to your liking)
- Bollinger Bands: 20, 2.0
- Volume MA: 20 periods
- Volume Multiplier: 1.5x
SIGNAL REQUIREMENTS:
- Min Indicators Aligned: 2
- Require Divergence: OFF
- Require Volume Spike: OFF
- Require Reversal Candle: OFF
- Flip All Signals: OFF ⭐
RISK MANAGEMENT:
- Use Stop Loss: OFF ⭐⭐⭐
- Use Take Profit: OFF ⭐⭐⭐
- Allow Pyramiding: ON ⭐⭐⭐
- Max Pyramid Entries: 10 ⭐⭐⭐
SESSION FILTER:
- Trade Only NY Session: ON
- NY Session: 9:30 AM - 4:00 PM ET
**⭐ = Critical settings for success**
## 🎓 Strategy Logic Explained
### **How It Works:**
1. **Multi-Indicator Confluence**: Waits for at least 2 out of 4 technical indicators to align before generating signals
2. **Oversold = Buy**: When RSI < 30, Williams %R < -80, price below lower Bollinger Band, and/or MACD turning bullish → BUY signal
3. **Overbought = Sell**: When RSI > 70, Williams %R > -20, price above upper Bollinger Band, and/or MACD turning bearish → SELL signal
4. **Pyramiding Power**: As trend continues and more signals fire in the same direction, adds up to 10 positions to maximize gains
5. **Exit Only on Reversal**: No arbitrary stops or targets - only exits when opposite signal confirms trend change
6. **Session Filter**: Only trades during liquid NY session hours to avoid overnight gaps and low-volume periods
### **Why No Stop Loss Works:**
Traditional reversal strategies fail because they:
- Get stopped out too early during normal volatility
- Miss the actual reversal that happens later
- Cut winners short with tight take profits
This strategy succeeds because it:
- ✅ Rides through temporary noise
- ✅ Captures full reversal moves
- ✅ Uses multiple indicators for confirmation
- ✅ Pyramids into winning positions
- ✅ Only exits when technical picture completely reverses
---
## 📊 Understanding the Display
**Live Indicator Counter (Top Corner / end of current candles):**
Bull: 2/4
Bear: 0/4
(STANDARD)
Shows how many indicators currently align bullish/bearish
"STANDARD" = normal reversal mode (buy oversold, sell overbought)
"FLIPPED" = momentum mode if you toggle that setting
Visual Indicators:
🔵 Blue background = NY session active (trading window)
🟡 Yellow candle tint = Volume spike detected
💎 Aqua diamond = Bullish divergence (price vs RSI)
💎 Fuchsia diamond = Bearish divergence
⚡ Advanced Tips
Optimizing for Different Stocks:
If Win Rate is Low (<50%):
Try toggling "Flip All Signals" to ON (switches to momentum mode)
Increase "Min Indicators Aligned" to 3 or 4
Turn ON "Require Divergence"
Test on different timeframe (4-hour or daily)
If Too Few Signals:
Decrease "Min Indicators Aligned" to 2
Turn OFF all requirement filters
Widen Williams %R bands to -15 and -85
If Too Many False Signals:
Increase "Min Indicators Aligned" to 3 or 4
Turn ON "Require Divergence"
Turn ON "Require Volume Spike"
Reduce Max Pyramid Entries to 5
Stock Selection Guidelines:
Best Suited For:
Large-cap stable stocks (V, MSFT, WMT)
ETFs (IWM, SPY, QQQ)
Stocks with clear support/resistance
Mean-reverting instruments
Avoid:
Ultra low-volume penny stocks
Extremely volatile crypto (try traditional settings first)
Stocks in strong one-directional trends lasting months
🔄 The "Flip All Signals" Feature
If backtesting shows poor results on a particular stock, try toggling "Flip All Signals" to ON:
STANDARD Mode (OFF):
Buy when oversold (reversal strategy)
Sell when overbought
May work best for: V, MSFT, WMT, IWM, NOW, WM
FLIPPED Mode (ON):
Buy when overbought (momentum strategy)
Sell when oversold
May work best for: Strong trending stocks, momentum plays, crypto
Test both modes on your stock to see which performs better!
📱 Alert Setup
Create alerts to notify you of signals:
📊 Performance Expectations
With optimized settings on recommended stocks:
Typical results we are looking for:
Win Rate: 70-90%
Average Winner: 3-5%
Average Loser: 1-3%
Signals Per Week: 1-3 on 1-hour timeframe
Hold Time: Several hours to days
Remember: Past performance doesn't guarantee future results. Always use proper risk management.
Connors Double Seven (with options)Rules (original, long-only)
Trade only when Close > 200-day SMA.
Entry: Buy when Close makes a 7-day low.
Exit: Sell when Close makes a 7-day high.
KCB Strategy [Ncentry]This strategy is a strong trend breaking strategy based on the Keltner channel.
Optimized for the bitcoin okx exchange chart.
MA strategyBuy / sell on MA cross. Use ATR or Swing for stop
Option for moving stop after second SwL / SwH
Knock yourself out modifying.
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":...}).
Krist1aqq - Premium Signal SystemTo get the indicator, write to Telegram: @ASTRO_rou
This indicator gives signals to long or short, and also has custom notifications in telegram via a webhook, you will know the information at the entrance, when taking takes, as well as when closing a position. The indicator is suitable for a 15min - 4h timeframe.
AnkeAlgo A68 strategy™ || AnkeAlgo®[16.6]## ✅ Multi-Timeframe Trend Strategy Based on MFI and Momentum Factors
### 📌 Overview
This strategy combines **Money Flow Index (MFI)** and **Momentum** to identify trend continuation and momentum reversal opportunities in the crypto market. It focuses on volume-weighted capital flow and price strength, generating trend-biased signals suitable for swing and intraday traders.
---
### 📊 Technical Indicators Used
| Indicator | Purpose |
|-----------|---------|
| **MFI (Money Flow Index)** | Detects capital inflow/outflow and filters range-bound markets |
| **Momentum Indicator** | Measures price acceleration and confirms breakout strength |
| **Optional: ATR / EMA Filters** | Can be added for volatility stop or trend validation |
---
### ⚙️ Core Logic
- **Trend Confirmation**: MFI exceeds threshold and aligns with price direction
- **Momentum Entry Trigger**: Trades are executed only when momentum crosses a signal level
- **Noise Filter**: Avoids entries when MFI divergence or momentum weakness is detected
- **Position Management**: Supports ATR-based or percentage-based stop-loss systems
---
### 🪙 Market and Asset
✅ Designed for crypto derivatives
**Recommended symbol:** `ETHUSDT.P` (Perpetual Futures)
---
### ⏱️ Recommended Timeframes
- 30-minute
- 45-minute
- 1-hour
> The **45m timeframe** shows the most stable performance in forward testing.
---
### 📈 Strategy Features
- Performs best during trending and high-momentum phases
- Low overfitting risk, adaptable across different volatility environments
- Can be used as a signal engine for grid, martingale, or multi-asset systems
- Easily extendable to BTC, SOL, BNB, and other high-liquidity assets
---
### ⚠️ Risk Disclaimer
- This is **not** a mean-reversion strategy and may produce false signals in sideways markets
- Stop-loss management and position sizing are required for live deployment
- Backtest results do not guarantee live trading performance due to slippage and trading fees
---
Krist1aqq | 15-45min+To get the indicator, write to Telegram: @ASTRO_rou
This indicator gives signals to long or short, and also has custom notifications in telegram via a webhook, you will know the information at the entrance, when taking takes, as well as when closing a position. The indicator is suitable for a 15min - 4h timeframe.
DRACO TOMAS EMA Trend Follower🐉 DRACO TOMAS EMA Trend Follower
Description:
The DRACO TOMAS EMA Trend Follower is a simple yet powerful trend-following strategy designed to capture directional moves based on exponential moving average (EMA) crossovers. It automatically detects trend changes and manages positions dynamically.
Core Logic:
The strategy uses two EMAs — a Fast EMA (default 12) and a Slow EMA (default 21) — to identify the market trend.
When the Fast EMA crosses above the Slow EMA, the strategy opens a long position, signaling bullish momentum.
When the Fast EMA crosses below the Slow EMA, the strategy opens a short position, signaling bearish momentum.
The color of the EMAs changes dynamically: green for uptrends, red for downtrends.
Exit rules:
Longs are closed when the EMAs turn red (trend reversal to bearish).
Shorts are closed when the EMAs turn green (trend reversal to bullish).
Position Sizing:
The system uses 10% of equity per trade by default, allowing flexible risk management and compounding.
Purpose:
Designed for traders who want a clean and efficient EMA crossover system to follow trends automatically on any timeframe or asset.
Best Used For:
Swing trading and trend confirmation
Identifying major directional shifts
Testing EMA-based momentum systems
Backtest - Ichimoku CloudThis script find the entry position on a chart using Ichimoku clud conditions.
and also exit condition based on base line & price close w.r.t to Ichi cloud.






















