jamesmadeanother Rich's Golden Cross plots clear "BUY" signals on your chart when all conditions align, giving you a strategic edge in the markets. Whether you're a swing trader or a long-term investor, this indicator helps you stay ahead of the curve by filtering out noise and focusing on high-quality setups.
Why Choose Rich's Golden Cross?
Multi-Timeframe Analysis: Combines short-term and long-term trends for better accuracy.
Easy-to-Read Signals: Clear buy alerts directly on your chart.
Customizable: Adjust parameters to suit your trading style.
Take your trading to the next level with Rich's Golden Cross—your ultimate tool for spotting golden opportunities in the market.
Padrões gráficos
Improved Scalping Strategy with Alerts//@version=5
indicator("Improved Scalping Strategy with Alerts", overlay=true)
// EMA Settings for Scalping
emaLength = input.int(9, title="EMA Length")
emaValue = ta.ema(close, emaLength)
plot(emaValue, title="EMA", color=color.blue, linewidth=2)
// Volume Analysis for Scalping
volumeThreshold = input.float(2.0, title="Volume Threshold")
volumeSignal = volume > ta.sma(volume, 10) * volumeThreshold
bgcolor(volumeSignal ? color.new(color.blue, 90) : na, title="Volume Signal")
// RSI Settings for Scalping
rsiLength = input.int(9, title="RSI Length")
rsiValue = ta.rsi(close, rsiLength)
overbought = 70
oversold = 30
plot(rsiValue, title="RSI", color=color.purple, linewidth=2)
hline(overbought, "Overbought", color=color.red)
hline(oversold, "Oversold", color=color.green)
// MACD Settings for Scalping
fastLength = input.int(6, title="MACD Fast Length")
slowLength = input.int(13, title="MACD Slow Length")
signalSmoothing = input.int(5, title="MACD Signal Smoothing")
= ta.macd(close, fastLength, slowLength, signalSmoothing)
plot(macdLine, title="MACD Line", color=color.blue, linewidth=1)
plot(signalLine, title="Signal Line", color=color.red, linewidth=1)
// Strong Bullish and Bearish Conditions for Scalping
strongBullish = rsiValue > 70 and macdLine > signalLine and close > emaValue and volumeSignal
strongBearish = rsiValue < 30 and macdLine < signalLine and close < emaValue and volumeSignal
// Buy/Sell Signals for Scalping
buySignal = strongBullish
sellSignal = strongBearish
// Plot Buy/Sell Signals on Chart
plotshape(series=buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="LONG")
plotshape(series=sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SHORT")
// Alerts for Scalping
alertcondition(buySignal, title="Long Trade Alert", message="Strong Bullish Signal: Consider LONG Trade")
alertcondition(sellSignal, title="Short Trade Alert", message="Strong Bearish Signal: Consider SHORT Trade")
// Additional Alerts for Confirmation
confirmationBullish = ta.crossover(macdLine, signalLine) and rsiValue > 50 and close > emaValue and volumeSignal
confirmationBearish = ta.crossunder(macdLine, signalLine) and rsiValue < 50 and close < emaValue and volumeSignal
alertcondition(confirmationBullish, title="Confirmation Bullish Alert", message="Confirmation Bullish Signal: Consider LONG Trade")
alertcondition(confirmationBearish, title="Confirmation Bearish Alert", message="Confirmation Bearish Signal: Consider SHORT Trade")
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:
Pivot Powerup indy for tradingviewThis script calculates and plots Pivot Points (P, R1, R2, R3, S1, S2, S3) on the price chart. Pivot Points are key levels used in technical analysis to identify potential support and resistance areas.
Features :
- Calculates daily Pivot Points using the standard formula.
- Plots Pivot Point (P), Resistance levels (R1, R2, R3), and Support levels (S1, S2, S3).
- Overlays the levels on the price chart for easy visualization.
- No user-configurable parameters in this version.
- This indicator is based on the previous day's data. It may not be accurate in highly volatile markets.
- Always use Pivot Points in conjunction with other technical analysis tools for better accuracy.
- To customize the indicator, modify the formula in the `calculate_pivot_points` function.
- You can also change the colors or line widths of the plotted levels by editing the `plot()` functions.
Created by chakrint. Feel free to use and modify this script.
Swing Breakout Strategy by SharadTrades on Swing Breakouts, It's Simple.
Keep SL and Target as per your suitability.
SMA Crossover with VWAP Filter-Thiru YadavBuy/Sell Signals: Displayed as labels on the chart.
SMAs: Plotted as blue (9 SMA) and orange (21 SMA) lines.
VWAP: Plotted as a purple line.
9-20 EMA Crossover with TP and SL9-20 EMA Crossover: This script tracks the crossover of the 9-period EMA and the 20-period EMA.
When the 9 EMA crosses above the 20 EMA, a buy signal is triggered.
When the 9 EMA crosses below the 20 EMA, a sell signal is triggered.
Take Profit and Stop Loss Levels:
The take profit for a long position is set at 3% above the entry price (close * 1.03).
The stop loss for a long position is set at 1% below the entry price (close * 0.99).
The take profit for a short position is set at 3% below the entry price (close * 0.97).
The stop loss for a short position is set at 1% above the entry price (close * 1.01).
Leverage: The strategy uses 20x leverage for both long and short positions (leverage=20).
Alerts: Alerts are set up for the buy signal when the 9 EMA crosses above the 20 EMA and the sell signal when the 9 EMA crosses below the 20 EMA. These alerts can be used with a webhook to trigger trades on Binance Futures.
Strategy:
For long trades: The strategy enters a long position and sets a take profit at 3% above the entry price and a stop loss at 1% below the entry price.
For short trades: The strategy enters a short position and sets a take profit at 3% below the entry price and a stop loss at 1% above the entry price.
Pivot Powerup (Indy)Pivot powerup(indy) Indicator for TradingView
This script calculates and plots daily Pivot Points (P, R1, R2, R3, S1, S2, S3) on the price chart. Pivot Points are key levels used in technical analysis to identify potential support and resistance areas.
Key Features
Calculates daily Pivot Points using the standard formula.
Plots Pivot Point (P), Resistance levels (R1, R2, R3), and Support levels (S1, S2, S3).
Overlays the levels on the price chart for easy visualization.
How to Use
Copy and paste the script into the Pine Script editor on TradingView.
Add the indicator to your chart.
The Pivot Points will be automatically calculated and plotted based on the previous day's high, low, and close prices.
Cautions
This indicator is based on the previous day's data. It may not be accurate in highly volatile markets.
Always use Pivot Points in conjunction with other technical analysis tools for better accuracy.
Customization
To customize the indicator, modify the formula in the calculate_pivot_points function.
You can also change the colors or line widths of the plotted levels by editing the plot() functions.
Credits
Created by Zhongli2566. Feel free to use and modify this script.
Bullish/Bearish Reversal ArrowsThe Bullish/Bearish Reversal Arrows Indicator is designed to identify potential reversal points in the market based on two key technical analysis tools: the MACD (Moving Average Convergence Divergence) and the RSI (Relative Strength Index).
Bullish Reversal:
A green upward arrow appears below the price bar when the MACD line crosses above the signal line (bullish crossover) and the RSI is in the oversold region (below the specified RSI oversold level).
This indicates a potential shift from a bearish trend to a bullish trend, signaling a possible buy opportunity.
Bearish Reversal:
A red downward arrow appears above the price bar when the MACD line crosses below the signal line (bearish crossunder) and the RSI is in the overbought region (above the specified RSI overbought level).
This indicates a potential shift from a bullish trend to a bearish trend, signaling a possible sell opportunity.
Features:
Combines two popular indicators (MACD and RSI) to increase accuracy.
Plots clear green upward arrows for bullish reversals and red downward arrows for bearish reversals directly on the chart.
Customizable inputs:
Adjust the MACD fast, slow, and signal lengths.
Set the RSI length and thresholds for oversold and overbought conditions.
Use Case:
This indicator is suitable for traders looking for:
Visual cues for potential market reversals.
Confirmation of oversold and overbought conditions using RSI.
An additional layer of decision-making for entry and exit points.
Note: As with all indicators, this tool should not be used in isolation. Combine it with other analysis techniques and risk management strategies for the best results.
SQZMOM_LB StrategyUtiliza el indicador sqzmom, abriendo operaciones cuando el indicador cambia al color 3 y cerrandolas cuando cambia al color 1
Price Action + Support/Resistance with LabelsEntry Conditions:
Long Entry (BUY): Based on the bullish engulfing pattern and price being above the resistance level.
Short Entry (SELL): For demonstration, the short entry condition is set as price being below the support level and a bullish candle in the previous bar. You can modify this logic for your own use case.
Stop Loss and Take Profit:
Stoploss is plotted at the calculated stop loss level.
Target is plotted at the calculated take profit level.
Labels:
For long trades, labels are added with "BUY", "STOPLOSS", and "TARGET".
For short trades (if enabled), labels are added with "SELL", "STOPLOSS", and "TARGET".
Labels are placed using label.new at specific locations on the chart (above or below bars).
Alert Conditions:
Alerts are created for both long and short entry signals so you can get notified when the entry conditions are met.
How it works:
BUY label will appear below the bar when a long entry condition is met.
SELL label will appear above the bar when a short entry condition is met.
STOPLOSS and TARGET labels will appear at their respective levels when an entry signal is triggered.
The labels will appear on the chart to give you a clear visual cue of the entry, stop loss, and take profit levels.
How to Use:
Copy the script into your Pine Editor on TradingView and apply it to your chart.
Observe the labels that show up on the chart:
"BUY" will appear below the bar when long conditions are met.
"SELL" will appear above the bar when short conditions are met (if using short logic).
"STOPLOSS" will be plotted at the stop loss level.
"TARGET" will be plotted at the take profit level.
Optional Customization:
You can modify the short entry condition based on your preferred method.
You can adjust the length for the support/resistance calculation, the stopLossRR, and other parameters to fine-tune the strategy for Nifty 50 or any other asset.
Let me know if you have any further questions or need additional modifications!
Trend Retest Strategy1. The Two Lines: Support & Resistance Levels
Red Line (recentHigh):
Plots the highest price level over the last 7 days (42 bars on the 4-hour timeframe). This acts as a dynamic resistance level.
Example: If price approaches this line and reverses, it signals a potential resistance retest.
Green Line (recentLow):
Plots the lowest price level over the last 7 days (42 bars on 4H). This acts as a dynamic support level.
Example: If price bounces off this line, it signals a support retest.
These lines update automatically as new price data forms.
Why 42 bars?
4-hour chart = 6 bars per day (24 hours / 4 = 6).
6 bars/day × 7 days = 42 bars.
2. Entry Signals (Arrows)
The arrows appear when all your strategy’s conditions align:
For Long Entries (▲ Green Triangle Below Bar):
Daily Trend: Daily RSI ≥ 50 (bullish).
MA Crossover: 20-period SMA crosses above 50-period SMA on the 4H chart.
RSI Confirmation: 4H RSI is ≥ 50 and rising (bullish momentum).
Retest: Price is within 0.5% of either the recentHigh (resistance) or recentLow (support).
Volume: Current volume > 20-period average volume.
Candle Confirmation: A bullish candle closes above the open.
For Short Entries (▼ Red Triangle Above Bar):
Daily Trend: Daily RSI < 50 (bearish).
MA Crossover: 20-period SMA crosses below 50-period SMA on the 4H chart.
RSI Confirmation: 4H RSI is ≤ 50 and falling (bearish momentum).
Retest: Price is near recentHigh or recentLow (same 0.5% threshold).
Volume: Volume exceeds its 20-period average.
Candle Confirmation: A bearish candle closes below the open.
3. How It All Fits Together
Step 1: The indicator checks the daily RSI to confirm the broader trend.
Step 2: On the 4H chart, it tracks the moving averages (MA20 and MA50) and RSI for momentum.
Step 3: When price retests the dynamic support/resistance lines (red/green), it waits for volume and candle confirmation to validate the retest.
Step 4: If all rules align, an arrow appears (long or short).
Example Scenario (Long Entry):
Daily Chart: RSI = 60 (bullish).
4H Chart:
MA20 crosses above MA50.
RSI = 55 and rising.
Price dips to the green support line (within 0.5%).
Volume spikes above average.
A bullish candle closes higher.
Result: A green ▲ appears below the bar.
Simple Swing Trader by CryptoMitchX How to Use the Simple Swing Trader by CryptoMitchX
How to Use:
The Simple Swing Trader indicator combines multiple tools to help you identify potential trading opportunities:
Moving Averages (MA 50 & MA 100): These are plotted as yellow and purple lines on the chart. Use these to determine trend direction and crossovers for potential trend changes.
Heiken Ashi Bars: Displayed with volume-based coloring for smoother visualization of trends. Look for changes in bar colors to identify potential shifts in momentum.
SuperTrend Buy/Sell Signals: Labels are placed on the chart to indicate "BUY" or "SELL" opportunities based on the SuperTrend calculation. Green labels signify potential buy zones, and red labels signify potential sell zones.
Volume Histogram: Shown in a separate pane, this provides an adjustable view of market activity. Use the "Volume Histogram Base Multiplier" input to customize its display.
Customization: All elements are editable for your trading preferences. Adjust colors, timeframes, and parameters as needed.
Features:
Multi-Tool Integration:
Combines trend-following, momentum-based, and volume-focused tools in one indicator.
SuperTrend Signals: Generates clear "BUY" and "SELL" labels to assist decision-making.
Heiken Ashi Visualization: Reduces noise and smoothens price data for better clarity.
Customizable Settings: Fully adjustable parameters to suit different trading styles and assets.
Volume Insights: An adaptable histogram that reflects market participation and activity.
Suggested Modifications
Alert Integration: Add alert conditions for BUY and SELL signals to receive real-time notifications.
Dynamic Color Customization: Enable dynamic coloring based on additional indicators, like RSI or MACD.
Optimization for Specific Assets: Fine-tune ATR and factor settings to align with the behavior of specific markets (e.g., crypto, forex, stocks).
Additional Indicators: Consider incorporating a momentum oscillator to enhance confirmation of trade setups.
This indicator is designed to work on any timeframe and asset. Experiment with different settings to optimize it for your trading strategy.
The Code
//@version=6
indicator("Simple Swing Trader by CryptoMitchX", overlay=true)
// Define moving averages
length50 = 50
length100 = 100
ma50 = ta.sma(close, length50)
ma100 = ta.sma(close, length100)
// Plot moving averages with specified colors and thickness
plot(ma50, title="MA 50", color=color.new(color.yellow, 0), linewidth=2)
plot(ma100, title="MA 100", color=color.new(color.purple, 0), linewidth=8)
// Moving Average Crosses
var float last_ma50 = na
var float last_ma100 = na
if (not na(ma50) and not na(ma100))
last_ma50 := ma50
last_ma100 := ma100
// Heiken Ashi style bars with volume-based coloring
ha_open = request.security(syminfo.tickerid, timeframe.period, math.avg(close , open ))
ha_close = math.avg(close, open, high, low)
ha_high = math.max(high, ha_open, ha_close)
ha_low = math.min(low, ha_open, ha_close)
var float last_volume = na
current_volume = volume
// Using plot for bar color indication without specifying color
plot(ha_close, title="HA Close", color=color.new(color.blue, 0), display=display.all, editable=true)
last_volume := current_volume
// Super Trend calculations for labels (but not plotting the line)
atrPeriod = 10
factor = 3.0
src = close
atr = ta.atr(atrPeriod)
upperband = src - (factor * atr)
lowerband = src + (factor * atr)
supertrend = na(upperband) ? na : upperband
supertrend := close > nz(supertrend ) ? math.max(upperband, nz(supertrend )) : math.min(lowerband, nz(supertrend ))
// Buy/Sell signals for SuperTrend with color (labels without plotting the line)
if (supertrend < nz(supertrend ))
label.new(bar_index, low, "BUY", color=color.new(color.green, 0), textcolor=color.new(color.black, 0), size=size.small)
if (supertrend > nz(supertrend ))
label.new(bar_index, high, "SELL", color=color.new(color.red, 0), textcolor=color.new(color.black, 0), size=size.small)
// Define histbase as an input
histbase_value = input.float(0.1, title="Volume Histogram Base Multiplier", minval=0.01, maxval=1, step=0.01)
// Display volume in a separate pane with modifications
plot(volume * histbase_value, title="Volume", color=color.new(color.white, 0), style=plot.style_histogram, linewidth=3, histbase=0, display=display.all)
FJH's Expansion IndicatorFJH's Expansion Indicator is a custom-built trading tool designed to support the unique fractal-based trading model taught at FJH's University. This indicator is engineered to help traders identify key price action patterns, focusing on high and low price levels as potential reversal points. It marks the previous candle's high and low and tracks whether the price breaches these levels before returning within the range, signaling a possible reversal in market direction.
Key Features:
Fractal Model Recognition: Identifies when the high or low of a previous candle is breached and closed back within the range, marking it as a potential entry point.
Line Visualization: Draws lines at the previous candle's high and low and keeps them visible until a valid fractal pattern is confirmed. The lines are then reset after four candles.
Stop Loss and Take Profit: The indicator draws stop loss lines at the price level where the breach occurred and sets the take profit at the closing price of the fourth candle following the pattern's confirmation.
Customization: Users can adjust the color and width of the lines, enabling full flexibility to match their visual preferences and trading style.
Designed for both beginner and advanced traders, FJH's Expansion Indicator aids in identifying high-probability trade setups, integrating seamlessly with the educational content at FJH's University. This indicator enhances your understanding of the fractal model and empowers you to trade with a structured, rule-based approach.
ICT Midnight Opening RangeICT Midnight Opening Range
Automatically marked and extended right for reference.
-Custom Color
-Optional CE Level
-Extends to Current Candle
.. more
Updates will come with community feedback and suggestions
Previous HTF Highs, Lows & Equilibriums [ᴅᴀɴɪ]#Previous HTF Highs, Lows & Equilibriums
Indicator Description
This powerful and user-friendly indicator is designed to help traders visualize key levels from multiple higher timeframes directly on their chart. It plots the previous session's high, low, and equilibrium (EQ) levels for up to 4 customizable timeframes, allowing you to analyze price action across different time horizons simultaneously.
Key Features
#1 Multi-Timeframe Support:
Choose up to 4 higher timeframes (e.g., 1H, 4H, 1D, 1W) to plot levels on your chart.
Each timeframe's levels are displayed with clear, customizable lines.
#2 Previous Session Levels:
Plots the previous session's high, low, and EQ (EQ = (high + low) / 2) for each selected timeframe.
Levels are dynamically updated at the start of each new session.
#3 Customizable Line Styles:
Choose between solid, dashed, or dotted lines for each level.
Customize colors for high, low, and EQ levels to suit your preferences.
#4 Dynamic Labels:
Each level is labeled with the corresponding timeframe (e.g., "1D - H" for daily high, "4H - L" for 4-hour low).
Labels are positioned dynamically to avoid clutter and ensure readability.
#5 Toggle On/Off:
Easily toggle the visibility of all levels with a single button, making it simple to declutter your chart when needed.
#6 Compatible with All Markets:
Works seamlessly across all instruments (stocks, forex, crypto, futures, etc.) and timeframes.
How to Use?
1. Add the indicator to your chart.
2. Select up to 4 higher timeframes to plot levels.
3. Customize line styles and colors to match your trading style.
4. Toggle levels on/off as needed to keep your chart clean and focused
Disclaimer
This indicator is not a trading signal generator . It does not predict market direction or provide buy/sell signals. Instead, it is a tool to help you visualize key levels from higher timeframes, enabling you to make more informed trading decisions. Always combine this tool with your own analysis, risk management, and trading strategy.
Thank you for choosing this indicator! I hope it becomes a valuable part of your trading toolkit. Remember, trading is a journey, and having the right tools can make all the difference. Whether you're a seasoned trader or just starting out, this indicator is designed to help you stay organized and focused on what matters most—price action. Happy trading, and may your charts be ever in your favor! 😊
Parabolic Detector (10min, 75°)Объяснение :
Таймфрейм 10 минут:
Используется функция request.security для получения цены закрытия за последние 10 минут.
Таймфрейм задается через input.timeframe("10", ...).
Расчет угла наклона:
Изменение цены (price_change) рассчитывается как разница между текущей ценой закрытия и ценой закрытия 10 минут назад.
Угол наклона (angle) рассчитывается с использованием функции math.atan (арктангенс). Учитывается, что 10 минут = 600 секунд.
Пороговое значение 75 градусов:
Если абсолютное значение угла (math.abs(angle)) больше или равно 75 градусам, то движение считается параболическим.
Визуализация:
На графике отображается метка "PARABOLIC", если движение параболическое.
MultiEMA FusionThe MultiEMA Fusion indicator is a versatile tool that helps traders assess market trends using a series of exponential moving averages. Its comprehensive approach, with multiple EMAs and color-coded visuals, enables traders to make informed decisions based on the prevailing market momentum. Whether you're a trend follower or looking for confirmation signals, this indicator provides essential insights into the current market structure.
Estrategia NASDAQ Futuros - EMA + RSI + Bollinger//@version=5
strategy("Estrategia NASDAQ Futuros - EMA + RSI + Bollinger", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
// Parámetros de la EMA
ema_rapida = ta.ema(close, 9)
ema_lenta = ta.ema(close, 21)
// Parámetros del RSI
rsi_length = 14
rsi_sobrecompra = 70
rsi_sobreventa = 30
rsi = ta.rsi(close, rsi_length)
// Parámetros de las Bandas de Bollinger
bb_length = 20
bb_desviacion = 2
= ta.bb(close, bb_length, bb_desviacion)
// Condiciones de Entrada
condicion_compra = ta.crossover(ema_rapida, ema_lenta) and rsi < rsi_sobreventa and close < bb_inferior
condicion_venta = ta.crossunder(ema_rapida, ema_lenta) and rsi > rsi_sobrecompra and close > bb_superior
// Ejecución de las Órdenes
if (condicion_compra)
strategy.entry("Compra", strategy.long)
if (condicion_venta)
strategy.entry("Venta", strategy.short)
// Gestión del Riesgo
stop_loss = 50 // Ajusta según el valor del futuro del NASDAQ
take_profit = 100
strategy.exit("Cerrar Compra", "Compra", stop=strategy.position_avg_price * (1 - stop_loss/10000), limit=strategy.position_avg_price * (1 + take_profit/10000))
strategy.exit("Cerrar Venta", "Venta", stop=strategy.position_avg_price * (1 + stop_loss/10000), limit=strategy.position_avg_price * (1 - take_profit/10000))
// Visualización en el Gráfico
plot(ema_rapida, color=color.blue, title="EMA Rápida (9)")
plot(ema_lenta, color=color.red, title="EMA Lenta (21)")
plot(bb_superior, color=color.green, title="Banda Superior")
plot(bb_inferior, color=color.red, title="Banda Inferior")
hline(rsi_sobrecompra, "Sobrecompra", color=color.red)
hline(rsi_sobreventa, "Sobreventa", color=color.green)
Candlestick Bible: Dynamic Price Follower Strategy Overview:
This trading strategy, named "Candlestick Bible: Dynamic Price Follower (Corrected)", is designed to trade based on candlestick patterns, the market trend, and price action dynamics. It generates long (buy) and short (sell) signals using a combination of:
Candlestick pattern recognition
Exponential moving averages (EMA)
Price movement analysis (ATR)
The strategy does not include any position management logic (like trailing stops or exit rules). It simply enters trades based on specific conditions, and you would need to manually manage exits or apply additional rules for that.
Detailed Breakdown of Each Section:
1. Pattern Detection:
This part of the strategy identifies specific candlestick patterns:
Pin Bar Detection: A "Pin Bar" is a candlestick with a long shadow (upper or lower) and a small body. The strategy looks for Bullish Pin Bars (when the lower shadow is at least twice the body size) and Bearish Pin Bars (when the upper shadow is at least twice the body size).
Engulfing Pattern: The strategy detects Bullish Engulfing (when the current candlestick fully engulfs the previous bearish candlestick) and Bearish Engulfing (when the current candlestick fully engulfs the previous bullish candlestick).
These patterns are used to trigger entry conditions in the strategy.
2. Dynamic Trend System:
Exponential Moving Averages (EMAs): The strategy uses two EMAs to determine the current market trend:
Fast EMA (8-period): A quicker-moving average, more responsive to recent price changes.
Slow EMA (21-period): A slower-moving average that smooths out price action.
The strategy compares the fast EMA to the slow EMA:
If the fast EMA is above the slow EMA, the market is considered bullish.
If the fast EMA is below the slow EMA, the market is considered bearish.
This trend direction is important for confirming whether a long (buy) or short (sell) signal is valid.
3. Price Movement System:
Average True Range (ATR): The strategy uses ATR (14-period) to gauge the market's volatility.
Trail Offset: Although the exit logic for trailing stops has been removed, the ATR value is used to calculate the distance for potential trailing stops (for future strategies that might include exit rules).
4. Strategy Rules:
Long (Buy) Condition:
The strategy will enter a long position if either a Bullish Pin Bar or a Bullish Engulfing pattern is detected, and the market is in a bullish trend (i.e., the fast EMA is above the slow EMA).
The closing price should also be above the slow EMA to confirm the strength of the bullish trend.
Short (Sell) Condition:
The strategy will enter a short position if either a Bearish Pin Bar or a Bearish Engulfing pattern is detected, and the market is in a bearish trend (i.e., the fast EMA is below the slow EMA).
The closing price should be below the slow EMA to confirm the strength of the bearish trend.
5. Strategy Entries:
The strategy will enter long positions when the long condition is met (i.e., a bullish candlestick pattern forms and the market is bullish).
The strategy will enter short positions when the short condition is met (i.e., a bearish candlestick pattern forms and the market is bearish).
No exit rules are implemented. Therefore, trades are entered but not automatically exited.
6. Visual Feedback:
EMA Lines: The strategy plots the Fast EMA (blue) and Slow EMA (red) on the chart to visually represent the market’s trend.
Entry Signals: The strategy uses plotshape to visually mark entry points:
Green triangle (below the bar) indicates a long (buy) signal.
Red triangle (above the bar) indicates a short (sell) signal.
Summary of the Strategy's Actions:
The strategy checks for Bullish or Bearish Pin Bars or Bullish or Bearish Engulfing patterns.
It filters these signals by checking the market trend (using the Fast and Slow EMAs).
It enters trades when both the candlestick pattern and market trend align:
Long trade: If there is a Bullish pattern and the market is in a bullish trend.
Short trade: If there is a Bearish pattern and the market is in a bearish trend.
The strategy will not exit positions automatically (you would need to manually manage exits, or implement additional exit rules).
What’s Missing:
Position Management: No trailing stop or stop-loss logic is included in this version of the strategy. Once a position is opened, it will remain open until manually closed or additional exit conditions are added.
Khubaib janThis is a custom indicator to check RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI. It help to check the RSI.