ClarityTrend SwiftEdge# TrendSync Indicator
## Overview
The TrendSync Indicator is a powerful tool designed to help traders identify high-probability trading opportunities by combining two proven technical analysis methods: Linear Regression-based candlesticks and an ATR-based trailing stop strategy (UT Bot Alerts). This indicator enhances these components with unique features, including candlestick smoothing for improved visual clarity and signal reinforcement to reduce noise, making it ideal for trend-following and swing trading across various markets and timeframes.
## Originality and Purpose
This indicator merges the strengths of Linear Regression Candles and UT Bot Alerts to create a synergistic approach to trend detection:
- **Linear Regression Candles** use linear regression to smooth price data, producing candlesticks that highlight the underlying trend while filtering out market noise. This helps traders visualize trend direction more clearly.
- **UT Bot Alerts** employ an ATR-based trailing stop to generate dynamic buy and sell signals, adapting to market volatility and identifying key reversal points.
- **Unique Contributions**:
- **Candlestick Smoothing**: Added an optional SMA or EMA-based smoothing feature to make candlesticks visually cleaner and easier to interpret, especially in volatile markets.
- **Signal Reinforcement**: Introduces a filter that only displays buy/sell signals when both Linear Regression Candles and UT Bot Alerts confirm the same trend direction, reducing false signals and improving reliability.
The combination is purposeful: Linear Regression Candles provide a smoothed trend context, while UT Bot Alerts pinpoint precise entry and exit points. The reinforcement feature ensures that only the strongest signals are shown, enhancing decision-making for traders.
## How It Works
### Linear Regression Candles
- The indicator applies linear regression to OHLC (open, high, low, close) prices over a user-defined period (default: 11 bars) to create smoothed candlesticks.
- Bullish candlesticks (green) are plotted when the smoothed open is below the smoothed close, and bearish candlesticks (red) when the open is above the close.
- An optional smoothing layer (SMA or EMA, default length: 5 bars) can be applied to further reduce noise, making trends visually clearer.
- A signal line (SMA or EMA, default length: 11 bars) tracks the smoothed close price to highlight the overall trend direction.
### UT Bot Alerts
- Uses an ATR-based trailing stop (default ATR period: 10 bars, sensitivity: 1) to generate buy and sell signals.
- A buy signal is triggered when the price crosses above the trailing stop, and a sell signal when it crosses below, confirmed by a 1-period EMA crossover.
- Optionally, signals can be based on Heikin Ashi close prices (manually calculated) for smoother trend detection.
### Signal Reinforcement
- When enabled (default: true), buy signals are only shown if the Linear Regression Candles are bullish, and sell signals if they are bearish. This ensures alignment between the trend context and signal triggers, reducing false positives.
### Visuals
- **Candlesticks**: Semi-transparent green (bullish) and red (bearish) candlesticks for clear trend visualization.
- **Signal Line**: A white line (thicker for visibility) showing the smoothed trend.
- **Signals**: Large "BUY" (green) and "SELL" (red) labels below/above bars for easy identification.
- **Bar Coloring**: Green bars for bullish UT Bot conditions, red for bearish, enhancing trend awareness.
## How to Use
1. **Add to Chart**: Apply the TrendSync Indicator to any chart in TradingView.
2. **Configure Inputs** (accessible via the indicator’s settings):
- **LinReg Settings**:
- *Signal Smoothing (default: 11)*: Length of the signal line (SMA or EMA).
- *Use SMA for Signal Line*: Toggle between SMA (checked) or EMA (unchecked).
- *Enable Linear Regression (default: true)*: Turn on/off linear regression for candlesticks.
- *Linear Regression Length (default: 11)*: Period for linear regression calculation.
- *Smooth Candlesticks (default: false)*: Enable smoothing for cleaner candlesticks.
- *Candlestick Smoothing Length (default: 5)*: Period for SMA/EMA smoothing.
- *Smoothing Type (default: SMA)*: Choose SMA or EMA for candlestick smoothing.
- **UT Bot Settings**:
- *Key Value (Sensitivity, default: 1)*: Adjusts the ATR multiplier for the trailing stop. Higher values widen the stop, reducing signals.
- *ATR Period (default: 10)*: Period for ATR calculation.
- *Use Heikin Ashi for Signals (default: false)*: Use Heikin Ashi close prices for UT Bot signals.
- **Signal Settings**:
- *Reinforce Signals (default: true)*: Only show signals when LinReg and UT Bot agree.
3. **Interpret Signals**:
- **BUY**: A green "BUY" label below a bar indicates a potential long entry, especially strong when reinforced.
- **SELL**: A red "SELL" label above a bar indicates a potential short entry.
- Use the signal line and candlestick colors to confirm the trend context.
4. **Set Alerts**:
- Create alerts for "TrendSync Long" (buy) and "TrendSync Short" (sell) to receive notifications when reinforced signals occur.
## Best Practices
- **Timeframes**: Works on all timeframes, but 1H-4H charts are recommended for swing trading, and 5M-15M for scalping.
- **Markets**: Suitable for stocks, forex, crypto, and commodities. Test on your preferred market to optimize settings.
- **Settings Optimization**:
- Increase `Candlestick Smoothing Length` (e.g., 7-10) for volatile markets to reduce noise.
- Adjust `Key Value` (e.g., 0.5-2) to balance signal frequency and reliability.
- Disable `Reinforce Signals` for more frequent signals, but expect potential noise.
- **Confirmation**: Combine with other tools (e.g., support/resistance, volume) for better trade validation.
## Credits
- **Original Scripts**: Built upon "Humble LinReg Candles" and "UT Bot Alerts" from TradingView’s public library.
- **Enhancements by **: Developed candlestick smoothing, signal reinforcement, and custom visuals to create a unique, trader-friendly tool.
## License
MIT License: Free to use, modify, and share, provided original credits are retained.
## Disclaimer
This indicator is for educational and informational purposes only and should not be considered financial advice. Always conduct your own research and test strategies before trading.
移動平均線
Improved Hybrid: RSI + Breakout + DashboardThe Improved Hybrid RSI + Breakout Strategy is a Pine Script® v6 trading system designed for BTC/USDT on TradingView. It combines RSI mean-reversion and breakout trades to capitalize on both ranging and trending markets. In ranging markets (ADX ≤ 25), it buys when RSI < 35 (oversold) and sells when RSI > 70 (overbought), aligning with the 200-period EMA trend (bullish/bearish). In trending markets (ADX > 25), it enters long/short positions when price breaks above/below the 20-period high/low. Each trade risks 10% of equity ($10,000 of default $100,000 capital), with 1.2x ATR stop-losses for RSI trades and 1.5x ATR trailing stops for breakouts, minimizing drawdowns. Trades are executed post-2020, optimized for BTC’s volatility on H1/H4 timeframes.
HMA 200 + EMA 20 Crossover StrategyThis strategy combines a long-term trend filter using the Hull Moving Average (HMA 200) with a short-term entry trigger using the Exponential Moving Average (EMA 20).
📈 Entry Logic:
Buy Entry: When price is above the HMA 200 and crosses above the EMA 20.
Sell Entry: When price is below the HMA 200 and crosses below the EMA 20.
The strategy closes the current position and reverses on the opposite signal.
⚙️ Strategy Settings (Backtest Configuration):
Position size: 10% of equity per trade
Commission: 0.1% per trade (to simulate broker fees)
Slippage: 2 ticks (to reflect realistic fill conditions)
✅ Purpose:
This script is designed to identify high-probability trades in the direction of the overall trend, avoiding whipsaw conditions. It is useful for traders looking for a dynamic crossover-based system that filters trades based on longer-term momentum.
🔎 Make sure to test across multiple assets and timeframes. For best results, apply this strategy to liquid trending markets like major FX pairs, indices, or high-cap stocks.
Moving Average + Distance BandsDistance from moving average bands, shows the distance from the moving average
SMA ExtensionsExplanation of the SMA Extensions Indicator
The SMA Extensions indicator, designed for TradingView, overlays a 200-period Simple Moving Average (SMA) and its extensions (1.5x, 2x, 2.5x, 3x) on the price chart to identify price zones. Users can customize the SMA source, length, and line colors (default: blue, green, yellow, orange, red). Each level is plotted as a line, with transparent colored fills between them and below the SMA to highlight zones. Labels ("Very Cheap," "Cheap," "Fair Value," "Expensive," "Very Expensive") appear only on the last bar, slightly right-shifted, matching line colors for clarity. This helps traders assess whether prices are undervalued or overvalued relative to the SMA.
The idea originated from a video from the YouTube channel Crypto Currently
RSIOMA IndicatorI trust the RSIOMA by itself when I am at work, on the road, at play, and using only my cell phone.
When I find the long, high plateau or the bottom river bed, my attention perks up.
I examine the nearby timeframes to see if there are any similar patterns.
Please don't use any of the middle crosses; they don't have the power out of the gate that the flat ones do.
I wait and wait for the smaller timeframe to make its cross and add one position.
At every pullback, I start adding positions. Each of you needs to become comfortable with this indicator and start trusting it first.
I am guilty of fading this flat top or bottom, but they can go forever, it seems.
But then that 200-point bar drops, and all the pain goes away with a considerable profit.
I reset and start scanning other charts for the same.
(DAFE) DEVMA - Crossover (Deviation Moving Average) (DAFE) DEVMA - Crossover (Deviation Moving Average)
Let’s keep pushing the edge. After the breakthrough of Deviation over Deviation (DoD)—which gave traders a true lens into volatility’s hidden regime shifts—many asked: “What’s next?” The answer is DEVMA: a crossover engine built not on price, but on the heartbeat of the market itself.
Why is this different?
DEVMA isn’t just a moving average crossover. It’s a regime detector that tracks the expansion and contraction of deviation—giving you a real-time readout of when the market’s energy is about to shift. This is the next step for anyone who wants to anticipate volatility, not just react to it.
What sets DEVMA apart:
Volatility-First Logic: Both fast and slow lines are moving averages of deviation, not price. You’re tracking the market’s “energy,” not just its direction. This is the quant edge that most scripts miss.
Regime-Colored Lines:
The fast and slow DEVMA lines change color in real time—green/aqua for expansion, maroon/orange for contraction—so you can see regime shifts at a glance.
Quant-Pro Visuals:
Subtle glow, clean cross markers, and a minimalist dashboard keep your focus on what matters: the regime, not the noise.
Static Regime Thresholds:
Reference lines at 1.5 and 0.5 (custom colors) give you instant context for “normal” vs. “extreme” volatility states.
No Price Chasing:
This isn’t about following price. It’s about anticipating the next volatility regime—before the crowd even knows what’s coming.
How this builds on DoD:
DoD showed you when volatility itself was about to change. DEVMA takes that insight and turns it into a crossover engine—so you can see, filter, and act on regime shifts in real time. If DoD was the radar, DEVMA is the navigation system.
Inputs/Signals—explained for clarity:
Deviation Lookback:
Controls the sensitivity of the regime detector. Shorter = more signals, longer = only the rarest events.
Fast/Slow DEVMA Lengths:
Fine-tune how quickly the regime lines react. Fast for scalping, slow for swing trading.
Source Selection:
Choose from price, volume, volatility, or VoVix. Each source gives you a different lens on market stress. VoVix is for those who want to see the “regime quake” before the aftershocks.
VoVix Parameters:
Fine-tune the volatility-of-volatility engine for your market. Lower ATR Fast = more responsive; higher ATR Slow = more selective.
Bottom line:
DEVMA is for those who want to see the market’s heartbeat, not just its shadow. Use it to filter your trades, time your entries, or simply understand the market’s true rhythm. Every input is there for a reason. Every plot is a direct readout of the quant logic. Use with discipline, and make it your own.
Disclaimer:
Trading is risky. This script is for research and informational purposes only, not financial advice. Backtest, paper trade, and know your risk before going live. Past performance is not a guarantee of future results.
To TradingView mods and serious users:
This isn’t just another indicator. This is a quant tool for the next era. If flagged, we’ll keep adapting and republishing until real quant innovation gets its place.
Use with discipline. Trade your edge.
— Dskyz, for DAFE Trading Systems
Support BandsSupport Bands – Discount Zones for Bitcoin
⚡Overview:
-The Support Bands indicator identifies one of the most tested and respected support zones for Bitcoin using moving averages from higher timeframes.
-These zones are visualized through colored bands (blue, white, and violet), simplifying the decision making process especially for less experienced traders who seek high-probability areas to accumulate Bitcoin during retracements.
-Band levels are based on manual backtesting and real-world price behavior throughout Bitcoin’s history.
-Each zone reflects a different degree of support strength, from temporary pullback zones to historical bottoms.
⚡️ Key Characteristics:
-Highlights discount zones where Bitcoin has historically shown strong reactions.
-Uses 3 different levels of supports based on EMA/SMA combinations.
-Offers a clean, non-intrusive overlay that reduces chart clutter.
⚡ How to Use:
-Open your chart on the 1W timeframe and select the BTC Bitstamp or BLX symbol, as they provide the most complete historical data, ensuring optimal performance of the indicator.
-Use the bands as reference zones for support and potential pullbacks.
- Level 3 (violet band) historically marks the bottom of Bitcoin bear markets and is ideal for long-term entries during deep corrections.
- Level 2 (white band) often signals macro reaccumulation zones but usually requires 1–3 months of consolidation before a breakout. If the price closes below and then retests this level as resistance for 1–2 weekly candles, it often marks the start of a macro downtrend.
-Level 1 (blue band) acts as short-term support during strong bullish moves, typically after a successful rebound from Level 2.
⚡ What Makes It Unique:
- This script merges moving averages per level into three simplified bands for clearer analysis.
-Reduces chart noise by avoiding multiple overlapping lines, helping you make faster and cleaner decisions.
- Built from manual market study based on recurring Bitcoin behavior, not just random code.
-Historically backtested:
-Level 3 (violet band) until today has always marked the bitcoin bearmarket bottom.
- Level 2 (white band) is the strongest support during bull markets; losing it often signals a macro trend reversal.
- Level 1 is frequently retested during impulsive rallies and can act as short-term support or resistance.
⚡ Disclaimer:
-This script is a visual tool to assist with market analysis.
-It does not generate buy or sell signals, nor does it predict future movements.
-Historical performance is not indicative of future results.
-Always use independent judgment and proper risk management.
⚡ Why Use Support Bands:
-Ideal for traders who want clarity without dozens of lines on their charts.
- Helps identify logical zones for entry or reaccumulation.
- Based on actual market behavior rather than hypothetical setups.
-If the blue band (Level 1) doesn't hold as support, the price often moves to the white band (Level 2), and if that fails too, the violet band (Level 3) is typically the last strong support. By dividing your capital into three planned entries, one at each level,you can manage risk more effectively compared to entering blindly without this structure.
Heikinisi Candle (With MA + Smoothing + Buy/Sell with Cooldown)This custom Heikinisi Candle (With MA + Smoothing + Buy/Sell with Cooldown) indicator combines the advantages of Heikin-Ashi candles with the flexibility of multiple moving averages and smoothing options. The built-in buy/sell signals with cooldown functionality help traders avoid overtrading while capturing trend reversals and momentum shifts. Whether you're a day trader, swing trader, or long-term investor, this indicator offers powerful tools for analyzing price action and making informed trading decisions.
Note: Disable the regular candle to get better visualization.
Key Features:
Custom Heikin-Ashi Candles:
The core feature of this script is the Heikin-Ashi candles, which are known for smoothing price action and helping traders identify market trends more clearly.
Unlike traditional Heikin-Ashi, this version adjusts the Heikin-Ashi close based on specific price action patterns, including rejection signals and engulfing patterns.
The custom Heikin-Ashi open also incorporates momentum, adjusting dynamically based on recent price changes.
Price Action Measurements:
The indicator measures key price action components, including:
Body: The absolute difference between the open and close.
Candle Range: The total range from high to low.
Upper Wick: The distance from the highest price to the maximum of open or close.
Lower Wick: The distance from the lowest price to the minimum of open or close.
These measurements help detect bullish and bearish conditions, as well as price rejection signals.
Buy/Sell Signal Logic:
Buy Signal: Triggered when the Heikin-Ashi close is above the chosen moving average (MA1), with a cooldown period to avoid too frequent signals.
Sell Signal: Triggered when the Heikin-Ashi close falls below the MA1 after a buy signal has already been issued.
The cooldown period ensures that buy and sell signals are spaced apart by a specific number of bars, preventing excessive signal generation during periods of price consolidation.
Multiple Moving Averages (MA):
This script supports up to three customizable moving averages (MA1, MA2, MA3), each of which can be set to different types and lengths, including:
Simple Moving Average (SMA)
Exponential Moving Average (EMA)
Weighted Moving Average (WMA)
Volume Weighted Moving Average (VWMA)
Volume Weighted Moving Price (VWMP)
Least Squares Moving Average (LSMA)
Hull Moving Average (HMA)
Double Exponential Moving Average (DEMA)
Triple Exponential Moving Average (TEMA)
Users can adjust the length and type of each MA for tailored analysis.
Smoothing Options for MAs:
Users can smooth the output of MAs using various types of smoothing algorithms (SMA, EMA, LSMA, WMA, Gaussian) and a customizable length. This helps to reduce noise in the moving average lines and provides clearer signals.
Gaussian Filter (Advanced Smoothing):
A Gaussian Filter is available as a smoothing option for MAs. This filter reduces noise and makes the moving averages smoother, which can be particularly helpful in volatile or choppy markets.
Alerts and Visualization:
The script allows users to plot buy and sell signals on the chart with distinctive markers. A Buy Signal is shown below the bar with a lime green marker and text "Buy," while a Sell Signal is shown above the bar with a red marker and text "Sell."
Traders can also set up alerts based on the buy/sell signals to get notified in real time.
Indicator Configuration:
Heikin-Ashi Candle Configuration:
Automatically adjusts Heikin-Ashi candles based on rejection signals, engulfing patterns, and momentum. It uses custom formulas for the Heikin-Ashi open and close, making it more sensitive to price action than standard Heikin-Ashi candles.
Moving Averages (MA) Configuration:
You can select from multiple moving average types and lengths (MA1, MA2, MA3) for trend-following analysis.
Choose between SMA, EMA, WMA, VWMA, VWMP, LSMA, HMA, DEMA, and TEMA.
Smoothing Options:
Enable or disable smoothing for the moving averages.
Select from different smoothing types, including SMA, EMA, RMA, WMA, LSMA, and Gaussian.
Cooldown Period:
Control the number of bars that must pass before a new buy/sell signal is triggered. This cooldown period helps prevent excessive trading signals in quick succession.
How to Use:
Analyze Price Action with Heikin-Ashi Candles:
The custom Heikin-Ashi candles are ideal for spotting market trends, reversals, and price rejection. Use the candle patterns to gauge the market sentiment.
Use MAs for Trend Confirmation:
The moving averages (MA1, MA2, MA3) can help identify the prevailing trend. A price above a rising MA indicates an uptrend, while a price below a falling MA suggests a downtrend.
Trigger Buy and Sell Signals:
When the Heikin-Ashi close crosses above MA1, a buy signal is triggered.
When the Heikin-Ashi close crosses below MA1 after a buy signal, a sell signal is triggered.
The cooldown period ensures that signals are spaced out, preventing overtrading.
Use Smoothing for Clearer Signals:
If you are trading in a volatile market, you can use the smoothing options to make the MAs smoother and reduce noise.
EMA 5/10 Crossover SignalsThis indicator measures the moving average of 5 and 10 and indicates the sell and buy signal
VWAP Predictive Breakout + RSI + OB + Trend/Chop📈 VWAP Predictive Breakout + RSI + Order Blocks + Trend/Chop Filter
This multi-layered day trading and scalping tool is designed to predict price direction after a VWAP breakout, rather than react to it. It combines volume, RSI, candlestick structure, order blocks, and trend/chop analysis to improve the accuracy of intraday signals.
🔍 Core Features
VWAP Predictive Breakout
Signals are generated when price breaks above/below VWAP with strength (volume spike + strong candle body), supported by trend confirmation.
RSI Momentum Filter
Uses RSI divergence behavior to validate breakouts, filtering out weak or exhausted moves.
Order Block Detection
Marks bullish and bearish engulfing patterns and checks for proximity to these zones as confirmation for breakouts.
Trend vs Chop Detection
Uses ADX, ATR, EMA distance, Bollinger Band width, and candlestick cleanliness to dynamically identify whether the market is trending or choppy.
Clean Candle Behavior
Filters out noisy or indecisive candles by analyzing wick-to-body ratio and ATR-based body size.
📌 Visual Markers
🟢 Buy Signal: Green triangle below bar
🔴 Sell Signal: Red triangle above bar
🟢⚪ Bullish Order Block: Green circle
🔴⚪ Bearish Order Block: Red circle
🟩 Trending Background: Light green
🟥 Choppy Background: Light red
🛎 Alerts Included
Long signal: VWAP breakout + RSI + Order Block + Clean Candle
Short signal: VWAP breakdown + RSI + Order Block + Clean Candle
🧠 Best Use Cases
Scalping high-probability VWAP reversals or continuations
Day trading in markets where trend clarity is critical
Filtering noise in sideways conditions using real-time chop detection
EMA 5/10 Crossover SignalsThis indicator measures the 5-day and 10-day moving average and shows the buy and sell sign
Moving Average Channel Avancé# Moving Average Channel Avancé (MAC)
This versatile TradingView indicator provides a dynamic channel around a central moving average, offering a comprehensive tool for trend identification, volatility assessment, and potential entry/exit signals.
## Key Features:
* **Flexible Moving Average Core:** Choose from a variety of popular moving average types (SMA, EMA, WMA, VWMA, HMA, TEMA) to serve as the baseline for your channel. Customize the length and price source for tailored analysis.
* **Multiple Channel Calculation Methods:**
* **Standard Deviation:** Creates Bollinger Band-like channels based on price volatility.
* **ATR (Average True Range):** Generates Keltner Channel-style bands that adapt to market volatility.
* **Percentage:** Defines channel width as a fixed percentage of the moving average.
* **Donchian:** Uses highest highs and lowest lows over a specified period to form the channel.
* **Visual Customization:**
* Toggle visibility of the midline, channel fill, and breakout signals.
* Full color customization for upper/lower bands, midline, channel fill, and bullish/bearish breakout signals.
* **Breakout Signals:** Displays arrows when the price crosses above the lower band (potential buy) or below the upper band (potential sell).
* **Overbought/Oversold Visualization:** Bar coloring highlights potential overbought (price near upper band) and oversold (price near lower band) conditions.
* **Information Panel:** A convenient on-chart table displays the selected MA type and the current price position within the channel as a percentage.
* **Alert Conditions:** Set up alerts for:
* Price crossing above/below the upper band.
* Price crossing above/below the lower band.
* Overbought and oversold conditions.
## How to Use:
The Moving Average Channel Avancé can be used in various ways:
* **Trend Following:** Trade in the direction of the channel. When the price is consistently above the midline and respecting the lower band as support, it can indicate an uptrend. Conversely, price action below the midline, with the upper band acting as resistance, can suggest a downtrend.
* **Volatility Breakouts:** Look for price breakouts above the upper band or below the lower band as potential entry signals, especially when accompanied by increased volume.
* **Mean Reversion:** In ranging markets, prices may tend to revert towards the central moving average after touching the outer bands.
* **Support and Resistance:** The channel bands can act as dynamic levels of support and resistance.
This indicator is designed to be intuitive for novice traders while offering the depth of customization that experienced analysts require. Experiment with different settings and MA types to find what best suits your trading style and the specific market you are analyzing.
BTC High-Return StrategyTimeframe: H1 (hourly), backtested from January 1, 2023, to December 31, 2025.
Position Sizing: 50% of equity per trade (e.g., $500/trade on $1,000).
Entries:
RSI Long: Buy when 10-period RSI < 30 (oversold, pullback entry).
Breakout Long: Buy when price exceeds 7-period high (bullish breakout).
Exits:
RSI Exit: Sell RSI trades when RSI > 50 (neutral).
Profit Target: RSI trades target 5x ATR (~10–25% gains, e.g., $50–$125).
Trailing Stop: Breakout trades use 3.5x ATR (~15–30% gains, e.g., $75–$150).
Stop-Loss: 1.0x ATR (~1–3% loss, e.g., $5–$15).
Key Features:
High Frequency: 50–100 trades/month for frequent opportunities.
Bull Market Focus: Long-only to avoid losses in BTC’s uptrend.
Debug Plots: RSI and breakout triggers (red/yellow) to verify entries.
RSI-WMA + EMA Trend Filter | Signal OnlyThis is the specialized Indicator to create the internal Strategy for the class of Rio & Friend base on RSI-WMA with the EMA Trend Filter.
Enjoy and have fun with it!
Dva_GusyaWhat it does
• Designed only for Bitcoin on the daily chart.
• Plots a simple moving average (SMA) and two parallel “buy-zone” levels beneath it.
• Generates two scale-in entries:
• Entry #1 – when price touches or falls below the first offset.
• Entry #2 – when price touches or falls below the second offset (adds to the existing long).
• Position size is split 50 % / 50 % by default.
• All core parameters (SMA length, offsets, sizing) remain editable in the Settings panel.
Bollinger Band Reversal Strategy//@version=5
strategy("Bollinger Band Reversal Strategy", overlay=true)
// Bollinger Band Parameters
length = input.int(20, title="BB Length")
src = input(close, title="Source")
mult = input.float(2.0, title="BB Multiplier")
basis = ta.sma(src, length)
dev = mult * ta.stdev(src, length)
upper = basis + dev
lower = basis - dev
plot(basis, "Basis", color=color.gray)
plot(upper, "Upper Band", color=color.red)
plot(lower, "Lower Band", color=color.green)
// Get previous and current candle data
prev_open = open
prev_close = close
cur_close = close
// Check for upper band touch and reversal
bearish_reversal = high >= upper and cur_close < prev_open
// Check for lower band touch and reversal
bullish_reversal = low <= lower and cur_close > prev_open
// Plotting arrows
plotshape(bearish_reversal, title="Down Arrow", location=location.abovebar, color=color.red, style=shape.arrowdown, size=size.small)
plotshape(bullish_reversal, title="Up Arrow", location=location.belowbar, color=color.green, style=shape.arrowup, size=size.small)
// Optional: Add strategy entry signals
if (bullish_reversal)
strategy.entry("Buy", strategy.long)
if (bearish_reversal)
strategy.entry("Sell", strategy.short)
EMA Breakdown Strategytake sell position when price crosses below ema take a short position when price crosses below green candel low target size of green candle SL high of green candel RR 1:1
Best EMA FinderBASED ON BEST SMA FINDER BY Julien_Eche
Purpose
Identifies the single most robust exponential moving average (EMA) length on any chart by backtesting every EMA from 10 to 1000 periods and ranking them by a custom “robustness” score.
Core Logic
Backtest loop: For each EMA length, run either a “Long Only” or “Buy & Sell” backtest.
Metrics computed:
Total trades
Profit factor (gross profit / gross loss)
Win rate
Robustness score = Profit Factor × √(Win Rate) × log(Trades)
Filter: Discard any EMA with fewer trades than the user‐defined minimum.
Select: Choose the EMA length with the highest robustness score.
Visualization
Plots the optimal EMA in blue on your chart.
Optionally displays a table (top-right) showing the chosen EMA length, trade count, profit factor, win rate, and robustness score.
User Inputs
Strategy Type: “Long Only” or “Buy & Sell”
Minimum Trades: Exclude under-sampled EMAs
Show Stats Table: Toggle summary display
Use Case
Perfect for traders who want to automatically pick an EMA that’s historically balanced between profitability and consistency—no manual trial-and-error needed.
Limitations
No position sizing, stops, or profit targets
Only one open trade per direction
Intended as an exploratory optimization tool, not a full trading system.
Simple Moving Averages 68 & 274Double Simple Moving Average (default 68 & 274) with customizable timeframe (default 45 min)
DavSabs - Triple EMA 5>10 strategy + MACD and RSIThis is one of my favorite buy sell strategies and I'm holding on to this for now.
I have perfected buy sell signals with shorter EMA and made soft red and green if MACD and RSI is not supporting the buy.
Strong Green Buy signal = 5>10 EMA AND price over 30 EMA.
Soft Green if buy green signal = above and MACD < signal line or RSI < RSI-based EMA
Strong RED Sell signal = Price close below 10 EMA
Soft Red sell signal = above and MACD > signal line or RSI > RSI-based EMA
Always add your own analysis.
EMA 9/21/50The indicator shows the 9, 21, and 50-period EMAs on the TradingView chart. The objective of using 9,21, and 50 periods is to identify the short-term momentum.