MACD / Owl of ProfitMACD Strategy
This strategy uses the MACD (Moving Average Convergence Divergence) indicator to identify potential trade opportunities based on bullish and bearish crossovers.
Features:
MACD Components:
MACD Line: The difference between the fast and slow exponential moving averages (default: 12 and 26 periods).
Signal Line: A 9-period EMA of the MACD Line.
Histogram: The difference between the MACD Line and Signal Line, representing momentum strength.
Crossover Logic:
Bullish Crossover: When the MACD Line crosses above the Signal Line, indicating upward momentum.
Bearish Crossover: When the MACD Line crosses below the Signal Line, indicating downward momentum.
Entry and Exit Logic:
Long Condition:
Triggered on a bullish crossover (MACD Line crosses above the Signal Line).
Closes any short position before opening (or adding to) a long position.
Short Condition:
Triggered on a bearish crossover (MACD Line crosses below the Signal Line).
Closes any long position before opening (or adding to) a short position.
Visualization:
MACD Line: Displays momentum trends.
Signal Line: Helps confirm trend reversals.
Histogram: Visualizes the strength and direction of momentum.
This strategy is straightforward and effective for momentum trading, ideal for traders looking to capture trend reversals and ride momentum shifts. Use it for backtesting and adaptation to your trading style.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
Osilatörler
MACD + Parabolic SAR / Owl of ProfitMACD + Parabolic SAR Strategy
This strategy combines the MACD and Parabolic SAR indicators to identify potential buy and sell signals based on trend direction and momentum.
Features:
MACD (Moving Average Convergence Divergence):
A momentum-based indicator that identifies bullish and bearish trends.
MACD Line: The difference between the fast and slow exponential moving averages.
Signal Line: A 9-period EMA of the MACD Line.
Histogram: Represents the difference between the MACD Line and Signal Line.
Parabolic SAR (Stop and Reverse):
A trend-following indicator used to set trailing stop-loss levels.
Parameters:
Start: 0.02 (default).
Increment: 0.02 (default).
Max: 0.2 (default).
Entry and Exit Logic:
Long Condition:
MACD Line is above the Signal Line (bullish momentum).
Price is above the Parabolic SAR value.
Opens a long position.
Short Condition:
MACD Line is below the Signal Line (bearish momentum).
Price is below the Parabolic SAR value.
Opens a short position.
Exit Logic:
For long positions: Exits when short conditions are met.
For short positions: Exits when long conditions are met.
Visualization:
MACD: Displays MACD Line, Signal Line, and Histogram to analyze momentum shifts.
Parabolic SAR: Plotted as dots above or below the price, indicating trend direction.
This strategy is ideal for traders who prefer a combination of momentum and trend-following techniques for precise entries and exits. Use it for backtesting and fine-tuning to match your trading style.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
Keltner Channels + Momentum / Owl of ProfitKeltner Channels + Momentum Strategy
This strategy combines Keltner Channels and the Momentum indicator to identify potential breakout trades and determine market strength.
Features:
Keltner Channels:
Middle Line: Exponential Moving Average (EMA) of the close price.
Upper and Lower Bands: Calculated by adding or subtracting a multiple of the Average True Range (ATR) from the EMA.
Default length: 20 periods.
Default multiplier: 1.5.
Momentum Indicator:
Measures the rate of price change over a specified period.
Default length: 14 periods.
A positive momentum indicates bullish strength, and a negative momentum indicates bearish strength.
Entry and Exit Logic:
Long Condition:
Price crosses above the upper Keltner Channel.
Momentum is greater than 0 (indicating upward strength).
Short Condition:
Price crosses below the lower Keltner Channel.
Momentum is less than 0 (indicating downward strength).
Exit Logic:
For Long Positions: Exit when the price crosses below the middle Keltner Channel or momentum falls below 0.
For Short Positions: Exit when the price crosses above the middle Keltner Channel or momentum rises above 0.
Visualization:
Keltner Channels: Upper (blue), middle (orange), and lower (blue) bands plotted on the chart.
Momentum Indicator: Displayed as a line oscillating around 0.
Signals for long and short entries/exits are clearly marked on the chart.
This strategy is designed for traders who seek to capitalize on breakout opportunities while confirming trade strength using momentum.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
Ichimoku Cloud + ADX + VWAP / Owl of ProfitIchimoku + ADX + VWAP Strategy
This strategy combines the Ichimoku Cloud, Average Directional Index (ADX), and Volume Weighted Average Price (VWAP) indicators to identify trend direction, momentum strength, and price positioning for optimal trade entries and exits.
Features:
Ichimoku Cloud:
Conversion Line (Tenkan-Sen): 9-period midpoint of the highest high and lowest low.
Base Line (Kijun-Sen): 26-period midpoint of the highest high and lowest low.
Leading Span A: Average of the Conversion and Base Lines, displaced 26 periods forward.
Leading Span B: 52-period midpoint of the highest high and lowest low, displaced 26 periods forward.
Cloud Fill (Kumo): Visualizes bullish (green) or bearish (red) trends.
ADX (Average Directional Index):
14-period ADX indicates the strength of a trend.
Signals are valid when ADX is above the 25 threshold.
VWAP (Volume Weighted Average Price):
Used as a dynamic support/resistance level to confirm price positioning.
Entry and Exit Logic:
Buy Condition:
Price is above both Leading Span A and B.
ADX is greater than 25, indicating a strong trend.
Price is above the VWAP.
Sell Condition:
Price is below both Leading Span A and B.
ADX is greater than 25.
Price is below the VWAP.
Trade Execution:
Executes a long position on a valid buy signal.
Closes the position when the sell condition is met.
Visualization:
Ichimoku Cloud is plotted with a dynamic fill to display bullish and bearish trends.
ADX is plotted with a horizontal threshold line at 25.
VWAP is displayed as a thick blue line for price confirmation.
Buy and Sell signals are marked on the chart with green and red labels, respectively.
This strategy integrates trend, momentum, and price positioning for high-confidence trades. Use it for backtesting and customization to suit your trading style.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
HMA + RSI / Owl of ProfitHMA + RSI Strategy
This strategy combines the Hull Moving Average (HMA) and the Relative Strength Index (RSI) to identify potential trade opportunities based on trend direction and momentum.
Features:
HMA Calculation:
Length: 50 (default).
HMA is plotted as a blue line on the price chart to indicate trend direction.
RSI Calculation:
Length: 14 (default).
Overbought Level: 70.
Oversold Level: 30.
RSI is plotted in purple with horizontal lines for overbought and oversold levels.
Entry and Exit Logic:
Long Condition:
Triggered when the price is above HMA, and RSI crosses above the oversold level (30).
Short Condition:
Triggered when the price is below HMA, and RSI crosses below the overbought level (70).
Exit Logic:
Long positions exit when RSI crosses below the overbought level or when the price drops below HMA.
Short positions exit when RSI crosses above the oversold level or when the price rises above HMA.
Customization Options:
Adjust HMA and RSI lengths, as well as RSI levels for overbought and oversold conditions, to suit different market conditions.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
FVG Oscillator (OmegaTools) / Owl of Profit remakeFVG Oscillator (OmegaTools)
Big thanks to OmegaTools for providing this strategy and making it available under the Mozilla Public License 2.0! This Pine Script™ code is subject to the terms of the license at mozilla.org
This strategy leverages Fair Value Gaps (FVG) to detect potential bullish and bearish trading opportunities, combining price gaps and volume analysis for precision.
Features:
FVG Detection:
Bullish FVG (BFVG): Identifies price gaps with upward momentum.
Bearish FVG (SFVG): Identifies price gaps with downward momentum.
Additional Conditions:
Requires confirmation via volume or significant gap size.
Dynamic Count:
Tracks bullish and bearish FVG counts over a customizable 50-bar lookback period.
Normalized Gap Values:
Displays weighted bullish and bearish FVG patterns for better visualization.
Entry and Exit Logic:
Buy Signal: Triggered when a bullish FVG meets verification criteria (volume or significant gap).
Sell Signal: Triggered when a bearish FVG meets verification criteria.
Automatic position management ensures existing positions are closed before entering new ones.
Visualization:
Plots bullish and bearish FVG counts and highlights areas above and below zero.
Displays normalized gap widths as histograms for both long and short patterns.
This strategy provides a robust framework for detecting and trading fair value gaps, making it ideal for traders seeking a gap-based methodology. Use it for backtesting or customize it further for your trading style.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
Fibonacci Retracement + Pivot Points + RSI / Owl of ProfitFibonacci Retracement + Pivot Points + RSI Strategy
This strategy combines Fibonacci Retracement, Pivot Points, and the Relative Strength Index (RSI) to identify key support/resistance levels, overbought/oversold conditions, and potential trade opportunities.
Features:
Fibonacci Retracement Levels:
Key levels (38.2%, 50%, 61.8%) are plotted to identify potential support and resistance zones.
Helps traders determine possible reversal or bounce points.
Pivot Points:
Automatically detects swing highs and lows on the chart.
Assists in locating key levels for entry or exit.
Relative Strength Index (RSI):
Identifies overbought (above 70) and oversold (below 30) conditions.
Provides additional confirmation for trades.
Entry and Exit Conditions:
Buy Signal: Triggered when the price bounces from a Fibonacci retracement level and RSI is below 30 (oversold).
Sell Signal: Triggered when the price rejects a Fibonacci retracement level and RSI is above 70 (overbought).
Customization Options:
Adjust Fibonacci levels, pivot point sensitivity, and RSI thresholds to suit different markets and trading styles.
Visualization:
Fibonacci retracement levels and pivot points are displayed directly on the chart.
RSI is plotted in a separate panel, with overbought/oversold levels clearly marked.
This strategy is designed for educational and testing purposes. Use it as a foundation for further backtesting and adapting to your trading approach.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
EMA 9 a 21 + Stochastic RSI / Owl of ProfitEMA 9/21 + Stoch RSI Strategy
This strategy combines Exponential Moving Averages (EMA) with Stochastic RSI to identify high-probability trading opportunities by analyzing both trend direction and overbought/oversold conditions.
Features:
Exponential Moving Averages (EMA):
Tracks short-term (9-period) and mid-term (21-period) trends.
Crossover signals are used to determine bullish and bearish trends.
Stochastic RSI:
Identifies overbought and oversold market conditions.
Adds a layer of confirmation to EMA crossovers, improving signal quality.
Entry and Exit Conditions:
Long Entry: Triggered when EMA 9 crosses above EMA 21 (bullish crossover) and Stochastic RSI is below the oversold threshold (default: 20).
Short Entry: Triggered when EMA 9 crosses below EMA 21 (bearish crossover) and Stochastic RSI is above the overbought threshold (default: 80).
Positions are closed when the opposite signal occurs.
Customization Options:
Adjust EMA and Stochastic RSI lengths to suit your trading preferences.
Modify overbought and oversold levels for different market conditions.
Visualization:
Plots EMA 9 and EMA 21 directly on the price chart for trend analysis.
Displays Stochastic RSI in a separate panel for clear visualization of overbought/oversold zones.
This strategy is designed for educational and testing purposes. Use it as a foundation for further backtesting and adapting to your trading approach.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
EMA12 + EMA26 + MACD + RSI / Owl of ProfitEMA 12 + EMA 26 + MACD + RSI Strategy
This strategy combines Exponential Moving Averages (EMA), MACD, and RSI to identify high-probability trading opportunities. It uses trend, momentum, and overbought/oversold conditions to refine entry and exit points.
Features:
Exponential Moving Averages (EMA):
Tracks short-term (12-period) and long-term (26-period) trends for crossover signals.
MACD Indicator:
Confirms trend strength and momentum using the MACD line and Signal line crossover.
Includes a histogram for visualizing bullish or bearish momentum.
RSI (Relative Strength Index):
Identifies overbought and oversold conditions to avoid entering trades in extreme zones.
Entry Conditions:
Long Entry: Triggered when EMA12 crosses above EMA26, MACD crosses above the Signal line, and RSI is below 70.
Sell Exit: Triggered when EMA12 crosses below EMA26, MACD crosses below the Signal line, and RSI is above 30.
Customization Options:
Modify lengths for EMA, MACD, and RSI to suit your trading preferences.
Visualization:
Plots EMA12 and EMA26 on the price chart for trend identification.
Displays MACD histogram and RSI in separate panels for momentum and strength analysis.
Entry and exit signals are clearly marked on the chart.
This strategy is designed for educational and testing purposes. Use it as a foundation for backtesting and adapting to your trading style.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
EMA 12 + EMA 26 + MACD / Owl of ProfitEMA 12 + EMA 26 + MACD Strategy
This strategy combines Exponential Moving Averages (EMA) with the MACD indicator to identify bullish and bearish market trends. It includes dynamic stop-loss and take-profit levels for risk management.
Features:
Exponential Moving Averages (EMA):
Tracks short-term and long-term trends using 12-period and 26-period EMAs.
Provides clear crossover signals for trend direction.
MACD Indicator:
Analyzes momentum and confirms entry signals using the MACD line and Signal line crossover.
Includes a histogram for visualizing bullish and bearish momentum.
Entry Conditions:
Long Entry: Triggered when the short EMA crosses above the long EMA and MACD is above the Signal line.
Short Entry: Triggered when the short EMA crosses below the long EMA and MACD is below the Signal line.
Exit Conditions:
Dynamic Stop-Loss and Take-Profit levels based on user-defined percentages.
Positions are also closed when the EMA or MACD signals reverse.
Customization Options:
Adjust EMA lengths for sensitivity to trends.
Modify MACD settings (fast, slow, and signal periods).
Set Stop-Loss and Take-Profit percentages for risk and reward management.
Visualization:
Plots short and long EMAs directly on the chart for easy trend identification.
Includes MACD and Signal line with a histogram in a separate panel for momentum analysis.
Entry and exit signals are clearly marked on the chart.
This strategy is designed for educational and testing purposes. Use it as a foundation for backtesting and adapting to your trading style.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
D Vortex / Owl of ProfitVortex Strategy with Signals
This strategy uses the Vortex Indicator (VI) to identify bullish and bearish trend reversals. It visualizes clear buy and sell signals based on the crossover of VI+ and VI- lines.
Features:
Vortex Indicator Calculation:
Calculates VI+ and VI- using smoothed values of directional movement and true range.
Identifies directional trends based on the relationship between VI+ and VI-.
Entry Conditions:
Long: Triggered when VI+ crosses above VI- (bullish crossover).
Short: Triggered when VI+ crosses below VI- (bearish crossover).
Visualization:
Plots VI+ (green) and VI- (red) for trend analysis.
Buy and sell signals are marked with clear labels on the chart (green for "BUY" and red for "SELL").
Customization Options:
Adjust the Vortex period for sensitivity to market trends.
This strategy is designed for educational and testing purposes. Use it as a foundation for further backtesting and adapting to your trading approach.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
CCI / Owl of ProfitCCI Strategy Example
This strategy uses the Commodity Channel Index (CCI) to identify potential long and short trading opportunities. It features customizable smoothing options and optional Bollinger Bands for added precision.
Features:
CCI Calculation:
CCI is calculated using the source (default: HLC3) with customizable period length.
Plots CCI values along with key levels (+100, -100, and 0) to identify overbought/oversold conditions.
Smoothing Options:
Includes various moving average types: SMA, EMA, SMMA (RMA), WMA, and VWMA.
Optionally applies Bollinger Bands to the smoothed CCI values for dynamic overbought/oversold levels.
Entry Conditions:
Long: Triggered when CCI crosses above -100.
Short: Triggered when CCI crosses above +100.
Customization Options:
Adjust CCI length and source (e.g., close, hlc3).
Select MA type and length for smoothing.
Enable Bollinger Bands with customizable standard deviation multiplier.
Visualization:
Clear CCI plot with shaded background for oversold and overbought zones.
Optional smoothed CCI with Bollinger Bands for advanced analysis.
This strategy is designed for educational and testing purposes. Use it as a foundation for backtesting and adapting to your trading needs.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
Chande Momentum Oscillator + BB / Owl of ProfitChande Momentum Oscillator + Bollinger Bands Strategy
This strategy combines the Chande Momentum Oscillator (CMO) with Bollinger Bands to identify overbought and oversold conditions and generate entry and exit signals based on price action and momentum.
Features:
Bollinger Bands:
Visualize volatility and identify price breakouts using customizable period and standard deviation.
Signals are triggered when the price crosses above or below the Bollinger Bands.
Chande Momentum Oscillator (CMO):
Detects momentum with a customizable length.
Confirms overbought or oversold conditions with upper and lower thresholds.
Entry Conditions:
Long: Price crosses below the lower Bollinger Band, and CMO is below the oversold level.
Short: Price crosses above the upper Bollinger Band, and CMO is above the overbought level.
Exit Conditions:
Long Exit: Price crosses above the Bollinger Basis or CMO enters overbought.
Short Exit: Price crosses below the Bollinger Basis or CMO enters oversold.
Customization Options:
Adjust Bollinger Bands length and standard deviation for sensitivity.
Modify CMO length and thresholds to refine momentum detection.
Visualization:
Bollinger Bands are shaded for clear identification of overbought and oversold zones.
CMO and its thresholds are plotted for easy reference.
This strategy is designed for educational and testing purposes. Use it as a foundation for backtesting and adapting to your trading approach.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
Internal Bar Strength (IBS) Strategy█ STRATEGY DESCRIPTION
The "Internal Bar Strength (IBS) Strategy" is a mean-reversion strategy designed to identify trading opportunities based on the closing price's position within the daily price range. It enters a long position when the IBS indicates oversold conditions and exits when the IBS reaches overbought levels. This strategy was designed to be used on the daily timeframe.
█ WHAT IS INTERNAL BAR STRENGTH (IBS)?
Internal Bar Strength (IBS) measures where the closing price falls within the high-low range of a bar. It is calculated as:
IBS = (Close - Low) / (High - Low)
- **Low IBS (≤ 0.2)**: Indicates the close is near the bar's low, suggesting oversold conditions.
- **High IBS (≥ 0.8)**: Indicates the close is near the bar's high, suggesting overbought conditions.
█ SIGNAL GENERATION
1. LONG ENTRY
A Buy Signal is triggered when:
The IBS value drops below the Lower Threshold (default: 0.2).
The signal occurs within the specified time window (between `Start Time` and `End Time`).
2. EXIT CONDITION
A Sell Signal is generated when the IBS value rises to or above the Upper Threshold (default: 0.8). This prompts the strategy to exit the position.
█ ADDITIONAL SETTINGS
Upper Threshold: The IBS level at which the strategy exits trades. Default is 0.8.
Lower Threshold: The IBS level at which the strategy enters long positions. Default is 0.2.
Start Time and End Time: The time window during which the strategy is allowed to execute trades.
█ PERFORMANCE OVERVIEW
This strategy is designed for ranging markets and performs best when prices frequently revert to the mean.
It is sensitive to extreme IBS values, which help identify potential reversals.
Backtesting results should be analyzed to optimize the Upper/Lower Thresholds for specific instruments and market conditions.
Big Candle Identifier with RSI Divergence and Advanced Stops1. Strategy Objective
The main goal of this strategy is to:
Identify significant price momentum (big candles).
Enter trades at opportune moments based on market signals (candlestick patterns and RSI divergence).
Limit initial risk through a fixed stop loss.
Maximize profits by using a trailing stop that activates only after the trade moves a specified distance in the profitable direction.
2. Components of the Strategy
A. Big Candle Identification
The strategy identifies big candles as indicators of strong momentum.
A big candle is defined as:
The body (absolute difference between close and open) of the current candle (body0) is larger than the bodies of the last five candles.
The candle is:
Bullish Big Candle: If close > open.
Bearish Big Candle: If open > close.
Purpose: Big candles signal potential continuation or reversal of trends, serving as the primary entry trigger.
B. RSI Divergence
Relative Strength Index (RSI): A momentum oscillator used to detect overbought/oversold conditions and divergence.
Fast RSI: A 5-period RSI, which is more sensitive to short-term price movements.
Slow RSI: A 14-period RSI, which smoothens fluctuations over a longer timeframe.
Divergence: The difference between the fast and slow RSIs.
Positive divergence (divergence > 0): Bullish momentum.
Negative divergence (divergence < 0): Bearish momentum.
Visualization: The divergence is plotted on the chart, helping traders confirm momentum shifts.
C. Stop Loss
Initial Stop Loss:
When entering a trade, an immediate stop loss of 200 points is applied.
This stop loss ensures the maximum risk is capped at a predefined level.
Implementation:
Long Trades: Stop loss is set below the entry price at low - 200 points.
Short Trades: Stop loss is set above the entry price at high + 200 points.
Purpose:
Prevents significant losses if the price moves against the trade immediately after entry.
D. Trailing Stop
The trailing stop is a dynamic risk management tool that adjusts with price movements to lock in profits. Here’s how it works:
Activation Condition:
The trailing stop only starts trailing when the trade moves 200 ticks (profit) in the right direction:
Long Position: close - entry_price >= 200 ticks.
Short Position: entry_price - close >= 200 ticks.
Trailing Logic:
Once activated, the trailing stop:
For Long Positions: Trails behind the price by 150 ticks (trail_stop = close - 150 ticks).
For Short Positions: Trails above the price by 150 ticks (trail_stop = close + 150 ticks).
Exit Condition:
The trade exits automatically if the price touches the trailing stop level.
Purpose:
Ensures profits are locked in as the trade progresses while still allowing room for price fluctuations.
E. Trade Entry Logic
Long Entry:
Triggered when a bullish big candle is identified.
Stop loss is set at low - 200 points.
Short Entry:
Triggered when a bearish big candle is identified.
Stop loss is set at high + 200 points.
F. Trade Exit Logic
Trailing Stop: Automatically exits the trade if the price touches the trailing stop level.
Fixed Stop Loss: Exits the trade if the price hits the predefined stop loss level.
G. 21 EMA
The strategy includes a 21-period Exponential Moving Average (EMA), which acts as a trend filter.
EMA helps visualize the overall market direction:
Price above EMA: Indicates an uptrend.
Price below EMA: Indicates a downtrend.
H. Visualization
Big Candle Identification:
The open and close prices of big candles are plotted for easy reference.
Trailing Stop:
Plotted on the chart to visualize its progression during the trade.
Green Line: Indicates the trailing stop for long positions.
Red Line: Indicates the trailing stop for short positions.
RSI Divergence:
Positive divergence is shown in green.
Negative divergence is shown in red.
3. Key Parameters
trail_start_ticks: The number of ticks required before the trailing stop activates (default: 200 ticks).
trail_distance_ticks: The distance between the trailing stop and price once the trailing stop starts (default: 150 ticks).
initial_stop_loss_points: The fixed stop loss in points applied at entry (default: 200 points).
tick_size: Automatically calculates the minimum tick size for the trading instrument.
4. Workflow of the Strategy
Step 1: Entry Signal
The strategy identifies a big candle (bullish or bearish).
If conditions are met, a trade is entered with a fixed stop loss.
Step 2: Initial Risk Management
The trade starts with an initial stop loss of 200 points.
Step 3: Trailing Stop Activation
If the trade moves 200 ticks in the profitable direction:
The trailing stop is activated and follows the price at a distance of 150 ticks.
Step 4: Exit the Trade
The trade is exited if:
The price hits the trailing stop.
The price hits the initial stop loss.
5. Advantages of the Strategy
Risk Management:
The fixed stop loss ensures that losses are capped.
The trailing stop locks in profits after the trade becomes profitable.
Momentum-Based Entries:
The strategy uses big candles as entry triggers, which often indicate strong price momentum.
Divergence Confirmation:
RSI divergence helps validate momentum and avoid false signals.
Dynamic Profit Protection:
The trailing stop adjusts dynamically, allowing the trade to capture larger moves while protecting gains.
6. Ideal Market Conditions
This strategy performs best in:
Trending Markets:
Big candles and momentum signals are more effective in capturing directional moves.
High Volatility:
Larger price swings improve the probability of reaching the trailing stop activation level (200 ticks).
Sunil High-Frequency Strategy with Simple MACD & RSISunil High-Frequency Strategy with Simple MACD & RSI
This high-frequency trading strategy uses a combination of MACD and RSI to identify quick market opportunities. By leveraging these indicators, combined with dynamic risk management using ATR, it aims to capture small but frequent price movements while ensuring tight control over risk.
Key Features:
Indicators Used:
MACD (Moving Average Convergence Divergence): The strategy uses a shorter MACD configuration (Fast Length of 6 and Slow Length of 12) to capture quick price momentum shifts. A MACD crossover above the signal line triggers a buy signal, while a crossover below the signal line triggers a sell signal.
RSI (Relative Strength Index): A shorter RSI length of 7 is used to gauge overbought and oversold market conditions. The strategy looks for RSI confirmation, with a long trade initiated when RSI is below the overbought level (70) and a short trade initiated when RSI is above the oversold level (30).
Risk Management:
Dynamic Stop Loss and Take Profit: The strategy uses ATR (Average True Range) to calculate dynamic stop loss and take profit levels based on market volatility.
Stop Loss is set at 0.5x ATR to limit risk.
Take Profit is set at 1.5x ATR to capture reasonable price moves.
Trailing Stop: As the market moves in the strategy’s favor, the position is protected by a trailing stop set at 0.5x ATR, allowing the strategy to lock in profits as the price moves further.
Entry & Exit Signals:
Long Entry: Triggered when the MACD crosses above the signal line (bullish crossover) and RSI is below the overbought level (70).
Short Entry: Triggered when the MACD crosses below the signal line (bearish crossover) and RSI is above the oversold level (30).
Exit Conditions: The strategy exits long or short positions based on the stop loss, take profit, or trailing stop activation.
Frequent Trades:
This strategy is designed for high-frequency trading, with trade signals occurring frequently as the MACD and RSI indicators react quickly to price movements. It works best on lower timeframes such as 1-minute, 5-minute, or 15-minute charts, but can be adjusted for different timeframes based on the asset’s volatility.
Customizable Parameters:
MACD Settings: Adjust the Fast Length, Slow Length, and Signal Length to tune the MACD’s sensitivity.
RSI Settings: Customize the RSI Length, Overbought, and Oversold levels to better match your trading style.
ATR Settings: Modify the ATR Length and multipliers for Stop Loss, Take Profit, and Trailing Stop to optimize risk management according to market volatility.
Important Notes:
Market Conditions: This strategy is designed to capture smaller, quicker moves in trending markets. It may not perform well during choppy or sideways markets.
Optimizing for Asset Volatility: Adjust the ATR multipliers based on the asset’s volatility to suit the risk-reward profile that fits your trading goals.
Backtesting: It's recommended to backtest the strategy on different assets and timeframes to ensure optimal performance.
Summary:
The Sunil High-Frequency Strategy leverages a simple combination of MACD and RSI with dynamic risk management (using ATR) to trade small but frequent price movements. The strategy ensures tight stop losses and reasonable take profits, with trailing stops to lock in profits as the price moves in favor of the trade. It is ideal for scalping or intraday trading on lower timeframes, aiming for quick entries and exits with controlled risk.
EMA RSI Trend Reversal Ver.1Overview:
The EMA RSI Trend Reversal indicator combines the power of two well-known technical indicators—Exponential Moving Averages (EMAs) and the Relative Strength Index (RSI)—to identify potential trend reversal points in the market. The strategy looks for key crossovers between the fast and slow EMAs, and uses the RSI to confirm the strength of the trend. This combination helps to avoid false signals during sideways market conditions.
How It Works:
Buy Signal:
The Fast EMA (9) crosses above the Slow EMA (21), indicating a potential shift from a downtrend to an uptrend.
The RSI is above 50, confirming strong bullish momentum.
Visual Signal: A green arrow below the price bar and a Buy label are plotted on the chart.
Sell Signal:
The Fast EMA (9) crosses below the Slow EMA (21), indicating a potential shift from an uptrend to a downtrend.
The RSI is below 50, confirming weak or bearish momentum.
Visual Signal: A red arrow above the price bar and a Sell label are plotted on the chart.
Key Features:
EMA Crossovers: The Fast EMA crossing above the Slow EMA signals potential buying opportunities, while the Fast EMA crossing below the Slow EMA signals potential selling opportunities.
RSI Confirmation: The RSI helps confirm trend strength—values above 50 indicate bullish momentum, while values below 50 indicate bearish momentum.
Visual Cues: The strategy uses green arrows and red arrows along with Buy and Sell labels for clear visual signals of when to enter or exit trades.
Signal Interpretation:
Green Arrow / Buy Label: The Fast EMA (9) has crossed above the Slow EMA (21), and the RSI is above 50. This is a signal to buy or enter a long position.
Red Arrow / Sell Label: The Fast EMA (9) has crossed below the Slow EMA (21), and the RSI is below 50. This is a signal to sell or exit the long position.
Strategy Settings:
Fast EMA Length: Set to 9 (this determines how sensitive the fast EMA is to recent price movements).
Slow EMA Length: Set to 21 (this smooths out price movements to identify the broader trend).
RSI Length: Set to 14 (default setting to track momentum strength).
RSI Level: Set to 50 (used to confirm the strength of the trend—above 50 for buy signals, below 50 for sell signals).
Risk Management (Optional):
Use take profit and stop loss based on your preferred risk-to-reward ratio. For example, you can set a 2:1 risk-to-reward ratio (2x take profit for every 1x stop loss).
Backtesting and Optimization:
Backtest the strategy on TradingView by opening the Strategy Tester tab. This will allow you to see how the strategy would have performed on historical data.
Optimization: Adjust the EMA lengths, RSI period, and risk-to-reward settings based on your asset and time frame.
Limitations:
False Signals in Sideways Markets: Like any trend-following strategy, this indicator may generate false signals during periods of low volatility or sideways movement.
Not Suitable for All Market Conditions: This indicator performs best in trending markets. It may underperform in choppy or range-bound markets.
Strategy Example:
XRP/USD Example:
If you're trading XRP/USD and the Fast EMA (9) crosses above the Slow EMA (21), while the RSI is above 50, the indicator will signal a Buy.
Conversely, if the Fast EMA (9) crosses below the Slow EMA (21), and the RSI is below 50, the indicator will signal a Sell.
Bitcoin (BTC/USD):
On the BTC/USD chart, when the indicator shows a green arrow and a Buy label, it’s signaling a potential long entry. Similarly, a red arrow and Sell label indicate a short entry or exit from a previous long position.
Summary:
The EMA RSI Trend Reversal Indicator helps traders identify potential trend reversals with clear buy and sell signals based on the EMA crossovers and RSI confirmations. By using green arrows and red arrows, along with Buy and Sell labels, this strategy offers easy-to-understand visual signals for entering and exiting trades. Combine this with effective risk management and backtesting to optimize your trading performance.
Kernel Regression Envelope with SMI OscillatorThis script combines the predictive capabilities of the **Nadaraya-Watson estimator**, implemented by the esteemed jdehorty (credit to him for his excellent work on the `KernelFunctions` library and the original Nadaraya-Watson Envelope indicator), with the confirmation strength of the **Stochastic Momentum Index (SMI)** to create a dynamic trend reversal strategy. The core idea is to identify potential overbought and oversold conditions using the Nadaraya-Watson Envelope and then confirm these signals with the SMI before entering a trade.
**Understanding the Nadaraya-Watson Envelope:**
The Nadaraya-Watson estimator is a non-parametric regression technique that essentially calculates a weighted average of past price data to estimate the current underlying trend. Unlike simple moving averages that give equal weight to all past data within a defined period, the Nadaraya-Watson estimator uses a **kernel function** (in this case, the Rational Quadratic Kernel) to assign weights. The key parameters influencing this estimation are:
* **Lookback Window (h):** This determines how many historical bars are considered for the estimation. A larger window results in a smoother estimation, while a smaller window makes it more reactive to recent price changes.
* **Relative Weighting (alpha):** This parameter controls the influence of different time frames in the estimation. Lower values emphasize longer-term price action, while higher values make the estimator more sensitive to shorter-term movements.
* **Start Regression at Bar (x\_0):** This allows you to exclude the potentially volatile initial bars of a chart from the calculation, leading to a more stable estimation.
The script calculates the Nadaraya-Watson estimation for the closing price (`yhat_close`), as well as the highs (`yhat_high`) and lows (`yhat_low`). The `yhat_close` is then used as the central trend line.
**Dynamic Envelope Bands with ATR:**
To identify potential entry and exit points around the Nadaraya-Watson estimation, the script uses **Average True Range (ATR)** to create dynamic envelope bands. ATR measures the volatility of the price. By multiplying the ATR by different factors (`nearFactor` and `farFactor`), we create multiple bands:
* **Near Bands:** These are closer to the Nadaraya-Watson estimation and are intended to identify potential immediate overbought or oversold zones.
* **Far Bands:** These are further away and can act as potential take-profit or stop-loss levels, representing more extreme price extensions.
The script calculates both near and far upper and lower bands, as well as an average between the near and far bands. This provides a nuanced view of potential support and resistance levels around the estimated trend.
**Confirming Reversals with the Stochastic Momentum Index (SMI):**
While the Nadaraya-Watson Envelope identifies potential overextended conditions, the **Stochastic Momentum Index (SMI)** is used to confirm a potential trend reversal. The SMI, unlike a traditional stochastic oscillator, oscillates around a zero line. It measures the location of the current closing price relative to the median of the high/low range over a specified period.
The script calculates the SMI on a **higher timeframe** (defined by the "Timeframe" input) to gain a broader perspective on the market momentum. This helps to filter out potential whipsaws and false signals that might occur on the current chart's timeframe. The SMI calculation involves:
* **%K Length:** The lookback period for calculating the highest high and lowest low.
* **%D Length:** The period for smoothing the relative range.
* **EMA Length:** The period for smoothing the SMI itself.
The script uses a double EMA for smoothing within the SMI calculation for added smoothness.
**How the Indicators Work Together in the Strategy:**
The strategy enters a long position when:
1. The closing price crosses below the **near lower band** of the Nadaraya-Watson Envelope, suggesting a potential oversold condition.
2. The SMI crosses above its EMA, indicating positive momentum.
3. The SMI value is below -50, further supporting the oversold idea on the higher timeframe.
Conversely, the strategy enters a short position when:
1. The closing price crosses above the **near upper band** of the Nadaraya-Watson Envelope, suggesting a potential overbought condition.
2. The SMI crosses below its EMA, indicating negative momentum.
3. The SMI value is above 50, further supporting the overbought idea on the higher timeframe.
Trades are closed when the price crosses the **far band** in the opposite direction of the trade. A stop-loss is also implemented based on a fixed value.
**In essence:** The Nadaraya-Watson Envelope identifies areas where the price might be deviating significantly from its estimated trend. The SMI, calculated on a higher timeframe, then acts as a confirmation signal, suggesting that the momentum is shifting in the direction of a potential reversal. The ATR-based bands provide dynamic entry and exit points based on the current volatility.
**How to Use the Script:**
1. **Apply the script to your chart.**
2. **Adjust the "Kernel Settings":**
* **Lookback Window (h):** Experiment with different values to find the smoothness that best suits the asset and timeframe you are trading. Lower values make the envelope more reactive, while higher values make it smoother.
* **Relative Weighting (alpha):** Adjust to control the influence of different timeframes on the Nadaraya-Watson estimation.
* **Start Regression at Bar (x\_0):** Increase this value if you want to exclude the initial, potentially volatile, bars from the calculation.
* **Stoploss:** Set your desired stop-loss value.
3. **Adjust the "SMI" settings:**
* **%K Length, %D Length, EMA Length:** These parameters control the sensitivity and smoothness of the SMI. Experiment to find settings that work well for your trading style.
* **Timeframe:** Select the higher timeframe you want to use for SMI confirmation.
4. **Adjust the "ATR Length" and "Near/Far ATR Factor":** These settings control the width and sensitivity of the envelope bands. Smaller ATR lengths make the bands more reactive to recent volatility.
5. **Customize the "Color Settings"** to your preference.
6. **Observe the plots:**
* The **Nadaraya-Watson Estimation (yhat)** line represents the estimated underlying trend.
* The **near and far upper and lower bands** visualize potential overbought and oversold zones based on the ATR.
* The **fill areas** highlight the regions between the near and far bands.
7. **Look for entry signals:** A long entry is considered when the price touches or crosses below the lower near band and the SMI confirms upward momentum. A short entry is considered when the price touches or crosses above the upper near band and the SMI confirms downward momentum.
8. **Manage your trades:** The script provides exit signals when the price crosses the far band. The fixed stop-loss will also close trades if the price moves against your position.
**Justification for Combining Nadaraya-Watson Envelope and SMI:**
The combination of the Nadaraya-Watson Envelope and the SMI provides a more robust approach to identifying potential trend reversals compared to using either indicator in isolation. The Nadaraya-Watson Envelope excels at identifying potential areas where the price is overextended relative to its recent history. However, relying solely on the envelope can lead to false signals, especially in choppy or volatile markets. By incorporating the SMI as a confirmation tool, we add a momentum filter that helps to validate the potential reversals signaled by the envelope. The higher timeframe SMI further helps to filter out noise and focus on more significant shifts in momentum. The ATR-based bands add a dynamic element to the entry and exit points, adapting to the current market volatility. This mashup aims to leverage the strengths of each indicator to create a more reliable trading strategy.
DAILY Supertrend + EMA Crossover with RSI FilterThis strategy is a technical trading approach that combines multiple indicators—Supertrend, Exponential Moving Averages (EMAs), and the Relative Strength Index (RSI)—to identify and manage trades.
Core Components:
1. Exponential Moving Averages (EMAs):
Two EMAs, one with a shorter period (fast) and one with a longer period (slow), are calculated. The idea is to spot when the faster EMA crosses above or below the slower EMA. A fast EMA crossing above the slow EMA often suggests upward momentum, while crossing below suggests downward momentum.
2. Supertrend Indicator:
The Supertrend uses Average True Range (ATR) to establish dynamic support and resistance lines. These lines shift above or below price depending on the prevailing trend. When price is above the Supertrend line, the trend is considered bullish; when below, it’s considered bearish. This helps ensure that the strategy trades only in the direction of the overall trend rather than against it.
3. RSI Filter:
The RSI measures momentum. It helps avoid buying into markets that are already overbought or selling into markets that are oversold. For example, when going long (buying), the strategy only proceeds if the RSI is not too high, and when going short (selling), it only proceeds if the RSI is not too low. This filter is meant to improve the quality of the trades by reducing the chance of entering right before a reversal.
4. Time Filters:
The strategy only triggers entries during user-specified date and time ranges. This is useful if one wants to limit trading activity to certain trading sessions or periods with higher market liquidity.
5. Risk Management via ATR-based Stops and Targets:
Both stop loss and take profit levels are set as multiples of the ATR. ATR measures volatility, so when volatility is higher, both stops and profit targets adjust to give the trade more breathing room. Conversely, when volatility is low, stops and targets tighten. This dynamic approach helps maintain consistent risk management regardless of market conditions.
Overall Logic Flow:
- First, the market conditions are analyzed through EMAs, Supertrend, and RSI.
- When a buy (long) condition is met—meaning the fast EMA crosses above the slow EMA, the trend is bullish according to Supertrend, and RSI is below the specified “overbought” threshold—the strategy initiates or adds to a long position.
- Similarly, when a sell (short) condition is met—meaning the fast EMA crosses below the slow EMA, the trend is bearish, and RSI is above the specified “oversold” threshold—it initiates or adds to a short position.
- Each position is protected by an automatically calculated stop loss and a take profit level based on ATR multiples.
Intended Result:
By blending trend detection, momentum filtering, and volatility-adjusted risk management, the strategy aims to capture moves in the primary trend direction while avoiding entries at excessively stretched prices. Allowing multiple entries can potentially amplify gains in strong trends but also increases exposure, which traders should consider in their risk management approach.
In essence, this strategy tries to ride established trends as indicated by the Supertrend and EMAs, filter out poor-quality entries using RSI, and dynamically manage trade risk through ATR-based stops and targets.
3 EMA + RSI with Trail Stop [Free990] (LOW TF)This trading strategy combines three Exponential Moving Averages (EMAs) to identify trend direction, uses RSI to signal exit conditions, and applies both a fixed percentage stop-loss and a trailing stop for risk management. It aims to capture momentum when the faster EMAs cross the slower EMA, then uses RSI thresholds, time-based exits, and stops to close trades.
Short Explanation of the Logic
Trend Detection: When the 10 EMA crosses above the 20 EMA and both are above the 100 EMA (and the current price bar closes higher), it triggers a long entry signal. The reverse happens for a short (the 10 EMA crosses below the 20 EMA and both are below the 100 EMA).
RSI Exit: RSI crossing above a set threshold closes long trades; crossing below another threshold closes short trades.
Time-Based Exit: If a trade is in profit after a set number of bars, the strategy closes it.
Stop-Loss & Trailing Stop: A fixed stop-loss based on a percentage from the entry price guards against large drawdowns. A trailing stop dynamically tightens as the trade moves in favor, locking in potential gains.
Detailed Explanation of the Strategy Logic
Exponential Moving Average (EMA) Setup
Short EMA (out_a, length=10)
Medium EMA (out_b, length=20)
Long EMA (out_c, length=100)
The code calculates three separate EMAs to gauge short-term, medium-term, and longer-term trend behavior. By comparing their relative positions, the strategy infers whether the market is bullish (EMAs stacked positively) or bearish (EMAs stacked negatively).
Entry Conditions
Long Entry (entryLong): Occurs when:
The short EMA (10) crosses above the medium EMA (20).
Both EMAs (short and medium) are above the long EMA (100).
The current bar closes higher than it opened (close > open).
This suggests that momentum is shifting to the upside (short-term EMAs crossing up and price action turning bullish). If there’s an existing short position, it’s closed first before opening a new long.
Short Entry (entryShort): Occurs when:
The short EMA (10) crosses below the medium EMA (20).
Both EMAs (short and medium) are below the long EMA (100).
The current bar closes lower than it opened (close < open).
This indicates a potential shift to the downside. If there’s an existing long position, that gets closed first before opening a new short.
Exit Signals
RSI-Based Exits:
For long trades: When RSI exceeds a specified threshold (e.g., 70 by default), it triggers a long exit. RSI > short_rsi generally means overbought conditions, so the strategy exits to lock in profits or avoid a pullback.
For short trades: When RSI dips below a specified threshold (e.g., 30 by default), it triggers a short exit. RSI < long_rsi indicates oversold conditions, so the strategy closes the short to avoid a bounce.
Time-Based Exit:
If the trade has been open for xBars bars (configurable, e.g., 24 bars) and the trade is in profit (current price above entry for a long, or current price below entry for a short), the strategy closes the position. This helps lock in gains if the move takes too long or momentum stalls.
Stop-Loss Management
Fixed Stop-Loss (% Based): Each trade has a fixed stop-loss calculated as a percentage from the average entry price.
For long positions, the stop-loss is set below the entry price by a user-defined percentage (fixStopLossPerc).
For short positions, the stop-loss is set above the entry price by the same percentage.
This mechanism prevents catastrophic losses if the market moves strongly against the position.
Trailing Stop:
The strategy also sets a trail stop using trail_points (the distance in price points) and trail_offset (how quickly the stop “catches up” to price).
As the market moves in favor of the trade, the trailing stop gradually tightens, allowing profits to run while still capping potential drawdowns if the price reverses.
Order Execution Flow
When the conditions for a new position (long or short) are triggered, the strategy first checks if there’s an opposite position open. If there is, it closes that position before opening the new one (prevents going “both long and short” simultaneously).
RSI-based and time-based exits are checked on each bar. If triggered, the position is closed.
If the position remains open, the fixed stop-loss and trailing stop remain in effect until the position is exited.
Why This Combination Works
Multiple EMA Cross: Combining 10, 20, and 100 EMAs balances short-term momentum detection with a longer-term trend filter. This reduces false signals that can occur if you only look at a single crossover without considering the broader trend.
RSI Exits: RSI provides a momentum oscillator view—helpful for detecting overbought/oversold conditions, acting as an extra confirmation to exit.
Time-Based Exit: Prevents “lingering trades.” If the position is in profit but failing to advance further, it takes profit rather than risking a trend reversal.
Fixed & Trailing Stop-Loss: The fixed stop-loss is your safety net to cap worst-case losses. The trailing stop allows the strategy to lock in gains by following the trade as it moves favorably, thus maximizing profit potential while keeping risk in check.
Overall, this approach tries to capture momentum from EMA crossovers, protect profits with trailing stops, and limit risk through both a fixed percentage stop-loss and exit signals from RSI/time-based logic.
DemaRSI StrategyThis is a repost to a old script that cant be updated anymore, the request was made on Feb, 27, 2016.
Here's a engaging description for the tradingview script:
**DemaRSI Strategy: A Proven Trading System**
Join thousands of traders who have already experienced the power of this highly effective strategy. The DemaRSI system combines two powerful indicators - DEMA (Double Exponential Moving Average) and RSI (Relative Strength Index) - to generate profitable trades with minimal risk.
**Key Features:**
* **Trend-Following**: Our algorithm identifies strong trends using a combination of DEMA and RSI, allowing you to ride the waves of market momentum.
* **Risk Management**: The system includes built-in stop-loss and take-profit levels, ensuring that your gains are protected and losses are minimized.
* **Session-Based Trading**: Trade during specific sessions only (e.g., London or New York) for even more targeted results.
* **Customizable Settings**: Adjust the length of moving averages, RSI periods, and other parameters to suit your trading style.
**What You'll Get:**
* A comprehensive strategy that can be used with any broker or platform
* Easy-to-use interface with customizable settings
* Real-time performance metrics and backtesting capabilities
**Start Trading Like a Pro Today!**
This script is designed for intermediate to advanced traders who want to take their trading game to the next level. With its robust risk management features, this strategy can help you achieve consistent profits in various market conditions.
**Disclaimer:** This script is not intended as investment advice and should be used at your own discretion. Trading carries inherent risks, and losses are possible.
~Llama3
Precision Trading Strategy: Golden EdgeThe PTS: Golden Edge strategy is designed for scalping Gold (XAU/USD) on lower timeframes, such as the 1-minute chart. It captures high-probability trade setups by aligning with strong trends and momentum, while filtering out low-quality trades during consolidation or low-volatility periods.
The strategy uses a combination of technical indicators to identify optimal entry points:
1. Exponential Moving Averages (EMAs): A fast EMA (3-period) and a slow EMA (33-period) are used to detect short-term trend reversals via crossover signals.
2. Hull Moving Average (HMA): A 66-period HMA acts as a higher-timeframe trend filter to ensure trades align with the overall market direction.
3. Relative Strength Index (RSI): A 12-period RSI identifies momentum. The strategy requires RSI > 55 for long trades and RSI < 45 for short trades, ensuring entries are backed by strong buying or selling pressure.
4. Average True Range (ATR): A 14-period ATR ensures trades occur only during volatile conditions, avoiding choppy or low-movement markets.
By combining these tools, the PTS: Golden Edge strategy creates a precise framework for scalping and offers a systematic approach to capitalize on Gold’s price movements efficiently.
TTM Grid StrategyThis strategy uses a TTM (based on EMAs of highs and lows) to determine the market's trend direction.
It then deploys a grid trading system around a dynamically updated base price, with the grid's direction and levels adjusting based on the trend.
Trades are executed as the price crosses the predefined grid levels, with the strategy risking a set percentage of equity per trade.
Core Strategy Logic:
TTM State Calculation (ttmState() function):
* Calculates two EMAs based on the `ttmPeriod`: one for the lows (`lowMA`) and one for the highs (`highMA`).
* Defines two threshold levels: `lowThird` (1/3 from the bottom) and `highThird` (2/3 from the bottom) of the range between `highMA` and `lowMA`.
* Returns the current TTM state as an integer:
+ `1` if the close price is above `highThird` (indicating an uptrend).
+ `0` if the close price is below `lowThird` (indicating a downtrend).
+ `-1` if the close price is between `lowThird` and `highThird` (indicating a neutral state).