Scalping RSI 1 Min con TP/SL y Salidasescalping con temporalidad de 1 minuto creada por Mr everything
Indicators and strategies
ZONE FLOWZONE FLOW STRATEGY (Pro Version) is a premium trading strategy designed for precision trend-following and reversal setups using higher-timeframe (HTF) dynamic support/resistance levels.
IF ANY ONE INTRESTED IN MODIFING TO GET RSULT MORE THEN 70% ARE WELCOME JUST DM FOR THE SCRIPT
FOR BEST RESULT USE HEIKEN ASHI CANDLES ON 4 HOUR TIME FRAME CHART OR DAILY TIME FRAME IS THE BEST
🔹 Key Features:
HTF midpoint, R1, and S1 levels based on smoothed OHLC data
Visual zone plotting for real-time support/resistance recognition
Built-in trend filtering to align entries with market bias
Automated take-profit and stop-loss logic based on dynamic 2-bar risk analysis
ATR-enhanced and swing-based TP calculations for flexibility in various market conditions
🧠 Smart Logic:
Entries are taken only when price confirms direction within key HTF zones. Risk is calculated dynamically using the last two candles before the entry, and TP is set at a 2:1 reward ratio relative to that risk.
📈 Who Is It For?
Ideal for traders looking to combine precision structure analysis with automated position management for consistent and risk-defined trading.
🔒 This script is closed-source (protected). You can use it but not view or copy the source code.
Optimized Range Filter StrategyOptimized Range Filter Strategy Analysis
This is a Pine Script strategy that implements a range filter trading system with several optimization features. Here's a breakdown of its components:
Key Features
Range Filter Calculation:
Uses SMA and standard deviation to create upper/lower bands
Configurable length (14 by default) and multiplier (2.0 by default)
Trend Detection:
Identifies uptrend when price crosses above upper band
Identifies downtrend when price crosses below lower band
Position Management:
Offers both fixed take profit/stop loss and trailing stop options
Uses ATR (Average True Range) for dynamic position sizing
Configurable TP/SL multipliers (1.5/1.0 by default)
Visualization:
Plots the range filter bands (upper/lower/smooth line)
Shows TP/SL levels when in position (for fixed exits)
Optimization Parameters
The strategy provides several inputs for optimization:
Range filter length (5-50)
Range filter multiplier (0.5-3)
ATR length (5-20)
TP/SL multipliers (0.5-3)
Trailing stop options (on/off with configurable offset)
Auto Trend Bot with AlertsBest Entry Identification (automated)
Target Setting (predefined, automated)
Stop Loss Placement (automated, predefined)
Fake Signal Detection
Trap Zone Identification
Sideways Zone Detection
LANZ Strategy 3.0 [Backtest]🔷 LANZ Strategy 3.0 — Asian Range Fibonacci Scalping Strategy
LANZ Strategy 3.0 is a precision-engineered backtesting tool tailored for intraday traders who rely on the Asian session range to determine directional bias. This strategy implements dynamic Fibonacci projections and strict time-window validation to simulate a clean and disciplined trading environment.
🧠 Core Components:
Asian Range Bias Definition: Direction is established between 01:15–02:15 a.m. NY time based on the candle’s close in relation to the midpoint of the Asian session range (18:00–01:15 NY).
Limit Order Execution: Only one trade is placed daily, using a limit order at the Asian range high (for sells) or low (for buys), between 01:15–08:00 a.m. NY.
Fibonacci-Based TP/SL:
Original Mode: TP = 2.25x range, SL = 0.75x range.
Optimized Mode: TP = 1.95x range, SL = 0.65x range.
No Trade After 08:00 NY: If the limit order is not executed before 08:00 a.m. NY, it is canceled.
Fallback Logic at 02:15 NY: If the market direction misaligns with the setup at 02:15 a.m., the system re-evaluates and can re-issue the order.
End-of-Day Closure: All positions are closed at 15:45 NY if still open.
📊 Backtest-Ready Design:
Entries and exits are executed using strategy.entry() and strategy.exit() functions.
Position size is fixed via capital risk allocation ($100 per trade by default).
Only one position can be active at a time, ensuring controlled risk.
📝 Notes:
This strategy is ideal for assets sensitive to the Asian/London session overlap, such as Forex pairs and indices.
Easily switch between Fibonacci versions using a single dropdown input.
Fully deterministic: all entries are based on pre-defined conditions and time constraints.
👤 Credits:
Strategy developed by rau_u_lanz using Pine Script v6. Built for traders who favor clean sessions, directional clarity, and consistent execution using time-based logic and Fibonacci projections.
XAUUSD Ultra# XAUUSD High-Profit MTF VWAP Breakout + EMAs + Clean TP/SL
## Overview
This is a high-probability, high-reward breakout strategy designed for XAUUSD (Gold/USD) on the M5 chart.
It employs multi-timeframe trend confirmation using the H1 and H4 timeframes, only entering trades in the direction of both higher timeframe trends.
Entries are triggered on strong breakouts relative to the VWAP, and take-profits are set aggressively for maximum reward.
**Features:**
- **Multi-Timeframe Trend Filter:** Only trades when both H1 and H4 trends align (using EMA 20, 34, 100 on each).
- **Entry:** On the M5 chart, a trade is entered when price breaks out above (or below) VWAP and higher timeframe trends agree.
- **Take Profit:** Two aggressive targets, TP1 and TP2, based on multiples of the M5 ATR (default: 1.5x and 3x).
- **Stop Loss:** Set using ATR for volatility-adaptive risk.
- **Visuals:** All major EMAs and VWAP plotted; round number levels for psychological support/resistance.
- **No session filters:** Trades during all sessions, focusing purely on price action and trend.
- **Labels/Lines:** Entry, TP, SL, and profit lines clearly marked on chart.
---
## How It Works
### 1. **Multi-Timeframe Trend Filter**
- On every M5 bar, the indicator checks the trend on both H1 and H4 timeframes.
- **Uptrend:** EMA20 > EMA34 > EMA100 on both H1 and H4.
- **Downtrend:** EMA20 < EMA34 < EMA100 on both H1 and H4.
- **No Trade:** If trends do not align, no trade is taken.
### 2. **Breakout Entry**
- **Long Entry:** Occurs when the M5 close crosses above VWAP, and both H1 and H4 are in uptrend.
- **Short Entry:** Occurs when the M5 close crosses below VWAP, and both H1 and H4 are in downtrend.
### 3. **Stop Loss and Take Profit**
- **Stop Loss:** Set at entry price minus (for long) or plus (for short) ATR × multiplier.
- **TP1:** Entry ± ATR × 1.5 (default).
- **TP2:** Entry ± ATR × 3.0 (default).
- *All levels can be adjusted in the input panel.*
### 4. **Visuals**
- EMAs and VWAP are plotted for clarity.
- Entry, TP, and SL labels and lines are shown on each breakout signal bar.
- Round-number levels plotted for context.
---
## How To Use
1. **Add the Script to Your TradingView Chart**
- Copy and paste the script into a new TradingView Pine Script strategy.
- Add to your XAUUSD chart and select the M5 timeframe.
2. **Configure Settings (Optional)**
- Adjust ATR period, multipliers, and which EMAs/VWAP to display as desired.
- Set your own round number step for psychological levels.
3. **Trade Execution**
- The strategy will automatically identify and mark valid long/short breakouts.
- Entry, stop, and take profits are managed by the strategy logic.
- Use the strategy tester to optimize parameters and review historical performance.
4. **Best Practice**
- Use as a signal generation tool; always confirm with your own risk management.
- Works best when used alongside higher timeframe analysis and during periods of strong trend.
---
## Example Settings
- **Timeframe:** M5 for entries.
- **HTF Trend 1:** H1 (60 minutes).
- **HTF Trend 2:** H4 (240 minutes).
- **ATR Length:** 14 (default).
- **ATR Multiplier (SL):** 1.2.
- **TP1 Multiplier:** 1.5.
- **TP2 Multiplier:** 3.0.
---
## Publishing and Attribution
- You may publish and share this script with the above explanation.
- Please credit the original author and do not remove this README if published.
---
## Disclaimer
This strategy is provided for educational purposes only.
Past performance is not indicative of future results.
Always test any trading system in a demo environment before risking real capital.
Scalping RSI Mejorado (1m y 5m con ATR y EMA)Actualizacion de Indicador de compra y Venta Con temporalidad De 1min & 5Min
-Julio- Mr Everything
SpeedBullish Strategy Confirm V6.2SpeedBullish Strategy Confirm V6.2
SpeedBullish V6.2 is an advanced price-action + indicator-based strategy designed to confirm trend strength and signal entries with high precision. This version builds on the W/M pattern structure and adds dynamic filtering with EMA, MACD Histogram, RSI, ATR, and Volume.
✅ Signal Conditions
🔹 Buy Signal:
Price above EMA10 or EMA15
MACD Histogram crosses above 0
RSI > 50
(Optional) Higher low via Pivot Low
(Optional) ATR > ATR SMA * Multiplier
(Optional) Volume > SMA * Multiplier
🔻 Sell Signal:
Price below EMA10 or EMA15
MACD Histogram crosses below 0
RSI < 50
(Optional) Lower high via Pivot High
(Optional) Confirmed high volatility and volume
⚙️ Strategy Features
MACD Histogram for momentum shift detection
RSI filtering for momentum confirmation
EMA10/15 for trend direction
ATR-based volatility filter
Volume confirmation filter
Dynamic TP/SL + Trailing Stop
Webhook Integration for MT5 auto-trade
Visual signal markers + background highlight
🔔 Alerts
Alerts are sent in JSON format via alert() with the current symbol, action (buy/sell), and price. Webhook endpoint and secret key are configurable.
📈 How to Use
Attach the strategy to any symbol and timeframe
Customize filters and confirmations to fit your market conditions
Enable webhook alerts for integration with your MT5 Expert Advisor or trading bot
Backtest and optimize before live deployment
MACD Green column buy Red column sell Histogram StrategyThis strategy builds upon the official built-in MACD indicator logic from TradingView.
Buy Condition:
When the MACD Histogram turns from negative to positive (from red bars to green bars), it triggers strategy.entry('MACD_Buy', strategy.long), executing a buy operation.
Sell Condition:
When the MACD Histogram turns from positive to negative (from green bars to red bars), it triggers strategy.close('MACD_Buy'), executing a sell operation.
Plotting remains unchanged:
Green and red bars are displayed correctly, and both the MACD and signal lines are plotted as usual.
This strategy is not intended for real trading.
It is for educational and demonstration purposes only. It should not be considered financial advice, and I take no responsibility for any trading outcomes resulting from its use.
此策略基于 TradingView 官方内置的 MACD 指标逻辑。
买入条件:
当 MACD 柱状图由负转正(从红柱变为绿柱)时,触发strategy.entry('MACD_Buy',strategy.long) 执行买入操作。
卖出条件:
当 MACD 柱状图由正转负(从绿柱变为红柱)时,触发strategy.close('MACD_Buy') 执行卖出操作。
绘图保持不变:
绿柱和红柱均正确显示,MACD 线和信号线均按常规绘制。
此策略不适用于实盘交易。
仅供教育和演示之用。不应将其视为金融建议,本人对使用此策略导致的任何交易结果概不负责。
简单斐波那契回撤策略仅适用于 ETH 和 BTC
Only available for ETH and BTC
这个“简单斐波那契回撤策略”是一种基于斐波那契回撤水平的技术分析交易策略,主要用于识别趋势市场中的潜在买入和卖出点。以下是其核心要点:
斐波那契回撤水平:策略通过识别价格图表上的高点和低点,绘制斐波那契回撤水平(23.6%、38.2%、50%、61.8%),这些水平被视为潜在的支撑和阻力区域。
趋势方向:用户可选择市场趋势方向(“从上到下”或“从下到上”),策略根据趋势方向计算回撤水平。
入场信号:
买入信号:在价格上穿用户选择的斐波那契水平(如61.8%)时触发。
卖出信号:在价格下穿用户选择的斐波那契水平(如38.2%)时触发。
止盈和止损:通过用户定义的点数(默认止盈50点,止损20点)设置止盈和止损,以管理风险。
可视化:策略在图表上绘制斐波那契水平、最高/最低点及买卖信号,方便交易者直观分析。
适用场景:该策略适合趋势市场,结合其他技术指标(如移动平均线或RSI)可提高信号准确性。交易者需注意风险管理,避免仅依赖斐波那契水平进行交易。
This "Simple Fibonacci Retracement Strategy" is a technical analysis trading strategy based on Fibonacci retracement levels, which is mainly used to identify potential buy and sell points in trending markets. Here are its key points:
Fibonacci Retracement Levels: The strategy draws Fibonacci retracement levels (23.6%, 38.2%, 50%, 61.8%) by identifying highs and lows on the price chart, which are considered potential support and resistance areas.
Trend Direction: The user can select the market trend direction ("From Top to Bottom" or "From Bottom to Top"), and the strategy calculates retracement levels based on the trend direction.
Entry Signals:
Buy Signal: Triggered when the price crosses above the user-selected Fibonacci level (such as 61.8%).
Sell Signal: Triggered when the price crosses below the user-selected Fibonacci level (such as 38.2%).
Take Profit and Stop Loss: Set Take Profit and Stop Loss by user-defined pips (default Take Profit 50 pips, Stop Loss 20 pips) to manage risk.
Visualization: The strategy plots Fibonacci levels, highs/lows, and buy/sell signals on the chart, making it easier for traders to analyze intuitively.
Applicable scenarios: This strategy is suitable for trending markets, and combining it with other technical indicators (such as moving averages or RSI) can improve signal accuracy. Traders need to pay attention to risk management and avoid relying solely on Fibonacci levels for trading.
Fibonacci Trend v6.1 - Bounce Giriş RenkliYeni versiyon yayinlanmis haliyle deneme sürümü olarak düsünebiliriz
Bias Ratio-ETH-3H @CTTC5108Most of the code of this strategy should be my own original.
This Ethereum 3-hour time cycle strategy can be traced back to February 24, 2023. Although the profit and winning rate are not high, it is still relatively stable.
This strategy uses the deviation rate to enter the market. Invest 10% of the principal each time.
The limit start time adopts a rolling design (should be original).
Real-time retracement and maximum retracement are accurately calculated (should be original).
Adopt segmented stop profit (optional) design.
Open source for learning and other use.
ORB 5M + VWAP + Braid Filter + TP 2R o Niveles PreviosORB 5-Minute Breakout Strategy Summary
Strategy Name:
ORB 5M + VWAP + Braid Filter + TP 2R or Previous Levels
Timeframe:
5-minute chart
Trading Window:
9:35 AM to 11:00 AM (New York time)
✅ Entry Conditions:
Opening Range: Defined from 9:30 to 9:35 AM (first 5-minute candle).
Breakout Entry:
Long trade: Price breaks above the opening range high.
Short trade: Price breaks below the opening range low.
Confirmation Filters (All must be met):
Strong candle (green for long, red for short).
VWAP in the direction of the trade.
Braid Filter by Mango2Juice supports the breakout direction (green for long, red for short).
📉 Stop Loss:
Placed at the opposite side of the opening range.
🎯 Take Profit (TP):
+2R (Risk-to-Reward Ratio of 2:1),
or
Closest of the following: previous day’s high/low or premarket levels.
⚙️ Additional Rules:
Only valid signals between 9:35 and 11:00 AM.
Only one trade per breakout direction per day.
Filter out "trap candles" (very small or indecisive candles).
Avoid trading after 11:00 AM.
📊 Performance Goals:
Maintain a high Profit Factor (above 3 ideally).
Focus on tickers with good historical performance under this strategy (e.g., AMZN, PLTR, CVNA).
Composite Trend Signal v4 (Corrected)composite trend signal, combines multiple indicators for aggregate signal. Trend following
Liquidity + CHoCH Strategy - 1:3 RRR//@version=5
strategy("Liquidity + CHoCH Strategy - 1:3 RRR", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
// ==== PARAMETERS ====
rrr = 3.0 // Risk-to-Reward Ratio
engulfing_size = input.float(0.1, "Min Body Size %", minval=0.01)
// ==== ENGULFING CANDLE DETECTION ====
isBullishEngulfing = close < open and close > open and close > open and open <= close
isBearishEngulfing = close > open and close < open and close < open and open >= close
// ==== CHoCH LOGIC (Simple BOS flip) ====
hh = ta.highest(high, 5)
ll = ta.lowest(low, 5)
chochUp = close > hh
chochDown = close < ll
// ==== ENTRY LOGIC ====
longCondition = chochUp and isBullishEngulfing
shortCondition = chochDown and isBearishEngulfing
// ==== ENTRY EXECUTION ====
if (longCondition)
sl = low - syminfo.mintick * 10
tp = close + (close - sl) * rrr
strategy.entry("Long", strategy.long)
strategy.exit("TP/SL Long", "Long", stop=sl, limit=tp)
if (shortCondition)
sl = high + syminfo.mintick * 10
tp = close - (sl - close) * rrr
strategy.entry("Short", strategy.short)
strategy.exit("TP/SL Short", "Short", stop=sl, limit=tp)
Range Filter Strategy with ATR TP/SLHow This Strategy Works:
Range Filter:
Calculates a smoothed average (SMA) of price
Creates upper and lower bands based on standard deviation
When price crosses above upper band, it signals a potential uptrend
When price crosses below lower band, it signals a potential downtrend
ATR-Based Risk Management:
Uses Average True Range (ATR) to set dynamic take profit and stop loss levels
Take profit is set at entry price + (ATR × multiplier) for long positions
Stop loss is set at entry price - (ATR × multiplier) for long positions
The opposite applies for short positions
Input Parameters:
Adjustable range filter length and multiplier
Customizable ATR length and TP/SL multipliers
All parameters can be optimized in TradingView's strategy tester
You can adjust the input parameters to fit your trading style and the specific market you're trading. The ATR-based exits help adapt to current market volatility.
Breakout Strategy Pro [Dubic] - Long OnlyConvert this to a scalping version for 5-minute charts?
Build a dashboard table or draw entry/exit levels on chart?
Let me know what you'd like next!
SMA_Max Strategy//@version=6
strategy('SMA_Max Strategy', overlay = true)
// === INPUTS ===
useTrendFilter = input.bool(true, title = 'Use Trend Filter (SMA 200)')
useVolumeFilter = input.bool(false, title = 'Use Volume Filter (volume > SMA of volume)')
// === MOVING AVERAGES ===
shortSMA = ta.sma(close, 20)
longSMA = ta.sma(close, 50)
trendSMA = ta.sma(close, 200)
// === VOLUME FILTER ===
volumeSMA = ta.sma(volume, 20)
volumeFilter = volume > volumeSMA
// === TREND CONDITIONS ===
trendUp = close > trendSMA
trendDown = close < trendSMA
allowBuy = (not useTrendFilter or trendUp) and (not useVolumeFilter or volumeFilter)
allowSell = (not useTrendFilter or trendDown) and (not useVolumeFilter or volumeFilter)
// === CROSS DETECTION (SMA20/SMA50) ===
crossAbove = ta.crossover(shortSMA, longSMA)
crossBelow = ta.crossunder(shortSMA, longSMA)
smaMid = (shortSMA + longSMA) / 2
// === CANDLE CONFIRM FOR SMA20/SMA50 ===
buyConfirm = shortSMA > longSMA and close > smaMid and allowBuy
sellConfirm = shortSMA < longSMA and close < smaMid and allowSell
buySignal = crossAbove and buyConfirm
sellSignal = crossBelow and sellConfirm
// === SMA20/SMA200 CONFIRMATION ===
crossAbove200 = ta.crossover(shortSMA, trendSMA)
crossBelow200 = ta.crossunder(shortSMA, trendSMA)
buyConfirm200 = crossAbove200 and close > trendSMA
sellConfirm200 = crossBelow200 and close < trendSMA
// === EXIT CONDITIONS ===
closeBuyCondition = shortSMA < longSMA or useTrendFilter and not trendUp
closeSellCondition = shortSMA > longSMA or useTrendFilter and not trendDown
// === STRATEGY ENTRIES ===
if buySignal
strategy.entry('Buy', strategy.long)
if closeBuyCondition
strategy.close('Buy')
if sellSignal
strategy.entry('Sell', strategy.short)
if closeSellCondition
strategy.close('Sell')
// === PLOTS ===
plot(shortSMA, color = color.green, title = 'SMA 20')
plot(longSMA, color = color.red, title = 'SMA 50')
plot(trendSMA, color = color.gray, title = 'SMA 200')
// === SIGNAL ARROWS ===
plotshape(buySignal, title = 'Buy Marker', location = location.belowbar, color = color.green, style = shape.labelup, text = 'Buy', size = size.small)
plotshape(sellSignal, title = 'Sell Marker', location = location.abovebar, color = color.red, style = shape.labeldown, text = 'Sell', size = size.small)
plotshape(buyConfirm200, title = 'Buy SMA200', location = location.belowbar, color = color.lime, style = shape.triangleup, text = 'Buy200', size = size.small)
plotshape(sellConfirm200, title = 'Sell SMA200', location = location.abovebar, color = color.orange, style = shape.triangledown, text = 'Sell200', size = size.small)
// === ALERTS ===
alertcondition(buySignal, title = 'Buy Alert', message = 'Buy Confirmed: Price broke above SMA crossover zone')
alertcondition(sellSignal, title = 'Sell Alert', message = 'Sell Confirmed: Price broke below SMA crossover zone')
alertcondition(buyConfirm200, title = 'Buy SMA200 Alert', message = 'SMA20 crossed above SMA200 and candle closed above')
alertcondition(sellConfirm200, title = 'Sell SMA200 Alert', message = 'SMA20 crossed below SMA200 and candle closed below')
Fibonacci Trend v6.4 - TP/SL EtiketliEn güncel haliyle yeni eklemeler ve hedge modunu aktiflestirdim
WaveTrend EMA System with 3% RiskRecommended Settings for EUR/USD:
Timeframe: 4H or Daily
Risk: 1-3% per trade
WT Levels:
Primary: ±47
Secondary: +53/-63
Volume Filter: 1.2x 20-period average
ETH/USDT Scalping: BB + VWAP + AO FilterJustin ETH scalping strategy that uses Bolinger bands, Awesome oscilator and some other indicators.
How to Use:
Load this on ETH/USDT, preferably on the 15m chart.
Use the Strategy Tester in TradingView to see results.
Create alerts from the Long Entry Alert and Short Entry Alert.
What’s New
✅ AO Filter ensures trades align with momentum.
✅ Keeps VWAP, BB, and Volume for context and entries.
✅ Retains daily trade limit, alerts, and TP/SL management.
Composite Trend Signal v4 (Corrected)//@version=5
strategy("Composite Trend Signal v4 (Corrected)", overlay=true, calc_on_order_fills=true, calc_on_every_tick=true)
// === Indicator 1: Michael's EMA ===
emaFast = input.source(defval=close, title="Michael's EMA - Fast EMA Source")
emaSlow = input.source(defval=close, title="Michael's EMA - Slow EMA Source")
useEMA = input.bool(true, "Include Michael's EMA")
trend1 = emaFast > emaSlow ? 1 : -1
// === Indicator 2: Trend Magic ===
period = input.int(13, "Trend Magic - CCI period")
coeff = input.float(1.0, "Trend Magic - ATR Multiplier")
AP = input.int(5, "Trend Magic - ATR Period")
srcTM = input.source(close, "Trend Magic - Source")
useTM = input.bool(true, "Include Trend Magic")
ATR = ta.sma(ta.tr, AP)
upT = low - ATR * coeff
downT = high + ATR * coeff
var float MagicTrend = na
MagicTrend := ta.cci(srcTM, period) >= 0 ? (upT < nz(MagicTrend ) ? nz(MagicTrend ) : upT) : (downT > nz(MagicTrend ) ? nz(MagicTrend ) : downT)
trend2 = ta.cci(srcTM, period) >= 0 ? 1 : -1
plot(useTM ? MagicTrend : na, color=ta.cci(srcTM, period) >= 0 ? color.blue : color.red, linewidth=3, title="Trend Magic")
// === Indicator 3: Adaptive GMA ===
length = input.int(14, title="GMA Length")
adaptive = input.bool(true, title="Adaptive Parameters")
volatilityPeriod = input.int(20, title="Volatility Period")
stddevInput = input.float(1.0, title="Standard Deviation (non-adaptive)")
useGMA = input.bool(true, "Include Adaptive GMA")
sigma = adaptive ? ta.stdev(close, volatilityPeriod) : stddevInput
gma_calc = 0.0
sum_weights = 0.0
for i = 0 to length - 1
weight = math.exp(-math.pow(((i - (length - 1)) / (2 * sigma)), 2) / 2)
value = ta.highest(close, i + 1) + ta.lowest(close, i + 1)
gma_calc += value * weight
sum_weights += weight
gma = (gma_calc / sum_weights) / 2
trend3 = close >= gma ? 1 : -1
plot(useGMA ? gma : na, title="Adaptive GMA", color=close >= gma ? color.lime : color.fuchsia, linewidth=2)
// === Indicator 4: STC (ROC proxy) ===
useSTC = input.bool(true, "Include STC (via ROC)")
stcSource = input.source(close, "STC Plot Source")
rocSTC = ta.roc(stcSource, 1)
trend4 = rocSTC >= 0 ? 1 : -1
// === Indicator 5: WaveTrend ===
useWT = input.bool(true, "Include WaveTrend")
wtSource = input.source(defval=close, title="WaveTrend Source")
trend5 = wtSource >= 0 ? 1 : -1
// === Indicator 6: ROC ===
lengthROC = input.int(9, "ROC Length")
rocSource = input.source(close, "ROC Source")
useROC = input.bool(true, "Include ROC")
rocGeneral = rocSource - rocSource
trend6 = rocGeneral >= 0 ? 1 : -1
// === Indicator 7: Awesome Oscillator ===
useAO = input.bool(true, "Include Awesome Oscillator")
aoFastPeriod = input.int(5, "AO Fast Period")
aoSlowPeriod = input.int(34, "AO Slow Period")
aoSignalPeriod = input.int(7, "AO Signal Period")
hl2_ao = (high + low) / 2
fastMA = ta.sma(hl2_ao, aoFastPeriod)
slowMA = ta.sma(hl2_ao, aoSlowPeriod)
AO = fastMA - slowMA
signalAO = ta.sma(AO, aoSignalPeriod)
trend7 = AO > signalAO ? 1 : -1
plot(useAO ? AO : na, color=color.red, title="AO")
plot(useAO ? signalAO : na, color=color.blue, title="AO Signal")
// === Composite Trend Calculation ===
compositeTrend = 0
compositeTrend += useEMA ? trend1 : 0
compositeTrend += useTM ? trend2 : 0
compositeTrend += useGMA ? trend3 : 0
compositeTrend += useSTC ? trend4 : 0
compositeTrend += useWT ? trend5 : 0
compositeTrend += useROC ? trend6 : 0
compositeTrend += useAO ? trend7 : 0
// === Detect Crosses for Entry ===
prevTrend = nz(compositeTrend )
bullishCross = compositeTrend > 0 and prevTrend <= 0
bearishCross = compositeTrend < 0 and prevTrend >= 0
plotshape(bullishCross, title="Composite Bullish", location=location.abovebar, color=color.green, style=shape.triangleup, size=size.tiny)
plotshape(bearishCross, title="Composite Bearish", location=location.belowbar, color=color.red, style=shape.triangledown, size=size.tiny)
// === Persistent Trend State Line ===
var int compositeSignal = 0
if bullishCross
compositeSignal := 1
else if bearishCross
compositeSignal := -1
plotColor = compositeSignal == 1 ? color.green : color.red
plot(compositeTrend, title="Composite Signal", color=plotColor, linewidth=3)
// === Strategy Logic ===
tradeStart = input.time(timestamp("2023-01-01 00:00"), title="Start Date")
tradeEnd = input.time(timestamp("2024-01-01 00:00"), title="End Date")
inWindow = (time >= tradeStart and time <= tradeEnd)
if inWindow and bullishCross
strategy.entry("Long", strategy.long)
strategy.close("Short")
if inWindow and bearishCross
strategy.entry("Short", strategy.short)
strategy.close("Long")
AI-Driven Multi-Factor StrategyYour **AI-Driven Multi-Factor Trading Strategy** is designed to **identify high-probability trades** using a combination of **momentum, trend strength, and volatility analysis**. It incorporates several **key indicators** to provide accurate buy and sell signals.
### **Key Features of This Strategy**
#### **1. Trend Identification**
✔ Uses **Exponential Moving Averages (EMA 10 & EMA 50)** to determine market direction.
✔ A **bullish crossover** (EMA 10 above EMA 50) signals a buy opportunity.
✔ A **bearish crossunder** (EMA 10 below EMA 50) suggests a sell signal.
#### **2. Momentum Confirmation**
✔ **Relative Strength Index (RSI)** ensures trades align with momentum.
✔ Buy signals occur when **RSI is above 50**, indicating strength.
✔ Sell signals trigger when **RSI drops below 50**, confirming weakness.
#### **3. MACD for Trend Strength**
✔ **MACD Line vs. Signal Line** crossover ensures momentum confirmation.
✔ **Positive MACD** signals bullish strength, while **negative MACD** confirms bearish trend.
#### **4. Volatility Analysis with Bollinger Bands**
✔ **Price near Bollinger Lower Band** suggests a potential buy.
✔ **Price near Bollinger Upper Band** warns of possible reversals.
✔ Bollinger Bands help identify breakout zones.
#### **5. Institutional Activity via VWAP**
✔ **VWAP (Volume Weighted Average Price)** ensures price action aligns with institutional buying/selling patterns.
✔ **Buy above VWAP** indicates strong demand.
✔ **Sell below VWAP** signals market weakness.
#### **6. AI-Driven Signal Scoring**
✔ The script calculates an **AI Score** using weighted factors:
- **30% RSI impact** (momentum strength)
- **40% MACD impact** (trend confirmation)
- **30% VWAP impact** (institutional activity)
✔ **AI Score > 0** confirms a buy setup.
✔ **AI Score < 0** signals bearish conditions.
### **Trade Execution Rules**
✔ **Entry Conditions** – Buy when EMA crossover aligns with a strong AI Score.
✔ **Exit Conditions** – Sell when trend strength reverses.
✔ **Stop Loss (0.5%) & Take Profit (1.5%)** – Manages risk efficiently.
### **Benefits of This Strategy**
✅ Uses **multiple confirmation layers** for stronger trade signals.
✅ Combines **trend, momentum, volatility, and institutional activity** for precision.
✅ Works well for **scalping, swing trading, and long-term investments**.
FlowSpike Bollinger-VWAP-Stoch StrategyHere’s a concise description you can use when publishing the “FlowSpike Bollinger-VWAP-Stoch Strategy,” incorporating both how it works and how it performed in your recent backtest:
⸻
Strategy Overview
The FlowSpike Bollinger-VWAP-Stoch Strategy is a 1-minute, intraday futures system designed for the CME E-mini Nasdaq-100 (NQM, June 2025). It combines three core signals:
1. Bollinger Bands (20, 2) – Identifies volatility extremes.
2. Stochastic Slow (14, 3, 3) – Provides momentum confirmation, with oversold (< 45) and overbought (> 55) thresholds, exiting at a mid-line crossover (50).
3. VWAP Filter (optional) – Ensures trades align with the intraday value trend.
A lightweight volume-spike filter (“FlowSpike”) further refines entries, requiring current bar volume to exceed a configurable multiple of its 20-bar average. Trades are only taken when price touches the lower or upper Bollinger band, stochastic and VWAP confirm direction, and a volume spike signals genuine market conviction.
⸻
Execution Rules
• Session: 09:30 – 11:30 Eastern (customizable via input.session).
• Contract Size: 1 contract per signal.
• Risk Management: No pyramiding (single open trade), zero commissions/slippage assumed.
• Exits: RSI reversion or end-of-session flush ensures no overnight exposure.
⸻
Backtest Performance (Apr 14 – May 23, 2025)
• Net Profit: $6,130 (12.26% on $50,000 capital)
• Gross Profit/Loss: $27,750 / $21,620
• Profit Factor: 1.28
• Total Trades: 85 (Win Rate: 68.2%)
• Avg P&L per Trade: $72
• Avg Win/Loss: $478 / $801
• Max Drawdown: $6,165 (12.16%)
• Sharpe & Sortino Ratios: 0.13 / 0.19
Compared to a buy-and-hold return of 78.4% over the same period, this strategy delivers modest—but consistent—intraday gains with controlled risk, making it a good candidate for traders seeking session-only exposure and clear, rule-based entries.