W Bottom Reversal Strategy W Bottom Reversal Strategy (15m-close entries; intrabar TP; daily MACD exit; JSON alerts v49.3-expire2)
Overview
A precision reversal strategy designed for 15-minute charts on liquid symbols. It detects a capitulation-and-stabilization “W” base using 1-hour (1H) context, confirms momentum improvement, then enters only on bar close to avoid early/“ghost” signals. Exits combine a fast intrabar take-profit (~2.7%) with a daily MACD risk-off exit that closes positions when higher-timeframe momentum turns against the setup.
How it works (high-level, matching code)
1H volatility + oversold gate (arming)
Compute 1H Bollinger-style bands (basis = SMA(close, bbLength=20), stdev multiplier bbMult=2.0).
Arm the setup when a 1H bar closes with price < 1H lower band and 1H RSI( rsiLength=14 ) < rsiThreshold (default 20.0).
1H momentum flip → pending entry
When a new 1H bar closes and 1H MACD line (EMA12−EMA26) crosses above 0 while armed and flat, set an entryPending flag.
This does not enter yet—it prepares a confirmed, bar-close entry on the lower timeframe.
Bar-close execution on the chart timeframe (15m)
On the next 15m bar close (or within N bars, see below) and still flat, fire the entry using a limit order at close × (1 − 0.00001) (≈ 0.001% below close) to reduce slippage and maintain chart/alert alignment.
Anti-late filter (no stale triggers)
If the pending entry doesn’t trigger within N chart bars (input: “Pending entry valid for N chart bars”, default 1, range 1–8), it expires and the arm state resets. This prevents late fills long after the 1H confirmation.
Exit logic
Primary: Standing intrabar take-profit at +2.7% from the average entry price (managed via strategy.exit limit).
Risk-off: On daily bar close, if Daily MACD line (EMA12−EMA26) crosses under 0, close the position (flat on daily momentum flip).
Default Properties (used for this publication)
Timeframe: 15m (with 1H and Daily higher-timeframe confirmations via request.security)
Initial capital: $10,000
Position sizing: Percent of equity = 10% per trade (enters only when flat; no stacking while in a position)
Commission: 0.05% per side
Slippage: Recommend 1 tick in Strategy Properties for realistic fills
Inputs exposed:
BB Length: 20 • BB Multiplier: 2.0
RSI Length: 14 • RSI Threshold: 20.0
MACD: Short 12, Long 26, Signal 9 (signal kept for compatibility; logic uses MACD line vs 0)
Pending entry valid for N chart bars: default 1 (1–8)
Execution behavior (per code):
calc_on_every_tick = false (evaluates on bar close)
process_orders_on_close = true (orders placed at bar close)
Limit entry at close −0.001%
Intrabar TP (2.7%)
Daily risk-off exit on MACD<0 at daily bar close
Alerts (exact behavior in code)
Uses alert() function calls with standardized JSON.
Set your alert to “Only alert() function calls” and “Once per bar close.”
Two events are emitted:
LONG_CONFIRMED on entry fire (15m bar close)
EXIT_CONFIRMED_DAILY_MACD on daily MACD<0 (daily bar close)
JSON fields include: event, version ("v49.3-expire2"), symbol, interval, price, and time.
How to use
Apply on liquid tickers (tight spreads, healthy volume).
Keep defaults initially; run across a broad, liquid watchlist to gather a proper sample.
For automation, route bar-close alerts to your executor; confirm broker lot/route settings and that limit orders at close −0.001% are acceptable.
Expect fewer signals in powerful trends; the daily risk-off helps cut failed bases.
Methodology & expectations (results transparency)
Evaluate on a dataset yielding 100+ trades before drawing conclusions.
Keep commission & slippage enabled (see defaults).
Risk sizing: With 10% of equity per trade and flat-to-flat entries, exposure aligns with typical 5–10% guidance.
No performance guarantees—outcomes depend on symbol selection, volatility regime, news, and execution quality.
Originality & value (vendor justification)
While it uses familiar building blocks (BB/RSI/MACD), the edge comes from the 1H volatility + oversold arming, 1H momentum flip, strict 15m bar-close limit execution, and the N-bar pending expiry that prevents stale triggers—paired with a dual-exit design (intrabar TP + daily risk-off). The focus is on reducing premature fills, keeping alerts 1:1 with chart marks, and capturing the first impulse out of a W-base.
Disclaimers
For educational purposes only; not financial advice. Paper-test first. Verify alerts, fills, and symbol liquidity with your broker before live use.
Changelog: v49.3-expire2 — Bar-close limit entries; anti-late pending window; standardized JSON alerts; intrabar 2.7% TP; daily MACD risk-off exit.
Indicatori e strategie
Recovery StrategyDescription:
The Recovery Strategy is a long-only trading system designed to capitalize on significant price drops from recent highs. It enters a position when the price falls 10% or more from the highest high over a 6-month lookback period and adds positions on further 2% drops, up to a maximum of 5 positions. Each trade is held for 6 months before exiting, regardless of profit or loss. The strategy uses margin to amplify position sizes, with a default leverage of 5:1 (20% margin requirement). All key parameters are customizable via inputs, allowing flexibility for different assets and timeframes. Visual markers indicate recent highs for reference.
How It Works:
Entry: Buys when the closing price drops 10% or more from the recent high (highest high in the lookback period, default 126 bars ~6 months). If already in a position, additional buys occur on further 2% drops (e.g., 12%, 14%, 16%, 18%), up to 5 positions (pyramiding).
Exit: Each trade exits after its own holding period (default 126 bars ~6 months), regardless of profit or loss. No stop loss or take-profit is used.
Margin: Uses leverage to control larger positions (default 20% margin, 5:1 leverage). The order size is a percentage of equity (default 100%), adjustable via inputs.
Visualization: Displays blue markers (without text) at new recent highs to highlight reference levels.
Inputs:
Lookback Period for High Peak (bars): Number of bars to look back for the recent high (default: 126, ~6 months on daily charts).
Initial Drop Percentage to Buy (%): Percentage drop from recent high to trigger the first buy (default: 10.0%).
Additional Drop Percentage to Buy (%): Further drop percentage to add positions (default: 2.0%).
Holding Period (bars): Number of bars to hold each position before selling (default: 126, ~6 months).
Order Size (% of Equity): Percentage of equity used per trade (default: 100%).
Margin for Long Positions (%): Percentage of position value covered by equity (default: 20%, equivalent to 5:1 leverage).
Usage:
Timeframe: Designed for daily charts (126 bars ~6 months). Adjust Lookback Period and Holding Period for other timeframes (e.g., 1008 hours for hourly charts, assuming 8 trading hours/day).
Assets: Suitable for stocks, ETFs, or other assets with significant price volatility. Test thoroughly on your chosen asset.
Settings: Customize inputs in the strategy settings to match your risk tolerance and market conditions. For example, lower Margin for Long Positions (e.g., to 10% for 10:1 leverage) to increase position sizes, but beware of higher risk.
Backtesting: Use TradingView’s Strategy Tester to evaluate performance. Check the “List of Trades” for skipped trades due to insufficient equity or margin requirements.
Risks and Considerations:
No Stop Loss: The strategy holds trades for the full 6 months without a stop loss, exposing it to significant drawdowns in prolonged downtrends.
Margin Risk: Leverage (default 5:1) amplifies both profits and losses. Ensure sufficient equity to cover margin requirements to avoid skipped trades or simulated margin calls.
Pyramiding: Up to 5 positions can be open simultaneously, increasing exposure. Adjust pyramiding in the code if fewer positions are desired (e.g., change to pyramiding=3).
Market Conditions: Performance depends on price drops and recoveries. Test on historical data to assess effectiveness in your market.
Broker Emulator: TradingView’s paper trading simulates margin but does not execute real margin trading. Results may differ in live trading due to broker-specific margin rules.
How to Use:
Add the strategy to your chart in TradingView.
Adjust input parameters in the settings panel to suit your asset, timeframe, and risk preferences.
Run a backtest in the Strategy Tester to evaluate performance.
Monitor open positions and margin levels in the Trading Panel to manage risk.
For live trading, consult your broker’s margin requirements and leverage policies, as TradingView’s simulation may not match real-world conditions.
Disclaimer:
This strategy is for educational purposes only and does not constitute financial advice. Trading involves significant risk, especially with leverage and no stop loss. Always backtest thoroughly and consult a financial advisor before using any strategy in live trading.
5 EMA Close/Open Cross StrategyLong Entry - 5 EMA Close crossing above 5 EMA open
exit - 5 EMA Close crossing below 5 EMA open
Short entry - 5 EMA Close crossing below 5 EMA open
exit - 5 EMA Close crossing above 5 EMA open
LP Sweep / Reclaim & Breakout Grading: Long-onlySignals
1) LP Sweep & Reclaim (mean-reversion entry)
Compute LP bounds from prior-bar window extremes:
lpLL_prev = lowest low of the last N bars (offset 1).
lpHH_prev = highest high of the last N bars (offset 1).
Sweep long trigger: current low dips below lpLL_prev and closes back above it.
Real-time quality grading (A/B/C) for sweep:
Trend filter & slope via EMA(88).
BOS bonus: close > last confirmed swing high.
Body size vs ATR, location above a long EMA, headroom to swing high (penalty if too close), and multi-sweep count bonus.
Sum → score → grade A/B/C; A or B required for sweep entry.
2) Trend Breakout (momentum entry)
Core trigger: close > previous Donchian high (length boLen) + ATR buffer.
Optional filter: close must be above the default EMA.
Breakout grading (A/B/C) in real time combining:
Trend up (price > EMA and EMA rising),
Body/ATR, Gap above breakout level (in ATR),
Volume vs MA,
Upper-wick penalty,
Position-in-Score: headroom to last swing high (penalty if too near) + EMA slope bonus.
Sum → score → A or B required if grading enabled.
Sweep/Reclaim & Breakout Grading — Long-onlyStrategy Overview
Name: LP Sweep & Reclaim — Long-only: Breakout Grading with Position-in-Score + Hybrid SL + 1R→BE
Signals
1) LP Sweep & Reclaim (mean-reversion entry)
2) Trend Breakout (momentum entry)
Risk & Exit Logic
Hybrid Stop-Loss (at entry)
Compute two candidates:
Structure-based SL: reference level (LP low for sweeps, min(low, donchianHigh) for breakouts) minus k × ATR.
ATR-based SL: close − m × ATR.
Hybrid rule (longs): pick the tighter one (the higher price) → initial SL.
1R → Breakeven (BE) transition
Trend Take-Profit (EMA cross)
Exit condition: after at least minHoldBars since entry (default 4), close crosses below the chosen EMA → strategy.close.
7Lots v27Lots strategy
The strategy is a counter-trend with a return to the moving average. Based on the DCA strategy, but greatly simplified to 7 lots (limit orders) and using the default martingale x2.5
Strategy description
Two moving averages are used. The first MA can be used as a filter for opening a position and also closing if the second MA is disabled. If both are enabled, then the position is closed by the second MA, and the first is used as a filter. There is also a separate take profit and if the price does not reach it, the position will be closed when returning to the MA, which will act as a stop loss, but the risk of liquidation is still present since the strategy does not have a regular classic stop loss.
Main parameters
TP & SL - selection of closing a position only by MA or take profit + MA. If only MA is selected, the strategy ignores the take profit value and always closes the position by MA.
MA settings
MA length from 1 to 200
Sliding type ALMA, SMA, EMA, VWMA, WMA, RMA
MA data - Open, High, Low, Close, HL2, HL3, OHLC4, OC2
MA shift in %. The MA shift is set in % above or below the current prices. For the First MA, this function allows you to use it as a filter for opening a position. For example, if you specify a shift much lower, for example -1% or -2%, then there will be less noise for opening a position, but this affects the number of transactions.
DCA group settings
Take profit %. Set the take profit as usual, but if the price does not reach the take profit, then the closing will occur by MA when the price returns to its values.
Take profit from. There is a choice of take profit from the average position, or by closing the previous bar. The latter increases the profit factor, but also increases the risk of liquidation if the strategy is used on perpetual contracts or futures.
Position Entry % - specifies the condition for opening a position. 0% - opening will occur immediately. 2% - opening will occur when the price falls 2% below the bar closing if the Long mode is set. If Short, then vice versa.
Grid Scale - classic progressive grid step
Next comes the setup of lots as a percentage of the deposit. Simply specify how many percent of each lot will be used from the total deposit. By default, a percentage for each lot is already allocated according to Martingale with a multiplier of x2.5, but you can calculate your own. You can specify 0, then the lot will be disabled.
Leverage. By default, 1.
Extra lot. This is the 7th lot that I decided to allocate separately from the main grid, since it is not always really needed. And it is calculated from the last lot of the grid. You can set it to how much lower percentage of the last lot to set it for and also what percentage of the deposit it will use. If you trade futures, then this lot, as an auxiliary one, can greatly average the position in case of strong volatility in the market.
Next, you can specify the start and end dates of transactions.
The table displays the total percentage of the deposit involved in trading at the moment. By default, all lots and leverage are set to 100% deposit load. The table also shows the number of transactions of the last 5-6 lots and extra, so that you can understand how many of them there were throughout the history of trading and possibly draw some conclusions for yourself. Especially useful for extra lots. Max Historical Drawdown (%) shows the historical price drop at the moment from the average open position. This will make it possible to analyze what leverage this strategy could withstand over the entire trading history. The date of this drop is also indicated.
For novice traders, it is recommended to use only on spot without the risk of liquidation. It is also best to use large time frames to see the whole picture, but you can also use a minute chart, there are no restrictions, everything is in your hands.
Tips. If you use minute charts, it is better to greatly increase the length of the MA from 20 and above. Hourly charts from 1-7. It is better to set up on spot and if you need futures, then use the same settings from spot, but with correction for futures. This strategy does not work well in Short, but shows excellent results for Long even when the market falls. When selecting settings, take into account sharp market fluctuations, Max Historical Drawdown (%) will show you this information in the table. You need to set up from the first MA, when you set up for the best result, then turn on the second MA and transfer the settings of the first MA to the second. Then fine-tune both MAs. The results can increase significantly, but this is not always the case. Sometimes just one MA is enough
The strategy is paid, tested with my own experience and money since 2022. Own development for opening a position.
Gann Fan Strategy [KedarArc Quant]Description
A single-concept, rule-based strategy that trades around a programmatic Gann Fan.
It anchors to a swing (or a manual point), builds 1×1 and related fan lines numerically, and triggers entries when price interacts with the 1×1 (breakout or bounce). Management is done entirely with the fan structure (next/previous line) plus optional ATR trailing.
What TV indicators are used
* Pivots: `ta.pivothigh/ta.pivotlow` to confirm swing highs/lows for anchor selection.
* ATR: `ta.atr` only to scale the 1×1 slope (optional) and for an optional trailing stop.
* EMA: `ta.ema` as a trend filter (e.g., only long above the EMA, short below).
No RSI/MACD/Stoch/Heikin/etc. The logic is one coherent framework: Gann price–time geometry, with ATR as a scale and EMA as a risk filter.
How it works
1. Anchor
* Auto: chooses the most recent *confirmed* pivot (you control Left/Right).
* Manual: set a price and bar index and the fan will hold that point (no re-anchoring).
* Optional Re-anchor when a newer pivot confirms.
2. 1×1 Slope (numeric, not cosmetic)
* ATR mode: `1×1 = ATR(Length) × Multiplier` (adapts to volatility).
* Fixed mode: `ticks per bar` (constant slope).
Because slope is numeric, it doesn’t change with chart zoom, unlike the drawing tool.
3. Fan Lines
Builds classic ratios around the 1×1: 1/8, 1/4, 1/3, 1/2, 1/1, 2/1, 3/1, 4/1, 8/1.
4. Signals
* Breakout: cross of price over/under the 1×1 in the EMA-aligned direction.
* Bounce (optional): touch + reversal across the 1×1 to reduce whipsaw.
5. Exits & Risk
* Take-profit at the next fan line; Stop at the previous fan line.
* If a level is missing (right after re-anchor), a fallback Risk-Reward (RR) is used.
* Optional ATR trailing stop.
Why this is unique
* True numeric fan: The 1×1 slope is calculated from ATR or fixed ticks—not from screen geometry—so it is scale-invariant and reproducible across users/timeframes.
* Deterministic anchor logic: Uses confirmed pivots (with your L/R settings). No look-ahead; anchors update only when the right bars complete.
* Fan-native trade management: Both entries and exits come from the fan structure itself (with a minimal ATR/EMA assist), keeping the method pure.
* Two entry archetypes: Breakout for momentum days; Bounce for range days—switchable without changing the core model.
* Manual mode: Lock a session’s bias by anchoring to a chosen swing (e.g., day’s first major low/high) and keep the fan constant all day.
Inputs (quick guide)
* Auto Anchor (Left/Right): pivot sensitivity. Higher values = fewer, stronger anchors.
* Re-anchor: refresh to newer pivots as they confirm.
* Manual Anchor Price / Bar Index: fixes the fan (turn Auto off).
* Scale 1×1 by ATR: on = adaptive; off = use ticks per bar.
* ATR Length / ATR Multiplier: controls adaptive slope; start around 14 / 0.25–0.35.
* Ticks per bar: exact fixed slope (match a hand-drawn fan by computing slope ÷ mintick).
* EMA Trend Filter: e.g., 50–100; trades only in EMA direction.
* Use Bounce: require touch + reverse across 1×1 (helps in chop).
* TP/SL at fan lines; Fallback RR for missing levels; ATR Trailing Stop optional.
* Transparency/Plot EMA: visual preferences.
Tips
* Range days: larger pivots (L/R 8–12), Bounce ON, ATR Multiplier \~0.30–0.40, EMA 100.
* Trend days: L/R 5–6, Breakout, Multiplier \~0.20–0.30, EMA 50, ATR trail 1.0–1.5.
* Match the TV Gann Fan drawing: turn ATR scale OFF, set ticks per bar = `(Δprice between anchor and 1×1 target) / (bars) / mintick`.
Repainting & testing notes
* Pivots require Right bars to confirm; anchors are set after confirmation (no look-ahead).
* Signals use the current bar close with TradingView strategy mechanics; real-time vs. bar-close can differ slightly, as with any strategy.
* Re-anchoring legitimately moves the structure when new pivots confirm—by design.
⚠️ 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.
4H Rejection + 2x15m Delta StrategyThis strategy uses rejections levels on different timeframes (you can change this in the settings) to identify the possibility of a price reaction or movement in the opposite side and potentially getting involved.
The confirmation for an entry signal is the volume and specifically the total delta of the candles after tabbing the rejection level on that specific time frame.
The delta has to show 2 positive candles for a buy at a support level, or 2 negative candles for a sell at a resistance level.
The strategy is quite flexible as it gives you the chance to adjust a lot of the things within the settings.
You can play around with the time frames in which you want to get your confirmation for the signal, as well as choosing which time frame you want the strategy to draw your rejection levels in.
Note: This strategy may show profitable results in the backtest/strategy tester but still not 100% guaranteed. Therefore, you need to do your own research on the market and the included strategy for better results.
Advanced Crypto Day Trading - Bybit Optimized mapercivEMA RSI ATR MACD trading script strategy with filters for weekdays
Fury by Tetrad on TESLA v2Fury by Tetrad — TSLA v2 (Free Version)
📊 Fury v2 on TSLA — Financial Snapshot
First trade: August 11, 2010
Last trade: September 5, 2025
Net Profit: $10,549.10 (≈ +10,549%)
Gross Profit: $10,554.36
Gross Loss: $5.26
Commission Paid: $86.95
⚖️ Risk/Return Ratios
Sharpe Ratio: 0.42
Sortino Ratio: 17.63
Profit Factor: 2005.38
🔄 Trade Statistics
Total Trades: 37
Winning Trades: 37
Losing Trades: 0
Win Rate: 100%
Fury is a momentum-reversion hybrid designed for Tesla (TSLA) on higher-liquidity timeframes. It combines Bollinger Bands (signal extremes) with RSI (exhaustion filter) to time mean-reversion pops/drops, then exits via price multipliers or optional time-based stops. A Market Direction toggle (Market Neutral / Long Only / Short Only) lets you align with macro bias or risk constraints. Intrabar simulation is enabled for realistic stop/limit behavior, and labeled entries/exits improve visual auditability.
How it works
Entries:
• Long when price pierces lower band and RSI is below the long threshold.
• Short when price pierces upper band and RSI is above the short threshold.
Exits:
• Profit targets via entry×multiplier (independent for long/short).
• Optional price-based stop factors per side.
• Optional time stop (N days) to cap trade duration.
Controls:
• Market Direction switch (Neutral / Long Only / Short Only).
• Tunable BB length/multiplier, RSI length/thresholds, exit multipliers, stops.
Intended use
Swing or position trading TSLA; can be adapted to other high-beta equities with parameter retuning. Use on liquid timeframes and validate with robust out-of-sample testing.
Disclaimers
Backtests are approximations; past performance ≠ future results. Educational use only. Not financial advice.
Stay connected
Follow on TradingView for updates • Telegram: t.me • Website: tetradprotocol.com
Higher Lows, Lower Highs & Failures with Signal Quality ScoringAn attempt at a higher low and lower high with scoring
dr.forexy strategy 1“Dear friends, please do not use this strategy on your own! This setup works best on the 5-minute timeframe. I hope it brings you great profits.”
dr.forexy strategy 1“Dear friends, please do not use this strategy on your own! This setup works best on the 5-minute timeframe. I hope it brings you great profits.”
dr.forexy strategy 1“Dear friends, please do not use this strategy on your own! This setup works best on the 5-minute timeframe. I hope it brings you great profits.”
Delayed X Exit Strategy - Final Versionattempt at a scored lowerhigh, higher lower delayed exit strat
CycleVISION [BitAura]𝐂ycle𝑽𝑰𝑺𝑰𝑶𝑵
This Pine Script® indicator combines a long-term trend-following strategy with a cycle valuation Z-score analysis to generate a Trend Probability Indicator (TPI). The TPI aggregates signals from multiple trend and on-chain metrics to identify optimal entry and exit points for a single asset, with USD as a cash position. The system also calculates a comprehensive Z-score based on performance and valuation metrics to assess market cycles, aiming to enhance risk-adjusted returns for long-term investors.
Logic and Core Concepts
The 𝐂ycle𝑽𝑰𝑺𝑰𝑶𝑵 System uses two primary components to guide investing decisions:
1. Trend Probability Indicator (TPI)
Mechanism : Aggregates five proprietary, universal, trend signals and three on-chain metrics into a composite TPI score, normalized between -1 and 1.
Thresholds : Enters a long position when the TPI score exceeds a user-defined long threshold (default: 0.0) and exits to cash when it falls below a short threshold (default: -0.5).
Execution : Trades are executed only on confirmed bars within a user-specified backtest date range, ensuring robust signal reliability.
2. Cycle Valuation Z-Score
Mechanism : Computes an average Z-score from six metrics: Sharpe Ratio, Sortino Ratio, Omega Ratio, Weekly RSI, Crosby Ratio, and Price Z-Score, using a 1200-bar lookback period.
Purpose : Identifies overvalued or undervalued market conditions to complement TPI signals, with thresholds at ±1.8 for extreme valuations.
Visualization : Displays the average Z-score and individual components, with gradient-based bar coloring to reflect valuation strength.
Features
Dynamic Trend Signals : Combines trend and on-chain data into a single TPI score for clear long/cash decisions.
Comprehensive Valuation : Calculates Z-scores for multiple performance and price metrics to assess market cycles.
Customizable Inputs : Allows users to adjust TPI thresholds, backtest date ranges, and valuation metrics visibility.
Visual Outputs :
Valuation Table : Displays TPI score, Z-scores, and performance metrics (Sharpe, Sortino, Omega, Max Drawdown, Net Profit) in a configurable table (Lite, Medium, Full).
Equity Curve : Plots the system’s equity curve compared to buy-and-hold performance.
Price and TPI Plot : Overlays TPI-adjusted price bands with glow effects and filled gaps for trend visualization on the price chart.
Valuation Coloring : Applies backgrounds based on Z-score ranges (e.g., strong buy above 1.8, strong sell below -1.8).
Configurable Alerts : Notifies users of TPI signal changes (Long to Cash or Cash to Long) with detailed messages.
Color Presets : Offers five color themes (e.g., Arctic Blast, Fire vs. Ice) or custom color options for long/short signals.
Pine Script v6 : Leverages matrices, tables, and gradient coloring for enhanced usability.
How to Use
Add to Chart : Apply the indicator to any chart (the chart’s ticker is used for calculations, e.g., INDEX:BTCUSD ).
Configure Settings : Adjust TPI thresholds, backtest start date (default: 01 Feb 2018), and valuation metrics visibility in the Inputs menu.
Select Color Theme : Choose a preset color mode (e.g., Arctic Blast) or enable custom colors in the Colors group.
Monitor Outputs : Check the Valuation Table for TPI and Z-score data, and view the Price and TPI Plot for trend signals.
Analyze Performance : Enable the equity curve and performance metrics in the Backtesting Options group to compare results.
Set Alerts : Right-click a plot, select "Add alert," and choose "Trend Change: Long to Cash" or "Trend Change: Cash to Long" for notifications.
The system is optimized for daily timeframe and tested across various assets to ensure robustness.
Notes
The script is closed-source.
Use a standard price series (not Heikin Ashi or other non-standard types) for accurate results.
The script avoids lookahead bias by using barmerge.lookahead_off in request.security() calls.
A minimum 1200-bar lookback is mandatory for Z-score calculations to avoid errors, with warnings displayed if insufficient price history is available.
The BitAura watermark can be toggled in the Table Settings group.
Disclaimer : This script is for educational and analytical purposes only and does not constitute financial advice. Trading involves significant risk, and past performance is not indicative of future results. Always conduct your own research and apply proper risk management.
Nifty 50 Scalping - Bullish Buy & Bearish Sell (5 Target / 2 SL)Nifty 50 Scalping - Bullish Buy & Bearish Sell (5 Target / 2 SL)
AlphaTrend Strategy – Advanced Trend & Momentum Trading SystemThe AlphaTrend Strategy is a powerful trading system designed to capture trend-following opportunities while filtering out low-quality setups.
It combines multiple layers of confirmation, including:
✅ AlphaTrend entry & exit signals based on dynamic ATR and MFI calculations
✅ Trend filter with customizable moving averages (SMA, EMA, WMA, VWMA, HMA)
✅ Momentum filter using ADX with optional DI+ / DI– checks
✅ Session-based trading to restrict entries to specific market hours
This script supports both long & short trades, provides session highlights, and plots risk-reward levels for better trade management.
Traders can fine-tune the multipliers, lookback periods, and filters to adapt the strategy across different assets and timeframes.
⚡ Ideal for forex, crypto, and indices where trend-following strategies thrive.
Disparity(20MA) ±1 × Stochastic 80/20 + ATR SL/TP[by Irum]Disparity(20MA) ±1 × Stochastic 80/20 + ATR SL/TP
사용 설명서 (KR/EN Bilingual Manual)
1) 목적 & 정의 / Purpose & Definition
KR — 목적 & 정의
이 스크립트는 이격도(Disparity) 와 스토캐스틱(80/20) 의 동시 신호를 활용해 추세 전환/지속 구간의 고확률 진입 시점을 포착하고, ATR 기반 손절/익절(고정 또는 트레일링)로 리스크를 정량화하여 운용 효율을 높이기 위해 설계되었습니다.
핵심 아이디어:
가격이 20MA 대비 ±임계값을 크로스(과열/침체 해소 신호)하고,
스토캐스틱이 80/20을 돌파/이탈(모멘텀 전환 신호)할 때,
두 신호가 동일봉 또는 N봉 내 동기화되면 진입.
청산: ATR×배수를 이용한 고정 TP/SL 또는 ATR 트레일링.
EN — Purpose & Definition
This strategy combines Disparity (price vs. 20MA) and Stochastic (80/20) to identify high-probability entries when momentum confirms mean-reversion/continuation, while ATR-based stops/take-profits (fixed or trailing) provide quantified risk control.
Core Idea:
Disparity crosses ±threshold (overbought/oversold release),
Stochastic crosses 80/20 (momentum shift),
Both conditions sync on the same bar or within N bars → entry.
Exits: Fixed ATR TP/SL or ATR trailing.
2) 신호 로직 요약 / Signal Logic Overview
KR
롱 진입: Disparity가 −임계값 상향 돌파 & Stochastic 20 상향 돌파가 syncBars 이내에 동시 충족.
숏 진입: Disparity가 +임계값 하향 돌파 & Stochastic 80 하향 돌파가 syncBars 이내에 동시 충족.
완화 옵션(useRelaxStoch): 최근 relaxLookback 내 20/80 터치 이력 + 현재 방향성만으로도 모멘텀 전환을 인정(교차 미충족 보완).
EN
Long: Disparity crosses up −threshold & Stochastic crosses up 20 within syncBars.
Short: Disparity crosses down +threshold & Stochastic crosses down 80 within syncBars.
Relaxed option (useRelaxStoch): Accepts momentum shift if 20/80 was touched in the last relaxLookback bars and the current slope confirms, even without a strict cross.
3) 설정 메뉴 안내 / Settings Menu Guide
A. 기본 / Core
기준가격 / Source (source)
설명: Disparity 계산에 쓰는 가격 소스.
입력: close, hl2, ohlc4 등.
기본값: close.
팁: 변동성 큰 종목은 hlc3/ohlc4가 노이즈를 줄이기도 함.
이격도 기준 MA 길이 / MA Length (for Disparity) (int ≥1)
설명: Disparity의 기준선이 되는 단순이동평균 길이.
기본값: 20.
영향: 길이↑ → 신호 빈도↓, 안정성↑.
이격도 임계값(±%) / Disparity Threshold (±%) (float ≥0.1, step 0.1)
설명: Disparity가 +임계값 아래로 하향 크로스(숏) 또는 −임계값 위로 상향 크로스(롱)할 때 신호.
기본값: 1.0%.
팁: 너무 크면 신호 드뭄, 너무 작으면 과다.
B. 스토캐스틱 / Stochastic
%K Length / K 길이 (int ≥1, 기본 14)
%K Smoothing / K 스무딩 (int ≥1, 기본 1)
%D Length / D 길이 (int ≥1, 기본 3)
설명: ta.stoch의 K를 스무딩한 kSlow와, 추가 스무딩한 dSlow(참조용)를 구성.
Buy Level (↑20) / 매수 기준선 (0~100, 기본 20)
Sell Level (↓80) / 매도 기준선 (0~100, 기본 80)
C. 신호 로직 / Signal Logic
Signal Sync Window (bars) / 신호 동기화 윈도우 (0~10, 기본 0)
설명: 0=두 신호가 같은 봉에서 모두 충족해야 함. N>0=최근 N봉 내에서 각각 한 번 발생하면 인정.
팁: 1~3은 현실적 체결/지연을 반영하며 과최적화 방지에 도움.
Relaxed Stochastic? (교차 완화) (bool, 기본 false)
설명: 교차 대신 최근 20/80 터치 + 현재 기울기만으로도 모멘텀 전환을 인정. 신호 빈도↑.
Relax lookback bars (int ≥1, 기본 5)
설명: 완화판정에 쓰는 최근 봉 수.
D. 리스크 / Risk (ATR)
ATR Length / ATR 길이 (int ≥1, 기본 14)
ATR Mult for Stop / 손절 ATR 배수 (float ≥0.1, 기본 1.5)
ATR Mult for Take-Profit / 익절 ATR 배수 (float ≥0.1, 기본 2.0)
설명: 진입가 ± ATR×배수로 SL/TP 설정.
팁: 변동성 큰 자산은 SL 배수↑, TP 배수도 함께 조정 권장.
Use ATR Trailing Stop? / ATR 트레일링 사용 (bool, 기본 false)
ATR Mult for Trailing / 트레일링 ATR 배수 (float ≥0.1, 기본 2.0)
설명: 고정 TP/SL 대신 추적 손절을 사용(수익 추적에 유리).
E. 시각화 / Visualization
Plot 20MA / 20MA 표시 (bool, 기본 true)
Show Entry Markers / 진입 마커 표시 (bool, 기본 true)
4) 진입·청산 규칙 / Entry & Exit Rules
KR
진입: 위 “신호 로직” 충족 시 strategy.entry("L"/"S").
청산 (고정형):
롱: Stop = 진입 − ATR×SL, TP = 진입 + ATR×TP
숏: Stop = 진입 + ATR×SL, TP = 진입 − ATR×TP
청산 (트레일링형):
ATR×trailMult로 산출한 trail_points/offset으로 추적 손절.
EN
Entry: Place strategy.entry("L"/"S") when sync conditions are met.
Exit (Fixed):
Long: Stop = Entry − ATR×SL, TP = Entry + ATR×TP
Short: Stop = Entry + ATR×SL, TP = Entry − ATR×TP
Exit (Trailing):
Use ATR×trailMult as trailing distance & offset.
5) 알림 / Alerts
조건
Long Entry (Disp −Thr & Stoch Up, sync) → longSignal
Short Entry (Disp +Thr & Stoch Down, sync) → shortSignal
메시지 포맷 / Message format
{"signal":"long|short","symbol":"{{ticker}}","price":{{close}}}
Webhook(예: 거래소·봇)에서 signal/symbol/price를 활용해 체결 로직과 연동하십시오.
6) 빠른 시작 & 권장 프리셋 / Quick Start & Suggested Presets
KR — BTC/USDT (15분봉) 제안
maLen=20, thrPct=1.0~1.5, kLen=14, kS=1, dLen=3, stBuyLv=20, stSellLv=80
syncBars=1~3 (동시성 여유), useRelaxStoch=true, relaxLookback=5
고정형: atrLen=14, atrMultSL=1.5~2.0, atrMultTP=2.0~3.0
트레일링형: useTrail=true, trailMult=2.0~3.0
EN — BTC/USDT (15-min) suggestion
Above defaults, with syncBars=1~3, useRelaxStoch=true to improve fill realism.
Increase atrMultSL on high-volatility days to reduce whipsaws.
7) 운용 팁 & 점검 / Tips & Troubleshooting
KR
신호가 안 나와요: thrPct가 지나치게 크거나 syncBars=0으로 너무 엄격할 수 있음. thrPct↓, syncBars↑ 조정.
휩쏘 과다: useRelaxStoch를 끄거나 thrPct↑, atrMultSL↑.
TP 도달 전에 청산: 트레일링 사용 시 변동성 확대로 SL이 따라붙다 체결될 수 있음 → trailMult↑ 또는 고정형 전환.
과최적화 방지: 한 구간에 과특화된 튜닝(특히 syncBars, thrPct)은 다른 시장에서 성능 저하. Walk-forward 권장.
EN
No signals: Lower thrPct and/or increase syncBars.
Too many whipsaws: Disable relaxed mode, raise thrPct and/or atrMultSL.
Stopped before TP (trailing): Increase trailMult or switch to fixed exits.
Robustness: Avoid over-tuning; validate via walk-forward testing.
Daily CMO + Volume Intraday Strategy v6 by Subirrmomentum strategy. buy on next hourly candle after signal. target 5%, sl 1%
Ajay Nayak - EMA ATR Trailinge strategy RSI aur RSI ke SMA ke crossover par CALL aur PUT signal generate karti hai.
Saath me ATR based stoploss aur crossover target bhi diya gaya hai.
Algo trading ke liye useful hai.
US30 ORB 5m / 1m StrategyThis is Open range breakout strategy, its tested with Us30 only. You cant optimize or try. it seems profitable