MACDouble + RSI (rec. 15min-2hr intrv) Uses two sets of MACD plus an RSI to either long or short. All three indicators trigger buy/sell as one (ie it's not 'IF MACD1 OR MACD2 OR RSI > 1 = buy", its more like "IF 1 AND 2 AND RSI=buy", all 3 match required for trigger)
The MACD inputs should be tweaked depending on timeframe and what you are trading. If you are doing 1, 3, 5 min or real frequent trading then 21/44/20 and 32/66/29 or other high value MACDs should be considered. If you are doing longer intervals like 2, 3, 4hr then consider 9/19/9 and 21/44/20 for MACDs (experiment! I picked these example #s randomly).
Ideal usage for the MACD sets is to have MACD2 inputs at around 1.5x, 2x, or 3x MACD1's inputs.
Other settings to consider: try having fastlength1=macdlength1 and then (fastlength2 = macdlength2 - 2). Like 10/26/10 and 23/48/20. This seems to increase net profit since it is more likely to trigger before major price moves, but may decrease profitable trade %. Conversely, consider FL1=MCDL1 and FL2 = MCDL2 + (FL2 * 0.5). Example: 10/26/10 and 22/48/30 this can increase profitable trade %, though may cost some net profit.
Feel free to message me with suggestions or questions.
在脚本中搜索"profit"
MACD, backtest 2015+ only, cut in half and doubledThis is only a slight modification to the existing "MACD Strategy" strategy plugin!
found the default MACD strategy to be lacking, although impressive for its simplicity. I added "year>2014" to the IF buy/sell conditions so it will only backtest from 2015 and beyond ** .
I also had a problem with the standard MACD trading late, per se. To that end I modified the inputs for fast/slow/signal to double. Example: my defaults are 10, 21, 10 so I put 20, 42, 20 in. This has the effect of making a 30min interval the same as 1 hour at 10,21,10. So if you want to backtest at 4hr, you would set your time interval to 2hr on the main chart. This is a handy way to make shorter time periods more useful even regardless of strategy/testing, since you can view 15min with alot less noise but a better response.
Used on BTCCNY OKcoin, with the chart set at 45 min (so really 90min in the strategy) this gave me a percent profitable of 42% and a profit factor of 1.998 on 189 trades.
Personally, I like to set the length/signals to 30,63,30. Meaning you need to triple the time, it allows for much better use of shorter time periods and the backtests are remarkably profitable. (i.e. 15min chart view = 45min on script, 30min= 1.5hr on script)
** If you want more specific time periods you need to try plugging in different bar values: replace "year" with "n" and "2014" with "5500". The bars are based on unix time I believe so you will need to play around with the number for n, with n being the numbers of bars.
Outsidebar vs Insidebar, Illusion Strategy (by ChartArt)WARNING: This strategy does not work! Please don't trade with this strategy
I'm sharing this strategy for the following three educational reasons:
1. You can easily find 100% strategies, but if they only seem to work 100% on one asset, they actually don't work at all. Therefore never backtest your strategy only on one asset, especially forward testing is useless, because it tends to repeat the old patterns. Your strategy has to work on as many different assets as possible.
2. The pyramiding of orders can have an impact on the strategy. In this case if you manually change the strategy settings by increasing it from 1 to 100 pyramiding orders changes the percent profitable on "UKOIL" monthly from 100% to 90% profitable. On other assets you can see very different results. Allowing much more pyramiding orders in this case results in opening orders where the background color highlights appear.
3. The Tradingview backtest beta version currently does not close the last open trade during the backtest. In this case going long on "UKOIL" near the top in 2011 as this strategy did would result in a big loss in 2015. But since the trade is still open and not canceled out by a new short order it still appears as if this strategy works 100% profitable. Which it doesn't.
ISM Indicator As a Strategy Here's a very easy code, plotting the ISM against the SPX. In this exercise, i wanted to see if one could use the ISM indicator only to generate buy/sell signal, and what would be the performance.
What is the ISM
The ISM Manufacturing Index monitors employment, production inventories, new orders and supplier deliveries.By monitoring the ISM Manufacturing Index, investors are able to better understand national economic conditions. When this index is increasing, investors can assume that the stock markets should increase because of higher corporate profits. The opposite can be thought of the bond markets, which may decrease as the ISM Manufacturing Index increases because of sensitivity to potential inflation.
Buy/Sell Signal
ISM above 50 usually good economic condition and vice versa when below 50 . For this code I used 48.50 as my buy/sell signal line.
Results
To test this on a longer time period, I use the SPX index instead of SPY. The results are surprisingly good. 76.92% profitability with 3.03 profit factor.
Conclusion
Investors could use the ISM with other indicators to determine better entry and exit point. I will see if combining the ISM with other custom indicators , could generate better result. Feel free to share your results here.
Cheers
Algo.
MACD + SMA 200 Strategy (by ChartArt)Here is a combination of the classic MACD (moving average convergence divergence indicator) with the classic slow moving average SMA with period 200 together as a strategy.
This strategy goes long if the MACD histogram and the MACD momentum are both above zero and the fast MACD moving average is above the slow MACD moving average. As additional long filter the recent price has to be above the SMA 200. If the inverse logic is true, the strategy goes short. For the worst case there is a max intraday equity loss of 50% filter.
Save another $999 bucks with my free strategy.
This strategy works in the backtest on the daily chart of Bitcoin, as well as on the S&P 500 and the Dow Jones Industrial Average daily charts. Current performance as of November 30, 2015 on the SPX500 CFD daily is percent profitable: 68% since the year 1970 with a profit factor of 6.4. Current performance as of November 30, 2015 on the DOWI index daily is percent profitable: 51% since the year 1915 with a profit factor of 10.8.
All trading involves high risk; past performance is not necessarily indicative of future results. Hypothetical or simulated performance results have certain inherent limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not actually been executed, the results may have under- or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown.
CamarillaStrategy -V1 - H4 and L4 breakout - exits addedExits added using trailing stops.
2.6 Profit Factor and 76% Profitable on SPY , 5M - I think it's a pretty good number for an automated strategy that uses Pivots. I don't think it's possible to add volume and day open price in relation to pivot levels -- that's what I do manually ..
Still trying to add EMA for exits.. it will increase profitability. You can play in pinescript with trailing stops entries..
Grid Bot Smart Buy and Tp Strategy Description
A next-generation auto-grid system that turns volatility into profit.
This strategy builds a dynamic grid between your defined Upper and Lower limits.
Each grid line acts as a buy zone — the bot automatically opens long positions when price dips to these levels and closes them with Take Profit (TP) targets as price recovers.
It doesn’t predict; it reacts.
By using dynamic position sizing and multi-step TP multipliers, the bot scales entries intelligently, locks profits consistently, and adapts to any price environment.
ETH MACD DEMA Strategy By Harvey (Protected Script)Strategy Description – MACD + DEMA Quantitative Trading System
This strategy combines the Moving Average Convergence Divergence (MACD) indicator with a Double Exponential Moving Average (DEMA) trend filter to capture both momentum shifts and trend reversals with precision.
It’s designed for crypto perpetual futures, optimized for 1H–4H timeframes, and supports both long and short entries with configurable leverage and position sizing.
Core Logic
MACD Momentum Filter: Detects momentum acceleration and divergence between short- and long-term EMAs to confirm directional bias.
DEMA Trend Filter: Reduces lag compared to traditional EMAs, improving timing for entries and exits.
ATR-based Stop & Take-Profit: Dynamic risk control using ATR multipliers for stop-loss and target placement.
Dual-side Logic: Separate long/short conditions ensure symmetry and flexibility across market regimes.
Webhook Integration: Ready for automated execution via trading bots (e.g., Binance, Hyperliquid, Aster) using JSON-based alerts.
Key Features
Configurable parameters for DEMA, MACD, ATR, and leverage.
Optional higher-timeframe (HTF) trend confirmation.
Pyramiding control and adaptive volatility filters.
Partial take-profit and full-stop exit logic.
Detailed alert messages formatted for REST API automation.
Use Case
Ideal for traders seeking a balanced trend-following and momentum strategy, combining fast-moving averages with robust risk management.
Suitable for algorithmic execution or manual validation with clear visual cues on TradingView.
💡 Important:
To ensure correct signal generation, please set your chart’s Source to “MACD DEMA: signal.”
For optimal trend filtering, enable the HTF filter and set it to 240 (4H) to align lower-timeframe entries with higher-timeframe trends.
5 分鐘前
發行說明
Strategy Description – MACD + DEMA Quantitative Trading System
This strategy combines the Moving Average Convergence Divergence (MACD) indicator with a Double Exponential Moving Average (DEMA) trend filter to capture both momentum shifts and trend reversals with precision.
It’s designed for crypto perpetual futures, optimized for 1H–4H timeframes, and supports both long and short entries with configurable leverage and position sizing.
Core Logic
MACD Momentum Filter: Detects momentum acceleration and divergence between short- and long-term EMAs to confirm directional bias.
DEMA Trend Filter: Reduces lag compared to traditional EMAs, improving timing for entries and exits.
ATR-based Stop & Take-Profit: Dynamic risk control using ATR multipliers for stop-loss and target placement.
Dual-side Logic: Separate long/short conditions ensure symmetry and flexibility across market regimes.
Webhook Integration: Ready for automated execution via trading bots (e.g., Binance, Hyperliquid, Aster) using JSON-based alerts.
Key Features
Configurable parameters for DEMA, MACD, ATR, and leverage.
Optional higher-timeframe (HTF) trend confirmation.
Pyramiding control and adaptive volatility filters.
Partial take-profit and full-stop exit logic.
Detailed alert messages formatted for REST API automation.
Use Case
Ideal for traders seeking a balanced trend-following and momentum strategy, combining fast-moving averages with robust risk management.
Suitable for algorithmic execution or manual validation with clear visual cues on TradingView.
💡 Important:
To ensure correct signal generation, please set your chart’s Source to “MACD DEMA: signal.”
For optimal trend filtering, enable the HTF filter and set it to 240 (4H) to align lower-timeframe entries with higher-timeframe trends.
Evergreen Solutions - ONEOverview
ONE is a strategy designed for all markets that captures short-term momentum in high-volatility conditions. It integrates RSI, volume analysis, chop filters, and moving to identify when markets shift from range-based choppiness to high-probability opportunities. The system is structured to be reactive, focusing on trades with strong volatility expansion and statistically favorable win potential.
ONE is a protected script because it’s long and short signals are based off of custom coded confirmations. That is what makes our script unique.
How to Use It
- Equities: A reliable options or swing-trading companion for large-cap tickers.
- Futures: Refined for intraday structure on index products.
- Forex: Designed to reduce false starts on illiquid currency pairs.
- Crypto: Tailored for the volatility of 24/7 markets while maintaining composure in high volatility.
When ONE executes a trade, a SL and TP plot is generated using an ATR range. These plots serve as delineated boundaries for the trade. Simply place your SL and TP, and walk away.
Modes of Operation
ONE Mode – A single-entry, single-exit design for simplicity.
Breakeven Mode – Shifts the stop to entry once a defined profit threshold is met, protecting capital in uncertain markets.
Multi Mode – Scales entries and exits to capture extended runs and adapt to different volatility regimes.
Conceptual Logic
Trend Detection: Uses custom and standard moving averages to define short-term directional bias.
Volatility Filter: Custom chop filters suppress trades during ranging price action.
Momentum Signal: RSI combined with volume analysis highlights moments of rapid volatility expansion and strong price acceleration.
Execution Rule: All trades trigger only on bar open; no repainting or lookahead data is used.
What Makes ONE Different
ONE’s originality lies in it’s trading modes and the integration of multiple filters (RSI + volume + choppiness + adaptive MAs) into a single framework. This reduces conflicting signals, emphasizes risk control, and keeps decision-making transparent for the trader.
- Consistency: ONE adapts seamlessly to all markets. It does not rely on hidden market structure; its design is universal.
- Simplicity: No learning curve. ONE was built so any trader — beginner or advanced — can trade immediately.
- Risk: Every mode respects capital preservation. Decisions are made to avoid catastrophic losses.
- Transparency: New positions enter only on bar open, with no hidden repainting or misleading lookaheads.
- Structure: ONE reflects the discipline of professional trading: structured, rules-based, and repeatable under changing conditions.
Backtest Defaults
Symbol: CME_MINI:NQ1!
Backtest range: Oct 13, 2024 – Oct 13, 2025
Account size: $10,000
Total trades: 469
Win rate: 68%
Total P&L: $97,014
Profit factor: 1.54
Sharpe ratio: 0.68
Sortino ratio: 9.59
Commission:$0.88 / contract
Slippage: 1 tick
Limitations
ONE does not guarantee profits. Effectiveness depends on liquidity, volatility, and market conditions. Past results do not imply future returns.
Ekoparaloji Cyrpto StrategyEkoparaloji Crypto Strategy - User Information Document
📊 Strategy Overview
This strategy provides long-term position management in cryptocurrency markets using the averaging down (pyramiding) technique. The basic logic is to controllably grow positions as prices decline and exit when specific profit targets are reached.
🎯 Key Features
✅ Automatic Entry System
Market direction is determined using a proprietary trend identification algorithm
Trades are only opened in uptrends
Initial position opens automatically when specific conditions are met
📈 Pyramiding Mechanism
New positions are automatically added as price decreases
Up to 10 positions can be added maximum
Each addition occurs at predetermined decline levels
Risk management through dynamic position sizing
💰 Profit and Loss Management
Take Profit: All positions close when the specified percentage above average cost is reached
Stop Loss (Optional): Protects a specified percentage of total capital
A certain ratio of available capital is used in each trade
📊 Visual Tracking System
The following information is displayed in real-time on the chart:
✅ Average cost level
✅ Profit target level
✅ Stop loss level (if active)
✅ Next pyramiding level
✅ Liquidation (capital reset) level
✅ Trend indicator
🛡️ Risk Management Features
1. Dynamic Capital Protection
Automatic exit when losses exceed a specified percentage of total capital
Complete loss scenario can be previewed through liquidation level calculation
2. Position Control System
Protection preventing multiple trades on the same bar
Double trigger prevention mechanism
Maximum position limit
3. Time Filter
Optional trading within a date range
Ideal for testing on historical data
📱 Information Panel
Information table always visible in the upper right corner of the strategy:
When Position is Open:
Number of active positions
Average cost
Current price
Total capital status
Capital loss percentage
Profit target
Stop loss level and distance
Next entry level
Liquidation level and distance
When No Position:
Market trend (Uptrend/Downtrend)
Ready to trade?
Reason for waiting
Initial position size
Target profit percentage
⚙️ Adjustable Parameters
Customizable by user:
💵 Capital Amount: Base amount to be used for each position
📊 Profit Target: Profit percentage at which to exit
🛑 Stop Loss: Usage status and maximum loss percentage
📅 Time Filter: Start and end dates for testing
💬 Trade Comments: Custom labels for each trade
📘 Understanding Leverage Effect
1. What is the Leverage Effect?
Although there's no real leverage in the spot market, when Capital Amount is increased, capital usage works like leverage:
Capital Amount 5% (1.0x): 100% capital usage with full pyramiding = All your money in trades
Capital Amount 10% (2.0x): 200% capital usage with full pyramiding = Attempting to open trades worth 2x your capital
Capital Amount 15% (3.0x): 300% capital usage with full pyramiding = Attempting to open trades worth 3x your capital
⚠️ IMPORTANT: If your capital runs out in the spot market, you cannot open new positions, therefore it's recommended to keep Capital Amount at 5% or below!
⚠️ Important Warnings
Pyramiding Risk: If price continues to decline, position grows and risk increases
Capital Requirements: Up to 10 positions can be added, requiring sufficient capital
Trend Dependency: Only works in uptrends
Backtest Results: Past performance is not a guarantee of future results
Real Trading Risks: Slippage, commissions, and market conditions can affect results
🎓 How to Use
Add the strategy to your chart
Adjust parameters according to your risk appetite
Examine past performance by backtesting
Optionally set up alerts to activate notifications
Test with paper trading first
This strategy is for educational purposes. Do your own research and only trade with capital you can afford to lose.
Disclaimer: This strategy is not financial advice. All investment decisions are the user's responsibility.
Happy trading! 📊
Ekoparaloji Strategy Crypto Ekoparaloji Crypto Strategy - User Information Document
📊 Strategy Overview
This strategy provides long-term position management in cryptocurrency markets using the averaging down (pyramiding) technique. The basic logic is to controllably grow positions as prices decline and exit when specific profit targets are reached.
🎯 Key Features
✅ Automatic Entry System
Market direction is determined using a proprietary trend identification algorithm
Trades are only opened in uptrends
Initial position opens automatically when specific conditions are met
📈 Pyramiding Mechanism
New positions are automatically added as price decreases
Up to 10 positions can be added maximum
Each addition occurs at predetermined decline levels
Risk management through dynamic position sizing
💰 Profit and Loss Management
Take Profit: All positions close when the specified percentage above average cost is reached
Stop Loss (Optional): Protects a specified percentage of total capital
A certain ratio of available capital is used in each trade
📊 Visual Tracking System
The following information is displayed in real-time on the chart:
✅ Average cost level
✅ Profit target level
✅ Stop loss level (if active)
✅ Next pyramiding level
✅ Liquidation (capital reset) level
✅ Trend indicator
🛡️ Risk Management Features
1. Dynamic Capital Protection
Automatic exit when losses exceed a specified percentage of total capital
Complete loss scenario can be previewed through liquidation level calculation
2. Position Control System
Protection preventing multiple trades on the same bar
Double trigger prevention mechanism
Maximum position limit
3. Time Filter
Optional trading within a date range
Ideal for testing on historical data
📱 Information Panel
Information table always visible in the upper right corner of the strategy:
When Position is Open:
Number of active positions
Average cost
Current price
Total capital status
Capital loss percentage
Profit target
Stop loss level and distance
Next entry level
Liquidation level and distance
When No Position:
Market trend (Uptrend/Downtrend)
Ready to trade?
Reason for waiting
Initial position size
Target profit percentage
⚙️ Adjustable Parameters
Customizable by user:
💵 Capital Amount: Base amount to be used for each position
📊 Profit Target: Profit percentage at which to exit
🛑 Stop Loss: Usage status and maximum loss percentage
📅 Time Filter: Start and end dates for testing
💬 Trade Comments: Custom labels for each trade
📘 Understanding Leverage Effect
1. What is the Leverage Effect?
Although there's no real leverage in the spot market, when Capital Amount is increased, capital usage works like leverage:
Capital Amount 5% (1.0x): 100% capital usage with full pyramiding = All your money in trades
Capital Amount 10% (2.0x): 200% capital usage with full pyramiding = Attempting to open trades worth 2x your capital
Capital Amount 15% (3.0x): 300% capital usage with full pyramiding = Attempting to open trades worth 3x your capital
⚠️ IMPORTANT: If your capital runs out in the spot market, you cannot open new positions, therefore it's recommended to keep Capital Amount at 5% or below!
⚠️ Important Warnings
Pyramiding Risk: If price continues to decline, position grows and risk increases
Capital Requirements: Up to 10 positions can be added, requiring sufficient capital
Trend Dependency: Only works in uptrends
Backtest Results: Past performance is not a guarantee of future results
Real Trading Risks: Slippage, commissions, and market conditions can affect results
🎓 How to Use
Add the strategy to your chart
Adjust parameters according to your risk appetite
Examine past performance by backtesting
Optionally set up alerts to activate notifications
Test with paper trading first
This strategy is for educational purposes. Do your own research and only trade with capital you can afford to lose.
Disclaimer: This strategy is not financial advice. All investment decisions are the user's responsibility.
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.
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)。
适用市场:股票、外汇、加密货币等各类市场均可。
提示:此策略为历史研究与学习用途,不构成投资建议。实际交易请结合自身风险管理。
SHALOM TRADING HUB – Bollinger Band SystemSHALOM TRADING HUB – Bollinger Band System (Strategy)
All-in-one BB system with both Breakout and Mean-Reversion modes.
Automatic ENTRY / EXIT / STOP-LOSS, optional Mid-Band Exit, ATR or % risk, and built-in alerts. Backtest-ready.
What it does
Bollinger Bands: Basis = SMA(length); Upper/Lower = ±(mult × StDev).
Signals
Breakout mode
LONG → price crosses above Upper
SHORT → price crosses below Lower
Mean-Reversion mode
LONG → price re-enters above Lower
SHORT → price re-enters below Upper
Risk / Exits
ATR mode: SL = ATR × Mult, TP = SL × Risk:Reward
% mode: SL = %Stop, TP = %Take Profit
Optional Mid-Band (Basis) cross exit.
Visuals: BB lines + active Entry / SL / TP overlays + last-bar price labels.
Alerts: Breakout / Mean-Reversion signals and TP/SL hits.
Inputs (Settings)
Source, Length, Multiplier – BB calculation.
Signal Mode – Breakout or Mean Reversion.
Use ATR Stop/Target? – On = ATR; Off = %.
ATR Length, ATR Mult (SL), Risk:Reward (TP)
% Stop, % Take Profit (when ATR is Off)
Also exit on Mid-Band cross? – On/Off.
Alerts only on bar close? – Filters to confirmed bars.
Entry / Exit / Stop
Entry: Auto when the chosen signal condition triggers.
Stop-Loss: Placed from ATR or % settings.
Take-Profit: Set by R:R or % settings.
Mid-Band Exit (optional):
LONG → exit if close < Basis
SHORT → exit if close > Basis
Alerts (How-to)
Add the strategy to the chart → click Alerts (⚠️).
Condition: “SHALOM BB System” → choose:
BB Breakout LONG / SHORT
BB Mean-Reversion LONG / SHORT
Long TP Hit / Long SL Hit / Short TP Hit / Short SL Hit
Choose Once per bar or Once per bar close.
Backtest Tips
Match timeframe to your instrument.
Tune ATR/Mult, R:R, % to volatility.
Session filter (e.g., 09:20–15:20 IST) can be added easily in code.
Default pyramiding = 0; raise if you want multiple entries.
SMC 自動交易 - 4HR- BTC適用# SMC Automated Trading Strategy Whitepaper - Stepped Enhanced Edition
## 1. Strategy Overview
This strategy is designed based on the Smart Money Concept (SMC), integrating Order Block (OB), Change of Character (CHoCH), and strict pullback confirmation conditions. The goal is to enhance trading accuracy and strictly control risk, specifically tailored for trading competitions, meeting the requirements of stability and efficiency.
### Core Strategy Concepts:
- Precise identification of key trend reversal points.
- Strict pullback confirmation to avoid chasing tops or bottoms.
- Clear risk management and take-profit mechanisms to maintain stable risk-reward ratio.
- Supports trading time filtering (Kill Zone) to capture prime volatility windows.
- Multiple visual aids for quick in-trade signal recognition.
## 2. Strategy Logic Flow
### 1. Kill Zone (Optional Activation)
- Default trading time: Taiwan time 15:00 - 18:00.
- Purpose: Focus on high-volatility periods to reduce false signals in choppy markets.
### 2. Order Block Detection
- Current candle range exceeds the previous candle by a specified multiplier (default 0.8).
- Bullish OB: Bullish candle with expanded range.
- Bearish OB: Bearish candle with expanded range.
- Flexible OB sensitivity adjustment according to market volatility.
### 3. Change of Character (CHoCH)
- Initial trend reversal confirmation:
- Bullish CHoCH: Close above previous candle’s high.
- Bearish CHoCH: Close below previous candle’s low.
### 4. Pullback Confirmation (Core Condition)
- Avoid premature entries by requiring a pullback to the prior OB:
- Long: Pullback touches the previous Bullish OB high.
- Short: Pullback touches the previous Bearish OB low.
### 5. Fair Value Gap (FVG) Detection (Optional)
- Detect price imbalances as additional confirmation signals.
## 3. Entry Logic
### Long Position:
- Previous Bullish OB is formed.
- Current candle completes a pullback to the prior OB high.
- Current candle closes above the previous high (CHoCH confirmation).
- (Optional) Within Kill Zone.
### Short Position:
- Previous Bearish OB is formed.
- Current candle completes a pullback to the prior OB low.
- Current candle closes below the previous low (CHoCH confirmation).
- (Optional) Within Kill Zone.
## 4. Risk Management & Exit Strategy
### Stop Loss:
- Long: Current candle’s low minus buffer points (default 50 points).
- Short: Current candle’s high plus buffer points (default 50 points).
### Take Profit:
- Default Risk-Reward Ratio (RR): 2.0 (customizable).
- Automatically calculates target take-profit level.
### Full Automation:
- This is a fully automated strategy. Orders are placed automatically upon conditions being met, requiring no manual intervention.
## 5. Visual Aids
- Bullish OB: Green upward triangle.
- Bearish OB: Red downward triangle.
- Bullish CHoCH: Blue circle.
- Bearish CHoCH: Orange circle.
- FVG: Highlighted zones (optional).
> **Advantage:** Quick market status recognition during trades, improving strategy transparency.
## 6. Strategy Advantages
✅ Dual trend reversal confirmation: OB + CHoCH.
✅ Strict pullback requirement to reduce false breakouts.
✅ Clear risk control and stable risk-reward ratio.
✅ Visual aids + time filter for clear in-trade decisions.
✅ Fully automated trading reduces human error.
## 7. Application Scenarios
- Trading competitions: Designed for high win-rate and strict risk control.
- FTMO and similar evaluation challenges.
- Intraday or swing trading strategy frameworks.
- High-volatility assets: Crypto / Forex / Index CFDs.
## 8. Risk Warning
- Strategy is based on historical backtesting; live trading should consider slippage and liquidity risks.
- During high volatility periods, use proper money management tools and strictly execute stop losses.
## 9. Version Note
Version: Stepped Enhanced Edition (Updated April 2025)
Developer: natwad3000
Universal Breakout Strategy [KedArc Quant]Description:
A flexible breakout framework where you can test different logics (Prev Day, Bollinger, Volume, ATR, EMA Trend, RSI Confirm, Candle Confirm, Time Filter) under one system.
Choose your breakout mode, and the strategy will handle entries, exits, and optional risk management (ATR stops, take-profits, daily loss guard, cooldowns).
An on-chart info table shows live mode values (like Prev High/Low, Bollinger levels, RSI, etc.) plus P&L stats for quick analysis.
Use it to compare which breakout style works best on your instrument and timeframe, whether intraday, swing, or positional trading
🔑 Why it’s useful
* Flexibility: Switch between breakout strategies without loading different indicators.
* Clarity: On-chart info table displays current mode, relevant indicator levels, and live strategy P&L stats.
* Testing efficiency: Quickly A/B test different breakout styles under the same backtest environment.
* Transparency: Every trade is rule-based and displayed with entry/exit markers.
🚀 How it helps traders
* Lets you experiment with breakout strategies quickly without loading multiple scripts.
* Helps identify which breakout method fits your instrument & timeframe.
* Gives clear on-chart visual + statistical feedback for confident decision-making.
⚙️ Input Configuration
* Breakout Mode → choose which strategy to test:
* *Prev Day* → breakouts of yesterday’s High/Low.
* *Bollinger* → Upper/Lower BB pierce.
* *Volume* → Breakout confirmed with volume above average.
* *ATR Stop* → Wide range breakout using ATR filter.
* *Time Filter* → Breakouts inside defined session hours.
* *EMA Trend* → Breakouts only in EMA fast > slow alignment.
* *RSI Confirm* → Breakouts with RSI confirmation (e.g. >55 for longs).
* *Candle Confirm* → Breakouts validated by bullish/bearish candle.
* Lookback / ATR / Bollinger inputs → adjust sensitivity.
* Intrabar mode → option to evaluate breakouts using bar highs/lows instead of closes.
* Table options → show/hide info table, show/hide P&L stats, choose corner placement.
📈 Entry & Exit Logic
* Entry → occurs when breakout condition of chosen mode is met.
* Exit → default exits via opposite signals or optional stop/target if enabled.
* Session filter → optional auto-flat at session end.
* P&L management → optional daily loss guard, cooldown between trades, and ATR-based stop/take profit.
❓ FAQ — Choosing the best setup
Q: Which strategy should I use for which chart?
* *Prev Day Breakouts*: Best on indices, FX, and liquid futures with strong daily levels.
* *Bollinger*: Works well in range-bound environments, or crypto pairs with volatility compression.
* *Volume*: Good on equities where breakout strength is tied to volume spikes.
* *ATR Stop*: Suits volatile instruments (commodities, crypto).
* *EMA Trend*: Useful in trending markets (stocks, indices).
* *RSI Confirm*: Adds momentum filter, better for swing trades.
* *Candle Confirm*: Ideal for scalpers needing visual confirmation.
* *Time Filter*: For intraday traders who want signals only in high-liquidity sessions.
Q: What timeframe should I use?
* Intraday traders → 5m to 15m (Time Filter, Candle Confirm).
* Swing traders → 1H to 4H (EMA Trend, RSI Confirm, ATR Stop).
* Position traders → Daily (Prev Day, Bollinger).
* Breakout
A trade entry condition triggered when price crosses above a resistance level (for longs) or below a support level (for shorts).
* Prev Day High/Low
Formula:
Prev High = High of (Day )
Prev Low = Low of (Day )
* Bollinger Bands
Formula:
Basis = SMA(Close, Length)
Upper Band = Basis + (Multiplier × StdDev(Close, Length))
Lower Band = Basis – (Multiplier × StdDev(Close, Length))
* Volume Confirmation
A breakout is only valid if:
Volume > SMA(Volume, Length)
* ATR (Average True Range)
Measures volatility.
Formula:
ATR = SMA(True Range, Length)
where True Range = max(High–Low, |High–Close |, |Low–Close |)
* EMA (Exponential Moving Average)
Weighted moving average giving more weight to recent prices.
Formula:
EMA = (Price × α) + (EMA × (1–α))
with α = 2 / (Length + 1)
* RSI (Relative Strength Index)
Momentum oscillator scaled 0–100.
Formula:
RSI = 100 – (100 / (1 + RS))
where RS = Avg(Gain, Length) ÷ Avg(Loss, Length)
* Candle Confirmation
Bullish candle: Close > Open AND Close > Close
Bearish candle: Close < Open AND Close < Close
Win Rate (%)
Formula:
Win Rate = (Winning Trades ÷ Total Trades) × 100
* Average Trade P&L
Formula:
Avg Trade = Net Profit ÷ Total Trades
📊 Performance Notes
The Universal Breakout Strategy is designed as a framework rather than a single-asset optimized system. Results will vary depending on the chart, timeframe, and asset chosen.
On the current defaults (15-minute, INR-denominated example), the backtest produced 132 trades over the selected period. This provides a statistically sufficient sample size.
Win rate (~35%) is relatively low, but this is balanced by a positive reward-to-risk ratio (~1.8). In practice, a lower win rate with larger wins versus smaller losses is sustainable.
The average P&L per trade is close to breakeven under default settings. This is expected, as the strategy is not tuned for a single symbol but offered as a universal breakout framework.
Commissions (0.1%) and slippage (1 tick) are included in the simulation, ensuring realistic conditions.
Risk management is conservative, with order sizing set at 1 unit per trade. This avoids over-leveraging and keeps exposure well under the 5-10% equity risk guideline.
👉 Traders are encouraged to:
Experiment with inputs such as ATR period, breakout length, or Bollinger parameters.
Test across different timeframes and instruments (equities, futures, forex, crypto) to find optimal setups.
Combine with filters (trend direction, volatility regimes, or volume conditions) for further refinement.
⚠️ Disclaimer This script is provided for educational purposes only.
Past performance does not guarantee future results.
Trading involves risk, and users should exercise caution and use proper risk management when applying this strategy.
RSI Momentum ScalperOverview
The "RSI Momentum Scalper" is a Pine Script v5 strategy crafted for trading highly volatile markets, with a special focus on newly listed cryptocurrencies. This strategy harnesses the Relative Strength Index (RSI) alongside volume analysis and momentum thresholds to pinpoint short-term trading opportunities. It supports both long and short trades, managed with customizable take profit, stop loss, and trailing stop levels, which are visually plotted on the chart for easy tracking.
Why I Created This Strategy
I developed the "RSI Momentum Scalper" because I was seeking a reliable trading strategy tailored to newly listed, highly volatile cryptocurrencies. These assets often experience rapid price fluctuations, rendering traditional strategies less effective. I aimed to create a tool that could exploit momentum and volume spikes while managing risk through adaptable exit parameters. This strategy is designed to address that need, offering a flexible approach for traders in dynamic crypto markets.
How It Works
The strategy utilizes RSI to identify momentum shifts, combined with volume confirmation, to trigger long or short entries. Trades are controlled with take profit, stop loss, and trailing stop levels, which adjust dynamically as the price moves in your favor. The trailing stop helps lock in profits, while the plotted exit levels provide clear visual cues for trade management.
Customizable Settings
The script is highly customizable, allowing you to adjust it to various market conditions and trading styles. Here’s a brief overview of the key settings:
Trade Mode: Select "Both," "Long Only," or "Short Only" to determine the trade direction.
(Default: Both)
RSI Length: Sets the lookback period for the RSI calculation (2 to 30).
(Default: 8)
A shorter length increases RSI sensitivity, suitable for volatile assets.
RSI Overbought: Defines the upper RSI threshold (60 to 99) for short entries.
(Default: 90)
Higher values signal stronger overbought conditions.
RSI Oversold: Defines the lower RSI threshold (1 to 40) for long entries.
(Default: 10)
Lower values indicate stronger oversold conditions.
RSI Momentum Threshold: Sets the minimum RSI momentum change (1 to 15) to trigger entries.
(Default: 14)
Adjusts the sensitivity to price momentum.
Volume Multiplier: Multiplies the volume moving average to filter high-volume bars (1.0 to 3.0).
(Default: 1)
Higher values require stronger volume confirmation.
Volume MA Length: Sets the lookback period for the volume moving average (5 to 50).
(Default: 13)
Influences the volume trend sensitivity.
Take Profit %: Sets the profit target as a percentage of the entry price (0.1 to 10.0).
(Default: 4.15)
Determines when to close a winning trade.
Stop Loss %: Sets the loss limit as a percentage of the entry price (0.1 to 6.0).
(Default: 1.85)
Protects against significant losses.
Trailing Stop %: Sets the trailing stop distance as a percentage (0.1 to 4.0).
(Default: 2.55)
Locks in profits as the price moves favorably.
Visual Features
Exit Levels: Take profit (green), fixed stop loss (red), and trailing stop (orange) levels are plotted when in a position.
Performance Table: Displays win rate, total trades, and net profit in the top-right corner.
How to Use
Add the strategy to your chart in TradingView.
Adjust the input settings based on the cryptocurrency and timeframe you’re trading.
Monitor the plotted exit levels for trade management.
Use the performance table to assess the strategy’s performance over time.
Notes
Test the strategy on a demo account or with historical data before live trading.
The strategy is optimized for short-term scalping; adjust settings for longer timeframes if needed.
SMA Cross 5/50 with Trend Filter & Risk Management by JuggiDThe basic SMA (5/50) crossover strategy can be enhanced to improve profitability by adding filters and risk management. For example, a long entry is triggered only when the fast SMA (5) crosses above the slow SMA (50) **and** the price is above the SMA (200), ensuring trades align with the major trend. Similarly, a short entry requires the crossover confirmation plus the price staying below the SMA (200). To reduce false signals and protect capital, stop-loss and take-profit levels can be set automatically (e.g., 2% loss, 5% gain), while additional confirmation tools such as volume spikes, RSI above 50, or MACD momentum can be applied to validate stronger signals. This approach helps avoid whipsaws in sideways markets and allows trades to capture larger moves while minimizing downside risk.
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.
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.
EMA inFusion Pro - Multiple SourcesEMA Fusion Pro: Dynamic Trend & Momentum Strategy with Three Exit Modes
EMA Fusion Pro is a highly customizable, multi-exit trend-following strategy designed for traders who value both precision and flexibility. By leveraging exponential moving averages (EMA), average directional index (ADX), and volume analysis, this strategy aims to capture trending market moves while offering three distinct exit modes for optimal risk management across varying market conditions.
Strategy Overview
This strategy systematically identifies potential entry points using a moving average crossover with highly configurable data sources (including price, volume, rate of change, or their Heikin Ashi versions) and filters signal quality with ADX trend strength and volume spikes. Each trade is managed with one of three advanced exit methodologies—reverse signal, ATR-based stop/take profit, or fixed percentage—giving you the control to adapt your risk profile to different market regimes.
Key Features
Customizable EMA Source: Calculate the core trend-filtering EMA from price (default), volume, rate of change, or their Heikin Ashi counterparts for unique market perspectives.
Trend Filter with ADX: Confirm entries only when the trend is strong, as measured by the user-adjustable ADX threshold.
Volume Spike Confirmation: Optional filter to only take trades with above-average volume activity, reducing false signals.
Three Exit Modes:
Reverse Signal: Exit trades when a new, opposite entry signal occurs.
ATR-Based Stop/Take Profit: Dynamic risk management using multiples of the average true range (ATR) for both take profit and stop loss.
Percent-Based Stop/Take Profit: Fixed-percentage risk management with user-defined thresholds.
Visual Annotations: Signal markers, EMA line color-coded by source, trend background coloring, and optional ATR/percent-based TP/SL levels.
Info Panel: Real-time display of all core indicators, current trading mode, exit parameters, and position status for quick oversight.
How It Works
Entry Logic: A crossover signal (above/below the EMA) triggers a new entry, but only if both ADX trend strength and (optionally) volume spike conditions are met.
Exit Logic: Three selectable modes allow you to exit trades on reverse signals, at a dynamic ATR-based profit or loss, or at a fixed percentage gain/loss.
Flexible Data Analysis: The EMA source can be chosen from six options—standard price, volume, rate of change, or their Heikin Ashi variants—allowing experimentation with different market dimensions.
Risk Management: All exits are precisely controlled, either by the next opposing signal, by volatility-adjusted levels, or by fixed risk/reward ratios.
Backtest & Optimization: The strategy is fully backtestable within TradingView’s Strategy Tester, with adjustable parameters for optimization.
Customization & Usage
Indicator Source: Select your preferred data type for EMA calculation, opening the door to creative strategy variations (e.g., volume momentum, pure price trend, rate of change divergence).
Filter Toggles: Enable/disable ADX and volume filters as desired—useful for different market environments.
Exit Mode Selection: Switch between reverse, ATR, or percent-based exits with a single parameter—ideal for adapting to ranging vs. trending markets.
Visual Clarity: The EMA line color reflects its underlying source, and the info panel summarizes all critical values for easy monitoring.
Who Should Use This Strategy?
Trend Followers seeking to ride strong moves with multiple exit options.
Experienced Traders who want to experiment with different data types (volume, momentum, Heikin Ashi) for trend analysis.
Algorithmic Traders looking for a robust, flexible base to build upon with their own ideas.
Getting Started
Apply the script to your chart and review default settings.
Customize parameters—EMA length, ADX threshold, volume settings, exit type—as desired.
Backtest on multiple instruments and timeframes to evaluate performance.
Optimize filters, exit rules, and risk parameters for your preferred trading style.
Monitor with the real-time info panel and trade alerts.
Disclaimer
This script is for educational and entertainment purposes only. It is not financial advice. Past performance is not indicative of future results. Always conduct thorough testing and consider your risk tolerance before trading real capital.
— Happy Trading —
Feel free to adapt, share, and contribute to this open-source strategy!
J12Matic Builder by galgoomA flexible Renko/tick strategy that lets you choose between two entry engines (Multi-Source 3-way or QBand+Moneyball), with a unified trailing/TP exit engine, NY-time trading windows with auto-flatten, daily profit/loss and trade-count limits (HALT mode), and clean webhook routing using {{strategy.order.alert_message}}.
Highlights
Two entry engines
Multi-Source (3): up to three long/short sources with Single / Dual / Triple logic and optional lookback.
QBand + Moneyball: Gate → Trigger workflow with timing windows, OR/AND trigger modes, per-window caps, optional same-bar fire.
Unified exit engine: Trailing by Bricks or Ticks, plus optional static TP/SL.
Session control (NY time): Evening / Overnight / NY Session windows; auto-flatten at end of any enabled window.
Day controls: Profit/Loss (USD) and Trade-count limits. When hit, strategy HALTS new entries, shows an on-chart label/background.
Alert routing designed for webhooks: Every order sets alert_message= so you can run alerts with:
Condition: this strategy
Notify on: Order fills only
Message: {{strategy.order.alert_message}}
Default JSONs or Custom payloads: If a Custom field is blank, a sensible default JSON is sent. Fill a field to override.
How to set up alerts (the 15-second version)
Create a TradingView alert with this strategy as Condition.
Notify on: Order fills only.
Message: {{strategy.order.alert_message}} (exactly).
If you want your own payloads, paste them into Inputs → 08) Custom Alert Payloads.
Leave blank → the strategy sends a default JSON.
Fill in → your text is sent as-is.
Note: Anything you type into the alert dialog’s Message box is ignored except the {{strategy.order.alert_message}} token, which forwards the payload supplied by the strategy at order time.
Publishing notes / best practices
Renko users: Make sure “Renko Brick Size” in Inputs matches your chart’s brick size exactly.
Ticks vs Bricks: Exit distances switch instantly when you toggle Exit Units.
Same-bar flips: If enabled, a new opposite signal will first close the open trade (with its exit payload), then enter the new side.
HALT mode: When day profit/loss limit or trade-count limit triggers, new entries are blocked for the rest of the session day. You’ll see a label and a soft background tint.
Session end flatten: Auto-closes positions at window ends; these exits use the “End of Session Window Exit” payload.
Bar magnifier: Strategy is configured for on-close execution; you can enable Bar Magnifier in Properties if needed.
Default JSONs (used when a Custom field is empty)
Open: {"event":"open","side":"long|short","symbol":""}
Close: {"event":"close","side":"long|short|flat","reason":"tp|sl|flip|session|limit_profit|limit_loss","symbol":""}
You can paste any text/JSON into the Custom fields; it will be forwarded as-is when that event occurs.
Input sections — user guide
01) Entries & Signals
Entry Logic: Choose Multi-Source (3) or QBand + Moneyball (pick one).
Enable Long/Short Signals: Master on/off switches for entering long/short.
Flip on opposite signal: If enabled, a new opposite signal will close the current position first, then open the other side.
Signal Logic (Multi-Source):
Single: any 1 of the 3 sources > 0
Dual: Source1 AND Source2 > 0
Triple (default): 1 AND 2 AND 3 > 0
Long/Short Signal Sources 1–3: Provide up to three series (often indicators). A positive value (> 0) is treated as a “pulse”.
Use Lookback: Keeps a source “true” for N bars after it pulses (helps catch late triggers).
Long/Short Lookback (bars): How many bars to remember that pulse.
01b) QBands + Moneyball (Gate -> Trigger)
Allow same-bar Gate->Trigger: If ON, a trigger can fire on the same bar as the gate pulse.
Trigger must fire within N bars after Gate: Size of the gate window (in bars).
Max signals per window (0 = unlimited): Cap the number of entries allowed while a gate window is open.
Buy/Sell Source 1 – Gate: Gate pulse sources that open the buy/sell window (often a regime/zone, e.g., QBands bull/bear).
Trigger Pulse Mode (Buy/Sell): How to detect a trigger pulse from the trigger sources (Change / Appear / Rise>0 / Fall<0).
Trigger A/B sources + Extend Bars: Primary/secondary triggers plus optional extension to persist their pulse for N bars.
Trigger Mode: Pick S2 only, S3 only, S2 OR S3, or S2 AND S3. AND mode remembers both pulses inside the window before firing.
02) Exit Units (Trailing/TP)
Exit Units: Choose Bricks (Renko) or Ticks. All distances below switch accordingly.
03) Tick-based Trailing / Stops (active when Exit Units = Ticks)
Initial SL (ticks): Starting stop distance from entry.
Start Trailing After (ticks): Start trailing once price moves this far in your favor.
Trailing Distance (ticks): Offset of the trailing stop from peak/trough once trailing begins.
Take Profit (ticks): Optional static TP distance.
Stop Loss (ticks): Optional static SL distance (overrides trailing if enabled).
04) Brick-based Trailing / Stops (active when Exit Units = Bricks)
Renko Brick Size: Must match your chart’s brick size.
Initial SL / Start Trailing After / Trailing Distance (bricks): Same definitions as tick mode, measured in bricks.
Take Profit / Stop Loss (bricks): Optional static distances.
05) TP / SL Switch
Enable Static Take Profit: If ON, closes the trade at the fixed TP distance.
Enable Static Stop Loss (Overrides Trailing): If ON, trailing is disabled and a fixed SL is used.
06) Trading Windows (NY time)
Use Trading Windows: Master toggle for all windows.
Evening / Overnight / NY Session: Define each session in NY time.
Flatten at End of : Auto-close any open position when a window ends (sends the Session Exit payload).
07) Day Controls & Limits
Enable Profit Limits / Profit Limit (Dollars): When daily net PnL ≥ limit → auto-flatten and HALT.
Enable Loss Limits / Loss Limit (Dollars): When daily net PnL ≤ −limit → auto-flatten and HALT.
Enable Trade Count Limits / Number of Trades Allowed: After N entries, HALT new entries (does not auto-flatten).
On-chart HUD: A label and soft background tint appear when HALTED; a compact status table shows Day PnL, trade count, and mode.
08) Custom Alert Payloads (used as strategy.order.alert_message)
Long/Short Entry: Payload sent on entries (if blank, a default open JSON is sent).
Regular Long/Short Exit: Payload sent on closes from SL/TP/flip (if blank, a default close JSON is sent).
End of Session Window Exit: Payload sent when any enabled window ends and positions are flattened.
Profit/Loss/Trade Limit Close: Payload sent when daily profit/loss limit causes auto-flatten.
Tip: Any tokens you include here are forwarded “as is”. If your downstream expects variables, do the substitution on the receiver side.
Known limitations
No bracket orders from Pine: This strategy doesn’t create OCO/attached brackets on the broker; it simulates exits with strategy logic and forwards your payloads for external automation.
alert_message is per order only: Alerts fire on order events. General status pings aren’t sent unless you wire a separate indicator/alert.
Renko specifics: Backtests on synthetic Renko can differ from live execution. Always forward-test on your instrument and settings.
Quick checklist before you publish
✅ Brick size in Inputs matches your Renko chart
✅ Exit Units set to Bricks or Ticks as you intend
✅ Day limits/Windows toggled as you want
✅ Custom payloads filled (or leave blank to use defaults)
✅ Your alert uses Order fills only + {{strategy.order.alert_message}}
ORB Strategy W/ Confluence This is an Opening Range Breakout (ORB) strategy designed for intraday trading on futures or indices (e.g., MNQ, MES, ES). It identifies the opening range (default 30-minute session from 9:30-10:00 ET) and enters long on a bullish breakout above the range high (ORH) or short below the range low (ORL), with optional daily bias filtering. Targets are set as multiples of the range width (default 50% per level), with partial profit-taking at each hit level. Stop-loss is dynamically set based on a factor of the range width (default 1.0x full range). Optional confluence filters (RSI >70 for long/<30 for short, price above/below 200 EMA, Williams Vix Fix above/below 0.3, or following previous day's close color) can be enabled for entry confirmation. Position sizing is fixed (default 10 contracts), with an option to double after a losing day. Entries are restricted to a user-defined session (default 8:00-17:00), and all positions close at a specified time (default 16:00 ET) to comply with prop firm rules.
Key Parameters to Test:
Instrument/Timeframe: Test on 5-min or 1-min charts for MNQ/MES/ES futures (e.g., tick value 0.5 for MNQ, 1.25 for MES).
Core Settings: OR timeframe=30m, Target %=50, SL Factor=1.0, TP % Remaining=20 (for partial closes). Enable/disable bias ("Daily Bias" for conservative entries).
Filters: Start with all off; test enabling RSI (len=14, level=50, offset=20), EMA (len=200), WVF (period=22, thresh=0.3), and Prev Day Trend individually/combined to see impact on win rate/false signals.
Risk/Sizing: Fixed contracts=10; test double sizing after loss. For risk-based sizing, adjust to use equity risk % (e.g., 1%) and tick value.
Time Rules: Entry session=0800-1700, Exit=16:00; test on NY session data.
Expected Behavior & Test Focus:
Entry Logic: Long signal on close crossover ORH (or ORH + target1 if bearish bias); short on crossunder ORL. Expect 1-2 trades per day, filtered by confluence to reduce whipsaws.
Exits: SL at ORL - factor*range for long (vice versa for short); partial TP at each target level (e.g., 20% of position at T1, reducing thereafter). Full close at 4 PM if open.
Backtest Metrics: Aim for >50% win rate, positive expectancy over 1-2 years (e.g., 2023-2025 NY session data). Monitor drawdown (<10%), profit factor (>1.5), and Sharpe ratio. Test sensitivity to volatility (e.g., high-vol days may hit more targets but risk larger SL). Visuals: OR box, dashed targets/SL lines, signals (▲/▼).
Edge Cases: Test on low-vol days (tight range, fewer breakouts); gaps; after news events. Ensure no over-entries (pyramiding=0) and daily reset works.
This setup emphasizes disciplined intraday breakouts with risk control—backtest on historical data to validate profitability before live use.