Hammer & Inverted Hammer DetectorThis Pine Script indicator detects Hammer and Inverted Hammer candlestick patterns based on price action and VWAP (Volume Weighted Average Price). It evaluates the relationship between the current and previous candles, checking shadow lengths and body size to confirm the pattern. If a Hammer is identified, a green upward label appears below the candle, while an Inverted Hammer is marked with a red downward label above the candle.
Candlestick analysis
High/Low LabelsThis simple Version 6 script labels each bar on the chart with Green labels noting HH for higher highs and HL for higher lows. And Red labels noting LH for lower highs and LL for lower lows. Works on any Trading View chart and any time frame. Any comments or suggestions, please do!
Trend & ADX by Gideon for Indian MarketsThis indicator is designed to help traders **identify strong trends** using the **Kalman Filter** and **ADX** (Average Directional Index). It provides **Buy/Sell signals** based on trend direction and ADX strength. I wanted to create something for Indian markets since there are not much available.
In a nut-shell:
✅ **Buy when the Kalman Filter turns green, and ADX is strong.
❌ **Sell when the Kalman Filter turns red, and ADX is strong.
📌 **Ignore signals if ADX is weak (below threshold).
📊 Use on 5-minute timeframes for intraday trading.
------------------------------------------------------------------------
1. Understanding the Indicator Components**
- **Green Line:** Indicates an **uptrend**.
- **Red Line:** Indicates a **downtrend**.
- The **line color change** signals a potential **trend reversal**.
**ADX Strength Filter**
- The **ADX (orange line)** measures trend strength.
- The **blue horizontal line** marks the **ADX threshold** (default: 20).
- A **Buy/Sell signal is only valid if ADX is above the threshold**, ensuring a strong trend.
**Buy & Sell Signals**
- **Buy Signal (Green Up Arrow)**
- Appears **one candle before** the Kalman line turns green.
- ADX must be **above the threshold** (default: 20).
- Suggests entering a **long position**.
- **Sell Signal (Red Down Arrow)**
- Appears **one candle before** the Kalman line turns red.
- ADX must be **above the threshold** (default: 20).
- Suggests entering a **short position**.
2. Best Settings for 5-Minute Timeframe**
For day trading on the **5-minute chart**, the following settings work best:
- **Kalman Filter Length:** `50`
- **Process Noise (Q):** `0.1`
- **Measurement Noise (R):** `0.01`
- **ADX Length:** `14`
- **ADX Threshold:** `20`
- **(Increase to 25-30 for more reliable signals in volatile markets)**
3. How to Trade with This Indicator**
**Entry Rules**
✅ **Buy Entry**
- Wait for a **green arrow (Buy Signal).
- Kalman Line must **turn green**.
- ADX must be **above the threshold** (strong trend confirmed).
- Enter a **long position** on the next candle.
❌ **Sell Entry**
- Wait for a **red arrow (Sell Signal).
- Kalman Line must **turn red**.
- ADX must be **above the threshold** (strong trend confirmed).
- Enter a **short position** on the next candle.
**Exit & Risk Management**
📌 **Stop Loss**:
- Place stop-loss **below the previous swing low** (for buys) or **above the previous swing high** (for sells).
📌 **Take Profit:
- Use a **Risk:Reward Ratio of 1:2 or 1:3.
- Exit when the **Kalman Filter color changes** (opposite trend signal).
📌 **Avoid Weak Trends**:
- **No trades when ADX is below the threshold** (low trend strength).
4. Additional Tips
- Works best on **liquid assets** like **Bank Nifty, Nifty 50, and large-cap stocks**.
- **Avoid ranging markets** with low ADX values (<20).
- Use alongside **volume analysis and support/resistance levels** for confirmation.
- Experiment with **ADX Threshold (increase for stronger signals, decrease for more trades).**
Best of Luck traders ! 🚀
ICT-Yasir Macro TimesICT MACRO TIMES
8:50 to 9:10
9:50 to 10:10
10:50 to 11:10
12:50 to 1:10
1:50 to 2:10
2:50 to 3:10
3:15 to 3:45
3:45 to 4:00
3ATMANE SUPP AND RESIST WITH TREND BARSupport & Resistance: The indicator identifies potential support and resistance levels based on a zigzag pattern. It uses a "depth" and "deviation" input to determine the swings in price that define the zigzag. You can choose to display these levels as either lines or boxes.
TrendBars: The indicator also calculates and displays TrendBars, which are bars colored green for uptrends and red for downtrends. This is based on a calculation involving the difference between the current price and the price 'per' periods ago, smoothed by an adaptive average period.
Diagonal Lines: The script draws diagonal lines connecting the zigzag turning points. These lines visualize the overall trend and can also have support and resistance lines plotted along them.
Inputs and Customization:
The script offers a wide array of customization options through its inputs:
Current S/R Setting:
Horizontal type: Choose between displaying support/resistance as boxes or lines.
Depth: The lookback period for identifying swing highs and lows for the zigzag calculation. Higher values mean fewer, stronger levels.
Deviation: The minimum price change required to define a new swing in the zigzag. Higher values mean fewer swings.
Color: The color of the horizontal support/resistance lines or boxes.
Extend lines: Extends the horizontal support/resistance lines to the right edge of the chart.
Line count: The maximum number of horizontal support/resistance lines or boxes to display.
Diagonal Line Setting:
Line thickness: The thickness of the diagonal zigzag lines.
Line style: The style of the diagonal zigzag lines (solid, dotted, dashed).
Diagonal color: The color of the main diagonal zigzag line.
Zigzag count: The maximum number of diagonal zigzag lines to display.
Diagonal high color: Color for diagonal support/resistance lines related to highs.
Diagonal low color: Color for diagonal support/resistance lines related to lows.
Diagonal S/R line count: The number of support/resistance lines drawn along the diagonal.
Show diagonal S/R lines: Toggles the display of the diagonal support/resistance lines.
Basic Settings (TrendBars):
Source: The price source to use for the TrendBars calculation (e.g., close, open, high, low).
Period: The period used in the TrendBars calculation.
UI Options (TrendBars):
Color bars?: Toggles the coloring of the bars based on the TrendBars calculation.
How it Works (Simplified):
Zigzag Calculation: The f_zigzag function identifies swing highs and lows based on the depth and deviation inputs.
Support/Resistance Levels: Horizontal lines or boxes are drawn at the identified swing points.
Diagonal Lines: The f_addDiagonalLine function connects the zigzag turning points with diagonal lines.
TrendBars Calculation: The script calculates a smoothed trend based on price changes over the specified period and colors the bars accordingly.
Drawing: The script uses line.new, box.new, and label.new to draw the support/resistance levels, diagonal lines, and labels on the chart.
Key Features:
Dynamic Support/Resistance: The levels are recalculated as new price data becomes available.
Customizable: The numerous inputs allow you to tailor the indicator to your specific needs.
TrendBars Integration: Combines support/resistance with a trend indicator for a more comprehensive view.
Uses:
This indicator can be used to:
Identify potential areas of support and resistance.
Visualize the overall trend.
Confirm trend changes.
Potentially identify entry and exit points.
Limitations:
Repainting: Like many zigzag-based indicators, this one can repaint. This means that the levels may adjust as new bars close, potentially changing the appearance of past signals. Be cautious when using it for backtesting or real-time trading decisions.
Subjectivity: The zigzag calculation involves parameters that can be subjective and may require experimentation to find optimal settings for different markets and timeframes.
False Signals: No indicator is perfect, and this one can also generate false signals. Use it in conjunction with other indicators and your own analysis.
This detailed description should give you a good understanding of how the indicator works and how to use it. Remember to experiment with the different settings to find what works best for you.
IFR2 e Cruzamento de Média v1.4 podendo selecionar uma.Strategy for IFR2 and Moving Average crossovers
Strategy for backtesting IFR2 or moving average crossovers
At the exit of the trade, a box appears stating: the reason for the exit:
Green for Take Profit (TP)
Red for Stop Loss (ST)
BLUE for the number of IFR2 candles reached (CD)
PURPLE for Crossing Averages (CZ)
in this box you can also enter the number of tkts and the percentage of the trade taken and the trade number TR = XX
For IFR trades, you can select the IFR2 PERIOD and level and the number of candles to close the trade if it is not closed by TP or LOSS.
When you select the moving average crossover entry, you can choose the period of the fast average and the slow average, in both cases you can select a mm as a filter for the trade entry and the period of this mm.
You can also choose a percentage for TAke Profit and Sop Loss.
We can also select a date to start the Back Test and an end date.
Translated with www.DeepL.com (free version)
Explicação em português:
Estratégia para IFR2 e cruzamento de Media Movel
Estratégia para backTest de IFR2 ou Cruzamento da média Movel
Na saída da operação mostra uma caixa informando: o motivo da saída:
Verde para Take Profit (TP)
Vermelho para Stop Loss (ST)
AZUL para número de candles atingido IFR2 (CD)
Roxo para Cruzamento de Médias (CZ)
nesta caixa ainda informa o numero de tkts e o porcentual da operação realizada e o numero do trade TR = XX
Nas operações por IFR podemos selecionar o PERIODO do e o nivel do IFR2 e a quantidade de candles para fechar a operação se não for fechado por TP ou LOSS.
Quando selecionado a entrada por cruzamento de media movel, podemos escolher o período da media rápida e da média lenta, em ambos os casos podemos selecionar uma mm como filtro para entrada da operação e o período desta mm.
Podemos ainda escolher um porcentual para TAke Profit e Sop Loss.
E ainda selecionar uma data para iniciar o Back Test e uma data final.
ETH Trend Strategy with Multi-Timeframe and ATR ProtectionOverview
The Optimized ETH Trend Strategy is designed to leverage adaptive trend-following techniques using multiple indicators. This strategy combines exponential moving averages (EMA), the Average Directional Index (ADX), and Average True Range (ATR) to identify and execute trades with trend confirmation. The strategy also applies multi-timeframe validation and volume analysis to filter trades, improving the likelihood of success.
This strategy is optimized for Ethereum/USDT but can be tested on other assets. Its most effective results have been observed on the 4-hour timeframe with appropriate adjustments to stop-loss and risk management settings.
Core Features
EMA Trend Detection:
The strategy uses a fast EMA (21-period) and a slow EMA (50-period). A crossover event signals the beginning of a potential trend.
To prevent false signals, a higher timeframe (1-hour) EMA is also checked for trend alignment.
ADX Trend Strength Confirmation:
The ADX indicator measures the strength of a trend. Only trades where ADX exceeds the threshold (default: 25) are considered.
Candlestick and Volume Filters:
Candlestick patterns (e.g., bullish or bearish engulfing) serve as an optional confirmation tool to strengthen trade entries.
Volume is compared to a smoothed moving average to ensure the trade has sufficient market activity.
Dynamic Stop-Loss via ATR:
The ATR (Average True Range) is used to calculate dynamic stop-loss levels, allowing flexibility based on market volatility.
A trailing stop-loss system protects profits during extended trends while minimizing drawdowns.
Strategy Parameters
Parameter Default Value Description
Fast EMA Length 21 The period for the fast EMA, used to detect short-term trends.
Slow EMA Length 50 The period for the slow EMA, providing longer-term trend guidance.
ADX Threshold 25 Minimum ADX value required to confirm a strong trend.
ATR Multiplier 3.0 Multiplier applied to ATR for dynamic stop-loss calculation.
Volume Smoothing Period 20 Period for calculating average volume to filter low-volume conditions.
Use Candlestick Confirmation True Enables or disables additional candlestick pattern confirmation.
Entry and Exit Logic
Long Entry:
A long position is triggered when:
The fast EMA crosses above the slow EMA.
The current price is above the fast EMA.
ADX confirms trend strength.
Multi-timeframe EMA alignment indicates higher timeframe confirmation.
Volume exceeds the smoothed average.
(Optional) A bullish candlestick pattern is detected.
Short Entry:
A short position is triggered under similar conditions but in the opposite direction.
Exit Strategy:
The strategy uses a trailing stop-loss system based on the ATR. This allows the strategy to lock in profits while reducing exposure during market reversals.
Performance Notes
This strategy is designed with risk management in mind, limiting trades to 5% of account equity per trade by default.
Results will vary depending on market conditions and the selected timeframe. During periods of consolidation, false signals may occur more frequently, which is mitigated through volume and trend strength confirmation.
Important Considerations
Backtesting Setup:
The default properties are configured to simulate realistic trading conditions, including a commission of 0.075% per trade.
Users should verify their results with appropriate slippage and commission values for their specific exchange.
No Guarantee of Future Performance:
While this strategy has performed well under historical conditions, past performance does not guarantee future results. Always test strategies thoroughly before live trading.
Customization:
Traders can adjust parameters (e.g., EMA lengths, ATR multiplier, and ADX threshold) to better suit different assets or timeframes. It is recommended to test any changes in a simulated environment.
How to Use
Apply the strategy to your chart on TradingView.
Adjust the parameters according to your asset and timeframe.
Enable alerts to receive notifications for potential trade entries.
Monitor the performance in the strategy tester to assess the effectiveness of your setup.
Disclaimer
This strategy is intended for educational and informational purposes only. It is not financial advice. Users are responsible for their own trading decisions and risk management.
Gap Symbolized on ChartIndicator Description: Gap Analysis with Text Symbols
This indicator analyzes the relationship between the current candle's open price, the previous candle's close price, and the current candle's close price to provide visual insights into price gaps and momentum. It displays text symbols (▼, ▲, ━) above each candle, color-coded to reflect the strength and direction of the gap.
Key Features:
Gap Analysis:
Compares the current candle's open price with the previous candle's close price.
Evaluates the current candle's close price relative to its open price.
Text Symbols:
▼ (Down Arrow): Indicates a bearish movement.
▲ (Up Arrow): Indicates a bullish movement.
━ (Dash): Indicates a neutral or sideways movement.
Color Coding:
Red: Bearish conditions (e.g., price opening lower than the previous close and closing lower than the open).
Orange: Mild bearish or bullish conditions.
Blue: Bullish conditions (e.g., price opening higher than the previous close and closing higher than the open).
Navy: Strong bullish conditions.
Transparent Background:
The text symbols are displayed without any background shape, ensuring they do not obstruct the chart.
Use Cases:
Identify Gaps: Quickly spot gaps between the previous close and the current open.
Momentum Analysis: Assess the strength and direction of price movements.
Visual Clarity: The minimalist design (text symbols only) keeps the chart clean and easy to interpret.
How to Use:
Add the indicator to your chart.
Observe the text symbols above each candle:
Red ▼: Strong bearish momentum.
Blue ▲: Strong bullish momentum.
━: Neutral or consolidation phase.
Use the insights to confirm trends, spot reversals, or identify potential entry/exit points.
Gaussian Channel with Stochastic RSI StrategyUsed this recenrly
Advantages:
The strategy combines multiple indicators to provide a more comprehensive view of the market.
The Gaussian channel helps to identify potential support and resistance levels.
The stochastic oscillator and RSI help to identify overbought and oversold conditions.
Disadvantages:
The strategy requires multiple indicators, which can increase the complexity of the analysis.
The Gaussian channel may not always provide accurate support and resistance levels.
The stochastic oscillator and RSI may provide false signals in certain market conditions.
Overall, the Gaussian Channel with Stochastic RSI Strategy is a complex trading strategy that requires careful analysis and risk management. It is essential to backtest the strategy and adjust the parameters to suit your trading style and risk tolerance.
Pre-Pump Strategy test 1 Key Features of the Script
RSI (Relative Strength Index) Conditions:
Detects when the RSI crosses below 35 (oversold condition) or above 75 (overbought condition).
These levels indicate potential reversal points or local tops/bottoms.
MACD (Moving Average Convergence Divergence) Crossover:
Identifies MACD crossovers on the 4-hour timeframe.
A bullish crossover (MACD line crossing above the signal line) suggests potential upward momentum.
Volume Spikes:
Detects when the current volume is >150% of the 24-hour average volume.
Volume spikes often indicate increased interest and potential price movement.
Price Touching Key EMAs (Exponential Moving Averages):
Monitors when the price touches or crosses key EMAs: 13, 48, and 200.
These EMAs act as dynamic support/resistance levels.
Bollinger Band Squeeze:
Identifies when the Bollinger Bands narrow significantly (a squeeze).
A squeeze often precedes a breakout or strong price movement.
Breakout of Key Support/Resistance Levels:
Alerts when the price breaks above a resistance level or below a support level with volume confirmation.
This indicates a potential trend continuation or reversal.
Custom Horizontal Ray Indicator//@version=5
indicator("Custom Horizontal Ray Indicator", overlay=true)
// تنظیم تعداد کندلهای بررسیشده
length = 7200
// متغیرهای ذخیره خطوط
var greenLines = array.new_line()
var redLines = array.new_line()
// تابعی برای رسم خط و افزودن به آرایه
draw_line(array, price, color) =>
var l = line.new(x1=bar_index, y1=price, x2=bar_index + 1000, y2=price, color=color, width=2)
array.push(array, l)
// بررسی کندلهای صعودی (A) و رسم خطوط سبز
if (close > open) and (high < (low + high) / 2)
draw_line(greenLines, high , color.green)
// بررسی کندلهای نزولی (B) و رسم خطوط قرمز
if (close < open) and (low > (low + high) / 2)
draw_line(redLines, low , color.red)
// تابعی برای حذف خطوط هنگام برخورد قیمت
remove_lines(array, is_green) =>
for i = array.size(array) - 1 to 0
var l = array.get(array, i)
var line_price = line.get_y1(l)
if (is_green and high >= line_price) or (not is_green and low <= line_price)
line.delete(l)
array.remove(array, i)
// حذف خطوط سبز هنگام برخورد قیمت
remove_lines(greenLines, true)
// حذف خطوط قرمز هنگام برخورد قیمت
remove_lines(redLines, false)
// تعریف شرایط اعلانها در بخش سراسری
greenLineCondition = array.size(greenLines) > 0 and high >= line.get_y1(array.get(greenLines, array.size(greenLines) - 1))
redLineCondition = array.size(redLines) > 0 and low <= line.get_y1(array.get(redLines, array.size(redLines) - 1))
// ایجاد اعلانها برای خطوط سبز
alertcondition(greenLineCondition, title="برخورد با خط سبز", message="قیمت به خط سبز برخورد کرد")
// ایجاد اعلانها برای خطوط قرمز
alertcondition(redLineCondition, title="برخورد با خط قرمز", message="قیمت به خط قرمز برخورد کرد")
Gaussian Channel with Stochastic RSI StrategyKeltner Channel with Stochastic RSI Strategy
The Keltner Channel with Stochastic RSI strategy is a technical trading approach that combines the Keltner Channel, a volatility-based indicator, with the Stochastic RSI, a momentum indicator. This strategy aims to identify trading opportunities by detecting overbought and oversold conditions in conjunction with volatility contractions and expansions.
Components:
Keltner Channel: A volatility-based indicator consisting of three bands: the upper band, lower band, and middle band (20-period moving average). The bands are set at 2 x Average True Range (ATR) above and below the middle band.
Stochastic RSI: A momentum indicator that measures the relative position of the RSI (Relative Strength Index) within its own range. The Stochastic RSI is set to 14 periods with overbought and oversold levels at 80 and 20, respectively.
Strategy Rules:
Long Entry:
The price touches or breaks below the lower Keltner Channel band.
The Stochastic RSI falls below 20, indicating oversold conditions.
The RSI must be below 30 to confirm the oversold condition.
Short Entry:
The price touches or breaks above the upper Keltner Channel band.
The Stochastic RSI rises above 80, indicating overbought conditions.
The RSI must be above 70 to confirm the overbought condition.
Exit Rules:
Profit Target: Set a profit target at 1:1 or 1:2 risk-reward ratio.
Stop Loss: Set a stop loss at the opposite side of the Keltner Channel band.
Trailing Stop: Use a trailing stop to lock in profits as the trade moves in your favor.
Additional Considerations:
Trend Filter: Use a trend filter, such as a 50-period moving average, to ensure that trades are taken in the direction of the underlying trend.
Risk Management: Always use proper risk management techniques, such as position sizing and stop-loss orders, to limit potential losses.
By combining the Keltner Channel and Stochastic RSI indicators, this strategy offers a unique approach to identifying trading opportunities in various markets.
Order Block Strategy with LinesKey Changes:
Added recentBullishOB and recentBearishOB conditions that check if the order block occurred within the last 24 hours using timenow - time <= 86400000 (24 hours in milliseconds).
Modified all trade execution logic and line drawing to use these recent conditions instead of the original order block conditions.
Maintained original plotting of all order blocks (including older ones) using the unfiltered bullishOB and bearishOB variables.
This modification ensures that:
All order blocks are still visually marked on the chart
Trading levels are only calculated for recent order blocks
Trades are only executed on order blocks created within the last 24 hours
Support/resistance lines are only drawn for recent order blocks
20-Day Low % Diff for Screenercustom column in TradingView’s stock screener using Pine Script, but TradingView doesn’t allow direct integration of Pine Script indicators into the screener.
Scalping con EMA y RSIes una nueva extrategia que estoy poniendo en practiva basada en. dosmedias mobiles y elrsi si algunprofesional la pudiera revisary desirme si estoy iniciando bien para mi seria un honor
EMA Crossover Strategy - High Reward, Low Loss Trading Indicator🔹 Created by Aniketsinh
🚀 About This Strategy:
The EMA Crossover Strategy is designed for traders who prefer fewer trades with higher profit potential. It focuses on catching strong trends while minimizing unnecessary losses. Even if only 4 out of 10 trades succeed, the risk-reward ratio ensures more profits than losses.
📌 Key Features:
✅ Uses 50 EMA & 200 EMA for trend confirmation
✅ RSI filtering for momentum-based entries
✅ Volume confirmation to avoid false signals
✅ Stop Loss & Take Profit with a 3x reward-to-risk ratio
✅ Works well on crypto, forex, and stocks
📈 How It Works:
BUY Signal: 50 EMA crosses above 200 EMA, RSI > 50, and volume is high.
SELL Signal: 50 EMA crosses below 200 EMA, RSI < 50, and volume is high.
Stop Loss & Take Profit: Stop loss below recent low, and take profit at 3x risk.
🔍 Best Timeframes: Works well on higher timeframes like 1H, 4H, Daily for better accuracy.
⚠️ Risk Disclaimer:
No strategy is 100% perfect. Always use proper risk management and backtest before live trading.
💡 Try It Now & Optimize for Your Trading Style!
Let me know your feedback! 🚀
RSI Deviation BY DINVESTORQOverview:
This indicator analyzes the Relative Strength Index (RSI) over 252 days, calculating its mean (average) and standard deviation. Based on this, it sets an upper and lower threshold to determine overbought and oversold conditions.
Additionally, it calculates the correlation between RSI and price using a moving average, helping traders understand if RSI is moving in sync with price trends.
Key Features:
✅ RSI Deviation Bands
Upper Limit = RSI Avg + (2 × SD × 2.5)
Lower Limit = RSI Avg - (2 × SD × 2.5)
✅ Trading Signals:
Sell Signal: RSI crosses above the upper limit
Buy Signal: RSI drops below the lower limit
✅ RSI-Price Correlation Moving Average
Uses 50-day correlation between RSI and price
Helps confirm trend strength
✅ Customizable Parameters
RSI Length (Default: 252 Days)
Correlation Period (Default: 50 Days)
✅ Chart Visuals:
Plots RSI (blue), Upper Band (red), Lower Band (green)
Plots RSI-Price Correlation (orange)
Buy/Sell signals appear on chart
TradingView Indicator: RSI Deviation & Correlation Indicator
Overview:
This indicator analyzes the Relative Strength Index (RSI) over 252 days, calculating its mean (average) and standard deviation. Based on this, it sets an upper and lower threshold to determine overbought and oversold conditions.
Additionally, it calculates the correlation between RSI and price using a moving average, helping traders understand if RSI is moving in sync with price trends.
Key Features:
✅ RSI Deviation Bands
Upper Limit = RSI Avg + (2 × SD × 2.5)
Lower Limit = RSI Avg - (2 × SD × 2.5)
✅ Trading Signals:
Sell Signal: RSI crosses above the upper limit
Buy Signal: RSI drops below the lower limit
✅ RSI-Price Correlation Moving Average
Uses 50-day correlation between RSI and price
Helps confirm trend strength
✅ Customizable Parameters
RSI Length (Default: 252 Days)
Correlation Period (Default: 50 Days)
✅ Chart Visuals:
Plots RSI (blue), Upper Band (red), Lower Band (green)
Plots RSI-Price Correlation (orange)
Buy/Sell signals appear on chart
Pine Script for TradingView:
pinescript
Copy
Edit
//@version=5
indicator("RSI Deviation & Correlation Indicator", overlay=false)
// User Inputs
length = input.int(252, title="RSI Period")
corr_length = input.int(50, title="Correlation Period")
// RSI Calculation
rsi_value = ta.rsi(close, length)
// Calculate Mean and Standard Deviation of RSI
rsi_avg = ta.sma(rsi_value, length)
rsi_sd = ta.stdev(rsi_value, length) * 2.5
// Define Upper and Lower Limits
upper_limit = rsi_avg + (rsi_sd * 2)
lower_limit = rsi_avg - (rsi_sd * 2)
// Buy and Sell Signals
buy_signal = rsi_value < lower_limit
sell_signal = rsi_value > upper_limit
// Correlation Moving Average between RSI and Price
rsi_price_correlation = ta.correlation(rsi_value, close, corr_length)
// Plot RSI with Bands
plot(rsi_value, title="RSI", color=color.blue)
plot(upper_limit, title="Upper Limit", color=color.red, linewidth=2)
plot(lower_limit, title="Lower Limit", color=color.green, linewidth=2)
plot(rsi_avg, title="Average RSI", color=color.gray, linewidth=2)
// Display Buy/Sell Signals on Chart
plotshape(buy_signal, location=location.bottom, color=color.green, style=shape.labelup, title="BUY Signal", size=size.small)
plotshape(sell_signal, location=location.top, color=color.red, style=shape.labeldown, title="SELL Signal", size=size.small)
// Plot Correlation Moving Average
plot(rsi_price_correlation, title="RSI-Price Correlation", color=color.orange, linewidth=2)
// Alerts for Buy/Sell
alertcondition(buy_signal, title="BUY Alert", message="RSI is below the Lower Limit - BUY Signal")
alertcondition(sell_signal, title="SELL Alert", message="RSI is above the Upper Limit - SELL Signal")
How to Use in TradingView:
1️⃣ Open TradingView and go to the Pine Editor
2️⃣ Paste the above Pine Script
3️⃣ Click Add to Chart
4️⃣ Adjust RSI Length and Correlation Period if needed
5️⃣ Buy/Sell alerts will trigger when conditions match
Trading Strategy:
📉 Sell (Short Entry) when RSI crosses above the upper limit
📈 Buy (Long Entry) when RSI drops below the lower limit
📊 Confirm trends with RSI-Price Correlation:
+1 means RSI and price are moving together
-1 means RSI and price are diverging
Final Notes:
Works best on higher timeframes (Daily, Weekly)
Helps filter overbought/oversold false signals
Can be combined with other indicators (MACD, Bollinger Bands, etc.)
Crypto Movement PredictorKey Features
Moving Averages (MA):
The indicator calculates two moving averages:
Short-term MA (50 periods): A faster-moving average that reacts quickly to price changes.
Long-term MA (200 periods): A slower-moving average that smooths out price fluctuations and represents the broader trend.
These moving averages are plotted on the chart for visual reference.
Crossover Strategy:
The indicator predicts potential bullish or bearish movements based on the crossover of the two moving averages:
Bullish Signal: When the short-term MA crosses above the long-term MA, the indicator predicts a potential upward movement.
Bearish Signal: When the short-term MA crosses below the long-term MA, the indicator predicts a potential downward movement.
These signals are displayed as labels on the chart for easy identification.
Last 500 Candlesticks:
The indicator plots the closing prices of the last 500 candlesticks to provide historical context. This helps traders understand the recent price action and how it relates to the moving averages.
Visualization:
The short-term MA is plotted in blue, and the long-term MA is plotted in red.
Bullish signals are marked with a green label saying "Bullish," and bearish signals are marked with a red label saying "Bearish."
The last 500 candlesticks are plotted in orange for reference.
Donchian Reversal Scanner by Hitesh2603How It Works:
Bearish Side Logic:
If the price is falling with bearish candles and touching the lower Donchian Channel, the bearishCondition flag is set to true.
When a bullish candle appears afterward, the flag is reset, and the bullishReversalSquare condition becomes true.
Bullish Side Logic:
If the price is rising with bullish candles and touching the upper Donchian Channel, the bullishCondition flag is set to true.
When a bearish candle appears afterward, the flag is reset, and the bearishReversalSquare condition becomes true.
Plotting Squares:
A green square is plotted below the candle when bullishReversalSquare is true.
A red square is plotted above the candle when bearishReversalSquare is true.
Scanner Output:
The scanCondition variable is true when either bullishReversalSquare or bearishReversalSquare is true.
How to Use the Script:
On the Chart:
Add the script to your chart.
You will see squares plotted on the chart when the conditions are met:
Green squares below the candle for bullish reversals.
Red squares above the candle for bearish reversals.
In the Scanner:
Open the Scanner tab in TradingView.
Click on "Create New Scanner".
In the "Condition" field, select the script you just created.
Choose the market or watchlist you want to scan (e.g., "NYSE", "NASDAQ", or a custom watchlist).
Run the scan. The Scanner will return a list of instruments where the scanCondition is true.
Why This Works:
The scanCondition variable is now properly declared and used.
The plotchar function explicitly outputs the scanCondition variable as a plot, which the Scanner can recognize.
Triple EMA Indicator - yannnkombinasi 3 EMA yang menggabungkan 3 Exponential Moving Average menjadi satu indikator untuk menghemat penggunaan indikator
B15-Minute Day Trading Strategy The goal is to capitalize on short-term price movements. Below is a basic 15-minute day trading strategy that can be adapted to stocks, forex, or other liquid markets. This strategy is based on technical analysis and requires discipline, risk management, and practice.