Scalp EMA+RSI+ADX+Vol v7 (универсальная, x25)// @version=6
// Scalp EMA+RSI+ADX+Vol v7 — универсальная версия с ликвидационным стопом (x25)
// Автор: ChatGPT
// === ПАРАМЕТРЫ ===
percent_of_equity = input.float(2.0, "Position size (% of equity)", step=0.1, minval=0.1)
fastLen = input.int(8, "Fast EMA length", minval=1)
slowLen = input.int(21, "Slow EMA length", minval=1)
rsiLen = input.int(7, "RSI length", minval=1)
rsiConfirm= input.int(50, "RSI confirmation level")
adxLen = input.int(10, "ADX length", minval=1)
adxThresh = input.int(15, "ADX threshold (min trend strength)")
volSmaLen = input.int(20, "Volume SMA length", minval=1)
volMult = input.float(0.8, "Min volume multiplier", step=0.1, minval=0.1)
atrLen = input.int(10, "ATR length", minval=1)
atrTP = input.float(1.6, "TP = x * ATR", step=0.1, minval=0.1)
useTrailing = input.bool(false, "Use trailing stop")
trailOffsetMult = input.float(0.8, "Trailing offset = x * ATR", step=0.1, minval=0.1)
maxTradesPerDay = input.int(0, "Max trades per day (0 = unlimited)")
useTimeFilter = input.bool(false, "Enable time filter (exchange time)")
startH = input.int(0, "Start hour (0-23)")
startM = input.int(0, "Start minute (0-59)")
endH = input.int(23, "End hour (0-23)")
endM = input.int(59, "End minute (0-59)")
leverage = input.int(25, "Leverage (для расчета ликвидации)", minval=1) // ← по умолчанию 25
// === STRATEGY DECLARATION ===
strategy("Scalp EMA+RSI+ADX+Vol v7 (универсальная, x25)", overlay=true,
default_qty_type=strategy.percent_of_equity, default_qty_value=2.0,
initial_capital=10000, pyramiding=1)
// === ИНДИКАТОРЫ ===
fastEMA = ta.ema(close, fastLen)
slowEMA = ta.ema(close, slowLen)
rsi = ta.rsi(close, rsiLen)
volSMA = ta.sma(volume, volSmaLen)
atr = ta.atr(atrLen)
plot(fastEMA, title="Fast EMA", linewidth=1, color=color.teal)
plot(slowEMA, title="Slow EMA", linewidth=1, color=color.orange)
// === ADX (ручной расчет) ===
upMove = high - high
downMove = low - low
plusDM = (upMove > downMove and upMove > 0) ? upMove : 0.0
minusDM = (downMove > upMove and downMove > 0) ? downMove : 0.0
tr = math.max(high - low, math.max(math.abs(high - close ), math.abs(low - close )))
atr_adx = ta.rma(tr, adxLen)
smPlus = ta.rma(plusDM, adxLen)
smMinus = ta.rma(minusDM, adxLen)
plusDI = atr_adx == 0 ? 0.0 : 100.0 * smPlus / atr_adx
minusDI = atr_adx == 0 ? 0.0 : 100.0 * smMinus / atr_adx
sumDI = plusDI + minusDI
dx = sumDI == 0 ? 0.0 : 100.0 * math.abs(plusDI - minusDI) / sumDI
adx = ta.rma(dx, adxLen)
// === СИГНАЛЫ ===
crossUp = ta.crossover(fastEMA, slowEMA)
crossDown = ta.crossunder(fastEMA, slowEMA)
volOK = volume > volSMA * volMult
rsiOK_long = rsi > rsiConfirm
rsiOK_short = rsi < rsiConfirm
adxOK = adx >= adxThresh
candleBull= close > open
candleBear= close < open
longSignal = crossUp and rsiOK_long and adxOK and volOK and candleBull
shortSignal = crossDown and rsiOK_short and adxOK and volOK and candleBear
// === TIME FILTER ===
s = useTimeFilter ? timestamp(year(time), month(time), dayofmonth(time), startH, startM) : na
e = useTimeFilter ? timestamp(year(time), month(time), dayofmonth(time), endH, endM) : na
inTradeHours = not useTimeFilter ? true : (e > s ? (time >= s and time <= e) : (time >= s or time <= e))
// === DAILY COUNTER ===
var int tradesToday = 0
var int lastDay = na
if dayofmonth(time) != lastDay
tradesToday := 0
lastDay := dayofmonth(time)
canOpenMore = (maxTradesPerDay == 0) or (tradesToday < maxTradesPerDay)
// === ENTRIES / EXITS ===
if longSignal and inTradeHours and canOpenMore and strategy.position_size == 0
entryPrice = close
liqPrice = entryPrice - entryPrice / leverage // стоп по ликвидации x25
takePrice = entryPrice + atr * atrTP
if useTrailing
strategy.entry("Long", strategy.long)
strategy.exit("Long Exit", from_entry="Long", limit=takePrice, trail_offset=atr * trailOffsetMult)
else
strategy.entry("Long", strategy.long)
strategy.exit("Long Exit", from_entry="Long", stop=liqPrice, limit=takePrice)
tradesToday += 1
if shortSignal and inTradeHours and canOpenMore and strategy.position_size == 0
entryPrice = close
liqPrice = entryPrice + entryPrice / leverage // стоп по ликвидации x25
takePrice = entryPrice - atr * atrTP
if useTrailing
strategy.entry("Short", strategy.short)
strategy.exit("Short Exit", from_entry="Short", limit=takePrice, trail_offset=atr * trailOffsetMult)
else
strategy.entry("Short", strategy.short)
strategy.exit("Short Exit", from_entry="Short", stop=liqPrice, limit=takePrice)
tradesToday += 1
// === ВИЗУАЛИЗАЦИЯ ===
plotshape(longSignal, title="Long Signal", location=location.belowbar, style=shape.triangleup, size=size.small, color=color.green, text="LONG")
plotshape(shortSignal, title="Short Signal", location=location.abovebar, style=shape.triangledown, size=size.small, color=color.red, text="SHORT")
// INFO BOX
var label info = na
if barstate.islast
label.delete(info)
infoText = "EMA: " + str.tostring(fastLen) + "/" + str.tostring(slowLen) +
" | RSI: " + str.tostring(rsiLen) + " (conf=" + str.tostring(rsiConfirm) + ")" +
" | ADX: " + str.tostring(adxLen) + "(thr=" + str.tostring(adxThresh) + ")" +
" | VolMult=" + str.tostring(volMult) +
" | ATR TP=" + str.tostring(atrTP) +
" | Leverage=" + str.tostring(leverage) + "x" +
" | TradesToday=" + str.tostring(tradesToday)
info := label.new(bar_index, high, infoText, xloc=xloc.bar_index, yloc=yloc.abovebar,
style=label.style_label_left, size=size.small, color=color.new(color.blue, 70))
Candlestick analysis
TrendburstHigh quality scalping strategy NQ futures with 1 contract, that will only trade between the 8.30AM to 10 AM ET window for the entries (very selective with a 57% win rate), but will let the runners win. Trades closes flat at 15.50 ET. ****Not suitable for small accounts****, **** Past performances are not indicative of future results****
Ramen & OJ V1Ramen & OJ V1 — Strategy Overview
Ramen & OJ V1 is a mechanical price-action system built around two entry archetypes—Engulfing and Momentum—with trend gates, session controls, risk rails, and optional interval take-profits. It’s designed to behave the same way you’d trade it manually: wait for a qualified impulse, enter with discipline (optionally on a measured retracement), and manage the position with clear, rules-based exits.
Core Idea (What the engine does)
At its heart, the strategy looks for a decisive candle, then trades in alignment with your defined trend gates and flattens when that bias is no longer valid.
Entry Candle Type
Engulfing: The body of the current candle swallows the prior candle’s body (classic momentum shift).
Momentum: A simple directional body (close > open for longs, close < open for shorts).
Body Filter (lookback): Optional guard that requires the current body to be at least as large as the max body from the last N bars. This keeps you from chasing weak signals.
Primary MA (Entry/Exit Role):
Gate (optional): Require price to be above the Primary MA for longs / below for shorts.
Exit (always): Base exit occurs when price closes back across the Primary MA against your position.
Longs: qualifying bullish candle + pass all enabled filters.
Shorts: mirror logic.
Entries (Impulse vs. Pullback)
You choose how aggressive to be:
Market/Bars-Close Entry: Fire on the bar that confirms the signal (respecting filters and sessions).
Retracement Entry (optional): Instead of chasing the close, place a limit around a configurable % of the signal candle’s range (e.g., 50%). This buys the dip/sells the pop with structure, often improving average entry and risk.
Flip logic is handled: when an opposite, fully-qualified signal appears while in a position, the strategy closes first and then opens the new direction per rules.
Exits & Trade Management
Primary Exit: Price closing back across the Primary MA against your position.
Interval Take-Profit (optional):
Pre-Placed (native): Automatically lays out laddered limit targets every X ticks with OCO behavior. Each rung can carry its own stop (per-rung risk). Clean, broker-like behavior in backtests.
Manual (legacy): Closes slices as price steps through the ladder levels intrabar. Useful for platforms/brokers that need incremental closes rather than bracketed OCOs.
Per-Trade Stop: Choose ticks or dollars, and whether the $ stop is per position or per contract. When pre-placed TP is on, each rung uses a coordinated OCO stop; otherwise a single hard stop is attached.
Risk Rails (Session P&L Controls)
Session Soft Lock: When a session profit target or loss limit is hit, the strategy stops taking new trades but does not force-close open positions.
Session Hard Lock: On reaching your session P&L limit, all orders are canceled and the strategy flattens immediately. No new orders until the next session.
These rails help keep good days good and bad days survivable.
Filters & How They Work Together
1) Trend & Bias
Primary MA Gate (optional): Only long above / only short below. This keeps signals aligned with your primary bias.
Primary MA Slope Filter (optional): Require a minimum up/down slope (in degrees over a defined bar span). It’s a simple way to force impulse alignment—green light only when the MA is actually moving up for longs (or down for shorts).
Secondary MA Filter (optional): An additional trend gate (SMA/EMA, often a 200). Price must be on the correct side of this higher-timeframe proxy to trade. Great for avoiding countertrend picks.
How to combine:
Use Secondary MA as the “big picture” bias, Primary MA gate as your local regime check, and Slope to ensure momentum in that regime. That three-layer stack cuts a lot of chop.
2) Volatility/Exhaustion
CCI Dead Zone Filter (optional): Trades only when CCI is inside a specified band (default ±200). This avoids entries when price is extremely stretched; think of it as a no-chase rule.
TTM Squeeze Filter (optional): When enabled, the strategy avoids entries during a squeeze (Bollinger Bands inside Keltner Channels). You’re effectively waiting for the release, not the compression itself. This plays nicely with momentum entries and the slope gate.
How to combine:
If you want only the clean breaks, enable Slope + Squeeze; if you want structure but fewer chases, add CCI Dead Zone. You’ll filter out a lot of low-quality “wiggle” trades.
3) Time & Market Calendar
Sessions: Up to two session windows (America/Chicago by default), with background highlights.
Good-Till-Close (GTC): When ON, trades can close outside the session window; when OFF, all positions are flattened at session end and pending orders canceled.
Market-Day Filters: Skip US listed holidays and known non-full Globex days (e.g., Black Friday, certain eves). Cleaner logs and fewer backtest artifacts.
How to combine:
Run your A-setup window (e.g., cash open hour) with GTC ON if you want exits to obey system rules even after the window, or GTC OFF if you want the book flat at the bell, no exceptions.
Practical Profiles (mix-and-match presets)
Trend Rider: Primary MA gate ON, Slope filter ON, Secondary MA ON, Retracement ON (50%).
Goal: Only take momentum that’s already moving, buy the dip/sell the pop back into trend.
Structure-First Pullback: Primary MA gate ON, Secondary MA ON, CCI Dead Zone ON, Retracement 38–62%.
Goal: Filter extremes, use measured pullbacks for better R:R.
Break-Only Mode: Slope ON + Squeeze filter ON (avoid compression), Body filter ON with short lookback.
Goal: Only catch clean post-compression impulses.
Session Scalper: Tight session window, GTC OFF, Interval TP ON (small slices, short rungs), per-trade tick stop.
Goal: Quick hits in a well-defined window, always flat after.
Automation Notes
The system is built with intrabar awareness (calc_on_every_tick=true) and supports bracket-style behavior via pre-placed interval TP rungs. For webhook automation (e.g., TradersPost), keep chart(s) open and ensure alerts are tied to your order events or signal conditions as implemented in your alert templates. Always validate live routing with a small-size shakedown before scaling.
Tips, Caveats & Good Hygiene
Intrabar vs. Close: Backtests can fill intrabar where your broker might not. The pre-placed mode helps emulate OCO behavior but still depends on feed granularity.
Slippage & Fees: Set realistic slippage/commission in Strategy Properties to avoid fantasy equity curves.
Session Consistency: Use the correct timezone and verify that your broker’s session aligns with your chart session settings.
Don’t Over-stack Filters: More filters ≠ better performance. Start with trend gates, then add one volatility filter if needed.
Disclosure
This script is for educational purposes only and is not financial advice. Markets carry risk; only trade capital you can afford to lose. Test thoroughly on replay and paper before using any automated routing.
TL;DR
Identify a decisive candle → pass trend/vol filters → (optionally) pull back to a measured limit → scale out on pre-planned rungs → exit on Primary MA break or session rule. Clear, mechanical, repeatable.
Enhanced TMA Strategy[BMM]This strategy combines multiple moving averages with pattern recognition and dynamic coloring to identify high-probability trades. It uses 3-line strike patterns, engulfing candles, and RSI-based trend analysis with proper risk management for consistent 75%+ win rates.
Ideal Settings by Timeframe
For clear signals strategy can be used with:
"The Arty" - The Moving Average Official Indicator
or
TMA Legacy - "The Arty"
5-Minute Charts:
MA Lengths: 21, 50, 100, 200
MA Type: EMA
Risk: 1%
Risk:Reward: 2:1
Enable RSI Filter: Yes
Sessions: London + NY only
15-Minute Charts:
MA Lengths: 21, 50, 89, 144
MA Type: SMMA
Risk: 1.5%
Risk:Reward: 2.5:1
Enable RSI Filter: Yes
Sessions: All major sessions
30-Minute Charts:
MA Lengths: 13, 34, 55, 89
MA Type: EMA
Risk: 2%
Risk:Reward: 3:1
Enable RSI Filter: No
Sessions: London + NY only
Key Features to Enable:
Dynamic line coloring
Trend fill
All pattern signals
Session backgrounds
Strategy alerts
Trade only during major session overlaps for best liquidity and volatility.
BSL/SSL Sweep + FVG Strategy Jobin (c) The New York ATM Model is a structured intraday strategy designed to capture algorithmic stop-hunts and reversals during the New York session open. It focuses on liquidity sweeps—either Buy-Side or Sell-Side—followed by a confirmation using Fair Value Gaps (FVGs).
📊 RSI Swing Reversal Strategy with Volume Spike FilterHi , i did test that on Hbar time frame 5min. please let me know if i did miss something .85% win rate. please get back test.
What Will This Strategy Do?
Use RSI cross over/under its MA + Swing High/Low + optional Trend Filter.
Enter long on bullish signals.
Enter short on bearish signals.
Exit on opposite signals or optional take-profit/stop-loss.
CyberTrading - InsideBar Strategy 02This is a strategy tester for entries based on the Inside Bar candlestick pattern.
Special conditions are applied based on ATR.
It is designed for the CyberTrading students of CollegePips.
CyberTrading - InsideBar Strategy 01This is a strategy tester for entries based on the Inside Bar candlestick pattern.
Special conditions are applied based on ATR.
It is designed for the CyberTrading students of CollegePips.
Killzones SMT + IFVG detectorKillzones SMT + IFVG Detector
Summary
This strategy implements a specific intraday workflow inspired by ICT-style concepts.
It combines:
Killzone session levels (recording untouched highs/lows)
SMT divergence between NQ and ES (exclusive sweep logic)
IFVG confirmation (3-bar imbalance + width filter + inversion guard)
and an optional smart exit engine
The components are not simply mashed together: they interact in sequence.
A setup only confirms if all conditions line up (time window → untouched level sweep → divergence → valid IFVG → confirmation candle → risk filter).
Workflow
Killzones & session levels
Tracks highs/lows inside default killzones (19:00–23:00, 01:00–04:00, 08:30–10:00, 11:00–12:00, 12:30–15:00, chart timezone).
Stores untouched levels forward; sweeps trigger candidate signals.
SMT divergence (exclusive sweep)
Bullish SMT : one index sweeps its low while the other remains above its session low.
Bearish SMT : one index sweeps its high while the other remains below its session high.
Detection supports “Sweep (Cross)” or “Exact Tick.”
Session IDs are tracked so once a side has fired, later re-touches can’t re-trigger .
IFVG confirmation
Locks the first valid 3-bar IFVG after SMT.
Confirmation requires a candle close beyond the IFVG boundary in the direction of the close.
IFVGs must meet a minimum width filter (default 1.0 point).
Inversion guard: ignores IFVGs already inverted before SMT.
Optional “re-lock” keeps tracking the latest IFVG until confirmation/expiry.
Smart exit engine
Initial stop from opposite wick (+ buffer).
Fixed TP (default 40 points).
Dynamic stop escalation at progress thresholds (BE → 50% → 80% of target).
Safety gates
Weekend lockout (Fri 16:40 → Sun 18:00).
Same-bar sweep of high & low cancels setups.
Max initial stop filter skips oversized setups.
Optional cooldown bars.
Alerts
SMT Bullish/Bearish : divergence detected this bar.
Confirm Long/Short : IFVG confirmation triggered.
Default Strategy Properties (used in screenshots/backtests)
Initial capital: $25,000
Order size: 1 contract
Commission: $1.25 per contract per side
Slippage: 2 ticks
Backtest window: Jun 16, 2025 – Sep 14, 2025
These settings are intentionally conservative. If you change them, your results will differ.
How to use
Apply on an NQ or ES futures chart (1–5 min).
Choose your killzones and detection mode.
Select confirmation symbol (NQ, ES, or “Sweeper”).
Enable/disable IFVG re-lock.
Review signals and use alerts for automation if desired.
Limitations
Strict filters reduce trade count; extend backtest window for more samples.
Works best on NQ/ES; not validated elsewhere.
Past performance is not indicative of future results.
This is an educational tool ; not financial advice.
Ramen & OJ V1Ramen & OJ V1 — Strategy Overview
Ramen & OJ V1 is a mechanical price-action system built around two entry archetypes—Engulfing and Momentum—with trend gates, session controls, risk rails, and optional interval take-profits. It’s designed to behave the same way you’d trade it manually: wait for a qualified impulse, enter with discipline (optionally on a measured retracement), and manage the position with clear, rules-based exits.
Core Idea (What the engine does)
At its heart, the strategy looks for a decisive candle, then trades in alignment with your defined trend gates and flattens when that bias is no longer valid.
Entry Candle Type
Engulfing: The body of the current candle swallows the prior candle’s body (classic momentum shift).
Momentum: A simple directional body (close > open for longs, close < open for shorts).
Body Filter (lookback): Optional guard that requires the current body to be at least as large as the max body from the last N bars. This keeps you from chasing weak signals.
Primary MA (Entry/Exit Role):
Gate (optional): Require price to be above the Primary MA for longs / below for shorts.
Exit (always): Base exit occurs when price closes back across the Primary MA against your position.
Longs: qualifying bullish candle + pass all enabled filters.
Shorts: mirror logic.
Entries (Impulse vs. Pullback)
You choose how aggressive to be:
Market/Bars-Close Entry: Fire on the bar that confirms the signal (respecting filters and sessions).
Retracement Entry (optional): Instead of chasing the close, place a limit around a configurable % of the signal candle’s range (e.g., 50%). This buys the dip/sells the pop with structure, often improving average entry and risk.
Flip logic is handled: when an opposite, fully-qualified signal appears while in a position, the strategy closes first and then opens the new direction per rules.
Exits & Trade Management
Primary Exit: Price closing back across the Primary MA against your position.
Interval Take-Profit (optional):
Pre-Placed (native): Automatically lays out laddered limit targets every X ticks with OCO behavior. Each rung can carry its own stop (per-rung risk). Clean, broker-like behavior in backtests.
Manual (legacy): Closes slices as price steps through the ladder levels intrabar. Useful for platforms/brokers that need incremental closes rather than bracketed OCOs.
Per-Trade Stop: Choose ticks or dollars, and whether the $ stop is per position or per contract. When pre-placed TP is on, each rung uses a coordinated OCO stop; otherwise a single hard stop is attached.
Risk Rails (Session P&L Controls)
Session Soft Lock: When a session profit target or loss limit is hit, the strategy stops taking new trades but does not force-close open positions.
Session Hard Lock: On reaching your session P&L limit, all orders are canceled and the strategy flattens immediately. No new orders until the next session.
These rails help keep good days good and bad days survivable.
Filters & How They Work Together
1) Trend & Bias
Primary MA Gate (optional): Only long above / only short below. This keeps signals aligned with your primary bias.
Primary MA Slope Filter (optional): Require a minimum up/down slope (in degrees over a defined bar span). It’s a simple way to force impulse alignment—green light only when the MA is actually moving up for longs (or down for shorts).
Secondary MA Filter (optional): An additional trend gate (SMA/EMA, often a 200). Price must be on the correct side of this higher-timeframe proxy to trade. Great for avoiding countertrend picks.
How to combine:
Use Secondary MA as the “big picture” bias, Primary MA gate as your local regime check, and Slope to ensure momentum in that regime. That three-layer stack cuts a lot of chop.
2) Volatility/Exhaustion
CCI Dead Zone Filter (optional): Trades only when CCI is inside a specified band (default ±200). This avoids entries when price is extremely stretched; think of it as a no-chase rule.
TTM Squeeze Filter (optional): When enabled, the strategy avoids entries during a squeeze (Bollinger Bands inside Keltner Channels). You’re effectively waiting for the release, not the compression itself. This plays nicely with momentum entries and the slope gate.
How to combine:
If you want only the clean breaks, enable Slope + Squeeze; if you want structure but fewer chases, add CCI Dead Zone. You’ll filter out a lot of low-quality “wiggle” trades.
3) Time & Market Calendar
Sessions: Up to two session windows (America/Chicago by default), with background highlights.
Good-Till-Close (GTC): When ON, trades can close outside the session window; when OFF, all positions are flattened at session end and pending orders canceled.
Market-Day Filters: Skip US listed holidays and known non-full Globex days (e.g., Black Friday, certain eves). Cleaner logs and fewer backtest artifacts.
How to combine:
Run your A-setup window (e.g., cash open hour) with GTC ON if you want exits to obey system rules even after the window, or GTC OFF if you want the book flat at the bell, no exceptions.
Practical Profiles (mix-and-match presets)
Trend Rider: Primary MA gate ON, Slope filter ON, Secondary MA ON, Retracement ON (50%).
Goal: Only take momentum that’s already moving, buy the dip/sell the pop back into trend.
Structure-First Pullback: Primary MA gate ON, Secondary MA ON, CCI Dead Zone ON, Retracement 38–62%.
Goal: Filter extremes, use measured pullbacks for better R:R.
Break-Only Mode: Slope ON + Squeeze filter ON (avoid compression), Body filter ON with short lookback.
Goal: Only catch clean post-compression impulses.
Session Scalper: Tight session window, GTC OFF, Interval TP ON (small slices, short rungs), per-trade tick stop.
Goal: Quick hits in a well-defined window, always flat after.
Automation Notes
The system is built with intrabar awareness (calc_on_every_tick=true) and supports bracket-style behavior via pre-placed interval TP rungs. For webhook automation (e.g., TradersPost), keep chart(s) open and ensure alerts are tied to your order events or signal conditions as implemented in your alert templates. Always validate live routing with a small-size shakedown before scaling.
Tips, Caveats & Good Hygiene
Intrabar vs. Close: Backtests can fill intrabar where your broker might not. The pre-placed mode helps emulate OCO behavior but still depends on feed granularity.
Slippage & Fees: Set realistic slippage/commission in Strategy Properties to avoid fantasy equity curves.
Session Consistency: Use the correct timezone and verify that your broker’s session aligns with your chart session settings.
Don’t Over-stack Filters: More filters ≠ better performance. Start with trend gates, then add one volatility filter if needed.
Disclosure
This script is for educational purposes only and is not financial advice. Markets carry risk; only trade capital you can afford to lose. Test thoroughly on replay and paper before using any automated routing.
TL;DR
Identify a decisive candle → pass trend/vol filters → (optionally) pull back to a measured limit → scale out on pre-planned rungs → exit on Primary MA break or session rule. Clear, mechanical, repeatable.
Hilly's 0010110 Reversal Scalping Strategy - 5 Min CandlesKey Features and Rationale:
Timeframe: Restricted to 5-minute candles as requested.
Pattern Integration: Includes single (Hammer, Shooting Star, Doji), two (Engulfing, Harami), and three-plus (Morning Star, Evening Star) candlestick patterns, plus reversal patterns based on RSI extremes.
VWAP Cross: Incorporates bullish (price crosses above VWAP) and bearish (price crosses below VWAP) signals, enhanced by trend context.
Volume Analysis: Uses a volume spike threshold to filter noise, with a simple day-start volume comparison for financial environment context.
Financial Environment: Approximates the day's sentiment using early-hour volume compared to current volume, adjusted by trend.
Aggregation: Scores each condition (e.g., 1 for basic patterns, 2 for strong patterns like Engulfing, 3 for three-candle patterns) and decides based on weighted consensus, with trendStrength as a tunable threshold.
Risky Approach: Minimal filtering and a low trendStrength (default 0.5) allow frequent signals, aligning with your $100-to-$200 goal, but expect higher risk.
Suggested Inputs:
EMA Length: 10 (short enough for 5-minute sensitivity).
VWAP Lookback: 1 (uses current session VWAP).
Volume Threshold Multiplier: 1.2 (moderate spike requirement).
RSI Length: 14 (standard, adjustable to 7 for more sensitivity).
Trend Strength Threshold: 0.5 (balance between signals; lower to 0.4 for more trades, raise to 0.6 for fewer).
ORB Breakout Strategy with reversalORB 1,5,15,30,60min with reversals, its my first strategy Im not 100% sure it works well. Im not a programmer nor a profitable trader.
Max stoploss in points sets maximum fixed stoploss
Stop offset sets additional points below/above signal bar
RR Ratio is pretty self explanatory, it sets target based on stoploss
American session is time when positions can be opened
ORB SessionIs basically almost the same but when the time runs it closes all positions\
ORB candle timeframe is the time which orb is measured
Enable reverse position enables reversing positions on stoploss of first position, stoploss of reverse position is based on max stoploss and target is set by RR times max stoploss
Im sharing this to share this with my friends, discuss some things and dont have to test it manually.
I made it all myself and with help of AI
Sorry for bad english
Structure Strategycreated to spot key area needed to take valid trades in most market conditions. use beside RSI MACD
Clear Signal Trading Strategy V5Clear Signal Trading Strategy - Description
This strategy uses a simple 0-5 point scoring system to identify high-probability trades. It combines trend following with momentum confirmation to generate clear BUY/SELL signals while filtering out market noise.
How it works: The strategy waits for EMA crossovers, then scores the setup based on trend alignment, momentum, RSI position, and volume. Only trades scoring above your chosen threshold are executed.
Recommended Settings by Market Type
For Beginners / Risk-Averse Traders:
Signal Sensitivity: Conservative
Volume Confirmation: ON
Risk Per Trade: 1-2%
Stop Loss Type: ATR
ATR Multiplier: 2.5
Risk:Reward Ratio: 2.0
For Trending Markets (Strong Directional Movement):
Signal Sensitivity: Balanced
Volume Confirmation: ON
Risk Per Trade: 2%
Stop Loss Type: ATR
ATR Multiplier: 2.0
Risk:Reward Ratio: 2.5-3.0
For Ranging/Choppy Markets:
Signal Sensitivity: Conservative
Volume Confirmation: ON
Risk Per Trade: 1%
Stop Loss Type: Percentage
Percentage Stop: 2%
Risk:Reward Ratio: 1.5
For Volatile Markets (Crypto/High Beta Stocks):
Signal Sensitivity: Conservative
Volume Confirmation: ON
Risk Per Trade: 1%
Stop Loss Type: ATR
ATR Multiplier: 3.0
Risk:Reward Ratio: 2.0
Best Practices
Timeframes:
15-minute to 1-hour for day trading
4-hour to daily for swing trading
Works best on liquid instruments with good volume
When to avoid trading:
When dashboard shows "HIGH" volatility above 4%
During major news events
When win rate drops below 40%
In markets with no clear trend (prolonged NEUTRAL state)
Success tips:
Start with Conservative mode until you see 10+ successful trades
Only increase to Balanced mode when win rate exceeds 55%
Never use Aggressive mode unless market shows strong trend for 5+ days
Always honor the stop loss - no exceptions
Take partial profits at first target if unsure
Trend Line Breakout StrategyThe Trend Line Breakout Strategy is a sophisticated, automated trading system built in Pine Script v6 for TradingView, designed to capture high-probability reversals by detecting breakouts from dynamic trend lines. It focuses on establishing clear directional bias through higher timeframe (HTF) trend analysis while executing precise entries on the chart's native timeframe (typically lower, such as 15-60 minutes for intraday trading).
Key Components:
Trend Line Construction: Green Uptrend Lines (Support): Automatically drawn by connecting the two most recent pivot lows, but only if the line slopes upward (positive slope). This ensures the line truly represents bullish support.
Red Downtrend Lines (Resistance): Drawn by connecting the two most recent pivot highs, but only if the line slopes downward (negative slope), confirming bearish resistance.
Pivot points are detected using a user-defined lookback period (default: 5 bars left and right), filtering out invalid lines to reduce noise.
HTF Trend Filter:
Uses a 20-period EMA crossover against a 50-period EMA on a user-selected higher timeframe (e.g., 4H or Daily) to determine overall market direction. Long trades require an uptrend (20 EMA > 50 EMA), and shorts require a downtrend. This aligns entries with the broader momentum, reducing whipsaws.
Entry Signals:Buy (Long) Signal:
Triggered when price breaks above a red downtrend line with two consecutive confirmation candles (each closing above the line with bullish momentum, i.e., close > open). Must align with HTF uptrend.
Sell (Short) Signal: Triggered when price breaks below a green uptrend line with two consecutive confirmation candles (each closing below the line with bearish momentum, i.e., close < open). Must align with HTF downtrend.
This "2-candle confirmation" rule ensures momentum shift, avoiding false breaks.
Risk Management:Position Sizing:
Risks a fixed percentage of equity (default: 1%) per trade.
Stop Loss: Optional ATR-based (14-period default) or fixed 1% of price, placed beyond the breakout candle's extreme.
Take Profit: Set at a user-defined risk-reward ratio (default: 2:1), scaling rewards relative to the stop distance.
No pyramiding or trailing stops in the base version, keeping it simple and robust.
Visual Aids:
Plots green/red trend lines on the chart.
Triangle shapes mark entry signals (up for buys, down for sells).
Background shading highlights HTF trend (light green for up, light red for down).
Dashed lines show active stop-loss and take-profit levels.
This strategy excels in trending markets like forex pairs (e.g., EUR/USD) or volatile assets (e.g., BTC/USD), where trend lines hold multiple touches before breaking. It avoids overtrading by requiring slope validation and HTF alignment, aiming for 40-60% win rates with favorable risk-reward to compound returns. Backtesting on historical data (e.g., 2020-2025) typically shows drawdowns under 15% with positive expectancy, but always forward-test on a demo account due to slippage and commissions.Example: Best Possible Settings for Highest ReturnBased on extensive backtesting across various assets and timeframes (using TradingView's Strategy Tester on historical data from January 2020 to September 2025), the optimal settings for maximizing net profit (highest return) were found on the EUR/USD pair using a 1-hour chart. This configuration yielded a simulated return of approximately 285% over the period (with a 52% win rate, profit factor of 2.8, and max drawdown of 12%), outperforming defaults by focusing on longer-term trends and higher rewards.
Higher Timeframe
"D" (Daily)
Captures major institutional trends for fewer but higher-quality signals; reduces noise compared to 4H.
Lower Timeframe
"60" (1H)
Balances intraday precision with trend reliability; ideal for swing trades lasting 1-3 days.
Pivot Lookback Period
10
Longer lookback identifies more significant pivots, improving trend line validity in volatile forex markets.
Min Trendline Touch Points
2 (default)
Sufficient for confirmation without over-filtering; higher values reduce signals excessively.
Risk % of Equity
1.0 (default)
Conservative sizing preserves capital during drawdowns; scaling up increases returns but volatility.
Profit Target (R:R)
3.0
1:3 ratio allows profitability with ~33% win rate; backtests showed it maximizes expectancy in breakouts.
Use ATR for Stop Loss?
true (default)
ATR adapts to volatility, preventing premature stops in choppy conditions.
Backtest Summary (EUR/USD, 1H, 2020-2025):Total Trades: 156
Winning Trades: 81 (52%)
Avg. Win: +1.8% | Avg. Loss: -0.6%
Net Profit: +285% (compounded)
Sharpe Ratio: 1.65
Apply these on a demo first, as live results may vary with spreads (~0.5 pips on EUR/USD). For other assets like BTC/USD, increase pivot lookback to 15 for better noise filtering.
New Rate - PREMIUM v2New Rate – Premium
Overview
New Rate – Premium is a breakout strategy built around a strict “one trade per day” rule. It forms an intraday range from the first N candles, freezes High/Low at the close of candle N, and places OCO stop orders exactly on those levels. The first breakout fills and the opposite order is canceled. Exits can be managed by fixed ticks or by risk/reward (RR). The script draws SL/TP boxes, keeps entry labels at a fixed distance from price, and lets you restrict trading to selected weekdays.
How it works
Window & count: set timeframe, session start, and N candles. Those candles are highlighted and used to compute the range High/Low.
Freeze: when candle N closes, the strategy locks High/Low and draws the lines; a 50% midline is optional.
OCO placement: buy-stop on High and sell-stop on Low (one-cancels-other). The first fill cancels the other side.
Exits:
– Ticks mode: SL/TP are fixed distances in ticks from entry.
– RR mode: SL at the opposite side of the range; TP = RR × risk.
Visual SL/TP boxes are drawn in both modes.
Daily lock: after the first fill, no more entries for that day.
Key features
First break only, one trade per day: hard discipline that avoids over-trading.
Automatic range end: timeframe × N candles (or manual end time).
Exact “at-the-break” entries: stop orders placed at frozen High/Low.
Flexible exits: fixed ticks or RR with opposite-side stop.
Clean visuals: High/Low and midline with configurable color/style/width; text alignment (left/center/right); session background with opacity.
SL/TP boxes: configurable colors, borders, width, and forward projection.
Entry labels with constant offset: “BUY” below bar, “SELL” above bar; distance in ticks so labels never sit on price.
Weekday filter: trade only the days you select (Mon–Fri).
Inputs (summary)
• Session & range: timeframe (minutes), start time, N candles, auto end (TF × N) or manual, line extension.
• Style: High/Low colors, styles, widths; midline on/off; label position; session background color and opacity.
• Exits: RR using the opposite extreme as SL, or “Use SL/TP by ticks”.
• SL/TP boxes: projection bars, SL color, TP color, border color and width, box limit.
• Weekdays: Monday–Friday selectors.
• Entry labels: show/hide, colors, size, vertical offset in ticks, optional X shift in bars.
Backtest snapshot — FX:XAUUSD 30m
Range: 02 Jan 2024 00:00 → 12 Sep 2025 12:00 • Symbol/TF: FX:XAUUSD / 30m
• Net Profit: $1,599.77
• Gross Profit / Gross Loss: $3,929.47 / $2,329.70
• Max Drawdown: $112.73 (4.93%)
• Total Trades / Win rate: 440 / 48.41%
• Avg Trade: $3.64 (0.04%); Avg Winner / Avg Loser: $18.45 / $10.26
• Profit Factor / Sharpe / Sortino: 1.687 / 1.163 / 6.876
• Largest Win / Loss: $91.94 / $10.26
• Avg Bars in Trade: 1 (long), 2 (short)
Why this strategy is original
First-bar breakout accuracy: orders arm exactly when the N-th candle closes, so the very next bar can fill at the true break. This avoids the common ORB miss where the first post-range bar is skipped by delayed checks or market orders.
OCO + daily lock as a core mechanic: the engine enforces one-and-done behavior—no soft rules, no hidden retries—so test results match live logic.
Two exit frameworks, one visual language: switch seamlessly between fixed-tick and structural RR exits while managing both with the same SL/TP boxes for consistent analysis and education.
Readability by design: label offset, aligned High/Low text, and tunable session background keep charts uncluttered during long optimizations or multi-asset reviews.
Operational guardrails: drawing budgets, box limits, and weekday filters are integrated so backtests remain stable and realistic with trading hours.
Focused ORB specialization: no oscillators, no hidden bias—transparent, testable, and purpose-built for the opening-range dynamic you configure.
Recommended use
• Session openings or early windows with a single, clean decision per day.
• Strict rules with exact entry levels and auditable exits.
• Benchmarking exits in both ticks and RR with apples-to-apples visuals.
Default strategy properties
• Initial capital: 10,000 USD; position sizing by % of equity (editable).
• Commissions default to 0% and slippage to 0; edit to match your broker/market.
• Drawing limits tuned to respect TradingView resource caps.
Best practices & compliance
• Educational use. Not financial advice.
• Past performance does not guarantee future results.
• Adjust slippage, commissions, and position sizing to your live context.
• Original implementation with documented mechanics; compliant with TradingView House Rules.
Example setup
TF 5m, start 08:00, N = 6 → auto end at 08:30
RR = 2 with SL at the opposite side of the range
Boxes: projection 10 bars; SL #9598a1; TP #ffbe1a; border #787B86; opacity 70
Days: Tuesday and Wednesday only
Labels: “BUY” below and “SELL” above, 10-tick offset
Glossary
• Opening range breakout (ORB): breakout of the configured initial range.
• One-cancels-other (OCO): filling one order cancels the other.
• Risk/reward (RR): target equals RR × risk distance.
• Tick: minimum price increment.
• Offset: fixed label separation from the bar extremum.
Range Breakout StrategyAfter consecutive candle closes it creates a range, and if price breaks out of it it enters with fixed take profit.
Hull UT Bot Strategy - UT Main + Hull ConfirmThis strategy merges the strengths of the Hull Moving Average (HMA) Suite and the UT Bot Alerts indicator to create a trend-following system with reduced signal noise. The UT Bot acts as the primary signal generator, using an ATR-based trailing stop to identify momentum shifts and potential entry points. These signals are then filtered by the Hull Suite for trend confirmation: long entries require a UT Bot buy signal aligned with a bullish (green) Hull band, while short entries need a UT Bot sell signal with a bearish (red) Hull band. This combination aims to capture high-probability swings while avoiding whipsaws in choppy markets.The Hull Suite provides a responsive, smoothed moving average (configurable as HMA, EHMA, or THMA) that colors its band based on trend direction, offering a visual and logical filter for the faster UT Bot signals. The result is a versatile strategy suitable for swing trading on timeframes like 1H or 4H, with options for higher timeframe Hull overlays for scalping context. It includes backtesting capabilities via Pine Script's strategy functions, plotting confirmed signals, raw UT alerts (for reference), and the trailing stop line.Key benefits:Noise Reduction: Hull confirmation eliminates ~50-70% of false UT Bot signals in ranging markets (based on typical backtests).
Trend Alignment: Ensures entries follow the broader momentum defined by the Hull band.
Customization: Adjustable sensitivity for different assets (e.g., forex, stocks, crypto).
How It WorksUT Bot Core: Calculates an ATR trailing stop (sensitivity via "Key Value"). A buy signal triggers when price crosses above the stop (bullish momentum), and sell when below (bearish).
Hull Filter: The Hull band is green if current Hull > Hull (bullish), red otherwise. Signals only fire on alignment.
Entries: Long on confirmed UT buy + green Hull; Short on confirmed UT sell + red Hull. No explicit exits—relies on opposite signals for reversal.
Visuals: Plots Hull band, UT trailing stop, confirmed labels (Long/Short), and optional raw UT circles. Bar colors reflect UT position, tinted by confirmation.
Alerts: Triggers on confirmed long/short for automated notifications.
This setup performs well in trending markets but may lag in strong reversals—pair with risk management (e.g., 1-2% per trade).Recommended Settings Use these as starting points; optimize via back testing on your asset/timeframe.
-Hull Variation
Hma
Standard Hull for responsiveness; switch to EHMA for smoother crypto, THMA for volatile stocks.
-Hull Length
55
Balances swing detection; use 180-200 for dynamic S/R levels on higher TFs.
-Hull Length Multiplier
1.0
Keep at 1 for native TF; >1 for HTF straight bands (e.g., 2 for 2x smoothing).
-Show Hull from HTF
False
Enable for scalping (e.g., 1m chart with 15m Hull); set HTF to "15" or "240".
-Color Hull by Trend
True
Visual trend cue; disable for neutral orange line.
-Color Candles by Hull
False
Enable for trend visualization; conflicts with UT bar colors if True.
-Show Hull as Band
True
Fills area for clear up/down zones; set transparency to 40-60.
-Hull Line Thickness
1-2
Thinner for clean charts; 2+ for emphasis.
-UT Bot Key Value
1
Default sensitivity (ATR multiple); 0.5 for aggressive signals, 2 for conservative.
-UT Bot ATR Period
10
Standard volatility window; 14 for longer swings, 5 for intraday.
-UT Signals from HA
False
Use True for smoother signals in noisy markets (Heikin Ashi close).
Backtesting Tips: Test on liquid pairs like EURUSD (1H) or BTCUSD (4H) with 1% equity risk. Expect win rates ~45-60% in trends, with 1.5-2:1 reward:risk. Adjust Key Value down for more trades, Hull Length up for fewer.