MAC's V6 finalBreakout retest strategy
Works best on a NQ 1 hour chart
Also works on other futures charts
Adjust the initial capital to 100000
and the margin requirement percent to 0
Penunjuk dan strategi
LW Outside Day Strategy[SpeculationLab]This strategy is inspired by the “Outside Day” concept introduced by Larry Williams in Long-Term Secrets to Short-Term Trading, and has been extended with configurable risk management tools and realistic backtesting parameters.
Concept
The “Outside Day” is a classic price action pattern that reflects strong market rejection or continuation pressure.
An Outside Bar occurs when the current bar’s high exceeds the previous high and the low falls below the previous low.
A body-size filter ensures only significant candles are included.
Entry Logic
Buy setup: Price closes below the previous low (bullish rejection).
Sell setup: Price closes above the previous high (bearish rejection).
Only confirmed bars are used (no intrabar signals).
Stop-Loss Modes
Prev Low/High: Uses the previous swing point ± ATR-based buffer.
ATR: Dynamic stop based on Average True Range × multiplier.
Fixed Pips: User-defined fixed distance (for forex testing).
Take-Profit Modes
Prev High/Low (PHL): Exits near the opposite swing.
Risk-Reward (RR): Targets a user-defined multiple of the stop distance (default = 2 : 1).
Following Price Open (FPO): Exits on the next bar’s open if price opens in profit (used to test overnight price continuation).
Risk Management & Backtest Settings
Default risk per trade is set at 10% of account equity (user-adjustable).
Commission = 0.1% and slippage = 2 ticks are applied to simulate realistic conditions.
For reliable statistics, test on data that yields over 100 trades.
Suitable for daily and 4-hour timeframes across stocks, forex, and crypto markets.
Visual Elements
Green and red triangles show entry signals.
Stop-loss (red) and take-profit (green) reference lines are drawn for clarity.
Optional alerts notify when a valid setup forms.
Disclaimer
This script is for educational and research purposes only.
It does not constitute financial advice or guarantee profits.
Always backtest thoroughly and manage your own risk.
Enhancements over Classic Outside Bar Models
Adjustable stop and target logic with ATR and buffer multipliers.
“Following Price Open” exit logic for realistic day-end management.
Optimized to avoid repainting and bar-confirmation issues.
Built with realistic trading costs and position sizing.
策略逻辑
外包线识别
当日最高价高于前一日最高价,且当日最低价低于前一日最低价,即形成外包线。
同时过滤掉较小实体的 K 线,仅保留实体显著大于前一根的形态。
方向过滤
收盘价低于前一日最低价 → 视为买入信号。
收盘价高于前一日最高价 → 视为卖出信号。
止损设置(可选参数)
前低/高止损:以形态前低/前高为止损,带有缓冲倍数。
ATR 止损:根据平均波动率(ATR)动态调整。
固定点数止损:按照用户设定的点数作为止损范围。
止盈设置(可选参数)
前高/低止盈(PHL):以前高/前低为目标。
固定盈亏比(RR):根据用户设定的风险回报比自动计算。
隔夜开盘(FPO):若次日开盘价高于进场价(多单)或低于进场价(空单),则平仓。
信号标记
在图表中标注买入/卖出信号(三角形标记)。
绘制止损与目标位参考线。
使用说明
适用周期:建议用于 日线图(Daily)。
适用市场:股票、外汇、加密货币等各类市场均可。
提示:此策略为历史研究与学习用途,不构成投资建议。实际交易请结合自身风险管理。
Larry Williams Oops StrategyThis strategy is a modern take on Larry Williams’ classic Oops setup. It trades intraday while referencing daily bars to detect opening gaps and align entries with the prior day’s direction. Risk is managed with day-based stops, and—unlike the original—all positions are closed at the end of the session (or at the last bar’s close), not at a fixed profit target or the first profitable open.
Entry Rules
Long setup (bullish reversion): Today opens below yesterday’s low (down gap) and yesterday’s candle was bearish. Place a buy stop at yesterday’s low + Filter (ticks).
Short setup (bearish reversion): Today opens above yesterday’s high (up gap) and yesterday’s candle was bullish. Place a sell stop at yesterday’s high − Filter (ticks).
Longs are only taken on down-gap days; shorts only on up-gap days.
Protective Stop
If long, stop loss trails the current day’s low.
If short, stop loss trails the current day’s high.
Exit Logic
Positions are force-closed at the end of the session (in the last bar), ensuring no overnight exposure. There is no take-profit; only stop loss or end-of-day flat.
Notes
This strategy is designed for intraday charts (minutes/seconds) using daily data for gaps and prior-day direction.
Longs/shorts can be enabled or disabled independently.
Commodity Pulse Matrix (CPM) [WavesUnchained] [Strategy]Commodity Pulse Matrix (CPM) - Strategy Version
⚠️ Development Status
ACTIVE DEVELOPMENT - This strategy is currently under heavy development and optimization. The risk management settings, entry/exit logic, and parameter tuning are still being refined and are NOT yet satisfactory for live trading.
Current development areas:
Stop-loss and take-profit optimization
Position sizing and risk management
Entry timing and signal filtering
Backtest validation across different market conditions
⚠️ Use for testing and backtesting only - NOT recommended for live trading yet!
For detailed information about the underlying indicator logic, signals, and analysis methods, please refer to the Commodity Pulse Matrix (CPM) indicator description.
Overview
The CPM Strategy is an automated trading system based on the Commodity Pulse Matrix indicator. It converts the indicator's multi-timeframe confluence signals into executable trades with dynamic ATR-based risk management.
Strategy Core Features
Signal Sources
The strategy trades based on:
Strong Buy/Sell signals from the CPM indicator
Multi-timeframe alignment (configurable: 3/3, 2/3, or score-only)
EMA-200 trend filter (prevents counter-trend entries)
Dynamic signal cooldown (5-8 bars)
Optional reversal zone signals (triple-confirmed)
Risk Management (ATR-Based)
Stop-Loss & Take-Profit
Stop-Loss: 2.5x ATR (default) - Dynamic distance based on volatility
Take-Profit: 4.0x ATR (default) - Risk/Reward ratio of 1.6:1
ATR Length: 14 periods (adjustable)
Both SL and TP adjust to current market volatility
Trailing Stop (Optional)
Enabled by default
Trails at 2.5x ATR distance
Protects profits in trending moves
Can be disabled for fixed SL/TP only
Position Management
Trade Direction Filter
Both Directions (default) - Trade both Long and Short
Long Only - Only enter long positions
Short Only - Only enter short positions
Cooldown After Exit
Default: 3 bars minimum after closing a position
Prevents immediate re-entry (whipsaw protection)
Adjustable from 0 (disabled) to any number of bars
Signal Filtering
Signal Mode (Timeframe Consensus)
Strict (3/3 TFs): All 3 timeframes must agree - Most conservative
Majority (2/3 TFs): At least 2 of 3 timeframes agree - Balanced (default)
Flexible (Score Only): Overall score threshold only - Most signals
Optional Filters
Min ABS(overallScore): Only trade when confluence score meets minimum (default: 0 = disabled)
Confirmed Bar Only: Wait for bar close before entry (prevents repainting) - Recommended ON
Strategy Settings Guide
For Conservative Trading (Lower Risk)
Signal Mode: "Strict (3/3 TFs)"
Stop-Loss: 3.0x ATR or higher
Take-Profit: 5.0x ATR or higher
Trailing Stop: Enabled
Cooldown: 5-10 bars
Min Score: 8.0 or higher
For Aggressive Trading (More Signals)
Signal Mode: "Flexible (Score Only)"
Stop-Loss: 2.0x ATR
Take-Profit: 3.0x ATR
Trailing Stop: Optional
Cooldown: 0-3 bars
Min Score: 4.0 or disabled
For Balanced Trading (Recommended Starting Point)
Signal Mode: "Majority (2/3 TFs)"
Stop-Loss: 2.5x ATR
Take-Profit: 4.0x ATR
Trailing Stop: Enabled
Cooldown: 3 bars
Min Score: 6.0-8.0
TradingView Strategy Tester Settings
Essential Settings to Configure:
Properties Tab
Initial Capital: Set to realistic account size
Order Size: Use "% of Equity" (e.g., 10-25% per trade)
Commission: Set realistic commission (e.g., 0.05% for crypto, 0.1% for stocks)
Slippage: Add realistic slippage (1-3 ticks for liquid markets)
Verify "Recalculate: On Every Tick" is DISABLED (for realistic backtests)
Inputs Tab
Adjust ATR multipliers for your market
Set appropriate cooldown period
Choose signal mode based on desired trade frequency
Enable/disable trailing stop
Configure directional filter if needed
Backtesting Recommendations
Before Using This Strategy:
Test across multiple markets - What works for one commodity may not work for another
Test different timeframes - Strategy behavior changes significantly with TF
Test different market conditions - Trending vs ranging markets
Validate performance metrics - Win rate, profit factor, max drawdown, Sharpe ratio
Forward test on paper account - Before risking real capital
Key Metrics to Monitor:
Win Rate (aim for >40% minimum)
Profit Factor (aim for >1.5)
Max Drawdown (should be acceptable for your risk tolerance)
Sharpe Ratio (higher is better, >1.0 is good)
Average Trade (should be positive after commissions/slippage)
Known Limitations
Range-bound markets: May produce more whipsaws despite filters
Low volatility: ATR-based stops may be too tight
High volatility: ATR-based stops may be too wide
News events: Strategy cannot account for fundamental shocks
Signal timing: Entry timing is still being optimized
Indicator vs Strategy
When to use the Indicator:
- Manual trading with discretion
- Confluence analysis and timing
- Multiple signal validation
- Learning market structure
When to use the Strategy:
- Automated backtesting
- System validation
- Parameter optimization
- Performance measurement
⚠️ The indicator provides richer information and context than the strategy can execute!
Technical Details
Pine Script v6
Non-repainting: Uses confirmed bars for HTF data
Strategy type: Long/Short with dynamic stops
Risk management: ATR-based (adaptive to volatility)
Position sizing: Configured in Strategy Tester
Pyramiding: Default 1 (no adding to positions)
Important Notes
⚠️ Strategy parameters are still under optimization - Current settings may not be optimal for all markets or timeframes
⚠️ Backtest thoroughly before live trading - Test across different market conditions and timeframes
⚠️ Risk management is critical - Use appropriate position sizing (1-2% risk per trade recommended)
⚠️ Market conditions change - A strategy that works in trending markets may fail in ranging markets
⚠️ Commission and slippage matter - Always include realistic costs in backtests
✅ Start with conservative settings and optimize gradually
✅ Paper trade before going live
✅ Monitor performance and adjust as needed
✅ Never risk more than you can afford to lose
Disclaimer
Educational and testing purposes only. Not financial advice.
This strategy is provided as-is for backtesting and educational purposes. Past performance is not indicative of future results. Trading involves substantial risk of loss. The developer is not responsible for any losses incurred from using this strategy. Always do your own research, backtest thoroughly, and consult with a qualified financial advisor before making trading decisions.
NEVER use this strategy with real money until:
You have thoroughly backtested it on your specific market and timeframe
You understand all parameters and their impact
You have forward tested it on a paper account
You are comfortable with the maximum drawdown and risk profile
The strategy has been marked as production-ready by the developer
Version
v1.2 - Strategy Adapter (Active Development)
Based on: Commodity Pulse Matrix v1.2 Indicator
Last Updated: 2025-10-10
For detailed indicator documentation, see the Commodity Pulse Matrix (CPM) indicator description.
ORDER BLCOK custom strategy# OB Matrix Strategy - Documentation
**Version:** 1.0
**Author:** HPotter
**Date:** 31/07/2017
The **OB Matrix Strategy** is based on the identification of **bullish and bearish Order Blocks** and the management of conditional orders with multiple Take Profit (TP) and Stop Loss (SL) levels. It uses trend filters, ATR, and percentage-based risk management.
---
## 1. Main Parameters
### Strategy
- `initial_capital`: 50
- `default_qty_type`: percentage of capital
- `default_qty_value`: 10
### Money Management
- `rr_threshold`: minimum Risk/Reward threshold to open a trade
- `risk_percent`: percentage of capital to risk per trade (default 2%)
- `maxPendingBars`: maximum number of bars for a pending order
- `maxBarsOpen`: maximum number of bars for an open position
- `qty_tp1`, `qty_tp2`, `qty_tp3`: quantity percentages for multiple TPs
---
## 2. Order Block Identification
### Order Block Parameters
- `obLookback`: number of bars to identify an Order Block
- `obmode`: method to calculate the block (`Full` or `Breadth`)
- `obmiti`: method to determine block mitigation (`Close`, `Wick`, `Avg`)
- `obMaxBlocks`: maximum number of Order Blocks displayed
### Main Variables
- `bullBlocks`: array of bullish blocks
- `bearBlocks`: array of bearish blocks
- `last_bull_volume`, `last_bear_volume`: volume of the last block
- `dom_block`: dominant block type (Bullish/Bearish/None)
- `block_strength`: block strength (normalized volume)
- `price_distance`: distance between current price and nearest block
---
## 3. Visual Parameters
- `Width`: line thickness for swing high/low
- `amountOfBoxes`: block grid segments
- `showBorder`: show block borders
- `borderWidth`: width of block borders
- `showVolume`: display volume inside blocks
- `volumePosition`: vertical position of volume text
Customizable colors:
- `obHighVolumeColor`, `obLowVolumeColor`, `obBearHighVolumeColor`, `obBearLowVolumeColor`
- `obBullBorderColor`, `obBearBorderColor`
- `obBullFillColor`, `obBearFillColor`
- `volumeTextColor`
---
## 4. Screener Table
- `showScreener`: display the screener table
- `tablePosition`: table position (`Top Left`, `Top Right`, `Bottom Left`, `Bottom Right`)
- `tableSize`: table size (`Small`, `Normal`, `Large`)
The table shows:
- Symbol, Timeframe
- Type and status of Order Block
- Number of retests
- Bullish and bearish volumes
---
## 5. Trend Filters
- EMA as a trend filter (`emaPeriod`, default 223)
- `bullishTrend` if close > EMA
- `bearishTrend` if close < EMA
---
## 6. ATR and Swing Points
- ATR calculated with a customizable period (`atrLength`)
- Swing High/Low for SL/TP calculation
- `f_getSwingTargets` function to calculate SL and TP based on direction
---
## 7. Trade Logic
### Buy Limit on Bullish OB
- Conditions:
- New bullish block
- Uptrend
- RR > threshold (`rr_threshold`)
- SL: `bullishOBPrice * (1 - atr * atrMultiplier)`
- Multiple TPs: TP1 (50%), TP2 (80%), TP3 (100% max)
- Quantity calculation based on percentage risk
### Sell Limit on Bearish OB
- Conditions:
- New bearish block
- Downtrend
- RR > threshold (`rr_threshold`)
- SL: `bearishOBPrice * (1 + atr * atrMultiplier)`
- Multiple TPs: TP1 (50%), TP2 (80%), TP3 (100% max)
- Quantity calculation based on percentage risk
---
## 8. Order Management and Timeout
- Close pending orders after `maxPendingBars` bars
- Close open positions after `maxBarsOpen` bars
- Label management for open orders
---
## 9. Alert Conditions
- `bull_touch`: price inside maximum bullish volume zone
- `bear_touch`: price inside maximum bearish volume zone
- `bull_reject`: confirmation of bullish zone rejection
- `bear_reject`: confirmation of bearish zone rejection
- `new_bull`: new bullish block
- `new_bear`: new bearish block
---
## 10. Level Calculation
- Swing levels based on selected timeframe (`SelectPeriod`)
- `xHigh` and `xLow` for S1 and R1 calculation
- Levels plotted on chart
---
## 11. Take Profit / Stop Loss
- Extended horizontal lines (`extendBars`) to visualize TP and SL
- Customizable colors (`tpColor`, `slColor`)
---
## 12. Notes
- Complete script based on Pine Script v5
- Advanced graphical management with boxes, lines, labels
- Dynamically displays volumes and Order Blocks
- Integrated internal screener
---
### End of Documentation
Strategy with Reference Lines📊 Strategy with Reference Lines
Description:
This strategy uses a contrarian approach based on the analysis of the previous candle to identify entry and exit points. The strategy draws horizontal reference lines at important levels of the previous candle and generates buy/sell signals based on the candle's direction.
Key Features:
🔹 Multi-Timeframe Analysis: Configurable for 1H, 2H, 3H, 4H, 6H, 12H, and 1D
🔹 Reference Lines: High, low, close, and midpoint (50%) of the previous candle
🔹 Visual Signals: Labels with prices and actions (BUY/SELL/TP)
🔹 Optional Trading: Enable/disable automatic order execution
🔹 Complete System: Automatic entry, Take Profit, and Stop Loss
🔹 Alerts: Notifications when a new candle is detected
Strategy Logic:
When the previous candle is POSITIVE:
Signal: 🔴 SELL at the previous candle's close
Take Profit: 🎯 Midpoint (50%) of the previous candle
Stop Loss: 🔴 High of the previous candle
When the previous candle is NEGATIVE:
Signal: 🟢 BUY at the previous candle's close
Take Profit: 🎯 Midpoint (50%) of the previous candle
Stop Loss: 🟢 Low of the previous candle
Visual Elements:
Green Line: High of the previous candle (when positive)
Red Line: Low of the previous candle (when negative)
Yellow Line: Close of the previous candle (always present)
Blue Line: Midpoint (50%) of the previous candle (always present)
Labels: Prices and actions with emojis for easy identification
Settings:
Timeframe: Default 4H (configurable)
Auto Trading: Disabled by default (safety)
Alerts: Include entry prices, TP, and SL
Recommended Usage:
✅ Visual Analysis: Use with trading disabled for analysis
✅ Backtesting: Enable trading to test historically
✅ Swing Trading: Ideal for 4H or higher timeframes
✅ Risk Management: Automatic SL and TP for protection
Risk Disclaimer:
This strategy is for educational and analysis purposes only. Always test in a simulation environment before using with real capital. Trading involves significant risks and may result in losses.
Supertrend + MACD + EMA200 (Pro) V2 — Strict & TrailingThis strategy uses Supertrend, MACD and EMA 200 as indicators. When all three indicators shows the sema direction, you enter the trade.
MA Crossover Strategy V6//@version=6
strategy("MA Crossover Strategy V6", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
// === Inputs ===
shortLength = input.int(9, title="Short MA Length", minval=1)
longLength = input.int(21, title="Long MA Length", minval=1)
useEMA = input.bool(false, title="Use EMA Instead of SMA")
// === Moving Averages ===
shortMA = useEMA ? ta.ema(close, shortLength) : ta.sma(close, shortLength)
longMA = useEMA ? ta.ema(close, longLength) : ta.sma(close, longLength)
// === Plot MAs ===
plot(shortMA, color=color.orange, title="Short MA", linewidth=2)
plot(longMA, color=color.blue, title="Long MA", linewidth=2)
// === Entry Conditions ===
longCondition = ta.crossover(shortMA, longMA)
shortCondition = ta.crossunder(shortMA, longMA)
// === Strategy Logic ===
if (longCondition)
strategy.entry("Long", strategy.long)
if (shortCondition)
strategy.entry("Short", strategy.short)
// === Optional: Plot Buy/Sell Signals ===
plotshape(longCondition, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
plotshape(shortCondition, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)
ALMASTO – Pro Trend & Momentum (v1.1)ALMASTO — Pro Trend & Momentum Strategy
Description:
This strategy is designed for precision trading in both Forex (FX) and Crypto markets.
It combines multi-timeframe trend confirmation (EMA200), momentum filters (RSI, MACD, ADX), and ATR-based dynamic risk management.
ALMASTO — Pro Trend & Momentum Strategy automatically manages take-profit levels, stop-loss, and breakeven adjustments once TP1 is reached — providing a structured and emotion-free trading approach.
Optimal Use
Works best on lower timeframes (5m–15m) with strong liquidity sessions.
Optimized for pairs like EURUSD, XAUUSD, and BTCUSDT.
Built for trend-following setups and momentum reversals with high volatility confirmation.
Recommended Settings
🔹 Forex – 5m
EMA Fast = 34, EMA Slow = 200, HTF = 1H
RSI (14): Long ≥ 55 / Short ≤ 45
MACD (8 / 21 / 5), ADX Len 10 / Min 27
ATR Len 7, Stop Loss = ATR × 2.1
TP1 = 1.1 RR, TP2 = 2.3 RR
Session = 07:00–11:00 & 12:30–16:00 (Exchange Time)
Risk = 0.8% per trade
🔹 Forex – 15m
EMA Fast = 50, EMA Slow = 200, HTF = 4H
RSI (14): Long ≥ 53 / Short ≤ 47
MACD (12 / 26 / 9), ADX Min 24
ATR Len 10, SL = ATR × 1.9
TP1 = 1.2 RR, TP2 = 2.6 RR
Risk = 1.0% per trade
🔹 Crypto – 5m (BTC/USDT)
EMA Fast = 34, EMA Slow = 200, HTF = 4H
RSI (14): Long ≥ 56 / Short ≤ 44
MACD (8 / 21 / 5), ADX Min 30
ATR Len 7, SL = ATR × 2.2
TP1 = 1.0 RR, TP2 = 2.5 RR
Session = 00:00–06:00 & 12:00–22:00 (UTC)
Risk = 0.5% per trade
Core Features
✅ Auto breakeven after TP1
✅ Dual take-profit system (1:1 & 1:2 RR)
✅ ATR-based stop & trailing logic
✅ Filters for session time, volume, and volatility
✅ Candle-body vs ATR size filter to avoid noise
✅ Optional cooldown between trades
Important Notes
Use bar close confirmation only (barstate.isconfirmed) to avoid repainting on lower timeframes.
Adjust commission (0.01–0.03%) and slippage (1–2 ticks) in Strategy Tester for realistic results.
Avoid low-liquidity hours (after 21:00 UTC for FX / after midnight for crypto).
Backtest using realistic broker data (e.g., BlackBull Markets / Bybit / Binance Futures).
Best results occur during London & New York sessions with moderate volatility.
⚠️ Disclaimer
This script is for educational and research purposes only.
It does not constitute financial advice.
Use proper risk management and test thoroughly before using on live accounts.
Developed by KING FX Labs
Built and optimized by Yousef Almasto — combining advanced price-action logic, multi-timeframe EMA structure, and volatility-adaptive ATR management.
Tested across Forex, Gold, and Crypto markets to ensure consistent performance and minimal drawdown.
📈 “Precision Trading. Zero Emotion. Pure Momentum.”
Larry Williams - Smash Day (SL/TP in %)This strategy implements Larry Williams’ “Smash Day” reversal concept on any symbol and timeframe (daily is the classic). A Smash Day is a bar that closes beyond a recent extreme and then potentially reverses on the next session.
Larry Williams Bonus Track PatternThis strategy trades the day immediately following an Inside Day, under specific directional and timing conditions. It is designed for daily-based setups but executed on intraday charts to ensure orders are placed exactly at the open of the following day, rather than at the daily bar close.
Entry Conditions
Only trades on Monday, Thursday, or Friday.
The previous day must be an Inside Day (its high is lower than the prior high and its low is higher than the prior low).
The bar before the Inside Day must be bullish (close > open).
On the following day (t):
The daily open must be below both the Inside Day’s high and the highest high of the two days before that.
A buy stop is placed at the highest high of the three previous days (Inside Day and the two days before it).
If the new day’s open is already above that level (gap up), the strategy enters long immediately at the open.
Exit Rules
Stop Loss: Fixed, defined in points or percentage (user input).
FPO (First Profitable Open): the position is closed at the first daily open after the entry day where the open price is above the average entry price (the first profitable open).
Notes
The script must be applied on an intraday timeframe (e.g., 15-minute or 1-hour) so that the strategy can:
Detect the Inside Day pattern using daily data (request.security).
Execute orders in real time at the next day’s open.
Running it directly on the daily timeframe will delay executions by one bar due to Pine Script’s evaluation model.
DeepSeek_Multi-Timeframe EMA Strategy BTC_1HStrategy Description: "DeepSeek_Multi-Timeframe EMA Strategy BTC_1H"
This is a trading strategy for TradingView that uses a multi-timeframe Exponential Moving Average (EMA) crossover system to generate trade signals on a 1-hour Bitcoin (BTC) chart.
Core Logic & Trading Rules
The strategy's logic is based on the alignment of two different EMA timeframes:
Higher Timeframe (HTF) Trend Filter: A slower EMA (default: 50) is calculated on a higher timeframe (default: 1D). This defines the primary, long-term trend.
Lower Timeframe (LTF) Signal Trigger: A faster EMA (default: 20) is calculated on the current chart timeframe (1H). This is used for precise entry and exit timing.
Long Entry Conditions (All must be true):
Trend Alignment: The LTF EMA (20) must be above the HTF EMA (50).
Price Position: The current closing price must be above the HTF EMA (50), confirming the bullish trend.
Entry Trigger: The closing price must cross above the LTF EMA (20).
Exit Condition (for Long Positions):
The strategy closes any open long position when:
The LTF EMA (20) is below the HTF EMA (50) (counter-trend), and
The closing price crosses below the LTF EMA (20).
Key Features & Configuration
Strategy Configuration: It uses a strategy script, which can perform backtesting and forward-testing.
Initial Capital: $1,000.
Order Sizing: 100% of equity per trade (default_qty_value = 100).
Pyramiding: Only 1 active position is allowed at a time (pyramiding = 1).
Commission: 0.1% is factored into calculations.
Order Execution: Orders are executed at the close of the 1-hour bar where the signal appears (process_orders_on_close=true).
Visualization:
The HTF EMA (50) is plotted as a thick purple line.
The LTF EMA (20) is plotted as an orange line.
Green upward triangles below the bar indicate Long Entry signals.
Red downward triangles above the bar indicate Exit (Short) signals.
Summary
In essence, this strategy aims to "buy the dip" within a larger uptrend. It waits for the higher timeframe to be bullish, and then enters on a short-term pullback to the faster moving average. It exits the trade when the shorter-term trend turns bearish relative to the longer-term trend. It does not take short/sell positions; it only goes long or is out of the market.
PulseWhisper AI – Swing Trading Strategy)📌 PulseWhisper AI – Swing Trading Strategy
AI-Powered Elliott Wave Trading for Stocks, Indices & Crypto
PulseWhisper AI is a swing trading strategy that combines Elliott Wave market structure with advanced AI/ML confirmation filters to generate high-probability trade entries and clearly defined exit levels.
This strategy is designed for traders who want precision entries, smart scaling, and disciplined risk management without guesswork.
🔹 CORE CONCEPT
The strategy identifies Elliott Wave patterns (Wave 1–5 & ABC corrections) and times trades during the highest-probability phases (Wave 2 → Wave 3 and Wave C reversals).
To eliminate subjectivity, PulseWhisper AI uses machine learning confirmation filters including:
VWAP & Volume Profile (trend + liquidity confirmation)
RSI & Momentum Divergence
Candle Pattern Recognition
Market Structure (higher highs/lows or lower highs/lows)
AI Probability Scoring (confidence % on each signal)
Only when Elliott Wave structure and AI confirmation agree → a trade signal is generated.
✅ ENTRY LOGIC
Long Entry Example:
Price completes corrective Wave 2 or Wave C
Trend is bullish (above VWAP or higher timeframe trend)
AI confidence is high
Bullish confirmation candle → Buy signal
Short Entry Example:
Price completes corrective rally into Wave 2 or B
Trend is bearish (below VWAP or lower highs/lows)
AI confidence is high
Bearish confirmation candle → Sell signal
🎯 EXIT & TARGETS (Built-In Scaling)
PulseWhisper AI automatically calculates Fibonacci-based take-profit zones:
TP1 (40%): 0.618 Fib extension
TP2 (30%): 1.0 Fib extension
Runner (30%): 1.272 or 1.618 extension (trend continuation)
Stop-loss is based on structure (below Wave low / above swing high or adaptive ATR).
⏱️ RECOMMENDED TIMEFRAMES
Swing Trading:
1H, 2H, 4H, Daily
Optional confirmation from lower timeframes (15m / 30m).
📊 MARKETS SUPPORTED
This strategy works exceptionally well on:
SPX / SPY / ES
QQQ / NQ
Large-cap stocks (NVDA, AMD, AAPL, TSLA, etc.)
Crypto (BTC, ETH)
Forex & Futures
🧠 WHY IT WORKS
Most Elliott Wave traders fail due to subjective wave counts and emotional trading.
PulseWhisper AI solves this by:
✅ Automated wave logic
✅ Objective AI-based confirmations
✅ Pre-programmed scaling exits
✅ Built-in discipline & consistency
🧪 BACKTESTING & OPTIMIZATION
The strategy includes:
Trend filters
Risk management parameters
Multi-timeframe validation
AI confidence threshold
Users can adjust settings to match their risk profile & markets.
⚠️ DISCLAIMER
This script is for educational purposes only and not financial advice.
Past performance does not guarantee future results.
Always use proper risk management.
🚀 FINAL NOTE
PulseWhisper AI is built for traders who want a professional, structured, and AI-enhanced approach to swing trading.
No guessing. No emotions. Just high-probability wave-based setups enhanced by artificial intelligence.
Ride the Wave. Trade with AI Precision.
Confluence Dashboard + Strategy [Daily + Weekly Adaptive]Removed duplicate strategy() declarations
Scoped getWeeklyBias() safely with correct request.security() usage
Ensured all variables are declared before use
Aligned background shading with bias logic
Streamlined signal tier logic to avoid overlap
Integrated strategy entries/exits cleanly
WMA Slope-Confirm Strategy [Highly Customizable]WMA 1/9 Slope-Confirm Strategy
Trend-following strategy that buys only when both fast (WMA 1) and slow (WMA 9) moving averages are rising, with the fast above the slow. Optional slope thresholds, ATR volatility filter, session/time filters, cooldown after exits, and stop/target management. Designed to reduce false entries in choppy markets while capturing sustained momentum swings. #WMA #trendfollowing #momentum #ATR #breakouts #algo #strategy
4hr / BTCBTCUSDT.P / 4hr
趨勢線交易策略
設定可以如我圖表
也可以自己找合適的
測試請用最大虧損的三倍金額下去打
圖以含手續費(0.06%)
可以用小金額去打
最大淨利與最大虧損績效比 1:10
平均獲利/虧損盈虧比 2.135
長期放保證獲利
沒獲利或獲利較小的那年通常是大事件
如2022
有問題私訊 謝謝
BTCUSDT.P / 4hr
Trendline Trading Strategy
You can set it up the same way as shown on my chart,
or find your own suitable setup.
For testing, please use three times the maximum loss as your trading capital.
The chart should include fees (0.06%).
You can trade with a small amount.
Performance:
Maximum profit to maximum loss ratio: 1:10
Average profit/loss ratio: 2.135
Guaranteed profit in the long term
Years with no profit or smaller profit are usually caused by major events,
such as 2022.
If you have any questions, please DM me. Thank you.
MACD Master Strategy Suite🧩 Overview
The MACD Master Strategy Suite is not a basic MACD crossover system, but a complete backtesting tool designed for traders who want to explore and optimize MACD-based logic.
This suite offers a host of configurable options that transform the standard MACD into a powerful research framework. You can test multiple entry styles, apply trend filters, run contrarian setups, and study seasonality — all from one script.
⚙️ Key Features
Multiple MACD entry modes: classic cross, zero-line flip, pullback, momentum burst, divergence, and more.
Dual-EMA trend filter with optional Contrarian Mode.
Higher-timeframe trend confirmation.
Calendar filters for weekday, month, and day-of-month testing.
Realistic trade management: stop/target exits, cooldowns, and same-bar recalculation guard.
Adjustable position sizing and leverage for accurate SPY-style backtests.
🧠 How It Differs From TradingView’s Built-In MACD Strategy
The built-in MACD strategy uses only histogram zero-cross entries with no filters or risk controls.
The MACD Master Strategy Suite expands this into a fully modular testing environment, allowing you to analyze how different MACD behaviors perform under diverse market conditions — turning MACD from a simple signal into a measurable system.
⚖️ Disclaimer
For research and educational use only. This script does not constitute financial advice or guarantee performance.
Rocket Scalper 1.0 Bullish onlyThis is a premium, invite-only strategy designed for high-frequency, bullish micro-scalping. It is engineered to identify and exploit fast continuation moves during peak market activity, prioritizing high win-rate results over high individual R:R targets.
🛡️ The Strategy's Proprietary Edge
The Rocket Scalper 1.0 operates based on three independent, proprietary logic blocks that must align before a trade is considered:
Adaptive Trend Filter: Uses a unique dual-period moving average system to ensure entries are only generated in alignment with the prevailing short-term trend direction.
Market Momentum Validator: A proprietary momentum reading that confirms institutional interest and sufficient price velocity, filtering out slow, choppy movements.
Volume Confirmation Engine: Requires a validated surge in trading volume to confirm the strength and sustainability of the breakout, significantly reducing false signals.
Trade Execution Window: To maximize efficiency and signal quality, trading is strictly limited to the most liquid hours: US Session (8:00 AM - 4:00 PM ET / 12:00 - 20:00 UTC).
💰 Risk Management & Performance Focus
This strategy is built for capital preservation and compounding:
Dynamic Loss Control: Employs an Adaptive ATR Stop Loss that automatically adjusts to current market volatility, ensuring tight, controlled losses. You can fine-tune its tightness using the Vol. SL Multiplier setting.
Dual-Phase Profit System: Positions are split, with the first half securing a 1:1 R target quickly, and the second half utilizing a custom Trailing Stop system to capture extended runs.
Breakeven Security: An optional feature automatically moves the stop to a minimum profit level after a small favorable move, effectively making the trade risk-free.
⚙️ Key Customization Parameters
The strategy includes key adjustable settings for optimization without revealing the core logic: Trend Sensitivity, Vol. SL Multiplier, Trail Multiplier, and Confirmation Threshold.
🔒 Access & Membership Information (Crucial for Stan Store)
This is a premium, invite-only script. Access is granted only upon successful membership application.
To begin the access process and for all membership details, please review the information located in the Author's Signature directly below this description.
Access permissions are granted manually to your TradingView account after verification of your membership.
⚠️ Mandatory Risk Disclaimer
RISK DISCLOSURE: This strategy is provided for educational and informational use only. It does not constitute financial or trading advice, and is not a recommendation to trade any financial instrument. Trading carries a high risk of loss. Consult a professional financial advisor. Past performance is not an indicator of future results. By using this script, you accept full responsibility for all trading decisions.
Rubotics Williams Fractals Strategy
## 📌 Strategy Overview
This script implements a trend-following breakout strategy that uses Williams Fractals for trade entries, moving average filters for trend confirmation, and static stop-loss and take-profit levels based on either swing points or ATR volatility. It is designed for traders looking for a structured, rules-based system with risk-to-reward targeting and clear visual feedback on the chart.
## ✅ Core Components
### 🔷 1. Fractal-Based Entries
The strategy uses Williams-style fractals to detect local highs and lows. A buy stop is placed just above an up fractal when price is trending upwards, and a sell stop is placed just below a down fractal when price is trending downwards. These fractals act as breakout triggers.
* Configurable number of bars (`n`) to define the fractal.
* Optional entry offset in pips to avoid false breakouts.
### 🔷 2. Trend Filter (MA)
To avoid trading against the trend, the system includes a moving average filter . Entries are only allowed:
* Long: if price is above the MA.
* Short: if price is below the MA.
The moving average type is user-selectable ( SMA, EMA, WMA, or RMA ), with a customizable period.
### 🔷 3. Stop-Loss (SL) Options
You can choose between two SL methods:
* Recent swing high/low : Based on a user-defined lookback.
* ATR-based : SL is set at a multiple of the ATR value at entry.
The script will automatically select the more conservative (wider) SL if both options are enabled.
### 🔷 4. Take-Profit (TP) Modes
TP levels can be calculated in one of two ways:
* Risk:Reward multiple : TP = entry ± (SL distance × RR ratio).
* ATR-based : TP = entry ± (ATR × multiplier).
This gives flexibility in how profit targets are measured and managed.
### 🔷 5. Position Sizing
Orders are sized dynamically based on the percentage of account equity . This helps normalize risk across different market conditions or symbols.
## 📊 Visual Aids & Chart Presentation
The strategy includes helpful visual cues:
* Fractal markers on the chart when new confirmed fractals appear.
* Static horizontal lines for Entry, TP, and SL, visible only while a position is active.
* Color-filled zones :
* Red area between Entry and SL = risk zone
* Green area between Entry and TP = reward zone
These visual layers help users clearly see trade setup logic and risk/reward characteristics.
## 🧪 How the Strategy Works (Summary)
1. Detects new confirmed fractals using the `n/n` lookback logic.
2. Checks if the trend filter (MA) agrees with the direction of the trade.
3. Places a stop order at the next bar once the fractal is confirmed and conditions are met.
4. Upon fill:
* Captures entry price .
* Calculates static TP and SL , which never change after entry.
* Exits the position if either level is hit.
5. Highlights risk/reward zones on the chart until the position is closed.
## ⚠️ Risk Disclaimer
> This strategy is for educational and informational purposes only . It does not constitute financial advice or a trading recommendation. Always test any strategy thoroughly in a simulated environment and ensure it aligns with your personal risk tolerance, trading style, and market understanding. Trading involves risk, and past performance does not guarantee future results .
## 🛠 Customization Options
* Fractal Sensitivity : Adjust `n` for more or less frequent signals.
* MA Filter Type and Length : Adapt to different trends or timeframes.
* Risk Model : Choose between Swing/ATR SL, RR/ATR TP.
* Position Sizing : Set your equity allocation per trade.
* Pip Size & Offset : Tailor to your instrument (e.g., FX, indices, crypto).
## 🔐 Script Transparency
This script is fully open-source . No proprietary logic is hidden. All calculations and logic are visible and editable in the Pine Script code.
## 📅 Best Use Case
Ideal for traders who:
* Prefer price action breakout entries confirmed by trend direction.
* Want clear risk-to-reward setups .
* Appreciate chart-based feedback (e.g., entry/TP/SL lines and zones).
* Are looking for a swing trading strategy adaptable across instruments (FX, crypto, indices, etc.).
SAN_Price Action BOS Strategy Price Action strategy with Break of structure including 20-30EMA crossover with perfect BUY/SELL alert is a beauty of this one
Final Compact RSI • MACD • CCI — One Pane + WMA GateFinal Edit - Compact RSI • MACD • CCI — One Pane + WMA Gate