Reversal rehersal v1This indicator was designed to identify potential market reversal zones using a combination of RSI thresholds (shooting range/falling range), candlestick patterns, and Fair Value Gaps (FVGs). By combining all these elements into one indicator, it allow for outputting high probability buy/sell signals for use by scalpers on low timeframes like 1-15 mins, for quick but small profits.
Note: that this has been mainly tested on DE40 index on the 1 min timeframe, and need to be adjusted to whichever timeframe and symbol you intend to use. Refer to the backtester feature for checking if this indicator may work for you.
The indicator use RSI ranges from two timeframes to highlight where momentum is building up. During these areas, it will look for certain candlestick patterns (Sweeps as the primary one) and check for existance of fair value gaps to further enhance the hitrate of the signal.
The logic for FVG detection was based on ©pmk07's work with MTF FVG tiny indicator. Several major changes was implemented though and incorporated into this indicator. Among these are:
Automatically adjustments of FVG boxes when mitigated partially and options to extend/cull boxes for performance and clarity.
Backtesting Table (Experimental):
This indicator also features an optional simplified table to review historical theoretical performance of signals, including win rate, profit/loss, and trade statistics. This does not take commision or slippage into consideration.
Usage Notes:
Setup:
1. Add the indicator to your chart.
2. Decide if you want to use Long or Short (or both).
3. If you're scalping on ie. 1 min time frame, make sure to set FVG's to higher timeframes (ie. 5, 15, 60).
4. Enable the 'Show backtest results' and adjust the 'Signals' og 'Take profit' and 'Stop loss' values until you are satisfied with the results.
Use:
1. Setup an alert based on either of the 'BullishShooting range' or 'BearishFalling range' alerts. This will draw your attention to watch for the possible setups.
2. Verify if there's a significant imbalance prior to the signal before taking the trade. Otherwise this may invalidate the setup.
3. Once a signal is shown on the graph (either Green arrow up for buys/Red arrow down for sells) - you should enter a trade with the given 'Take profit' and 'Stop loss' values.
4. (optional) Setup an alert for either the Strong/Weak signals. Which corresponds to when one of the arrows are printed.
Important: This is the way I use it myself, but use at own risk and remember to combine with other indicators for further confluence. Remember this is no crystal ball and I do not guarantee profitable results. The indicator merely show signals with high probability setups for scalping.
Índice de Força Relativa (RSI)
PRIME RSIThe "PRIME RSI" is a custom variation of the traditional RSI (Relative Strength Index) that offers enhanced flexibility and precision. This indicator provides an adaptable approach for tracking market conditions across different timeframes, making it an ideal tool for both short-term and long-term traders.
Key Features:
Custom Timeframe Selection: Users can select any timeframe to calculate the RSI, providing the ability to analyze data beyond the current chart's timeframe.
Smoothing Methods: Choose between Exponential Moving Average (EMA), Simple Moving Average (SMA), or the Relative Moving Average (RMA) for smoother, more accurate RSI values.
Signal Line: The signal line is smoothed using the selected method and visualized with dynamic coloring to indicate bullish (green) or bearish (red) market conditions.
Overbought/Oversold Levels: Clear levels at 70 (overbought) and 30 (oversold), with fill zones to highlight extreme market conditions, helping traders spot potential reversal points.
Midline at 50: The centerline at 50 serves as a neutral zone, allowing traders to identify shifts in market momentum quickly.
Practical Use:
Trend Confirmation: Use the PRIME RSI to confirm the prevailing market trend, with signals above 50 suggesting bullish momentum and signals below 50 indicating bearish trends.
Overbought/Oversold Conditions: The indicator’s overbought and oversold regions help pinpoint potential market reversals, giving traders valuable entry and exit signals.
Ideal For: All types of traders who want a more flexible and customizable RSI for better trend analysis, especially those working with smaller timeframes or seeking a more responsive momentum indicator.
HTC peppermint_07 CCI w signal + s&r RSI
This CCI version enhances the traditional Commodity Channel Index (CCI) by integrating a dynamically calculated Relative Strength Index (RSI) that acts as support and resistance as shown in the screenshot, it can add as a confirmation to the divergence found in the CCI.
Key Features:
Enhanced CCI: The primary plot (black line but customizable) represents the standard CCI, providing insight into price momentum and potential overbought/oversold conditions.
Dynamic RSI Support/Resistance: The upper and lower bands (medium cyan line) are derived from a smoothed RSI, dynamically adjusting to the current market volatility. These bands serve as potential support and resistance levels for the CCI as additional confirmation for the divergence.
Overbought/Oversold Zones: The traditional overbought (+100) and oversold (-100) levels for CCI are marked with horizontal dotted lines.
Benefits:
Improved Entry/Exit Signals: Combining CCI with dynamic RSI support/resistance may offer more precise trading signals compared to using CCI alone.
Dynamic Adaptation: The RSI-based bands adapt to changing market conditions, potentially providing more relevant support and resistance levels.
Divergence Confirmation: dynamic s&r RSI adds confluence to potential trend reversals identified by the CCI.
Potential Usage:
Traders might use this indicator to:
Identify potential overbought/oversold conditions using the CCI and its relationship to the dynamic RSI bands.
Look for breakouts beyond the dynamic support/resistance levels as potential entry points.
Confirm potential trend reversals using RSI divergence (cyan and red label above divergence) signals.
Further Development Considerations:
Customizable Parameters: Allowing users to adjust the CCI length, RSI periods, and smoothing factors would enhance flexibility.
Alert Conditions: Adding alerts for breakouts, overbought/oversold conditions, and divergence signals would improve usability.
Backtesting: Thoroughly backtesting the indicator's performance across different assets and timeframes is essential before using it for live trading.
DISCLAIMER: !!
indicator is a custom technical analysis tool designed for educational and informational purposes only. It should not be construed as financial advice or a recommendation to buy or sell any security. Trading involves substantial risk of loss and may not be suitable for all investors.
Key Points to Consider:
No Guarantee of Profitability: The indicator's past performance is not indicative of future results. No trading strategy can guarantee profits or eliminate the risk of losses. You could lose some or all of your investment.
Use at Your Own Risk: Use of this indicator is solely at your own discretion and risk. You are responsible for your trading decisions. The developers and distributors of this indicator are not liable for any losses incurred as a result of using it.
Not Financial Advice: This indicator does not provide financial advice. Consult with a qualified financial advisor before making any investment decisions.
Backtesting Limitations: Backtested results, if presented, should be viewed with caution. Past performance may not reflect future results due to various factors, including changing market conditions and the limitations of backtesting methodologies.
Indicator Limitations: Technical indicators, including this one, are not perfect. They can generate false signals, and their effectiveness can vary depending on market conditions and the specific parameters used.
Parameter Optimization: Optimizing indicator parameters for past performance can lead to overfitting, which may not translate to future profitability.
No Warranty: The indicator is provided "as is" without any warranty of any kind, either express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose, or non-infringement.
Changes and Updates: The developers may make changes or updates to the indicator without notice.
By using the "HTC peppermint_07 CCI w signal + s&r RSI" indicator, you acknowledge and agree to the terms of this disclaimer. If you do not agree with these terms, do not use the indicator.
Bottom FishingThe Bottom Fishing Indicator is a technical analysis tool that integrates RSI (Relative Strength Index), CCI (Commodity Channel Index), and MFI (Money Flow Index) to detect potential market bottoming opportunities. It calculates the oversold accumulation value of these indicators and marks buy signals when specific thresholds are met.
This indicator supports multi-timeframe (MTF) analysis, allowing users to track oversold conditions on higher timeframes such as daily or weekly charts.
Calculation Logic
(1) RSI Calculation
The Relative Strength Index (RSI) measures the strength of price movement by comparing recent gains and losses over a defined period. If the RSI value drops below 30, it indicates that the asset is oversold, meaning that selling pressure has been dominant and a potential rebound might occur. When this condition is met, the difference between 30 and the RSI value is added to the accumulation sum.
(2) CCI Calculation
The Commodity Channel Index (CCI) compares the current price level to its moving average over a specific period. If the CCI value falls below -100, it suggests that the asset is experiencing significant downward pressure. The difference between -100 and the actual CCI value is recorded and accumulated over time to gauge the intensity of the oversold condition.
(3) MFI Calculation
The Money Flow Index (MFI) evaluates price movements in relation to volume to determine buying and selling pressure. When the MFI drops below 20, it signals that the market is experiencing excessive selling pressure. The difference between 20 and the MFI value is added to the accumulation sum to track the degree of the oversold condition.
(4) Oversold Accumulation Calculation
Each time the selected indicator (RSI, CCI, or MFI) enters an oversold state, the corresponding difference is added to an ongoing sum. If the indicator exits the oversold zone, the accumulation sum resets to zero. Once the accumulation sum reaches or exceeds the defined threshold, the indicator marks a buy signal on the chart, indicating a potential bottom.
Multi-Timeframe (MTF) Calculation
Uses request.security() to fetch higher timeframe data (e.g., Daily, Weekly).
RSI, CCI, and MFI are recalculated on the selected timeframe.
The same oversold accumulation logic is applied to detect long-term buy opportunities.
The MTF accumulation line is plotted to visualize oversold conditions on higher timeframes.
Chart Display
(1) Indicator Lines
✅ Accumulation Value Line
Value Sum Line (Aqua color): Represents the oversold accumulation sum in the current timeframe.
MTF Value Sum Line (Orange color): Represents the oversold accumulation sum in the selected multi-timeframe.
✅ Divergence Signal Markers
If accumulation exceeds the threshold, a "Goal" marker is plotted above the candle, signaling a potential bottom.
Use Cases
🔹 Short-term Trading: Ideal for scalping and intraday trading, detecting potential reversals when RSI, CCI, or MFI enters the oversold zone.
🔹 Trend Reversal Trading: Works best with multi-timeframe confirmation, where a higher timeframe also signals an oversold condition.
🔹 Combining with Other Indicators: Can be used alongside moving averages, MACD, Bollinger Bands for higher accuracy.
Scalper Strategy 15M V3This script combines two popular indicators, MACD and RSI, to provide more accurate trading signals. Additionally, it displays Support & Resistance levels based on the last 50 candles, helping traders identify potential price reversal areas.
Intraday & Swing traders looking to optimize their entry & exit points
TradingView users seeking stronger confirmation in trading signals.
Traders who incorporate support & resistance into their strategies.
How to Use:
1. Adjust the MACD & RSI parameters to match your strategy.
2. Use Support & Resistance levels to spot potential price reversals.
3. Watch for Buy/Sell signals appearing on the chart.
Always use proper risk management. No strategy is perfect, so backtest before using it on a live account.
Refined Trend and Consolidation with MACD, RSI, OBV, and VolumeWe are implementing a trend analysis system using multiple technical indicators to determine the market state. We calculate two Simple Moving Averages (SMA 9 and SMA 21), the Relative Strength Index (RSI), the On-Balance Volume (OBV), and the MACD. Based on these indicators, we classify the market into three states: uptrend, downtrend, or consolidation. The script then changes the background color of the chart to visually represent the current market state: green for uptrend, red for downtrend, and yellow for consolidation. The transparency of the background is adjusted for a clear view of the price action.
The uptrend is identified when the short-term SMA (SMA 9) is above the long-term SMA (SMA 21), RSI is above 55 (indicating strong bullish momentum), OBV is rising, MACD line is above the signal line and zero, and volume is higher than the average.
The downtrend is recognized when the short-term SMA is below the long-term SMA, RSI is below 45 (indicating bearish momentum), OBV is falling, MACD line is below the signal line and zero, and volume exceeds the average.
Consolidation occurs when none of the uptrend or downtrend conditions are met, indicating range-bound movement. This is signified by the SMAs being close to each other, RSI near 50, OBV flat, MACD oscillating around zero, and volume either below average or neutral.
This provides a clear, visual representation of the market's current state by dynamically changing the chart's background color. The uptrend is shown with a green background, indicating a strong bullish market, while the downtrend is represented with a red background, signaling a bearish market. A yellow background marks consolidation, suggesting a period of sideways or range-bound movement with no clear direction. By using a combination of SMAs, RSI, OBV, MACD, and volume, the script helps traders quickly identify the prevailing market conditions, allowing them to make more informed decisions based on current trends and potential consolidations.
EMA Crossover + RSI StrategyCheck trend of 20 EMA, 50 EMA and 100 EMA and if price crosses above all 3 and trend is up, buy. If RSI goes above 70 or price crosses below any of the 3 EMAs, sell.
EMA+SMA+RSI AND SUPERTREND BY MANDALORIANThis indicator contains EMA/SMA/SUPERTREND/RSI. it gives more freedom to traders to make more conclusive decison on their trades. Its very easy to use and apply. user can also hide the features which they dont wants to use and keep only desirable features of indicator on screen.Traders should exercise their own experience and judgement in their trades and dont solely depend on indicators to be profitable. Happy to help.
RSI & RSI-MA Buy-Sell IndicatorThe RSI & RSI-MA Buy-Sell Indicator is a technical analysis tool designed to identify potential trading opportunities based on the Relative Strength Index (RSI) and its moving average (RSI-MA). The indicator provides clear buy and sell signals when specific conditions are met, helping traders make informed decisions.
How It Works
This indicator is based on two main components:
Relative Strength Index (RSI): Measures the strength and momentum of price movements.
RSI Moving Average (RSI-MA): A simple moving average of RSI values, used to smooth out volatility and confirm trends.
Trading Signals:
A buy signal occurs when the RSI crosses above 70 after previously being below 30, and the RSI-MA is above a predefined threshold.
A sell signal is generated when the RSI crosses below 30 after previously being above 70, and the RSI-MA is below the threshold.
Visual labels for "BUY" and "SELL" appear on the RSI chart rather than the price chart, making it easier to interpret the signals.
Alerts can be set to notify traders when a buy or sell condition is met.
Benefits of the Indicator
Clear Trading Signals: The indicator removes subjectivity by providing distinct buy and sell signals.
Enhanced Trend Confirmation: RSI-MA helps validate RSI movements, reducing false signals.
Customizable Inputs: Traders can adjust the RSI period, RSI-MA period, and reference level based on their strategy.
Efficient for Momentum Trading: Works well in volatile markets where RSI movements are pronounced.
Compatible with Alerts: Can send notifications when trading conditions are met, allowing traders to act swiftly.
Risks & Limitations
False Signals in Sideways Markets: RSI can generate misleading signals when the market lacks a clear trend.
Lagging Nature of Moving Averages: RSI-MA may cause a delay in signal generation compared to RSI alone.
Market Conditions Dependency: Works best in trending markets but may be unreliable during low volatility.
Not a Standalone Strategy: Should be used in conjunction with other indicators, fundamental analysis, and risk management techniques.
Overbought/Oversold Assumptions: Just because RSI reaches extreme levels doesn’t guarantee a reversal—prices can remain overbought/oversold for extended periods.
Conclusion
The RSI & RSI-MA Buy-Sell Indicator is a powerful tool for identifying momentum shifts and potential trade setups. However, like all technical indicators, it has limitations and should be used alongside other analysis techniques. Traders must implement proper risk management and avoid relying solely on RSI signals for trading decisions. With careful usage, this indicator can help enhance decision-making and improve trade timing in dynamic markets.
Momentum, RSI, and MACD Strategy with Stop Loss//@version=5
strategy("Momentum, RSI, and MACD Strategy with Stop Loss", overlay=true, calc_on_every_tick=true)
// Input for Momentum
length = input(12, title="Momentum Length")
price = close
// Input for RSI
rsiLength = input(14, title="RSI Length")
rsiSource = close
rsiValue = ta.rsi(rsiSource, rsiLength)
// Input for MACD
fast_length = input(12, title="Fast Length")
slow_length = input(26, title="Slow Length")
src = close
signal_length = input.int(9, title="Signal Smoothing")
sma_source = input.string("EMA", title="Oscillator MA Type", options= )
sma_signal = input.string("EMA", title="Signal Line MA Type", options= )
// ATR Inputs and Calculation
atrLength = input.int(title="ATR Length", defval=14, minval=1)
smoothing = input.string(title="ATR Smoothing", defval="RMA", options= )
ma_function(source, length) =>
switch smoothing
"RMA" => ta.rma(source, length)
"SMA" => ta.sma(source, length)
"EMA" => ta.ema(source, length)
=> ta.wma(source, length)
atrValue = ma_function(ta.tr(true), atrLength)
// Calculating Momentum
momentum(seria, length) =>
mom = seria - seria
mom
mom0 = momentum(price, length)
mom1 = momentum(mom0, 1)
// Calculating MACD
fast_ma = sma_source == "SMA" ? ta.sma(src, fast_length) : ta.ema(src, fast_length)
slow_ma = sma_source == "SMA" ? ta.sma(src, slow_length) : ta.ema(src, slow_length)
macd = fast_ma - slow_ma
signal = sma_signal == "SMA" ? ta.sma(macd, signal_length) : ta.ema(macd, signal_length)
hist = macd - signal
// Long Entry Condition
longCondition = mom0 > 0 and mom1 > 0 and rsiValue > 50 and macd > 0
if (longCondition)
strategy.entry("MomRSIMACD Long", strategy.long, stop=high+syminfo.mintick, comment="MomRSIMACD Long")
strategy.exit("Exit Long", from_entry="MomRSIMACD Long", stop=price-15, limit=price+15)
// Short Entry Condition
shortCondition = mom0 < 0 and mom1 < 0 and rsiValue < 50 and macd < 0
if (shortCondition)
strategy.entry("MomRSIMACD Short", strategy.short, stop=low-syminfo.mintick, comment="MomRSIMACD Short")
strategy.exit("Exit Short", from_entry="MomRSIMACD Short", stop=price+15, limit=price-15)
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.
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.
Multi-Timeframe Indicators Table with DivergenceThis indicator provides a comprehensive view of key technical indicators across multiple timeframes: Monthly, Weekly, and Daily. It includes the following:
RSI (Relative Strength Index): Shows momentum strength for each timeframe.
MFI (Money Flow Index): Tracks the flow of money into and out of the asset.
CCI (Commodity Channel Index): Identifies overbought or oversold conditions.
BB% (Bollinger Bands Percent): Measures the price relative to Bollinger Bands for volatility analysis.
The indicator also highlights potential divergences between price action and each technical indicator. Divergence is indicated when the price moves in one direction while the indicator moves in the opposite, which could signal a possible trend reversal.
Features:
Multi-timeframe analysis (Monthly, Weekly, Daily & Intraday)
Visual representation of key indicators with colors for easy interpretation
Divergence alerts for trend reversal opportunities
Customizable indicator lengths and colors
Use this tool to analyze price trends, potential reversals, and identify high-probability trading opportunities across different timeframes
Smart Market Bias [PhenLabs]📊 Smart Market Bias Indicator (SMBI)
Version: PineScript™ v6
Description
The Smart Market Bias Indicator (SMBI) is an advanced technical analysis tool that combines multiple statistical approaches to determine market direction and strength. It utilizes complexity analysis, information theory (Kullback Leibler divergence), and traditional technical indicators to provide a comprehensive market bias assessment. The indicator features adaptive parameters based on timeframe and trading style, with real-time visualization through a sophisticated dashboard.
🔧 Components
Complexity Analysis: Measures price movement patterns and trend strength
KL Divergence: Statistical comparison of price distributions
Technical Overlays: RSI and Bollinger Bands integration
Filter System: Volume and trend validation
Visual Dashboard: Dynamic color-coded display of all components
Simultaneous current timeframe + higher time frame analysis
🚨Important Explanation Feature🚨
By hovering over each individual cell in this comprehensive dashboard, you will get a thorough and in depth explanation of what each cells is showing you
Visualization
HTF Visualization
📌 Usage Guidelines
Based on your own trading style you should alter the timeframe length that you would like to be analyzing with your dashboard
The longer the term of the position you are planning on entering the higher timeframe you should have your dashboard set to
Bias Interpretation:
Values > 50% indicate bullish bias
Values < 50% indicate bearish bias
Neutral zone: 45-55% suggests consolidation
✅ Best Practices:
Use appropriate timeframe preset for your trading style
Monitor all components for convergence/divergence
Consider filter strength for signal validation
Use color intensity as confidence indicator
⚠️ Limitations
Requires sufficient historical data for accurate calculations
Higher computational complexity on lower timeframes
May lag during extremely volatile conditions
Best performance during regular market hours
What Makes This Unique
Multi-Component Analysis: Combines complexity theory, statistical analysis, and traditional technical indicators
Adaptive Parameters: Automatically optimizes settings based on timeframe
Triple-Layer Filtering: Uses trend, volume, and minimum strength thresholds
Visual Confidence System: Color intensity indicates signal strength
Multi-Timeframe Capabilities: Allowing the trader to analyze not only their current time frame but also the higher timeframe bias
🔧 How It Works
The indicator processes market data through four main components:
Complexity Score (40% weight): Analyzes price returns and pattern complexity
Kullback Leibler Divergence (30% weight): Compares current and historical price distributions
RSI Analysis (20% weight): Momentum and oversold/overbought conditions
Bollinger Band Position (10% weight): Price position relative to volatility
Underlying Method
Maintains rolling windows of price data for multiple calculations
Applies custom normalization using hyperbolic tangent function
Weights component scores based on reliability and importance
Generates final bias percentage with confidence visualization
💡 Note: For optimal results, use in conjunction with price action analysis and consider multiple timeframe confirmation. The indicator performs best when all components show alignment.
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
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.
Smart Trading Signals with TP/SL//@version=5
indicator("Smart Trading Signals with TP/SL", shorttitle="STS-TP/SL", overlay=true, max_labels_count=500)
// —————— Input Parameters ——————
// Signal Configuration
signalType = input.string("EMA Crossover", "Signal Type", options= )
emaFastLen = input.int(9, "Fast EMA Length", minval=1)
emaSlowLen = input.int(21, "Slow EMA Length", minval=1)
rsiLength = input.int(14, "RSI Length", minval=1)
rsiOverbought = input.int(70, "RSI Overbought", maxval=100)
rsiOversold = input.int(30, "RSI Oversold", minval=0)
// Risk Management Inputs
useFixedTP = input.bool(true, "Use Fixed TP (%)", tooltip="TP as percentage from entry")
tpPercentage = input.float(2.0, "Take Profit %", step=0.1)
tpPoints = input.float(100, "Take Profit Points", step=1.0)
useFixedSL = input.bool(true, "Use Fixed SL (%)", tooltip="SL as percentage from entry")
slPercentage = input.float(1.0, "Stop Loss %", step=0.1)
slPoints = input.float(50, "Stop Loss Points", step=1.0)
// —————— Calculate Indicators ——————
// EMAs for Trend
emaFast = ta.ema(close, emaFastLen)
emaSlow = ta.ema(close, emaSlowLen)
emaBullish = ta.crossover(emaFast, emaSlow)
emaBearish = ta.crossunder(emaFast, emaSlow)
// RSI for Momentum
rsi = ta.rsi(close, rsiLength)
rsiBullish = ta.crossover(rsi, rsiOversold)
rsiBearish = ta.crossunder(rsi, rsiOverbought)
// —————— Generate Signals ——————
buyCondition = (signalType == "EMA Crossover" and emaBullish) or (signalType == "RSI Divergence" and rsiBullish)
sellCondition = (signalType == "EMA Crossover" and emaBearish) or (signalType == "RSI Divergence" and rsiBearish)
// —————— Calculate TP/SL Levels ——————
var float entryPrice = na
var bool inTrade = false
// Calculate TP/SL based on user input
takeProfitPrice = useFixedTP ? entryPrice * (1 + tpPercentage / 100) : entryPrice + tpPoints
stopLossPrice = useFixedSL ? entryPrice * (1 - slPercentage / 100) : entryPrice - slPoints
// —————— Plot Signals and Levels ——————
if buyCondition and not inTrade
entryPrice := close
inTrade := true
label.new(bar_index, low, "BUY", style=label.style_label_up, color=color.green, textcolor=color.white)
line.new(bar_index, entryPrice, bar_index + 1, entryPrice, color=color.green, width=2)
line.new(bar_index, takeProfitPrice, bar_index + 1, takeProfitPrice, color=color.teal, width=2, style=line.style_dashed)
line.new(bar_index, stopLossPrice, bar_index + 1, stopLossPrice, color=color.red, width=2, style=line.style_dashed)
if sellCondition and inTrade
entryPrice := close
inTrade := false
label.new(bar_index, high, "SELL", style=label.style_label_down, color=color.red, textcolor=color.white)
line.new(bar_index, entryPrice, bar_index + 1, entryPrice, color=color.red, width=2)
line.new(bar_index, takeProfitPrice, bar_index + 1, takeProfitPrice, color=color.teal, width=2, style=line.style_dashed)
line.new(bar_index, stopLossPrice, bar_index + 1, stopLossPrice, color=color.red, width=2, style=line.style_dashed)
// —————— Alerts ——————
alertcondition(buyCondition, title="Buy Signal Alert", message="BUY Signal Triggered")
alertcondition(sellCondition, title="Sell Signal Alert", message="SELL Signal Triggered")
// —————— Plot EMAs and RSI ——————
plot(emaFast, "Fast EMA", color.new(color.blue, 0))
plot(emaSlow, "Slow EMA", color.new(color.orange, 0))
[PUBLIC] - Trade Zones with SL/TP and Buy/Sell Signals - [LFES]Trade Zones with SL/TP and Buy/Sell Signals
Este indicador identifica oportunidades de trading baseadas na relação entre o RSI e sua média móvel, com gerenciamento visual de risco através de zonas de lucro/prejuízo.
EMA + RSI + SR Key Features:
Inputs:
EMA Length (default: 50), RSI Length (14), HMA Length (20).
Overbought (70) and Oversold (30) RSI levels.
Support/Resistance Lookback (50).
Calculations:
EMA: Trend baseline.
HMA: Smoother trend detection.
RSI: Overbought/oversold conditions.
Support/Resistance Levels: Recent highs/lows over the lookback period.
Signals:
Buy: Uptrend + RSI oversold + near support.
Sell: Downtrend + RSI overbought + near resistance.
Visuals:
Plots EMA, HMA, RSI levels, support/resistance lines.
Buy/sell signals as labels on the chart.
Alerts:
Notifications for buy/sell signals.
NQ Trading Indicator 2Buy Signal: Triggered when the MACD line crosses above the signal line and the RSI is below 30, indicating an oversold condition.
Sell Signal: Triggered when the MACD line crosses below the signal line and the RSI is above 70, indicating an overbought condition.
False Breakout Notification: Highlights when MACD and RSI indicate conditions opposing their typical breakout behavior (e.g., RSI is overbought during a bullish crossover or oversold during a bearish crossover).
NQ Trading Indicator for 1 min chartFor 1 minute scalp on NQ.
Buy Signal: Triggered when the MACD line crosses above the signal line and the RSI is below 30, indicating an oversold condition.
Sell Signal: Triggered when the MACD line crosses below the signal line and the RSI is above 70, indicating an overbought condition.
False Breakout Notification: Highlights when MACD and RSI indicate conditions opposing their typical breakout behavior (e.g., RSI is overbought during a bullish crossover or oversold during a bearish crossover).
QT RSI [ W.ARITAS ]The QT RSI is an innovative technical analysis indicator designed to enhance precision in market trend identification and decision-making. Developed using advanced concepts in quantum mechanics, machine learning (LSTM), and signal processing, this indicator provides actionable insights for traders across multiple asset classes, including stocks, crypto, and forex.
Key Features:
Dynamic Color Gradient: Visualizes market conditions for intuitive interpretation:
Green: Strong buy signal indicating bullish momentum.
Blue: Neutral or observation zone, suggesting caution or lack of a clear trend.
Red: Strong sell signal indicating bearish momentum.
Quantum-Enhanced RSI: Integrates adaptive energy levels, dynamic smoothing, and quantum oscillators for precise trend detection.
Hybrid Machine Learning Model: Combines LSTM neural networks and wavelet transforms for accurate prediction and signal refinement.
Customizable Settings: Includes advanced parameters for dynamic thresholds, sensitivity adjustment, and noise reduction using Kalman and Jurik filters.
How to Use:
Interpret the Color Gradient:
Green Zone: Indicates bullish conditions and potential buy opportunities. Look for upward momentum in the RSI plot.
Blue Zone: Represents a neutral or consolidation phase. Monitor the market for trend confirmation.
Red Zone: Indicates bearish conditions and potential sell opportunities. Look for downward momentum in the RSI plot.
Follow Overbought/Oversold Boundaries:
Use the upper and lower RSI boundaries to identify overbought and oversold conditions.
Leverage Advanced Filtering:
The smoothed signals and quantum oscillator provide a robust framework for filtering false signals, making it suitable for volatile markets.
Application: Ideal for traders and analysts seeking high-precision tools for:
Identifying entry and exit points.
Detecting market reversals and momentum shifts.
Enhancing algorithmic trading strategies with cutting-edge analytics.