Tutorial - Adding sessions to strategiesA simple script to illustrate how to add sessions to trading strategies.
In this interactive tutorial, you'll learn how to add trading sessions to your strategies using Pine Script. By the end of this session (pun intended!), you'll be able to create custom trading windows that adapt to changing market conditions.
What You'll Learn:
Defining Trading Sessions: Understand how to set up specific time frames for buying and selling, tailored to your unique trading style.
RSI-Based Entry Signals: Discover how to use the Relative Strength Index (RSI) as a trigger for buy and sell signals, helping you capitalize on market trends.
Combining Session Logic with Trading Decisions: Learn how to integrate session-based logic into your strategy, ensuring that trades are executed only during designated times.
By combining these elements, we create an interactive strategy that:
1. Generates buy and sell signals based on RSI levels.
2. Checks if the market is open during a specific trading session (e.g., 1300-1700).
3. Executes trades only when both conditions are met.
**Tips & Variations:**
* Experiment with different RSI periods, thresholds, and sessions to optimize your strategy for various markets and time frames.
* Consider adding more advanced logic, such as stop-losses or position sizing, to further refine your trading approach.
Get ready to take your Pine Script skills to the next level!
~Description partially generated with Llama3_8B
Oscylatory
SAR + RSI Strategy with SMA risk controlThis strategy first identifies RSI oversold or overbought and then within 1-3 candles of this condition looks for SAR signal and opens a trade accordingly. When the prices goes back to the 21 candle simple movin average, this closes the trade.
Strategy with Volume, MACD, RSI, StochRSIExplanation:
MACD: Used to identify momentum and trend direction.
RSI: Used to identify overbought/oversold conditions.
StochRSI: A more sensitive version of RSI, used to confirm RSI signals.
Volume Spike: Ensures trades are taken only when volume is above a threshold, indicating strong interest.
How to Use:
Copy and paste the code into the Pine Script editor in TradingView.
Add it to the BTCUSDT.P chart on Binance.
Backtest the strategy on historical data to evaluate its performance.
Adjust the input parameters to optimize the strategy for your trading style.
Notes:
This is a basic strategy and may not perform well in all market conditions.
Always backtest and forward-test strategies before using them with real money.
Consider adding risk management features like stop-loss and take-profit levels.
Gaussian Channel with Stochastic RSI StrategyStrategy based on the Gaussian Channel and add Stochastic RSI to avoid bad trades.
Gaussian Channel indicates the overall trend, up or down.
StochasticRSI helps to avoid unnecessary trades.
Buy when price closed above the upper Gaussian Channel line AND when Stochastic is up.
Sell when price closes below the upper Gaussian Channel line.
Works for longs only, no shorting.
Never uses lookahead_on.
Chande Momentum Oscillator + BB (%B) / Owl of ProfitCMO + Bollinger Bands (%B) Strategy
The CMO + Bollinger Bands (%B) Strategy combines the Chande Momentum Oscillator (CMO) and Bollinger Bands to detect trading opportunities based on price momentum and volatility. This strategy aims to capitalize on price movements during trend changes and volatility extremes.
Features
Bollinger Bands (%B):
Bollinger Bands are calculated using a simple moving average (SMA) and a multiple of standard deviations.
%B measures the relative position of the price within the Bollinger Bands:
0.2 indicates the price is near the lower band.
0.8 indicates the price is near the upper band.
Chande Momentum Oscillator (CMO):
The CMO calculates momentum by comparing upward and downward price changes over a defined period.
Crosses above or below zero signal potential trend changes:
Above 0: Bullish momentum.
Below 0: Bearish momentum.
Entry and Exit Conditions
Long Entry (Buy Signal):
%B crosses above 0.2 (indicating the price is near the lower band and potentially reversing).
CMO crosses above 0 (indicating bullish momentum).
Short Entry (Sell Signal):
%B crosses below 0.8 (indicating the price is near the upper band and potentially reversing).
CMO crosses below 0 (indicating bearish momentum).
Visualization
Bollinger Bands:
Blue Line: SMA (Basis).
Red Line: Upper Band.
Green Line: Lower Band.
Bands are shaded for enhanced clarity.
%B Thresholds:
0.8: Upper threshold (dashed red line).
0.2: Lower threshold (dashed green line).
Chande Momentum Oscillator:
Purple line with a zero reference line.
Use Cases
Range Trading: Ideal for identifying reversals near Bollinger Band extremes.
Momentum Trading: CMO ensures trades align with strong price movements.
Tags
CMO, Bollinger Bands, %B, volatility, momentum, trend trading, technical analysis, Pine Script, Bybit indicators
Categories
Trend Analysis
Volatility
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
Gaussian Channel with Stochastic RSIStrategy based on the Gaussian Channel and add Stochastic RSI to avoid bad trades.
Good for Long only, no shorting.
Never uses lookahead_on.
Zig Zag + Williams %R / Owl of ProfitZig Zag + Williams %R Strategy
The Zig Zag + Williams %R Strategy combines trend identification with momentum-based entries. It detects significant swing highs and lows using the Zig Zag indicator, while the Williams %R oscillator helps confirm entry points when the market reaches overbought or oversold conditions.
Features
Zig Zag Indicator:
Identifies swing highs and lows based on price deviation and depth settings.
Helps eliminate market noise by focusing on significant price movements.
Provides a clear trend direction (uptrend or downtrend).
Williams %R Oscillator:
Measures momentum by comparing the current price to the highest high over a given period.
Values below -80 indicate oversold conditions (potential buying opportunity).
Values above -20 indicate overbought conditions (potential selling opportunity).
Entry and Exit Conditions
Long Entry (Buy Signal):
The Zig Zag identifies a new swing low (uptrend begins).
Williams %R crosses above -80 (momentum shift upward).
Short Entry (Sell Signal):
The Zig Zag identifies a new swing high (downtrend begins).
Williams %R crosses below -20 (momentum shift downward).
Exit Conditions:
Positions are closed based on predefined Stop Loss (1%) and Take Profit (2%) levels.
Alternatively, trades can be exited when the trend reverses according to the Zig Zag indicator.
Visualization
Zig Zag Pivots:
Green Labels (PL): Swing lows (potential buys).
Red Labels (PH): Swing highs (potential sells).
Williams %R Indicator:
Dashed Green Line (-80): Oversold threshold.
Dashed Red Line (-20): Overbought threshold.
Blue Line: Real-time Williams %R value.
Use Cases
Swing Trading: Identifies major trend reversals for medium-term trades.
Momentum Trading: Confirms high-probability entries using Williams %R.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
Hybrid Trend Momentum Strategy by Biege ver. 1.0Strategy Profile
Type: Fixed-Parameter Trend Momentum System
Optimized For: 2-Hour Timeframe (Best Performance)
Core Logic:
Uses fixed 21/55/200 EMAs for trend identification
Combines RSI(14) momentum filter with SuperTrend(3,14) stop
Requires 1.5x volume surge + ATR volatility confirmation
===========================================================================
Hourly Profitability Drivers
EMA Precision
21-period EMA (~1 trading day) captures intraday swings
55-period EMA (~2.5 days) filters false hourly breakouts
RSI Stability
14-period RSI aligns with 14-hour cycles in crypto markets
Avoids overreaction to 15-minute noise
SuperTrend Efficiency
3x ATR(14) provides optimal trailing stop for hourly candles
Outperforms static stops in volatile crypto sessions
===========================================================================
Key Strengths
No Parameter Tweaking Needed: Pre-optimized for hourly candles
Trend Persistence Capture: Holds through minor pullbacks
Automatic Risk Control: Built-in cooldown (6h) prevents overtrading
===========================================================================
Critical Limitations
Overnight Gap Risk: Crypto markets move 24/7
News Event Vulnerability: Hourly candles may trap during FOMO spikes
Fixed Exit Rigidity: No manual stop-loss adjustments allowed
===========================================================================
Safety Protocol Notes
Ideal Conditions
Strong trending markets (≥3% daily moves)
High-volume crypto pairs (BTC/ETH majors preferred)
Avoid When
Consolidation phases (EMA crossovers lag)
Low-volume periods (weekends/holidays)
===========================================================================
Profitability Summary
This strategy capitalizes on:
Hourly chart momentum persistence
Crypto's tendency for multi-hour trends
Fixed parameters optimized through volatility cycles
Critical Reminder: Changing any values voids the hourly optimization advantage. Performance degrades significantly on lower (15m/5m) or higher (4h/daily) timeframes due to parameter mismatch
ROBOT RSI V6 inputRobot (test pas complet) qui prends position en se basant sur un croisement des MM et sur les achats et surventes du RSI
Invest SMA|MACD|ADX Long Weekly Strategy (BtTL)Diese Strategie kombiniert drei bewährte technische Indikatoren (SMA, MACD und ADX) für präzise Long-Einstiege auf dem Wochenchart.
Hauptmerkmale:
Einstiegssignale basieren auf einer Kombination aus SMA (30), MACD (9,18,9) und ADX (14)
Intelligentes Stop-Loss-Management durch Swing-Low-Erkennung
Trendbestätigung durch ADX > 25
Optimiert für Wochencharts
Konservatives Risikomanagement durch mehrfache Signalbestätigung
Einstiegsbedingungen:
Kurs über SMA
MACD über Signallinie und im positiven Bereich
ADX zeigt starken Trend (>25)
Ausstiegsstrategie:
Stop-Loss wird automatisch am vorletzten Swing-Low gesetzt
Position wird geschlossen, wenn der Kurs unter den SMA fällt
🇬🇧 English:
This strategy combines three proven technical indicators (SMA, MACD, and ADX) for precise long entries on the weekly chart.
Key Features:
Entry signals based on a combination of SMA (30), MACD (9,18,9), and ADX (14)
Intelligent stop-loss management through swing low detection
Trend confirmation using ADX > 25
Optimized for weekly charts
Conservative risk management through multiple signal confirmation
Entry Conditions:
Price above SMA
MACD above signal line and in positive territory
ADX showing strong trend (>25)
Exit Strategy:
Stop-loss automatically set at second-last swing low
Position closes when price falls below SMA
MACD RSI Strategy by BiegeThis strategy combines:
• MACD (Lagging Indicator): Confirms trend direction using moving averages.
• RSI (Leading Indicator): Identifies overbought/oversold conditions for potential reversal signals.
Entry Signal: When the MACD confirms a bullish trend (MACD line crosses above the signal line) and the RSI is oversold (below the defined threshold).
Exit Signal: Stop loss, take profit, or a bearish MACD crossover (MACD line crosses below the signal line).
This strategy emphasizes risk management through:
1. Balanced Indicators: Combining a leading and lagging indicator attempts to balance responsiveness and reliability.
2. Position Sizing: Limiting the percentage of capital used per trade controls potential losses on any single trade.
3. Cooldown Period: This helps prevent emotional trading and chasing losses.
4. Stop Loss Orders: Stop losses are crucial for limiting losses if a trade moves against your position.
This strategy is designed to perform best in markets with clear trends and moderate volatility. It's important to be aware of its limitations and avoid using it during:
• Earnings reports or major news events: Fundamental analysis is more appropriate in these situations.
• Extreme bear markets or extended periods of consolidation: MACD can lag significantly during sustained downtrends, and RSI can generate numerous false signals in choppy markets.
• Low-liquidity periods: Low liquidity can lead to slippage and wider spreads, which can negatively impact profitability.
By combining leading (RSI) and lagging (MACD) indicators and emphasizing risk management, this strategy aims to provide a relatively balanced and safer approach to trend following. However, no trading strategy can guarantee profits, and all trading involves risk. It's essential to understand the risks involved and to trade responsibly.
9/21 EMA_DSWThe 9 and 21 EMA strategy involves using the 9-day and 21-day exponential moving averages to identify potential buy and sell signals. A buy signal is generated when the 9 EMA crosses above the 21 EMA, and a sell signal is generated when the 9 EMA crosses below the 21 EMA.
Keltner Channel + RSI / Owl of ProfitKeltner Channel + RSI Strategy
This strategy combines the Keltner Channel and RSI indicators to identify trading opportunities based on price levels and momentum.
Features
Keltner Channel
Calculated using EMA and ATR.
Upper and lower bounds provide a dynamic range for price action.
Default parameters:
EMA Period: 20
ATR Period: 10
ATR Multiplier: 1.5
RSI (Relative Strength Index)
Identifies overbought and oversold conditions.
Default parameters:
RSI Period: 14
Overbought Level: 70
Oversold Level: 30
Strategy Conditions
Long Entry
Price crosses above the lower Keltner Channel.
RSI is below the oversold level.
Short Entry
Price crosses below the upper Keltner Channel.
RSI is above the overbought level.
Exit Logic
Close Long
Price crosses below the EMA.
RSI rises above 50.
Close Short
Price crosses above the EMA.
RSI falls below 50.
Visualization
Keltner Channel:
Upper and lower bounds plotted with transparent fill for better clarity.
EMA line for midpoint reference.
RSI:
Plots RSI with dotted horizontal lines for overbought and oversold levels.
Signal Markers:
Buy (green) and Sell (red) labels plotted for entry signals.
This strategy is ideal for traders who want to combine price action with momentum-based signals to capture dynamic market moves.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
ZigZag + Fractals + SAR / Owl of ProfitZigZag + Fractals + SAR Strategy
This strategy combines ZigZag, Fractals, and Parabolic SAR to provide robust trading signals, ideal for identifying trend reversals and trade entries
Features
ZigZag
Tracks trend changes using defined depth and deviation parameters
Identifies "High" and "Low" pivots for trend movements
Fractals
Captures local highs (Fractal Up) and lows (Fractal Down), serving as potential reversal points
Parabolic SAR
Generates entry and exit signals based on price and SAR crossovers
Strategy Conditions
Long
Price crosses above SAR (SAR shifts below price)
ZigZag indicates an uptrend
A fractal down appears
Short
Price crosses below SAR (SAR shifts above price)
ZigZag indicates a downtrend
A fractal up appears
Exit Logic
Exit Long
SAR crosses above price
Exit Short
SAR crosses below price
Customization
ZigZag Parameters
Depth: 5 candles
Deviation: 5%
Parabolic SAR
Start: 0.02, Max: 0.2, Increment: 0.02
Option to visualize Fractals and SAR on the chart
This strategy is suitable for both short-term and long-term trades, allowing flexible customization for different market conditions
Visit my website for more tools and strategies bybitindicators.com
Happy trading!
BB + Stochastic Oscillator + ATR / Owl of ProfitBollinger Bands + Stochastic Oscillator + ATR Strategy
This strategy combines Bollinger Bands, the Stochastic Oscillator, and Average True Range (ATR) for trading opportunities based on volatility, momentum, and trend confirmation.
Features
Bollinger Bands:
Calculates dynamic upper and lower bands around a moving average.
Identifies overbought and oversold price levels.
Stochastic Oscillator:
Detects momentum shifts in overbought (>80) and oversold (<20) regions.
%K and %D crossings confirm entry points.
ATR Integration:
Measures market volatility.
Confirms signals by requiring ATR to exceed a threshold for valid trades.
Strategy Logic
Buy Condition:
Price closes below the lower Bollinger Band, signaling oversold conditions.
Stochastic %K crosses above %D in the oversold region (<20).
ATR is above the calculated ATR threshold, confirming sufficient volatility.
Sell Condition:
Price closes above the upper Bollinger Band, signaling overbought conditions.
Stochastic %K crosses below %D in the overbought region (>80).
ATR is above the calculated ATR threshold.
Exit Strategy:
Uses ATR-based Stop Loss and Take Profit levels for dynamic risk management.
Visualization
Bollinger Bands: Blue basis, red upper band, green lower band, and light blue fill.
Stochastic Oscillator: Purple %K, orange %D, with overbought (80) and oversold (20) levels.
ATR: Visualized with a blue line and a gray ATR threshold for better analysis of market conditions.
Customization
Bollinger Bands:
Default Length: 20
Default Multiplier: 2.0
Stochastic Oscillator:
%K Length: 14
%D Smoothing: 3
ATR:
Default Length: 14
Default Multiplier: 1.5
Stop Loss and Take Profit:
Based on ATR for dynamic trade exits.
This strategy is ideal for traders looking to capitalize on volatility and momentum signals, with added confirmation from ATR to filter out low-volatility environments.
Visit my website for more tools and strategies: bybitindicators.com
Happy Trading! 😊
Wave Trend Oscillator (LazyBear) / Owl of Profit remakeWave Trend Oscillator Strategy (by LazyBear)
This strategy leverages the powerful WaveTrend Oscillator developed by LazyBear to identify overbought and oversold market conditions, providing dynamic signals for trend-based trading.
Features
WaveTrend Oscillator (WT):
Calculates two smoothed WaveTrend lines (WT1 and WT2) for visualizing momentum.
Uses channel and average lengths to adjust sensitivity.
Overbought/Oversold Levels:
Predefined levels for detecting extreme price conditions:
Overbought: 60, 53.
Oversold: -60, -53.
Fully customizable levels to match different trading preferences.
Color-Coded Visualization:
WT1 (green) and WT2 (red) show smoothed momentum oscillations.
Area between WT1 and WT2 filled in blue for additional clarity.
Strategy Logic
Long Entry Condition:
WT1 crosses above WT2, indicating a bullish reversal.
WT1 is below the Oversold Level (-60) during the crossover.
Short Entry Condition:
WT1 crosses below WT2, signaling a bearish reversal.
WT1 is above the Overbought Level (60) during the crossover.
Exit Logic:
Positions are automatically closed based on opposing signals.
Customization
Oscillator Lengths:
Channel Length (n1): Default 10.
Average Length (n2): Default 21.
Overbought/Oversold Levels:
Default Levels: 60 (Overbought), -60 (Oversold).
Optional secondary levels for finer adjustments.
Visual Enhancements:
Overlay the oscillator with additional chart elements for trend confirmation.
This strategy is ideal for traders looking to combine momentum analysis with overbought/oversold signals, ensuring precise entries and exits in trending markets.
Visit my website for more tools and strategies: bybitindicators.com
Happy Trading! 😊
BB + RSI, Double Strategy (by ChartArt) / Owl of Profit remakeSpecial thanks to ChartArt for the original concept and inspiration.
This strategy combines Bollinger Bands with the Relative Strength Index (RSI) to identify overbought and oversold conditions, providing precise entry and exit points.
Features:
Bollinger Bands:
Measures volatility and price deviations from the SMA.
Period Length: 200 (default).
Standard Deviation Multiplier: 2.0 (default).
Helps identify potential reversal zones at the upper and lower bands.
Relative Strength Index (RSI):
A momentum oscillator to measure overbought and oversold conditions.
Length: 6 (default).
Overbought Level: 50 (default).
Oversold Level: 50 (default).
Entry and Exit Logic:
Long Entry:
RSI crosses above the oversold level (50).
Price crosses above the lower Bollinger Band.
Short Entry:
RSI crosses below the overbought level (50).
Price crosses below the upper Bollinger Band.
Exit Logic:
Long positions are closed when the price and RSI criteria for a short entry are met.
Short positions are closed when the price and RSI criteria for a long entry are met.
Visualization:
Bollinger Bands:
Plotted with the basis (aqua line), upper band (silver), and lower band (silver).
Background fill highlights the bands.
Bar and Background Colors:
Green for bullish conditions (price below the lower band and RSI below the oversold level).
Red for bearish conditions (price above the upper band and RSI above the overbought level).
Customization:
Adjustable Bollinger Bands and RSI parameters to fit different market conditions.
Optional bar and background coloring for enhanced chart readability.
This strategy is ideal for traders looking to combine volatility and momentum analysis for high-probability entries and exits.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
Zig Zag + RVI / Owl of ProfitZig Zag + Relative Vigor Index (RVI) Strategy
This strategy combines the Zig Zag indicator for identifying trends and the Relative Vigor Index (RVI) for momentum-based entry and exit signals.
Features:
Zig Zag Indicator:
Helps identify major price trends and reversals.
Threshold: 5% (default) to filter out minor price movements.
Dynamically tracks highs and lows to determine the direction of the trend.
Relative Vigor Index (RVI):
Measures market momentum based on closing and opening prices relative to the range.
Length: 14 (default).
Overbought Level: 60 (default).
Oversold Level: 40 (default).
Entry and Exit Logic:
Long Condition:
Zig Zag trend is up.
RVI crosses above the oversold level (40).
Short Condition:
Zig Zag trend is down.
RVI crosses below the overbought level (60).
Exit Long:
Zig Zag trend reverses to down.
OR RVI crosses below the overbought level (60).
Exit Short:
Zig Zag trend reverses to up.
OR RVI crosses above the oversold level (40).
Visualization:
Zig Zag Lines:
Green lines for uptrends and red lines for downtrends plotted on the price chart.
RVI:
Plotted in blue with horizontal overbought (60) and oversold (40) levels for reference.
Customization:
Adjustable Zig Zag percentage threshold for filtering trend reversals.
Configurable RVI levels and length to fit various market conditions.
This strategy is ideal for traders looking to combine trend identification with momentum-based signals for precise entries and exits.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
Triple EMA (TEMA) + Fisher Transform / Owl of ProfitTriple EMA (TEMA) + Fisher Transform Strategy
This strategy combines the Triple Exponential Moving Average (TEMA) and Fisher Transform to identify trend and momentum-based entry and exit signals.
Features:
Triple EMA (TEMA):
A smoothed trend-following indicator designed to reduce lag.
Length: 21 (default).
Helps identify trend direction and crossover signals.
Fisher Transform:
Converts price movements into a Gaussian normal distribution.
Length: 10 (default).
Smoothing: Optional smoothing is applied to reduce noise.
Entry and Exit Logic:
Long Condition:
Price crosses above the TEMA line.
Fisher Transform crosses above 0.
Short Condition:
Price crosses below the TEMA line.
Fisher Transform crosses below 0.
Exit Long:
Price crosses below the TEMA line.
OR Fisher Transform crosses below 0.
Exit Short:
Price crosses above the TEMA line.
OR Fisher Transform crosses above 0.
Visualization:
TEMA:
Plotted in blue on the price chart to show trend direction.
Fisher Transform:
Plotted in red on a separate pane, with a dotted zero line for reference.
Zero Line:
A horizontal line at 0 helps visualize Fisher Transform crossovers.
Customization:
Adjustable TEMA and Fisher Transform lengths to fit different market conditions.
Optional smoothing for Fisher Transform to reduce noise.
This strategy is ideal for traders looking to combine trend-following and momentum-based signals for precise entries and exits.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
SuperTrend + Stochastic Oscillator / Owl of ProfitSuperTrend + Stochastic Oscillator Strategy
This strategy combines SuperTrend and Stochastic Oscillator to identify trend-based entry and exit points with momentum confirmation.
Features:
SuperTrend Indicator:
Uses ATR (Average True Range) to determine trend direction.
ATR Period: 10 (default).
Multiplier: 3.0 (default).
Identifies bullish (green) and bearish (red) trends.
Stochastic Oscillator:
Measures momentum and identifies overbought or oversold conditions.
%K Period: 14 (default).
%D Period: 3 (default).
Smooth %K: 3 (default).
Entry and Exit Logic:
Long Condition:
SuperTrend indicates a bullish trend.
Stochastic %K crosses above %D.
Stochastic %K is below 20 (oversold level).
Short Condition:
SuperTrend indicates a bearish trend.
Stochastic %K crosses below %D.
Stochastic %K is above 80 (overbought level).
Exit Logic:
Exit conditions can be added using stop-loss, take-profit, or custom rules.
Visualization:
SuperTrend:
Plotted directly on the price chart with green and red lines indicating bullish and bearish trends.
Background fill highlights the trend direction.
Stochastic Oscillator:
Plotted on a separate pane with overbought (80) and oversold (20) levels highlighted.
%K is blue, and %D is orange for easy identification.
Buy and Sell Signals:
Clearly marked with "Long" and "Short" labels for easy visualization.
This strategy is ideal for traders looking to combine trend-following and momentum-based indicators for more reliable entry and exit points.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
SuperTrend + Stochastic / Owl of ProfitSuperTrend + Stochastic Strategy
This strategy combines the SuperTrend indicator with the Stochastic Oscillator to identify trend-following entry and exit points with momentum confirmation.
Features:
SuperTrend Indicator:
Uses ATR (Average True Range) to determine trend direction.
Factor: 3.0 (default).
ATR Length: 10 (default).
Indicates bullish (green) and bearish (red) trends.
Stochastic Oscillator:
Helps identify overbought and oversold conditions.
%K Length: 14 (default).
%D Length (Smoothing): 3 (default).
Overbought Level: 80 (default).
Oversold Level: 20 (default).
Entry and Exit Logic:
Long Condition:
SuperTrend indicates a bullish trend.
Stochastic %K crosses above the oversold level (20).
Short Condition:
SuperTrend indicates a bearish trend.
Stochastic %K crosses below the overbought level (80).
Exit Long:
SuperTrend changes to bearish.
OR Stochastic %K crosses below the overbought level (80).
Exit Short:
SuperTrend changes to bullish.
OR Stochastic %K crosses above the oversold level (20).
Visualization:
SuperTrend:
Plotted directly on the price chart with green and red colors indicating bullish and bearish trends.
Background color changes based on the trend direction.
Stochastic Oscillator:
%K and %D lines plotted in a separate pane with overbought (80) and oversold (20) levels highlighted.
%K is blue, and %D is orange for easy identification.
Alerts:
Not included in this script but can be added for buy and sell conditions to ensure no missed opportunities.
This strategy is ideal for traders looking to combine trend direction with momentum oscillators for more precise entries and exits. Use it for backtesting and refining your trading approach.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
RSI / Owl of ProfitRSI Strategy
This strategy uses the Relative Strength Index (RSI) to generate buy and sell signals based on overbought and oversold conditions. It also includes customizable stop-loss and take-profit levels for better risk management.
Features:
RSI Calculation:
Length: 14 periods (default).
Overbought Level: 70 (default).
Oversold Level: 30 (default).
Stop-Loss and Take-Profit:
Stop-loss and take-profit levels are calculated as a percentage of the entry price.
Default values:
Stop-Loss: 2%
Take-Profit: 4%
Entry and Exit Logic:
Long Condition:
Triggered when RSI is below the oversold level (default: 30).
Short Condition:
Triggered when RSI is above the overbought level (default: 70).
Exit Logic:
Long positions are exited when either:
The price reaches the take-profit level.
The price hits the stop-loss level.
Short positions are exited under the same conditions, but reversed for stop-loss and take-profit.
Visualization:
RSI Indicator:
Not plotted on the main chart but is used internally to trigger buy and sell signals.
Signals are automatically executed based on RSI levels, with clear position management via SL and TP.
This strategy is ideal for traders looking for a simple and effective momentum-based system that includes built-in risk management.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!