Indicator for BUY/SELL with EMA,RSI,ADX With TableHello Traders,
This Indicator has many parameters like EMA, RSI, ATR, ADR, VOLUME AND DI+DI-.
Based on the price traded above / below candle color changes itself, which is also customizable and you can use 5 separate EMA's which you can change period, source also.
This Indicator Shows Buy Entry When the price traded above,
RSI 50
DI+ 20
EMA 1 (Which you can alter like 21,50,200)
And for sell entry is vice versa , other wise no signal
And all the above Period are customizable....
Happy Trading.
Candlestick analysis
Albin's Stradegy //@version=5
indicator("SMA Crossover Signal", overlay=true)
/**
* This indicator identifies trade signals based on the crossover of two simple moving averages (SMA) and the relative position of the price to a longer-term SMA.
*
* - It calculates the 5-period, 20-period, and 50-period SMAs.
* - A 'BUY SIGNAL' is displayed when the 5-period SMA crosses above the 20-period SMA, but only if the price is above the 50-period SMA (bullish trend confirmation).
* - A 'SELL SIGNAL' is displayed when the 5-period SMA crosses below the 20-period SMA, but only if the price is below the 50-period SMA (bearish trend confirmation).
* - The background color changes dynamically: green when the price is above the 50-period SMA, red when it is below.
*/
Candle Gap ScannerThis code will compare the first candle with the second candle. If the highest value reached by the first candle is lower than the lowest value reached by the second candle, and this difference is greater than a percentage value that can be adjusted in the settings, it will place a red mark. Additionally, it will compare the first candle with the second candle again. If the lowest value reached by the first candle is higher than the highest value reached by the second candle, and this difference is greater than a percentage value that can be adjusted in the settings, it will place a red mark.
Yesterday's OHLCThis indicator is designed to provide traders with a visual representation of the previous day's key price levels on their charts. The script calculates and plots four critical price points: the open, high, low, and close from the previous trading day. Users can customize the resolution from which these values are pulled, with the default set to daily. Additionally, the script offers options to hide past prices, display tomorrow's projected values, and customize the colors of the plotted lines for better visibility. The script intelligently adjusts for extended trading sessions, ensuring that the displayed values remain accurate regardless of the current market conditions. By utilizing the request.security function, it fetches historical price data and plots the values using step line styles, making it easy for traders to identify significant price levels that may influence future price movements. This indicator serves as a valuable tool for traders looking to analyze market behavior based on historical data, enabling them to make informed trading decisions.
Trading Strategy Using This Indicator
Strategy Overview:
The "Yesterday's OHLC" indicator can be effectively integrated into a trading strategy focused on breakout and reversal patterns. By observing how the current price interacts with the previous day's key levels, traders can identify potential entry and exit points.
1. Breakout Strategy:
Entry Signal:
If the current price breaks above yesterday's high, it may indicate bullish momentum. Traders can enter a long position once the price closes above this level, confirming the breakout.
Conversely, if the price breaks below yesterday's low, it may signal bearish momentum. Traders can enter a short position upon a close below this level.
Stop Loss:
Set a stop loss just below yesterday's high for long positions or just above yesterday's low for short positions to manage risk.
Take Profit:
Target a risk-reward ratio of at least 1:2. Traders can use previous support and resistance levels or Fibonacci retracement levels to identify potential take profit areas.
2. Reversal Strategy:
Entry Signal:
If the price approaches yesterday's high or low but fails to break through, it may indicate a reversal. Traders can look for candlestick patterns (like pin bars or engulfing patterns) near these levels to signal a potential reversal.
For example, if the price tests yesterday's high and forms a bearish reversal pattern, traders can enter a short position.
Stop Loss:
Place a stop loss just above the high (for short positions) or below the low (for long positions) to protect against false breakouts.
Take Profit:
Similar to the breakout strategy, aim for a risk-reward ratio of at least 1:2, using previous price action levels to set targets.
3. Additional Considerations:
Volume Confirmation:
Look for increased trading volume during breakouts or reversals to confirm the strength of the move.
Market Context:
Always consider the broader market context, including economic news and events, which can impact price movements.
By incorporating the "Yesterday's OHLC" indicator into these strategies, traders can enhance their decision-making process, leveraging historical price levels to identify potential trading opportunities. This approach not only helps in managing risk but also allows traders to align their trades with market sentiment and price action.
4Hour Zone SeparatorThis custom TradingView indicator draws vertical lines on your chart to visually separate the 4-hour trading zones within a single trading day. The indicator helps traders identify key time intervals throughout the day for better market analysis and decision-making.
Features:
• Time-Based Zones: The indicator divides the day into six distinct 4-hour periods, starting from midnight (00:00) and continuing every 4 hours. Each zone is marked by a vertical line on the chart.
• User Customization: You can toggle the visibility of the lines for each 4-hour period (00:00, 04:00, 08:00, 12:00, 16:00, 20:00) based on your preference. This allows you to focus on specific zones that matter most for your analysis.
• Line Styling Options: Choose from three different line styles — Solid, Dashed, or Dotted — and adjust the thickness to your desired preference.
• Dynamic Time Adjustment: The indicator automatically adjusts for the time zone, ensuring that the 00:00 timestamp reflects the correct start of the day based on your chart’s time zone.
How It Works:
1. The indicator starts by calculating the beginning of the day at 00:00, then it sequentially places vertical lines every 4 hours.
2. Each line is color-coded for easy identification, and the lines stretch from the highest to the lowest point on the chart for that range.
3. The lines are drawn only when the chart enters a new 4-hour zone.
This tool is especially useful for day traders who want to track price action during specific times of the day and make informed decisions based on market behavior within each 4-hour period.
//@version=5 indicator("Supply and Demand Zones with Reversal Pa//@version=5 indicator("Supply and Demand Zones with Reversal Pa with shahidi
Price Envelope+/- Variable price percentage (realtive to current share price) to assist with earnings release price targets, stop-limits, etc.
Extended RunShows number of bar closing above SMA5 in serie if serie is more than a set value
(default = 6)
DonChan426indicator(title="DonChan426", shorttitle="DonChan426", overlay=true, timeframe="", timeframe_gaps=true)
length7 = input.int(4, minval=1, title="MA7")
length1 = input.int(26, minval=1, title="Upper Channel")
length2 = input.int(26, minval=1, title="Lower Channel")
offset_bar = input.int(0,minval=0, title ="Offset Bars")
Multi-Time2 gogWhen the Auto option is selected, the timeframe of the indicator is chosen automatically based on the chart timeframe. The Timeframe dropdown is ignored. The automated timeframes are:
'1 day' for any chart timeframes below '1 day'
'1 week' for any timeframes starting from '1 day' up to '1 week'
'1 month' for any timeframes starting from '1 week' up to '1 month'
'3 months' for any timeframes starting from '1 month' up to '3 months'
'12 months' for any timeframes above '3 months'"
BoqorreIndicator: Yesterday's High/Low Only
This custom TradingView indicator visually marks the high and low of the previous trading day on your chart, providing a clear reference for market conditions. It displays two key levels:
Yesterday's High (Green Line): Representing the highest price reached during the previous day, this level can often act as a resistance point.
Yesterday's Low (Red Line): Showing the lowest price of the previous day, this level may act as a support area.
Key Features:
Lines: The indicator draws dotted lines that extend to the right by 72 bars and infinitely to the left, making it easy to track these important levels.
Labels: Labels are placed directly at the high and low levels to give immediate clarity. The "Yesterday's High" label appears above the green line, while the "Yesterday's Low" label appears beneath the red line.
Previous Daily High/Low Labels: Additional labels are placed for both the previous daily high and low, positioned slightly above and below the respective lines for further clarity and context.
Benefits:
Helps traders identify key support and resistance zones based on the previous day's price action.
Improves technical analysis by visually marking significant price levels, making it easier to spot potential breakout or breakdown points.
The indicator is automatically updated daily, and the lines are drawn dynamically as soon as a new trading day begins.
Whether you're looking to track market movements, identify potential reversal points, or just need a reference for market structure, this indicator will add value to your charting setup
Volatility Momentum Breakout StrategyDescription:
Overview:
The Volatility Momentum Breakout Strategy is designed to capture significant price moves by combining a volatility breakout approach with trend and momentum filters. This strategy dynamically calculates breakout levels based on market volatility and uses these levels along with trend and momentum conditions to identify trade opportunities.
How It Works:
1. Volatility Breakout:
• Methodology:
The strategy computes the highest high and lowest low over a defined lookback period (excluding the current bar to avoid look-ahead bias). A multiple of the Average True Range (ATR) is then added to (or subtracted from) these levels to form dynamic breakout thresholds.
• Purpose:
This method helps capture significant price movements (breakouts) while ensuring that only past data is used, thereby maintaining realistic signal generation.
2. Trend Filtering:
• Methodology:
A short-term Exponential Moving Average (EMA) is applied to determine the prevailing trend.
• Purpose:
Long trades are considered only when the current price is above the EMA, indicating an uptrend, while short trades are taken only when the price is below the EMA, indicating a downtrend.
3. Momentum Confirmation:
• Methodology:
The Relative Strength Index (RSI) is used to gauge market momentum.
• Purpose:
For long entries, the RSI must be above a mid-level (e.g., above 50) to confirm upward momentum, and for short entries, it must be below a similar threshold. This helps filter out signals during overextended conditions.
Entry Conditions:
• Long Entry:
A long position is triggered when the current closing price exceeds the calculated long breakout level, the price is above the short-term EMA, and the RSI confirms momentum (e.g., above 50).
• Short Entry:
A short position is triggered when the closing price falls below the calculated short breakout level, the price is below the EMA, and the RSI confirms momentum (e.g., below 50).
Risk Management:
• Position Sizing:
Trades are sized to risk a fixed percentage of account equity (set here to 5% per trade in the code, with each trade’s stop loss defined so that risk is limited to approximately 2% of the entry price).
• Stop Loss & Take Profit:
A stop loss is placed a fixed ATR multiple away from the entry price, and a take profit target is set to achieve a 1:2 risk-reward ratio.
• Realistic Backtesting:
The strategy is backtested using an initial capital of $10,000, with a commission of 0.1% per trade and slippage of 1 tick per bar—parameters chosen to reflect conditions faced by the average trader.
Important Disclaimers:
• No Look-Ahead Bias:
All breakout levels are calculated using only past data (excluding the current bar) to ensure that the strategy does not “peek” into future data.
• Educational Purpose:
This strategy is experimental and provided solely for educational purposes. Past performance is not indicative of future results.
• User Responsibility:
Traders should thoroughly backtest and paper trade the strategy under various market conditions and adjust parameters to fit their own risk tolerance and trading style before live deployment.
Conclusion:
By integrating volatility-based breakout signals with trend and momentum filters, the Volatility Momentum Breakout Strategy offers a unique method to capture significant price moves in a disciplined manner. This publication provides a transparent explanation of the strategy’s components and realistic backtesting parameters, making it a useful tool for educational purposes and further customization by the TradingView community.
Open Equals High/Low with Persistent LinesIt checks each candle to see if the open price is equal to either the high or the low of that candle, and if so, it colors the candle purple on the chart.
Advanced Multi-Timeframe Trading System (Risk Managed)Description:
This strategy is an original approach that combines two main analytical components to identify potential trade opportunities while simulating realistic trading conditions:
1. Market Trend Analysis via an Approximate Hurst Exponent
• What It Does:
The strategy computes a rough measure of market trending using an approximate Hurst exponent. A value above 0.5 suggests persistent, trending behavior, while a value below 0.5 indicates a tendency toward mean-reversion.
• How It’s Used:
The Hurst exponent is calculated on both the chart’s current timeframe and a higher timeframe (default: Daily) to capture both local and broader market dynamics.
2. Fibonacci Retracement Levels
• What It Does:
Using daily high and low data from a selected timeframe (default: Daily), the script computes key Fibonacci retracement levels.
• How It’s Used:
• The 61.8% level (Golden Ratio) serves as a key threshold:
• A long entry is signaled when the price crosses above this level if the daily Hurst exponent confirms a trending market.
• The 38.2% level is used to identify short-entry opportunities when the price crosses below it and the daily Hurst indicates non-trending conditions.
Signal Logic:
• Long Entry:
When the price crosses above the 61.8% Fibonacci level (Golden Ratio) and the daily Hurst exponent is greater than 0.5, suggesting a trending market.
• Short Entry:
When the price crosses below the 38.2% Fibonacci level and the daily Hurst exponent is less than 0.5, indicating a less trending or potentially reversing market.
Risk Management & Trade Execution:
• Stop-Loss:
Each trade is risk-managed with a stop-loss set at 2% below (for longs) or above (for shorts) the entry price. This ensures that no single trade risks more than a small, sustainable portion of the account.
• Take Profit:
A take profit order targets a risk-reward ratio of 1:2 (i.e., the target profit is twice the amount risked).
• Position Sizing:
Trades are executed with a fixed position size equal to 10% of account equity.
• Trade Frequency Limits:
• Daily Limit: A maximum of 5 trades per day
• Overall Limit: No more than 510 trades during the backtesting period (e.g., since 2019)
These limits are imposed to simulate realistic trading frequency and to avoid overtrading in backtest results.
Backtesting Parameters:
• Initial Capital: $10,000
• Commission: 0.1% per trade
• Slippage: 1 tick per bar
These settings aim to reflect the conditions faced by the average trader and help ensure that the backtesting results are realistic and not misleading.
Chart Overlays & Visual Aids:
• Fibonacci Levels:
The key Fibonacci retracement levels are plotted on the chart, and the zone between the 61.8% and 38.2% levels is highlighted to show a key retracement area.
• Market Trend Background:
The chart background is tinted green when the daily Hurst exponent indicates a trending market (value > 0.5) and red otherwise.
• Information Table:
An on-chart table displays key parameters such as the current Hurst exponent, daily Hurst value, the number of trades executed today, and the global trade count.
Disclaimer:
Past performance is not indicative of future results. This strategy is experimental and provided solely for educational purposes. It is essential that you backtest and paper trade using your own settings before considering any live deployment. The Hurst exponent calculation is an approximation and should be interpreted as a rough gauge of market behavior. Adjust the parameters and risk management settings according to your personal risk tolerance and market conditions.
Additional Notes:
• Originality & Usefulness:
This script is an original mashup that combines trend analysis with Fibonacci retracement methods. The description above explains how these components work together to provide trading signals.
• Realistic Results:
The strategy uses realistic account sizes, commission rates, slippage, and risk management rules to generate backtesting results that are representative of real-world trading.
• Educational Purpose:
This script is intended to support the TradingView community by offering insights into combining multiple analysis techniques in one strategy. It is not a “get-rich-quick” system but rather an educational tool to help traders understand risk management and trade signal logic.
By using this script, you acknowledge that trading involves risk and that you are responsible for testing and adjusting the strategy to fit your own trading environment. This publication is fully open source, and any modifications should include proper attribution if significant portions of the code are reused.
Jt's Gold StandardCandle colour indicator, Black and Gold. This visual colour configuration will highlight possitive momentum only. All other colours are black.
Binary Trading - Next Candle PredictionHow It Works:
Trend Filter:
Uses a 14-period EMA to determine the trend direction.
Buy signals only appear if the price is above the EMA (uptrend).
Sell signals only appear if the price is below the EMA (downtrend).
Momentum Confirmation:
RSI (14-period) ensures the market is not overextended:
Avoid buys if RSI is overbought (>70).
Avoid sells if RSI is oversold (<30).
RSI must be rising for buys or falling for sells over the last confirmCandles (default: 2).
Price Action:
Requires 2 consecutive bullish candles for buys or 2 consecutive bearish candles for sells.
Optimization Tips:
Timeframe: Works best on 1-minute to 5-minute charts (common for binary trading).
Adjust Parameters:
Reduce emaLength (e.g., 10) for faster signals.
Increase confirmCandles (e.g., 3) to reduce false signals.
Combine with News: Avoid trading during high-impact news events.
Usage Instructions:
Apply to Chart: Copy the script into TradingView’s Pine Editor.
Backtest: Check historical performance on your preferred asset (e.g., EUR/USD, BTCUSD).
Set Alerts: Use the built-in alerts to notify you of signals.
Why This Works Better:
Reduces False Signals: By combining trend, momentum, and price action.
Avoids Overfitting: Uses widely accepted indicators (RSI, EMA) instead of exotic strategies.
Adaptable: Parameters can be tweaked for volatility or asset type.
Important Notes:
No Guarantee: No strategy is 100% accurate. Always use risk management (e.g., stop-loss).
Market Context: Works best in trending markets. Avoid sideways/ranging conditions.
veeru S&R with Previous/Weekly/Important LevelsKey improvements and explanations:
Previous Day High/Low: The get_previous_day_hl() function now correctly retrieves the previous day's high and low using high and low .
Weekly High/Low: The get_weekly_hl() function provides a basic implementation. Important: It's not perfectly accurate for all timeframes because TradingView doesn't directly give you the beginning of the week. A better approach would involve more advanced date/time calculations (which can be complex in Pine Script). The current version resets the weekly high/low on every day change. This means that on the first day of the week, it will start tracking from that day's high/low.
Important High/Low: The get_important_hl() function uses ta.pivothigh and ta.pivotlow with a separate important_lookback input, allowing you to define a longer lookback for these levels.
Plotting: The plot() function is used to draw the levels on the chart with different colors and styles for clarity. The style=plot.style_linebr creates a broken line, which can be useful for these types of levels.
Alerts: Example alerts are included to demonstrate how you can trigger alerts when the price crosses above/below these levels. You can customize the alert conditions and messages as needed. I've added examples for the important levels and the previous day levels. You can easily add similar alerts for the weekly levels.
Clearer Variable Names and Comments: The code uses more descriptive variable names and includes comments to explain the logic.
Further Enhancements (For more advanced users):
Accurate Weekly Levels: For a truly accurate weekly high/low, you'll need to use the dayofweek() and weekofyear() functions, and potentially store the weekly high/low in a var variable that gets reset only at the start of the week. This requires careful handling of time and date changes.
Dynamic Lookback: You could make the lookback and important_lookback inputs more dynamic based on volatility or other factors.
Visualizations: Consider using line.new() or box.new() to draw more prominent lines or boxes for the important levels.
Breaks and Retests: If you want to integrate the break and retest logic from your original script, you can combine the level detection with your existing code. The key would be to use the prev_day_high, prev_day_low, weekly_high, weekly_low, important_high, and important_low variables in your break/retest conditions.
This improved script provides a solid foundation for tracking and alerting on key support and resistance levels. Remember to adjust the important_lookback and other parameters to suit your trading style and the specific market you're analyzing.
SHUBHAM DHINGRAIts the best . its just the usual one but what makes it is the best is that there are both same wavelength of 15 measure . the one is ma and other is ema and its crossover is giving best results at time.
Rishabh's Price & Volume Change IndicatorRishabh's Price & Volume Change Indicator
If price is up and volume is down for current and prev close then green
else
yellow