New intraday high with weak barStrategy Logic:
The strategy checks if the current bar’s high is the highest high of the last 10 bar and if internal bar strength is less than 0.15.
Position is closed when close is greater than the previous bar’s high.
When a position is open, the script applies a light green background on the chart to signal that you are in a trade.
Corak carta
BTC/USD Gaussian Channel 1 Day Chart - Foneysmiles v1.0 Cryptocurrency trading strategy specifically designed for BTC/USD on a daily timeframe.
Strategy Framework:
Initial capital: $10,000
Position size: 60% of equity per trade
Commission: 0.1%
Slippage: 4 points
Time range: From January 2018 to end of 2069 (effectively no end date)
Gaussian Channel: The primary technical indicator that creates an adaptive channel around price
Uses a complex Gaussian filter with customizable poles (default 4)
Sampling period of 144 days
True Range multiplier of 1.414
Options for reduced lag and fast response modes
Price source defaults to HLC3 (High + Low + Close / 3)
Stochastic RSI with:
RSI length: 21 periods
Stochastic length: 200 periods
K smoothing: 1 period
D smoothing: 4 periods
Entry Conditions:
A long position is entered when ALL of these conditions are met:
The Gaussian filter is trending up (finalFilter > finalFilter )
Price is above the upper Gaussian channel band (close > hband)
Stochastic RSI is in extreme territory (k > 80 or k < 20)
Within the specified date range
Exit Conditions:
Positions are closed when price crosses below the upper band of the Gaussian channel
The visualization includes:
A color-coded Gaussian filter line (green when rising, red when falling)
Upper and lower bands forming a channel
The channel is filled with a semi-transparent version of the same color
This is a trend-following strategy that aims to catch strong upward moves in Bitcoin while using the Stochastic RSI as an additional filter. The strategy only takes long positions and doesn't include any short trades.
foneysmiles@gmail.com if you have any questions or have other use cases
MI-Advanced Long/Short StrategyAdvanced Multi-Indicator Trading Strategy
Combining Trend Following, Momentum Confirmation & Risk Management
This sophisticated trading strategy is designed to identify high-probability long/short opportunities using a confluence of technical indicators while maintaining strict risk control. It combines trend analysis, momentum confirmation, and volume-based validation to generate clear buy/sell signals across various markets and timeframes.
Core Components
Trend Identification Engine
Dual EMA System (12/26 periods):
Bullish bias when 12-EMA > 26-EMA
Bearish bias when 12-EMA < 26-EMA
Supertrend Indicator:
Dynamic trend filter using price volatility
Green line = Bullish trend (longs enabled)
Red line = Bearish trend (shorts enabled)
Momentum Confirmation
MACD Histogram:
Bullish crossover (signal line cross) for entries
Bearish crossover for exits/reversals
RSI Threshold:
50-level as momentum baseline
Longs only when RSI > 50
Shorts only when RSI < 50
Volume Validation
20-period volume moving average
Entry requires 150%+ volume spike
Filters low-confidence moves
Risk Management Framework
ATR-Based Stops:
2x ATR (14-period) stop loss
3x ATR take profit (1:1.5 RR ratio)
Position Sizing:
Percentage-based equity management
Built-in commission calculation
Signal Generation Logic
Long Entry Conditions (All Must Be True):
12-EMA crosses above 26-EMA
MACD line crosses above signal line
RSI sustains above 50 level
Price above Supertrend line (green)
Volume spike confirmation
Short Entry Conditions (All Must Be True):
12-EMA crosses below 26-EMA
MACD line crosses below signal line
RSI holds below 50 level
Price below Supertrend line (red)
Volume spike confirmation
Exit Conditions:
Trailing stop via Supertrend reversal
EMA crossover in opposite direction
RSI crossing 50 threshold
Automatic profit targets/stops
Key Features
Multi-Timeframe Compatibility: Works on 1M-1D charts
Visual Clarity:
Colored EMA ribbons for trend direction
Label-based buy/sell markers
Supertrend overlay for real-time guidance
Alert System:
Built-in buy/sell alert conditions
Compatible with email/SMS notifications
Adaptive Risk:
Dynamic stop-loss adjustment
Position sizing relative to account equity
False Signal Filter:
Volume spike requirement
Triple confirmation (trend+momentum+volume)
Strategic Advantages
Trend-Riding Capability:
Captures sustained moves via Supertrend/EMA combo
Avoids choppy markets through volume filters
Confirmation Hierarchy:
Primary Trend: EMA crossover
Secondary Confirmation: MACD/RSI
Tertiary Validation: Volume/Supertrend
Risk-Controlled Execution:
Automatic stop-loss placement
Fixed risk/reward ratio enforcement
Commission-aware backtesting
Visual Trading Psychology:
Clear color-coded indicators reduce emotional trading
Objective entry/exit rules eliminate guesswork
Ideal Market Conditions
Best Performing: Trending markets (up/down)
Avoid During:
Low-volume periods
Consolidation/ranging markets
Major news events
Practical Usage Tips
Combine with higher timeframe analysis
Adjust ATR multiplier for volatile assets
Modify volume threshold for liquid markets
Use trailing stops for extended trends
Pair with fundamental catalysts for swing trades
This strategy provides a systematic approach to trading by combining technical analysis with disciplined risk management. Its multi-layered confirmation process aims to filter out market noise while capturing high-quality setups, making it suitable for both discretionary traders and automated trading systems.
pinstraticoestrategia de compra y venta
................
.............
..........
........
.....
...
..
Strategy EngulfingThis script implements a trading strategy that identifies "engulfing" candlestick patterns and uses the Supertrend indicator to enter and exit trades.
Ebuka Moving Average Crossover Strategy with Volume FilterThe provided Pine Script defines a trading strategy that can generate buy and sell signals on TradingView charts. If you'd like to automate the strategy to trade on Binance while you sleep, follow these steps:
SQZMOM_LB StrategyUtiliza el indicador sqzmom, abriendo operaciones cuando el indicador cambia al color 3 y cerrandolas cuando cambia al color 1
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.
MA Crossover with Demand/Supply Zones + Stop Loss/Take ProfitStop Loss and Take Profit Inputs:
Added stopLossPerc and takeProfitPerc as inputs to allow the user to define the stop loss and take profit levels as a percentage of the entry price.
Stop Loss and Take Profit Calculation:
For long positions, the stop loss is calculated as strategy.position_avg_price * (1 - stopLossPerc), and the take profit is calculated as strategy.position_avg_price * (1 + takeProfitPerc).
For short positions, the stop loss is calculated as strategy.position_avg_price * (1 + stopLossPerc), and the take profit is calculated as strategy.position_avg_price * (1 - takeProfitPerc).
Exit Strategy:
Added strategy.exit to define the stop loss and take profit levels for each trade. The from_entry parameter ensures that the exit is tied to the specific entry order.
Flexibility:
The stop loss and take profit levels are dynamic and adjust based on the entry price of the trade.
How It Works:
When a buy signal is generated (MA crossover near a demand zone), the strategy enters a long position and sets a stop loss and take profit level based on the input percentages.
When a sell signal is generated (MA crossunder near a supply zone), the strategy enters a short position and sets a stop loss and take profit level based on the input percentages.
The trade will exit automatically if either the stop loss or take profit level is hit.
Example:
If the entry price for a long position is $100, and the stop loss is set to 1% while the take profit is set to 2%:
Stop loss level =
100
∗
(
1
−
0.01
)
=
100∗(1−0.01)=99
Take profit level =
100
∗
(
1
+
0.02
)
=
100∗(1+0.02)=102
Notes:
You can adjust the stopLossPerc and takeProfitPerc inputs to suit your risk management preferences.
Always backtest the strategy to ensure the stop loss and take profit levels are appropriate for your trading instrument and timeframe.
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!
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. Best for new learner
Yash Zones Strategy v6Modern strategy declaration syntax
Proper commission settings
barmerge.gaps_off for security calls
Color management with color.new()
Null-coalescing operator (?:) removed in favor of ternary
Cleaner position sizing calculation
Improved visual plotting syntax
Full TypeScript-style type safety
Enhanced error handling for edge cases
Strategy Features:
Complete backtesting capability
Real-time trading alerts
Automatic position sizing
Trailing stop functionality
Multi-timeframe confirmation
Volume liquidity filters
Professional risk management parameters
Clear visual signal markers
This version includes all the latest Pine Script v6 features while maintaining the original Yash logic with enhanced reliability and performance.
MR-AI-US30 Short-Term RSI StrategyStrategy is based on AI for short term trading less than 4 hours
it is designed for US30
No signals during news (1 hour before and 1 hour after news)
Swing Breakout Strategy by SharadTrades on Swing Breakouts, It's Simple.
Keep SL and Target as per your suitability.
EMA DSWThis Pine Script indicator implements a trading strategy based on the crossover of 5-period and 9-period Exponential Moving Averages (EMA). It generates entry signals when the 5 EMA crosses above the 9 EMA, and exit signals when the 5 EMA crosses below the 9 EMA. The script also calculates and displays stop-loss and target levels for each trade. Users can customize the EMA periods, stop-loss percentage, and target percentage through input parameters. The indicator plots the EMAs on the chart and displays entry and exit markers for visual reference
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! 😊
G-Channel Trend Detection (jaggedsoft) / Owl of Profit remakeG-Channel Trend Detection Strategy (by jaggedsoft)
Special thanks to jaggedsoft and AlexGrover for the original concept and inspiration for this strategy.
This strategy leverages G-Channels for efficient trend detection by calculating the upper and lower extremities, providing dynamic signals for trend-based trading.
Features
G-Channels:
Calculates upper (a) and lower (b) bounds of price movement over a specified length.
Dynamic calculation adjusts with each bar, forming an average line (avg) for trend analysis.
Signal Detection:
Bullish Signal: When close moves above the lower bound.
Bearish Signal: When close moves below the upper bound.
Color-Coded Visualization:
Green (lime) for bullish trends.
Red for bearish trends.
Fills the area between the average line and the close price with trend-aligned colors for better visual clarity.
Entry and Exit Logic
Long Entry:
Triggered when a bullish trend starts.
Short Entry:
Triggered when a bearish trend starts.
Exit Logic:
Positions are automatically exited based on trend reversals.
Customization
Length Parameter:
Default: 100 bars.
Adjust to fit different timeframes and trading styles.
Cross Markers:
Optional cross markers for buy and sell signals can be toggled on/off for additional clarity.
This strategy is ideal for traders looking to capitalize on dynamic trend movements while maintaining visual clarity of market conditions.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
Donchian Trend Ribbon (LonesomeTheBlue) / Owl of Profit remakeDonchian Trend Ribbon Strategy (by LonesomeTheBlue)
Special thanks to LonesomeTheBlue for the original concept and inspiration for this strategy.
This strategy leverages the Donchian Channel to determine both the main market trend and local trends. The result is a visually appealing trend ribbon, providing clear entry and exit signals based on trend alignment.
Features
Donchian Channel:
A classic indicator that tracks the highest high and lowest low over a specified period.
Main Trend: Determines the overall market direction based on price relative to the Donchian Channel.
Local Trend: Identifies smaller, shorter-term trends within the main trend.
Trend Ribbon Visualization:
Green shades for uptrends, red shades for downtrends.
Lighter colors indicate local trends opposing the main trend, while darker colors show alignment.
Entry and Exit Logic
Long Entry:
When the main trend indicates an uptrend.
Short Entry:
When the main trend indicates a downtrend.
Exit Logic:
Positions are closed when the trend reverses (i.e., a switch from an uptrend to a downtrend or vice versa).
Visualization
Trend Ribbon:
Multiple columns stacked to form a ribbon, with varying shades based on local and main trend alignment.
Customization
Donchian Channel Period:
Default: 20 bars.
Adjustable to fit different market conditions and timeframes.
This strategy is perfect for traders looking for a trend-following approach with clear visual cues for market direction and entry/exit signals.
Visit my website for more tools and strategies: bybitindicators.com
Happy trading!
Crypto Strategy: Pattern Retest + EMA/RSI//@version=5
strategy("Crypto Strategy: Pattern Retest + EMA/RSI", overlay=true, margin_long=100, margin_short=100)
// ~~~~~~~~~~~~~~ INPUTS ~~~~~~~~~~~~~~
emaLength = input.int(50, "EMA Length")
rsiLength = input.int(14, "RSI Length")
overbought = input(70, "RSI Overbought Level")
oversold = input(30, "RSI Oversold Level")
patternLookback = input.int(20, "Pattern Lookback")
// ~~~~~~~~~~~~~~ INDICATORS ~~~~~~~~~~~~~~
ema = ta.ema(close, emaLength)
rsi = ta.rsi(close, rsiLength)
// ============== BULLISH PATTERN (Double Bottom Retest) ==============
var float necklineBullish = na
var bool breakoutBullish = false
// Detect Double Bottom
swingLow = ta.lowest(low, 5)
swingLowPrev = ta.lowest(low, 5)
swingHighBetween = ta.highest(high, 5)
isDoubleBottom = swingLow >= swingLowPrev * 0.99 and swingLow <= swingLowPrev * 1.01 and swingHighBetween > swingLow
// Update neckline on pattern detection
if isDoubleBottom
necklineBullish := swingHighBetween
breakoutBullish := false
// Breakout and Retest Logic
breakoutBullish := close > necklineBullish and not breakoutBullish
retestBullish = breakoutBullish and low <= necklineBullish and close > necklineBullish and rsi < oversold
// ============== BEARISH PATTERN (Double Top Retest) ==============
var float necklineBearish = na
var bool breakoutBearish = false
// Detect Double Top
swingHigh = ta.highest(high, 5)
swingHighPrev = ta.highest(high, 5)
swingLowBetween = ta.lowest(low, 5)
isDoubleTop = swingHigh <= swingHighPrev * 1.01 and swingHigh >= swingHighPrev * 0.99 and swingLowBetween < swingHigh
// Update neckline on pattern detection
if isDoubleTop
necklineBearish := swingLowBetween
breakoutBearish := false
// Breakdown and Retest Logic
breakoutBearish := close < necklineBearish and not breakoutBearish
retestBearish = breakoutBearish and high >= necklineBearish and close < necklineBearish and rsi > overbought
// ~~~~~~~~~~~~~~ BUY/SELL CONDITIONS ~~~~~~~~~~~~~~
// BUY Signal: Bullish retest OR EMA crossover + RSI oversold
buyCondition = retestBullish or (ta.crossover(close, ema) and rsi < oversold)
// SELL Signal: Bearish retest OR EMA crossunder + RSI overbought
sellCondition = retestBearish or (ta.crossunder(close, ema) and rsi > overbought)
// ~~~~~~~~~~~~~~ EXECUTE ORDERS ~~~~~~~~~~~~~~
if (buyCondition)
strategy.entry("BUY", strategy.long)
alert("BUY Signal: Price Retest + RSI/EMA Confirmation", alert.freq_once_per_bar)
if (sellCondition)
strategy.close("BUY")
alert("SELL Signal: Price Retest + RSI/EMA Confirmation", alert.freq_once_per_bar)
// ~~~~~~~~~~~~~~ PLOTTING ~~~~~~~~~~~~~~
plot(ema, "EMA", color=color.blue)
plot(necklineBullish, "Bullish Neckline", color=color.green, linewidth=2)
plot(necklineBearish, "Bearish Neckline", color=color.red, linewidth=2)
// Plot BUY/SELL labels on chart
plotshape(buyCondition, title="BUY", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(sellCondition, title="SELL", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
Nitin Strategy: Patterns + EMA/RSI Retest//@version=5
strategy("Crypto Strategy: Patterns + EMA/RSI Retest", overlay=true, initial_capital=1000, default_qty_type=strategy.percent_of_equity, default_qty_value=90)
// Inputs
emaLength = input.int(50, "EMA Length")
rsiLength = input.int(14, "RSI Length")
overbought = input(70, "RSI Overbought")
oversold = input(30, "RSI Oversold")
patternLookback = input.int(20, "Pattern Lookback")
// Indicators
ema = ta.ema(close, emaLength)
rsi = ta.rsi(close, rsiLength)
// 1. BULLISH PATTERN (Double Bottom + Retest)
// -------------------------------------------
var float necklineBullish = na
var bool breakoutBullish = false
// Detect Double Bottom (two lows with a peak in between)
swingLow = ta.lowest(low, 5)
swingLowPrev = ta.lowest(low, 5)
swingHighBetween = ta.highest(high, 5)
isDoubleBottom = swingLow >= swingLowPrev * 0.99 and swingLow <= swingLowPrev * 1.01 and swingHighBetween > swingLow and swingHighBetween > swingLowPrev
// Update neckline on pattern detection
if isDoubleBottom
necklineBullish := swingHighBetween
breakoutBullish := false
// Check breakout above neckline
if not breakoutBullish and close > necklineBullish
breakoutBullish := true
// Retest after breakout (price returns to neckline and bounces)
retestBullish = breakoutBullish and low <= necklineBullish and close > necklineBullish and rsi < oversold
// 2. BEARISH PATTERN (Double Top + Retest)
// -------------------------------------------
var float necklineBearish = na
var bool breakoutBearish = false
// Detect Double Top (two highs with a trough in between)
swingHigh = ta.highest(high, 5)
swingHighPrev = ta.highest(high, 5)
swingLowBetween = ta.lowest(low, 5)
isDoubleTop = swingHigh <= swingHighPrev * 1.01 and swingHigh >= swingHighPrev * 0.99 and swingLowBetween < swingHigh and swingLowBetween < swingHighPrev
// Update neckline on pattern detection
if isDoubleTop
necklineBearish := swingLowBetween
breakoutBearish := false
// Check breakout below neckline
if not breakoutBearish and close < necklineBearish
breakoutBearish := true
// Retest after breakout (price returns to neckline and rejects)
retestBearish = breakoutBearish and high >= necklineBearish and close < necklineBearish and rsi > overbought
// 3. EMA + RSI Conditions
// -----------------------
emaBuy = ta.crossover(close, ema) and rsi < oversold
emaSell = ta.crossunder(close, ema) and rsi > overbought
// Final Buy/Sell Signals (Combine Retest & EMA/RSI)
buySignal = retestBullish or emaBuy
sellSignal = retestBearish or emaSell
// Execute Orders
strategy.entry("Buy", strategy.long, when=buySignal)
strategy.close("Buy", when=sellSignal)
// Plotting
plot(ema, "EMA", color=color.blue)
plot(necklineBullish, "Bullish Neckline", color=color.green, linewidth=2)
plot(necklineBearish, "Bearish Neckline", color=color.red, linewidth=2)
plotshape(buySignal, title="Buy", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(sellSignal, title="Sell", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
RSI Strategyris stratgy if buy or sell signal rsi is above 60 if rsi is above 6o momentum is high soo