5 SMA and 200 SMA Strategy with 1:3 Target and SLStop Loss (SL) and Target (1:3 Risk/Reward):
Long Position:
The stop loss is set at 1% below the entry price (longSL = strategy.position_avg_price * 0.99).
The take profit target is set at 3% above the entry price (longTarget = strategy.position_avg_price * (1 + 0.03)).
Short Position:
The stop loss is set at 1% above the entry price (shortSL = strategy.position_avg_price * 1.01).
The take profit target is set at 3% below the entry price (shortTarget = strategy.position_avg_price * (1 - 0.03)).
1:3 Risk-to-Reward:
The ratio between the stop loss and target is set to 1:3, meaning for each trade, the take profit is 3 times the distance of the stop loss.
How it works:
When a long or short trade is triggered, the script will place a stop loss 1% away from the entry price.
The take profit target will be placed 3% away from the entry price (in the favorable direction).
Feel free to adjust the stop loss and target percentages as needed.
المؤشرات والاستراتيجيات
RSI Failure Swing Pattern (with Alerts & Targets)RSI Failure Swing Pattern Indicator – Detailed Description
Overview
The RSI Failure Swing Pattern Indicator is a trend reversal detection tool based on the principles of failure swings in the Relative Strength Index (RSI). This indicator identifies key reversal signals by analyzing RSI swings and confirming trend shifts using predefined overbought and oversold conditions.
Failure swing patterns are one of the strongest RSI-based reversal signals, initially introduced by J. Welles Wilder. This indicator detects these patterns and provides clear buy/sell signals with labeled entry, stop-loss, and profit target levels. The tool is designed to work across all timeframes and assets.
How the Indicator Works
The RSI Failure Swing Pattern consists of two key structures:
1. Bullish Failure Swing (Buy Signal)
Occurs when RSI enters oversold territory (below 30), recovers, forms a higher low above the oversold level, and finally breaks above the intermediate swing high in RSI.
Step 1: RSI dips below 30 (oversold condition).
Step 2: RSI rebounds and forms a local peak.
Step 3: RSI retraces but does not go below the previous low (higher low confirmation).
Step 4: RSI breaks above the previous peak, confirming a bullish trend reversal.
Buy signal is triggered at the breakout above the RSI peak.
2. Bearish Failure Swing (Sell Signal)
Occurs when RSI enters overbought territory (above 70), declines, forms a lower high below the overbought level, and then breaks below the intermediate swing low in RSI.
Step 1: RSI rises above 70 (overbought condition).
Step 2: RSI declines and forms a local trough.
Step 3: RSI bounces but fails to exceed the previous high (lower high confirmation).
Step 4: RSI breaks below the previous trough, confirming a bearish trend reversal.
Sell signal is triggered at the breakdown below the RSI trough.
Features of the Indicator
Custom RSI Settings: Adjustable RSI length (default 14), overbought/oversold levels.
Buy & Sell Signals: Buy/sell signals are plotted directly on the price chart.
Entry, Stop-Loss, and Profit Targets:
Entry: Price at the breakout of the RSI failure swing pattern.
Stop-Loss: Lowest low (for buy) or highest high (for sell) of the previous two bars.
Profit Targets: Two levels calculated based on Risk-Reward ratios (1:1 and 1:2 by default, customizable).
Labeled Price Levels:
Entry Price Line (Blue): Marks the point of trade entry.
Stop-Loss Line (Red): Shows the calculated stop-loss level.
Target 1 Line (Orange): Profit target at 1:1 risk-reward ratio.
Target 2 Line (Green): Profit target at 1:2 risk-reward ratio.
Alerts for Trade Execution:
Buy/Sell signals trigger alerts for real-time notifications.
Alerts fire when price reaches stop-loss or profit targets.
Works on Any Timeframe & Asset: Suitable for stocks, forex, crypto, indices, and commodities.
Why Use This Indicator?
Highly Reliable Reversal Signals: Unlike simple RSI overbought/oversold strategies, failure swings filter out false breakouts and provide strong confirmation of trend reversals.
Risk Management Built-In: Stop-loss and take-profit levels are automatically set based on historical price action and risk-reward considerations.
Easy-to-Use Visualization: Clearly marked entry, stop-loss, and profit target levels make it beginner-friendly while still being valuable for experienced traders.
How to Trade with the Indicator
Buy Trade Example (Bullish Failure Swing)
RSI drops below 30 and recovers.
RSI forms a higher low and then breaks above the previous peak.
Entry: Buy when RSI crosses above its previous peak.
Stop-Loss: Set below the lowest low of the previous two candles.
Profit Targets:
Target 1 (1:1 Risk-Reward Ratio)
Target 2 (1:2 Risk-Reward Ratio)
Sell Trade Example (Bearish Failure Swing)
RSI rises above 70 and then declines.
RSI forms a lower high and then breaks below the previous trough.
Entry: Sell when RSI crosses below its previous trough.
Stop-Loss: Set above the highest high of the previous two candles.
Profit Targets:
Target 1 (1:1 Risk-Reward Ratio)
Target 2 (1:2 Risk-Reward Ratio)
Final Thoughts
The RSI Failure Swing Pattern Indicator is a powerful tool for traders looking to identify high-probability trend reversals. By using the RSI failure swing concept along with built-in risk management tools, this indicator provides a structured approach to trading with clear entry and exit points. Whether you’re a day trader, swing trader, or long-term investor, this indicator helps in capturing momentum shifts while minimizing risk.
Would you like any modifications or additional features? 🚀
RSI Divergence GFSThis indicator is meant to highlight RSI zones along with divergence with price. This helps to identify which zone RSI currently belongs to.
Key Levels SpacemanBTC Jiri PribylThis is the Spaceman BTC indicator at key levels with customized colors specifically for Jiří Přibyl.
Wilders MACD + EMA MACDHi,
This is the MACD in Wilders mode (turquoise) and in Exponential mode (purple).
All in one on the same chart. This to avoid having 2 indicators.
Strategy is to trade at Exp cross over and having the wilders to confirm that to which come later if momentum is intact.
Buy on 5% dip strategy with time adjustment**IMPORTANT** Works the best on SOXL
1. Core Functionality
✅ Buys after a 5% drop from the highest price
✅ Sells when the price increases by 22% (Take Profit Multiplier: 1.22x) AMEX:SOXL
✅ Forced sell after 230 days if the trade remains unprofitable, but waits for a -15% recovery before exiting
✅ Leverage and capital allocation can be adjusted
✅ Provides a performance table for monthly and yearly returns, including CAGR and Max Drawdown (MDD)
2. Key Features
1️⃣ Trading Period Restriction
The script allows trading only within a specific time range (e.g., from 2015 to 2026).
2️⃣ Buy Signal Based on Price Drop
It tracks the highest price recorded and checks if the current price has dropped by a user-defined percentage (-5%) to trigger a buy order.
3️⃣ Take Profit & Forced Sell Conditions
If the price reaches 1.22x of the entry price, the position is closed.
If the position remains open for 230 days and is still at a loss, it waits for a recovery of -15% from the entry price before selling.
4️⃣ Leverage & Position Sizing
Users can configure leverage and capital allocation percentage for each trade.
5️⃣ Performance Analysis Table
The strategy logs monthly and yearly profit/loss, calculates CAGR (Compound Annual Growth Rate), and tracks Max Drawdown (MDD) to assess risk and profitability.
3. Strategy Implementation
Buy Signal: Activated when the price drops 5% from the highest recorded price.
Sell Signal: Triggered when the price reaches 1.22x the entry price or recovers from a -15% drawdown after 230 days.
Performance Analysis: Generates a monthly and yearly P&L table to help users track strategy effectiveness.
I
VSA Volume + Fibonacci (Volunacci)This indicator is used to draw fibo levels on the VSA volume candles
Live Bar Inside Bar ColoringThis script colors the current candle if it is inside the prior candle on the timeframe displayed.
There are other indicators which color inside bars, this indicator only colors the live / active candle.*
This also allows it to color differently if price is above or below the candle open.
* Note, there is a bug where a prior candle's color will persist, if you can identify the issue I will be grateful!
FRVP + AVWAP Improved By NgashCTOverview
The FRVP + AVWAP Improved strategy is designed to capitalize on price trends using a combination of Fixed Range Volume Profile (FRVP), Anchored VWAP (AVWAP), and key momentum indicators. It integrates RSI, EMA, MACD, and ATR-based stop-loss management to refine trade entries and exits, ensuring a dynamic and adaptable trading approach.
Key Components
Anchored VWAP (AVWAP) – Measures the volume-weighted average price, acting as a dynamic support/resistance level.
Fixed Range Volume Profile (FRVP) – Identifies key high/low price levels within a given range, helping detect market structure shifts.
Exponential Moving Average (EMA) – The 200-period EMA acts as a trend filter to prevent counter-trend trades.
Relative Strength Index (RSI) – Helps avoid overbought/oversold conditions.
MACD Confirmation – Ensures momentum aligns with trade direction.
Volume Filter – Avoids low-volume trades for higher accuracy.
ATR-based Stop Loss & Trailing Stop – Adjusts dynamically based on market volatility.
Entry Conditions
✅ Long Entry:
Price crosses above AVWAP
Price is above the 200 EMA
RSI is above the oversold level
MACD confirms momentum
Volume is above threshold
✅ Short Entry:
Price crosses below AVWAP
Price is below the 200 EMA
RSI is below the overbought level
MACD confirms bearish momentum
Volume is above threshold
Exit Strategy
Stop Loss: ATR-based to adapt to volatility
Take Profit: Dynamically adjusted based on risk-reward ratio
Trailing Stop: Locks in profits as price moves favorably
Strengths & Edge
🔥 Combines Trend & Volume-Based Analysis – AVWAP & FRVP provide a strong foundation for trade decisions.
🔥 Momentum Filtering – MACD, RSI, and EMA improve trade quality.
🔥 Adaptive Risk Management – ATR-based stop-loss adapts to volatility, improving risk-reward.
🔥 Avoids Low-Volume Trades – Reduces false signals and improves accuracy.
This strategy is optimized for crypto and stock markets and works best in trending conditions.
Custom SMA Crossover Strategy with Text SignalsCustom SMA Crossover Strategy with Text Signals
This indicator combines three simple moving averages (9, 21, and 100 periods) to generate trading signals with clear visual feedback:
Core Logic
Buy Signal: When price is above 100 SMA + 9 SMA crosses above 21 SMA
Sell Signal: When price is below 100 SMA + 9 SMA crosses below 21 SMA
Visual Features
Colored 100 SMA (green=price above, red=price below)
Gradient fill between 9/21 SMAs (green=uptrend, red=downtrend)
Clear "BUY"/"SELL" labels with directional arrows
Background highlighting on signal bars
Practical Benefits
Prevents consecutive signals until opposite condition occurs
Automatic label cleanup (max 50 visible signals)
Ready-to-use price alerts for automation
Clean chart integration with adjustable SMA lengths
Usage
Identifies trend-confirmed entries:
100 SMA acts as trend filter
9/21 SMA crossover provides entry timing
Ideal for swing trading and trend following strategies
Gold Liquidity & Momentum Bot✅ Detects liquidity grabs (swing highs/lows)
✅ Confirms momentum shifts (RSI & VWAP conditions)
✅ Limits trades to 4 per day
✅ Uses a risk-reward ratio of 3:1
✅ Executes trades silently
Order Block FinderEste indicador experimental está diseñado para identificar Bloques de Orden Institucionales en gráficos financieros. Estas son áreas donde los grandes actores del mercado (como instituciones) han colocado órdenes significativas, a menudo marcando el inicio de movimientos fuertes en el precio. Los Bloques de Orden son útiles porque hay una alta probabilidad de que el precio regrese a estas áreas en el futuro, lo que las hace ideales para colocar órdenes límite.
Características principales:
Bloques de Orden Bullish (alcistas):
Definidos como la última vela bajista antes de una secuencia de velas alcistas.
El rango de precios relevante va de Apertura a Mínimo (o todo el rango de Máximo a Mínimo, opcionalmente).
Bloques de Orden Bearish (bajistas):
Definidos como la última vela alcista antes de una secuencia de velas bajistas.
El rango de precios relevante va de Apertura a Máximo (o todo el rango de Máximo a Mínimo, opcionalmente).
Configuración ajustable:
Puedes cambiar el número de velas consecutivas requeridas para identificar un bloque.
Permite establecer un umbral porcentual de cambio en el precio necesario para validar un Bloque de Orden.
Canales y Equilibrio:
Muestra u oculta los canales que marcan los últimos bloques alcistas y bajistas.
Resalta el equilibrio (valor promedio) dentro de cada bloque como una zona clave para la interacción del precio.
Alertas:
Se activan automáticamente cuando se detecta un Bloque de Orden.
El retraso depende del parámetro "Periodos Relevantes" (por defecto, 5).
Market Trend Levels Detector With Signals [BigBeluga]Added signals version
Market Trend Levels Detector With Signals
Cash Flow YieldsCash Flow Yields Indicator
This indicator offers a straightforward way to visualize a company’s cash flow metrics—Free Cash Flow (FCF), Operating Cash Flow (OCF), and Capital Expenditures (CapEx)—as yields relative to its market capitalization. With the flexibility to switch between Trailing Twelve Months (TTM) and Quarterly data, it’s perfect for spotting financial efficiency trends at a glance. Values are plotted as dynamic lines with smart color coding and labeled for clarity.
Features:
TTM & Quarterly Data: Toggle between financial periods to suit your analysis.
Color-Coded Lines: Green for positive OCF, teal for positive FCF, and blue for CapEx. Red and maroon kick in when values turn negative.
Yield Perspective: See FCF, OCF, and CapEx as percentages of market cap, making it easy to compare cash flow strength across companies.
Clear Labels: The latest values pop up on the chart, positioned to the right of the last bar.
Simple & Intuitive: No clutter - just clean lines and numbers to help you focus on what matters.
To use it, add it to your chart and toggle between TTM or Quarterly to see trends. FCF should roughly equal OCF minus CapEx. Adjust your view to focus on companies with strong FCF yields for potential opportunities.
This indicator is freely available and open-source on TradingView for everyone to use. Enjoy!
HFT StrategyYour HFT Strategy identifies high-probability trades using Fibonacci levels, Break of Structure (BOS), and Fair Value Gaps (FVG). It follows a trend-based approach, entering long trades above the 50% Fibonacci level and short trades below it. Confirmation comes from BOS and FVG. The strategy focuses on momentum-driven entries.
Sai Ema CrossoverSimple ema crossover indicator can be used to scalp ( 1min to 5min timeframes ) and
swing(1hr to 1 day timeframes). tight stop loss and decent take profit target can help a lot instead of actually waiting for a sell signal
BBW Squeeze SignalОбъяснение
Inputs – настройки индикатора оставлены на английском языке, как и требовалось. Здесь задаются период SMA, источник данных, стандартное отклонение и периоды для расчёта Highest Expansion и Lowest Contraction.
Расчёт полос Боллинджера – вычисляется SMA, стандартное отклонение, а затем верхняя и нижняя полосы.
BBW – рассчитывается как процентное соотношение разницы между верхней и нижней полосами к SMA.
Сигналы – сигнал на покупку генерируется, когда цена пересекает верхнюю полосу при низком значении BBW, а сигнал на продажу – когда цена пересекает нижнюю полосу при низком BBW.
Визуальное отображение – сигналы отображаются на графике в виде треугольников: зелёный треугольник снизу для покупки и красный треугольник сверху для продажи.
虛擬貨幣能量潮指標與背離此腳本的核心功能是檢測 能量潮指標 (On-Balance Volume, OBV) 與價格之間的背離,並根據這些背離生成相應的交易信號。具體觸發設定方向如下:
買入信號:
當價格創出低點,但 OBV 未隨之創出新低時,出現 底背離(以綠色三角形標記)。
這表示價格可能被低估,暗示潛在的上升趨勢,因此觸發買入信號。
賣出信號:
當價格創出高點,但 OBV 未隨之創出新高時,出現 頂背離(以紅色三角形標記)。
這表示價格可能被高估,暗示潛在的下跌趨勢,因此觸發賣出信號。
出場信號:
當趨勢強度減弱時(例如 ADX 下降),腳本可能生成出場信號(以橙色圓點標記)。
這提示交易者趨勢可能即將結束,適合平倉離場。
Smart Money Concept Strategy for Gold (XAU/USD)this is a simple buy and sell strategy use when it crosses above 200 ema for 1st time and shows buy signal then go for buy via versa
Money Printer V3 - BTC EMA Crossover Strategy🚀 Money Printer V3 - BTC EMA Crossover Strategy
📌 Overview
Money Printer V3 is a trend-following strategy designed to capture high-probability trades using EMA crossovers, MACD confirmation, RSI filtering, and ATR-based stop-losses. It helps traders identify strong momentum shifts and manage risk dynamically using a trailing stop-loss system.
This strategy is fully customizable and works on multiple timeframes, making it suitable for scalping, swing trading, or long-term trend following.
📊 How It Works
✅ Long Trades:
The fast EMA (default 20) crosses above the slow EMA (default 50).
RSI (default 14) is above 50, confirming trend strength.
MACD histogram is positive, showing bullish momentum.
(Optional) Volume filter confirms that a large amount of capital is moving into the trade.
✅ Short Trades:
The fast EMA crosses below the slow EMA.
RSI is below 50, signaling weakness.
MACD histogram is negative, confirming bearish momentum.
(Optional) Volume filter confirms that a sell-off has strong market participation.
✅ Risk Management:
ATR-based Stop-Loss: Automatically adjusts based on volatility.
Trailing Stop-Loss: Helps maximize profits by locking in gains as price moves in your favor.
Dynamic Position Sizing: Uses risk-based trade sizing to prevent overexposure.
📈 Backtesting & Strategy Settings
Tested on BTC/USD (4-hour timeframe) using realistic risk settings.
ATR-based stop-loss and trailing stop improve drawdown control.
Backtesting results may vary based on timeframe and market conditions.
⚠️ Risk Disclaimer
This strategy does not guarantee future profits. Past performance in backtesting does not predict future success.
Always use proper risk management and test strategies in a demo environment before trading live.
Adjust settings based on your risk tolerance and market conditions.
📌 How to Use
1️⃣ Add the script to your TradingView chart.
2️⃣ Adjust EMA, RSI, MACD, ATR, and Volume settings as needed.
3️⃣ Enable alerts to receive real-time buy/sell notifications.
4️⃣ Backtest on different timeframes to optimize performance.
5️⃣ Trade responsibly and monitor market conditions.
🔹 Strategy Type: Trend-Following
🔹 Best Used On: Crypto, Forex, and Stock Markets
🔹 Works On: Any timeframe (4H & 1D recommended for swing trading)
💡 Turn on Money Printer V3 and let the strategy do the work! 🚀
Tri-Indicator Trade AssistThis Pine Script indicator, named "Tri_Indicator Trade Assist", is a multi-criteria trading signal generator that combines three widely used technical analysis tools—Stochastic RSI, MACD, and RSI—along with volume and candle type confirmations. Here's a breakdown of its features and functionality:
Key Features:
1. Stochastic RSI Analysis:
Calculates %K and %D lines with user-defined smoothing and lengths.
Identifies overbought and oversold conditions based on user inputs (default levels: 80 for overbought, 20 for oversold).
Generates long and short signals using crossovers and crossunders of %K and %D, validated by oversold and overbought conditions.
2. MACD Analysis:
Calculates MACD line, signal line, and histogram using standard parameters (12, 26, 9) or user-defined inputs.
Generates long signals when the MACD line crosses above the signal line while the signal is below zero (bullish divergence).
Generates short signals when the MACD line crosses below the signal line while the signal is above zero (bearish divergence).
3. RSI Analysis:
Computes the Relative Strength Index (RSI) with a user-defined length (default: 14).
Generates long signals when RSI surpasses a customizable oversold threshold (default: 55).
Generates short signals when RSI falls below a customizable overbought threshold (default: 45).
4. Volume and Candle Confirmation:
Confirms long signals when volume exceeds its 30-period SMA, paired with a green (bullish) candle.
Confirms short signals when volume exceeds its 30-period SMA, paired with a red (bearish) candle.
5.Signal Filtration:
Avoids repetitive signals within a rolling window of five bars, ensuring reduced noise in alert generation.
6.Alerts and Visual Markers:
Generates alerts for long and short conditions with custom messages ("Go long" or "Go short").
Visually marks buy and sell signals on the chart using labeled up (green) and down (red) arrows for better clarity.
7.Customizable Parameters:
Provides flexibility through input settings for thresholds, lengths, and smoothing to suit various trading styles and asset characteristics.
Use Case:
This indicator is ideal for traders who employ a systematic approach to technical analysis. It combines momentum (RSI), trend-following (MACD), and oscillatory (Stochastic RSI) indicators with volume and price action filters, making it suitable for various trading strategies, including swing trading, scalping, and positional trading.
FinFluential Global M2 Money Supply // Days Offset =The "Global M2 Money Supply" indicator calculates and visualizes the combined M2 money supply from multiple countries and regions worldwide, expressed in trillions of USD. M2 is a measure of the money supply that includes cash, checking deposits, and easily convertible near-money assets. This indicator aggregates daily M2 data from various economies, converts them into a common USD base using forex exchange rates, and plots the total as a single line on the chart. It is designed as an overlay indicator aligned to the right scale, making it ideal for comparing global money supply trends with price action or other market data.