FlowStateTrader FlowState Trader - Advanced Time-Filtered Strategy
## Overview
FlowState Trader is a sophisticated algorithmic trading strategy that combines precision entry signals with intelligent time-based filtering and adaptive risk management. Built for traders seeking to achieve their optimal performance state, FlowState identifies high-probability trading opportunities within user-defined time windows while employing dynamic trailing stops and partial position management.
## Core Strategy Philosophy
FlowState Trader operates on the principle that peak trading performance occurs when three elements align: **Focus** (precise entry signals), **Flow** (optimal time windows), and **State** (intelligent position management). This strategy excels at finding reversal opportunities at key support and resistance levels while filtering out suboptimal trading periods to keep traders in their optimal flow state.
## Key Features
### 🎯 Focus Entry System
**Support/Resistance Zone Trading**:
- Dynamic identification of key price levels using configurable lookback periods
- Entry signals triggered when price interacts with these critical zones
- Volume confirmation ensures genuine breakout/reversal momentum
- Trend filter alignment prevents counter-trend disasters
**Entry Conditions**:
- **Long Signals**: Price closes above support buffer, touches support level, with above-average volume
- **Short Signals**: Price closes below resistance buffer, touches resistance level, with above-average volume
- Optional trend filter using EMA or SMA for directional bias confirmation
### ⏰ FlowState Time Filtering System
**Comprehensive Time Controls**:
- **12-Hour Format Trading Windows**: User-friendly AM/PM time selection
- **Multi-Timezone Support**: UTC, EST, PST, CST with automatic conversion
- **Day-of-Week Filtering**: Trade only weekdays, weekends, or both
- **Lunch Hour Avoidance**: Automatically skips low-volume lunch periods (12-1 PM)
- **Visual Time Indicators**: Background coloring shows active/inactive trading periods
**Smart Time Features**:
- Handles overnight trading sessions seamlessly
- Prevents trades during historically poor performance periods
- Customizable trading hours for different market sessions
- Real-time trading window status in dashboard
### 🛡️ Adaptive Risk Management
**Multi-Level Take Profit System**:
- **TP1**: First profit target with optional partial position closure
- **TP2**: Final profit target for remaining position
- **Flexible Scaling**: Choose number of contracts to close at each level
**Dynamic Trailing Stop Technology**:
- **Three Operating Modes**:
- **Conservative**: Earlier activation, tighter trailing (protect profits)
- **Balanced**: Optimal risk/reward balance (recommended)
- **Aggressive**: Later activation, wider trailing (let winners run)
- **ATR-Based Calculations**: Adapts to current market volatility
- **Automatic Activation**: Engages when position reaches profitability threshold
### 📊 Intelligent Position Sizing
**Contract-Based Management**:
- Configurable entry quantity (1-1000 contracts)
- Partial close quantities for profit-taking
- Clear position tracking and P&L monitoring
- Real-time position status updates
### 🎨 Professional Visualization
**Enhanced Chart Elements**:
- **Entry Zone Highlighting**: Clear visual identification of trading opportunities
- **Dynamic Risk/Reward Lines**: Real-time TP and SL levels with price labels
- **Trailing Stop Visualization**: Live tracking of adaptive stop levels
- **Support/Resistance Lines**: Key level identification
- **Time Window Background**: Visual confirmation of active trading periods
**Dual Dashboard System**:
- **Strategy Dashboard**: Real-time position info, settings status, and current levels
- **Performance Scorecard**: Live P&L tracking, win rates, and trade statistics
- **Customizable Sizing**: Small, Medium, or Large display options
### ⚙️ Comprehensive Customization
**Core Strategy Settings**:
- **Lookback Period**: Support/resistance calculation period (5-100 bars)
- **ATR Configuration**: Period and multipliers for stops/targets
- **Reward-to-Risk Ratios**: Customizable profit target calculations
- **Trend Filter Options**: EMA/SMA selection with adjustable periods
**Time Filter Controls**:
- **Trading Hours**: Start/end times in 12-hour format
- **Timezone Selection**: Four major timezone options
- **Day Restrictions**: Weekend-only, weekday-only, or unrestricted
- **Session Management**: Lunch hour avoidance and custom periods
**Risk Management Options**:
- **Trailing Stop Modes**: Conservative/Balanced/Aggressive presets
- **Partial Close Settings**: Enable/disable with custom quantities
- **Alert System**: Comprehensive notifications for all trade events
### 📈 Performance Tracking
**Real-Time Metrics**:
- Net profit/loss calculation
- Win rate percentage
- Profit factor analysis
- Maximum drawdown tracking
- Total trade count and breakdown
- Current position P&L
**Trade Analytics**:
- Winner/loser ratio tracking
- Real-time performance scorecard
- Strategy effectiveness monitoring
- Risk-adjusted return metrics
### 🔔 Alert System
**Comprehensive Notifications**:
- Entry signal alerts with price and quantity
- Take profit level hits (TP1 and TP2)
- Stop loss activations
- Trailing stop engagements
- Position closure notifications
## Strategy Logic Deep Dive
### Entry Signal Generation
The strategy identifies high-probability reversal points by combining multiple confirmation factors:
1. **Price Action**: Looks for price interaction with key support/resistance levels
2. **Volume Confirmation**: Ensures sufficient market interest and liquidity
3. **Trend Alignment**: Optional filter prevents counter-trend positions
4. **Time Validation**: Only trades during user-defined optimal periods
5. **Zone Analysis**: Entry occurs within calculated buffer zones around key levels
### Risk Management Philosophy
FlowState Trader employs a three-tier risk management approach:
1. **Initial Protection**: ATR-based stop losses set at strategy entry
2. **Profit Preservation**: Trailing stops activate once position becomes profitable
3. **Scaled Exit**: Partial profit-taking allows for both security and potential
### Time-Based Edge
The time filtering system recognizes that not all trading hours are equal:
- Avoids low-volume, high-spread periods
- Focuses on optimal liquidity windows
- Prevents trading during news events (lunch hours)
- Allows customization for different market sessions
## Best Practices and Optimization
### Recommended Settings
**For Scalping (1-5 minute charts)**:
- Lookback Period: 10-20
- ATR Period: 14
- Trailing Stop: Conservative mode
- Time Filter: Major session hours only
**For Day Trading (15-60 minute charts)**:
- Lookback Period: 20-30
- ATR Period: 14-21
- Trailing Stop: Balanced mode
- Time Filter: Extended trading hours
**For Swing Trading (4H+ charts)**:
- Lookback Period: 30-50
- ATR Period: 21+
- Trailing Stop: Aggressive mode
- Time Filter: Disabled or very broad
### Market Compatibility
- **Forex**: Excellent for major pairs during active sessions
- **Stocks**: Ideal for liquid stocks during market hours
- **Futures**: Perfect for index and commodity futures
- **Crypto**: Effective on major cryptocurrencies (24/7 capability)
### Risk Considerations
- **Market Conditions**: Performance varies with volatility regimes
- **Timeframe Selection**: Lower timeframes require tighter risk management
- **Position Sizing**: Never risk more than 1-2% of account per trade
- **Backtesting**: Always test on historical data before live implementation
## Educational Value
FlowState serves as an excellent learning tool for:
- Understanding support/resistance trading
- Learning proper time-based filtering
- Mastering trailing stop techniques
- Developing systematic trading approaches
- Risk management best practices
## Disclaimer
This strategy is for educational and informational purposes only. Past performance does not guarantee future results. Trading involves substantial risk of loss and is not suitable for all investors. Users should thoroughly backtest the strategy and understand all risks before live trading. Always use proper position sizing and never risk more than you can afford to lose.
---
*FlowState Trader represents the evolution of systematic trading - combining classical technical analysis with modern risk management and intelligent time filtering to help traders achieve their optimal performance state through systematic, disciplined execution.*
趨勢分析
EMA Pyramiting StratgyBasit şekilde ema20 ema50 ve ema200 kullanarak piramitleme yapılan bir strateji örneği.
Krypto Dziadek strategy using EM/MA + PivotsEXPLANATION OF THE STRATEGY
The EMA/MA Crossover with Pivot Points for Pionex strategy is designed for TradingView to generate buy and sell signals for cryptocurrency trading, with compatibility for automation via the Pionex crypto exchange. It combines Exponential Moving Averages (EMAs) for short- and medium-term trend detection, a Simple Moving Average (SMA) as a trend filter, and pivot points to confirm trend reversals or continuations. The strategy includes risk management with stop-loss and take-profit levels and provides webhook-compatible alerts for Pionex’s Signal Bot.
Outlier Spike Reversal StrategyPicks bottom potentials, and spikes. Trade short PUTS OTM is my strategy. Watch VIX volatility, when it spikes above 20 you may want to adjust thresholds to capture the larger volume spikes etc
GBPCAD INTRADAY TRADING STRATEGY This was someone else's strategy that I modified, and it's been through many drafts and revisions. The Backtest Data Looks Good with a Nice Equity Curve. Profit Factor could be Higher when examining all the Data Back to the Early 2000s
OKX Contract Martin SAR SignalDescription:
This script combines the Parabolic SAR indicator with a Martingale trading strategy for OKX contracts, optimized for high-frequency trading on lower timeframes (e.g., 45-minute charts). It automatically identifies trend reversals, generates buy and sell signals, and provides real-time alerts for entry and exit points. Key features include:
Trend Reversal Detection: Automatically detects changes between uptrends and downtrends using SAR values.
Martingale Strategy: Incorporates a customizable acceleration factor for adapting to market volatility.
Real-Time Alerts: Sends JSON-formatted webhook alerts for automation and includes detailed signal labels on the chart.
Customizable Parameters: Fully adjustable SAR settings (start, increment, and maximum factors) for different trading styles.
This strategy is ideal for traders seeking precise contract signals with high-frequency execution. However, use caution and conduct thorough backtesting before deploying in live markets, especially for ultra-high-frequency trading.
2 Reds -> 2 Greens Strategy with Custom TP/SLcustom candle configuration with a 61 percent win rate in the strategy tester user can configure take profit and stop loss to suit
ZLT - Hyperscalp - TestWhat This Strategy Does - Complete Overview
This is a professional scalping strategy designed for fast-moving markets like NAS100 (NASDAQ 100). It's built to catch quick price bounces when the market pulls back too far in a trending move.
The Big Picture
Think of it like a rubber band strategy: When price stretches too far from its average (like pulling a rubber band), it tends to snap back. This strategy identifies those stretched moments and enters trades expecting the "snap back" to happen.
Step-by-Step How It Works
1. First, it identifies the overall trend (Higher Timeframe Analysis)
Looks at a bigger picture (15-30 minute chart)
Uses two moving averages (50 EMA and 200 EMA)
Only trades WITH the trend, never against it
2. Then waits for a pullback (The Setup)
In an uptrend: Waits for price to dip below the lower Keltner Channel
In a downtrend: Waits for price to spike above the upper Keltner Channel
Also checks if RSI shows oversold (longs) or overbought (shorts)
3. Looks for reversal signs (The Trigger)
RSI starting to turn back (crossing 50)
Price crossing back into normal range
Momentum shifting back toward the trend
4. Filters out bad trades (Quality Control)
ADX must be above threshold (trending market, not choppy)
Volatility must be in acceptable range (not too quiet, not too crazy)
Only trades during specified hours (liquid sessions)
Enforces cooldown periods between trades
5. Manages the position (Risk Management)
Sets initial stop loss based on ATR (market volatility)
Moves stop to breakeven when trade goes in profit
Activates trailing stop to protect profits
Takes profit at predetermined target (1.2x risk by default)
Three Built-in Presets for NAS100
🔴 Aggressive (1-minute charts)
More trades, quicker entries
Tighter stops, faster action
For experienced scalpers
🟡 Balanced (3-minute charts)
Moderate frequency
Balanced risk/reward
Good starting point
🟢 Conservative (5-minute charts)
Fewer, higher-quality trades
Wider stops, bigger targets
For cautious traders
Why It Works
The strategy exploits three market tendencies:
Mean reversion: Extreme moves tend to reverse
Trend continuation: Overall trends tend to persist
Momentum patterns: RSI extremes often mark turning points
Best Used For
Markets: Indices like NAS100, S&P 500
Timeframes: 1-5 minute charts
Conditions: Trending markets with good volatility
Style: Day trading/scalping (quick in-and-out trades)
Key Features
No repainting: Signals are final once they appear
Automatic position sizing: Uses percentage of equity
Multiple safety checks: Prevents overtrading
Visual indicators: Shows entry points, trend lines, and channels
Alerts: Can notify you when trades trigger
The Bottom Line
This strategy is like having a systematic trader who:
Only buys dips in uptrends
Only sells rallies in downtrends
Waits for extreme stretches
Enters when price starts snapping back
Manages risk automatically
Prevents emotional overtrading
It's designed to take many small, controlled bites rather than swinging for home runs. Perfect for active traders who want systematic, rule-based entries and exits.
Mutanabby_AI | ATR+ | Trend-Following StrategyThis document presents the Mutanabby_AI | ATR+ Pine Script strategy, a systematic approach designed for trend identification and risk-managed position entry in financial markets. The strategy is engineered for long-only positions and integrates volatility-adjusted components to enhance signal robustness and trade management.
Strategic Design and Methodological Basis
The Mutanabby_AI | ATR+ strategy is constructed upon a foundation of established technical analysis principles, with a focus on objective signal generation and realistic trade execution.
Heikin Ashi for Trend Filtering: The core price data is processed via Heikin Ashi (HA) methodology to mitigate transient market noise and accentuate underlying trend direction. The script offers three distinct HA calculation modes, allowing for comparative analysis and validation:
Manual Calculation: Provides a transparent and deterministic computation of HA values.
ticker.heikinashi(): Utilizes TradingView's built-in function, employing confirmed historical bars to prevent repainting artifacts.
Regular Candles: Allows for direct comparison with standard OHLC price action.
This multi-methodological approach to trend smoothing is critical for robust signal generation.
Adaptive ATR Trailing Stop: A key component is the Average True Range (ATR)-based trailing stop. ATR serves as a dynamic measure of market volatility. The strategy incorporates user-defined parameters (
Key Value and ATR Period) to calibrate the sensitivity of this trailing stop, enabling adaptation to varying market volatility regimes. This mechanism is designed to provide a dynamic exit point, preserving capital and locking in gains as a trend progresses.
EMA Crossover for Signal Generation: Entry and exit signals are derived from the interaction between the Heikin Ashi derived price source and an Exponential Moving Average (EMA). A crossover event between these two components is utilized to objectively identify shifts in momentum, signaling potential long entry or exit points.
Rigorous Stop Loss Implementation: A critical feature for risk mitigation, the strategy includes an optional stop loss. This stop loss can be configured as a percentage or fixed point deviation from the entry price. Importantly, stop loss execution is based on real market prices, not the synthetic Heikin Ashi values. This design choice ensures that risk management is grounded in actual market liquidity and price levels, providing a more accurate representation of potential drawdowns during backtesting and live operation.
Backtesting Protocol: The strategy is configured for realistic backtesting, employing fill_orders_on_standard_ohlc=true to simulate order execution at standard OHLC prices. A configurable Date Filter is included to define specific historical periods for performance evaluation.
Data Visualization and Metrics: The script provides on-chart visual overlays for buy/sell signals, the ATR trailing stop, and the stop loss level. An integrated information table displays real-time strategy parameters, current position status, trend direction, and key price levels, facilitating immediate quantitative assessment.
Applicability
The Mutanabby_AI | ATR+ strategy is particularly suited for:
Cryptocurrency Markets: The inherent volatility of assets such as #Bitcoin and #Ethereum makes the ATR-based trailing stop a relevant tool for dynamic risk management.
Systematic Trend Following: Individuals employing systematic methodologies for trend capture will find the objective signal generation and rule-based execution aligned with their approach.
Pine Script Developers and Quants: The transparent code structure and emphasis on realistic backtesting provide a valuable framework for further analysis, modification, and integration into broader quantitative models.
Automated Trading Systems: The clear, deterministic entry and exit conditions facilitate integration into automated trading environments.
Implementation and Evaluation
To evaluate the Mutanabby_AI | ATR+ strategy, apply the script to your chosen chart on TradingView. Adjust the input parameters (Key Value, ATR Period, Heikin Ashi Method, Stop Loss Settings) to observe performance across various asset classes and timeframes. Comprehensive backtesting is recommended to assess the strategy's historical performance characteristics, including profitability, drawdown, and risk-adjusted returns.
I'd love to hear your thoughts, feedback, and any optimizations you discover! Drop a comment below, give it a like if you find it useful, and share your results.
Jimb0ws Strategy Trending Info PanelsJimb0ws Strategy — Golden Candles + Bubble Zones
A price-action/EMA strategy built for FX scalping and intraday swings. It colors Golden Candles when strong bodies touch/skim EMA20/50 in trend (“bubble”) and optionally highlights Robin Candles (break of the prior golden body). Signals are throttled per bubble and filtered by multiple higher-timeframe conditions.
How it trades
Trend bubbles: Uses EMA20/50/100/200 alignment on the chart timeframe; also reads 1H & 4H bubbles for context.
Entries: BUY/SELL labels appear only when a golden setup aligns with fractal/structure checks and all active filters pass.
Stops/Targets (strategy mode):
• Longs: SL = EMA100 if EMA200 > EMA100, else SL = EMA200.
• Shorts: SL = EMA100 if EMA200 < EMA100, else SL = EMA200.
• TP = RR × risk (default 2R).
An on-chart SL/TP info label prints the exact prices at each signal.
Risk filter options: disable beyond 1H EMA50, proximity band around 1H EMA50, wick overdrive veto, session filter (toggle on/off), max signals per bubble.
Visuals & tools
Colored EMAs (20/50/100/200), bubble zone background.
4H info panel (state, start time, duration); Prev-Day ATR panel sits above it.
Optional 1H info panel and consolidation warning.
Fractal markers (size selectable).
Alerts
1H bubble state change (Long/Short/Consolidation).
BUY/SELL signals.
Inputs worth checking
Session & timezone, min body size, pip tolerances, proximity/WOD filters, max signals per bubble, RR, SL/TP label offset.
Notes
Best on FX pairs; pip = mintick × 10. Backtest and adjust to your instrument and session. This is not financial advice.
PP_Solstice StrategyThis strategy was developed by Vinay with inputs from Warren, Dodgie and others to replicate TOS AGAIG indicators. It is available for free of use.
EDWARDS 3MIN DOW STRATEGYSqueeze Momentum Strategy with EMA780 Trend Filter, ATR-SL, PT, EMA5 Exit Filter, and 3:57 PM Close
Institution Accumulation/DistributionLeveraging the Williams%R oscillator, the script has been optimized to pick out key turning point in the market specifically at Resistance (Overbought) or Support (Oversold)
The algo has been programmed to print both buy and sell alerts at extremes/when conditions flip eg a long position will be closed simultaneously opening a short position above resistance.
Best used as a scalping tool targeting 30m and below works well with currency pairs
EEI Strategy — Greedy/Guarded v1.2Purpose
Day‑trading strategy (5‑min focus) that hunts “armed” setups (PRE) and confirms them (GO) with greedy-but‑guarded execution. It adapts to symbol type, trend strength, and how long it’s been since the last signal.
Core signals & regime
Trend/Regime: EMA‑200 (intraday bias), VWAP, and a non‑repainting HTF EMA (via request.security(...) ).
Momentum/Structure: Manual Wilder DMI/ADX, micro‑ribbon (EMA 8/21), Bollinger‑Keltner squeeze + “squeeze fire,” BOS (break of swing high/low), pullback to band.
Liquidity/Vol: RVOL vs SMA(volume) + a latch (keeps eligibility a few bars after the first spike).
Volatility: ATR + ATR EMA (expansion).
PRE / GO engine
Score (0–100) aggregates trend, momentum, RVOL, squeeze, OBV slope, ribbon, pullback, BOS, and an Opening‑Range (OR) proximity penalty.
PRE arms when the adjusted score ≥ threshold and basic hygiene passes (ATR%, cooldown, etc.).
GO confirms within a dynamic window (1–3 bars):
Wick‑break mode on hot momentum (trend‑day / high ADX+RVOL): stop orders above/below the PRE high/low with a tick buffer.
Close‑through mode otherwise: close must push through PRE high/low plus ATR buffer.
Chase guard: entry cannot be too far from PRE price (ATR‑based), with a tiny extra allowance when the 8/21 ribbon aligns.
Multiple PREs per squeeze (capped) + per‑entry cooldown.
Adaptive behavior
Presets (Conservative/Balanced/Aggressive/Turbo) shift score/ADX/RVOL/ATR gates, GO window, cooldown, and max chase.
Profiles / Auto by Symbol:
Mega Trend (e.g., AMD/NVDA/TSLA/AAPL): looser chase, ATR stop, chandelier trail.
Mid Guarded (e.g., TTD/COIN/SOFI): swing stop, EMA trail, moderate gates.
Small Safe (e.g., BTAI/BBAI class): tighter gates, more guardrails.
BBAI micro‑override: easier arming (lower score/ADX/RVOL), multi‑PRE=3, swing stop + EMA trail, lighter OR penalty.
Trend‑day detector: if ADX hot + RVOL strong + ATR expanding + distance from day‑open large → GO window = 1 and wick‑break mode.
Mid‑day relaxers: mild score bonus between 10:30–14:30 to keep signals flowing in quieter tape.
Auto‑Relaxer (no‑signal fallback): after N bars without PRE/GO, gradually lowers score/ADX/RVOL/ATR% gates and raises max chase so the engine doesn’t stall on sleepy symbols.
Auto‑Session fallback: if RTH session isn’t detected (some tickers/premarket), it falls back to daily boundaries so Opening Range and day‑open logic still work.
Risk & exits
Initial stop per side chosen by ATR, Swing, or OR (computed every bar; no conditional calls).
Scaled targets: TP1/TP2 (R‑based) + runner with optional Chandelier or EMA trailing.
BE logic: optional move to breakeven after TP1; trailing can start after TP1 if configured.
Opening Range (OR)
Computes day open, OR high/low over configurable minutes; applies a penalty when entries are too close to OR boundary (lighter for small caps/BBAI). Protects against boundary whips.
Alerts & visuals
Alertconditions: PRE Long/Short Armed, GO Long/Short + explicit alert() calls for once‑per‑bar automation.
Plots: EMA‑200, HTF EMA, BB/KC bands, OR lines, squeeze shading, and PRE markers.
Why it’s robust
Non‑repainting HTF technique, all series precomputed every bar, no function calls hidden in conditionals that could break history dependence, and consistent state handling (var + sentinels).
Tuning cheat‑sheet (fast wins)
More trades: lower scoreBase, adxHot, or rvolMinBase a notch; reduce cooldownBase; increase maxPREperSqueeze.
Fewer whips: increase closeBufferATR, wickBufferTicks, or atrMinPct; reduce maxChaseATRBase.
Trend capture: use trailType="Chandelier", smaller trailLen, slightly larger trailMult; set preset="Aggressive".
Choppy names: prefer stopMode="Swing", enable EMA trail, keep OR penalty on.
EDWARDS SQUEEZE 3MINUTE DOWSqueeze Momentum Strategy with EMA780 Trend Filter, ATR-SL, PT, EMA5 Exit Filter, and 3:57 PM Close
Heiken Ashi + Ichimoku Baseline ScalperHi
This a trend identification strategy. You can hold your trade as long as the signals are in your favor.
Hammer & Shooting Star — StrategyHammer & Shooting Star Strategy for Intraday Trading
This strategy identifies two candlestick patterns commonly used in technical analysis:
Hammer Candles (a bullish reversal signal):
A hammer candle has a small body at the top with a long lower wick. The strategy goes long on the next bar open when a hammer is detected, with a stop loss at the low of the hammer bar and a target at the high.
Shooting Star Candles (a bearish reversal signal):
A shooting star candle has a small body at the bottom with a long upper wick. The strategy goes short on the next bar open when a shooting star is detected, with a stop loss at the high of the shooting star bar and a target at the low.
RSI-Adaptive T3 [ChartPrime] — Strategy (Long Only, 1D)This trade has been successfully converted from an individual setup to a full strategy, and the results are truly outstanding. I’m currently testing this for Tesla options trading on the 1-day chart, and it appears to be working extremely well.
A special thanks to ChartPrime for creating such a beautifully designed indicator — it’s performing impressively in these tests.
If anyone would like to try it out, feel free to download and see the results for yourself. Thank you!
BB & RSI Trailing Stop StrategySimple BB & RSI generated using AI, gets 60% on S&P 500 with the right settings
Gemini Trend Following SystemStrategy Description: The Gemini Trend Following System
Core Philosophy
This is a long-term trend-following system designed for a position trader or a patient swing trader, not a day trader. The fundamental goal is to capture the majority of a stock's major, multi-month or even multi-year uptrend.
The core principle is: "Buy weakness in a confirmed uptrend, and sell only when the uptrend's structure is fundamentally broken."
It operates on the belief that it's more profitable to ride a durable trend than to chase short-term breakouts or worry about daily price fluctuations. It prioritizes staying in a winning trade over frequent trading.
The Three Pillars of the Strategy
The script's logic is built on three distinct pillars, processed in order:
1. The Regime Filter: "Is This Stock in a Healthy Uptrend?"
Before even considering a trade, the script acts as a strict gatekeeper. It will only "watch" a stock if it meets all the criteria of a healthy, long-term uptrend. This is the most important part of the strategy as it filters out weak or speculative stocks.
A stock passes this filter if:
The 50-day Simple Moving Average (SMA) is above the 200-day SMA. This is the classic definition of a "Golden Cross" state, indicating the medium-term trend is stronger than the long-term trend—a hallmark of a bull market for the stock.
The stock's performance over the last year is positive. The Rate of Change (ROC) must be above a minimum threshold (e.g., 15%). This ensures we are only looking at stocks that have already demonstrated significant strength.
The 200-day SMA itself is rising. This is a crucial check to ensure the very foundation of the trend is solid and not flattening out or beginning to decline.
If a stock doesn't meet these conditions, the script ignores it completely.
2. The Entry Trigger: "When to Buy the Dip"
Once a stock is confirmed to be in a healthy uptrend, the script does not buy immediately. Instead, it patiently waits for a point of lower risk and higher potential reward—a pullback.
The entry trigger is a specific, two-step sequence:
The stock price first dips and closes below its 50-day SMA. This signifies a period of temporary weakness or profit-taking.
The price then recovers and closes back above the 50-day SMA within a short period (10 bars).
This sequence is a powerful signal. It suggests that institutional buyers view the 50-day SMA as a key support level and have stepped in to defend it, overpowering the sellers. The entry occurs at this point of confirmed support, marking the likely resumption of the uptrend. On the chart, this event is highlighted with a teal background.
3. The Exit Strategy: "When is the Trend Over?"
The exit logic is designed to keep you in the trade as long as possible and only sell when the trend's character has fundamentally changed. It uses a dual-exit system:
Primary Exit (Trend Failure): The main reason to sell is a "Death Cross"—when the 50-day SMA crosses below the 200-day SMA. This is a robust, albeit lagging, signal that the long-term uptrend is over and a bearish market structure is taking hold. This exit condition is designed to ignore normal market corrections and only trigger when the underlying trend has truly broken. On the chart, this is highlighted with a maroon background.
Safety-Net Exit (Catastrophic Stop-Loss): To protect against a sudden market crash or a company-specific disaster, a "safety-net" stop-loss is placed at the time of entry. This stop is set far below the entry price, typically underneath the 200-day SMA. It is a "just-in-case" measure that should only be triggered in a severe and rapid decline, protecting your capital from an unexpected black swan event.
Who is This Strategy For?
Position Traders: Investors who are comfortable holding a stock for many months to over a year.
Patient Swing Traders: Traders who want to capture large price swings over weeks and months, not days.
Investors using a Rules-Based Approach: Anyone looking to apply a disciplined, non-emotional system to their long-term portfolio.
Ideal Market Conditions
This strategy excels in markets with clear, durable trends. It performs best on strong, leading stocks during a sustained bull market. It will underperform significantly or generate losses in choppy, sideways, or range-bound markets, where the moving averages will frequently cross back and forth, leading to "whipsaw" trades.
VWAP-RSI Scalper FINAL v1Description
This script implements a robust, battle-tested intraday scalping strategy designed for prop firm challenges, funded trader programs, and serious futures scalpers.
It combines VWAP, RSI, EMA trend, and ATR-based risk management to capture high-probability mean reversion and momentum moves during the most liquid hours of the trading day.
Core Logic
RSI (Relative Strength Index):
Trades are triggered when the RSI is either oversold or overbought using a short lookback (default: 3). This ensures only the strongest intraday reversals or exhaustion moves are considered.
VWAP Filter:
Longs are only taken above VWAP, shorts only below VWAP, aligning trades with the session’s dominant bias.
EMA Filter:
Additional trend quality filter—longs require price above EMA, shorts below EMA.
Session Control:
Only trades between user-defined session hours (default: US cash session), eliminating overnight/illiquid action.
ATR-based Dynamic Stops & Targets:
Every trade uses a stop loss at 1x ATR and a take profit at 2x ATR for a positive risk/reward ratio.
Max Trades Per Day:
Prevents overtrading and controls risk exposure (default: 3).
Performance (Sample Backtest)
Profit Factor: 1.37+ (prop-firm quality)
Drawdown: <1% (very conservative risk)
Win Rate: 37–48% (RR > 1, so high edge)
Consistency: Smooth, steady equity curve over hundreds of trades.
Best For:
ES/NQ/CL/GC intraday traders
Prop firm evaluation challenges (Tradeify, Topstep, Apex, etc.)
Anyone needing robust, no-nonsense systematic edge for futures or indices.
How to Use & Tune
Apply to 3min, 5min, or 15min charts of liquid futures or indices.
Change parameters in the settings panel to suit your asset, volatility, or session hours.
Use “Strategy Tester” to validate P&L, win rate, and drawdown.
How to Optimize
Raise/lower RSI length or bands to make signals more/less frequent.
Adjust stop/target multiples for your preferred risk/reward profile.
Change session hours to match your broker or market.
Disclaimer
This is not financial advice. Use on a demo or sim account first. Results will vary by market, slippage, and execution speed. Past performance does not guarantee future results.
If you find this useful, please give it a like, follow for more strategies, and comment your results or questions!
Good luck and safe trading!