Heikin Line - TB365Heikin Line - An Enhanced Smoothed Heiken Ashi Overlay
Built on the foundation of TheBacktestGuy’s Smoothed Heiken Ashi indicator, Heikin Line takes trend analysis to the next level with versatile enhancements and adaptable settings.
This indicator offers selectable moving averages both before and after Heiken Ashi (HA) calculation, adding an additional layer of smoothness to traditional HA candles.
Key Features:
Trend Identification: Detects short and long-term trend directions with greater clarity.
Dynamic Support and Resistance: Not limited to a single line, Heikin Line creates a dynamic support/resistance zone, offering a visual “height” that adjusts with market shifts.
Trailing Stop: Effective as a trailing stop for enhanced risk management.
Trend Reversal Detection: Quickly identifies potential reversals when price crosses above or below the Heiken Ashi candle.
Improvements:
Trend Strength Visualization: Uses a cord-like appearance to reflect trend strength, making it easier to spot strong or weak trends.
Quick Reversal Detection: Enhanced responsiveness to detect rapid market reversals.
Easy Integration: Seamlessly combines with other indicators for a comprehensive trading setup.
With numerous moving average options, Heikin Line is adjustable to suit various market conditions and trading styles. Additionally, it leverages my TAExt library, so you can use it within your own strategies for added versatility.
אינדיקטורים ואסטרטגיות
CRT AMD indicatorThis indicator is based on the Power of three (Accumulation Manipulation Distribution) Cycle, by marking the candle that Sweep the low or high of the previous candle and then closed back inside the range of the previous candle, indicating a possibility of a Manipulation or Reversal.
Combining the indicator with HTF Array and LTF Setup Entry will significantly improve the accuracy.
gann fib levelsDescription of gann fib Levels
Input Value Level:
Purpose: This level is the starting point for calculating support and resistance. Users can input a specific high or low price value that serves as the foundation for subsequent calculations.
Visual Representation: A bold blue line indicates this level prominently on the chart, making it easy to identify. Additionally, a horizontal magenta line provides a reference to this initial price level.
Support Levels:
Definition: Support levels are price points where a downtrend can be expected to pause due to buying interest. They act as a floor that prevents the price from falling further.
Calculation: Support levels are derived by calculating the square root of the input value, adjusting it downward by a defined step (0.25), and squaring the result to find potential support points.
Visual Representation: Each support level is plotted with a red line when the current price is below the support level and changes to green when the price is above it. Every fourth support level is depicted with a bolder line for emphasis.
Resistance Levels:
Definition: Resistance levels are price points where an uptrend can be expected to pause due to selling interest. They serve as a ceiling that prevents the price from rising further.
Calculation: Resistance levels are calculated similarly to support levels, using the square root of the input value but adjusting it upward by the defined step (0.25) before squaring the result.
Visual Representation: Each resistance level is plotted with a green line when the current price is below the resistance level and turns red when the price is above it. Like support levels, every fourth resistance line is bolded for easier identification.
Dynamic Behavior:
Crossing Logic: When the current market price crosses above a resistance level, that level transforms into a support level, effectively changing its role. Conversely, if the price crosses below a support level, it transforms into a resistance level. This dynamic behavior reflects real-time market sentiment and helps traders identify potential reversal points.
Summary
This Pine Script provides a visual representation of dynamic support and resistance levels based on a user-defined input price. With distinct color coding and bold lines for significant levels, traders can quickly assess market conditions, identify potential buy or sell signals, and make informed trading decisions. The system's adaptability allows it to reflect the latest market movements, enhancing its utility as a trading tool.
Layered Volume Delta (LVD) BarsThis volume indicator shows buying and selling delta pressure in each bar.
Exhaustion Candle Indicator (ECI)The Exhaustion Candle Indicator (ECI) is designed to help traders identify significant exhaustion points in price action. These points can indicate potential areas of interest where price may experience a change in momentum, providing insights into both continuation and reversal setups.
Key Features:
Exhaustion Candles: ECI identifies key exhaustion points by analyzing bullish and bearish candle patterns, helping traders spot potential support and resistance areas or moments of market pause.
Customizable Alerts: Built-in alert functionality allows traders to receive notifications when an exhaustion candle forms, providing timely updates for monitoring price action.
Time-Based Filtering: The indicator analyzes price action during peak trading hours (6 AM to 11 AM New York Time), reducing noise and focusing on more impactful market moves.
How It Works:
Bullish Exhaustion: Detects potential market hesitation or demand in a downtrend by spotting bearish-to-bullish candle patterns with long upper wicks.
Bearish Exhaustion: Identifies potential resistance or supply in an uptrend by spotting bullish-to-bearish candle patterns with long lower wicks.
Usage:
This indicator is ideal for traders seeking to understand points of potential market exhaustion, useful in both continuation and reversal setups. It can be used alongside other indicators and technical analysis methods to enhance trading strategies.
ICT Open Range Gap & 1st FVG (fadi)In his 2024 mentorship program, ICT detailed how price action interacts with Open Range Gaps and the initial 1-minute Fair Value Gap following the market open at 9:30 AM.
What is an Open Range Gap?
An Open Range Gap occurs when the market opens at 9:30 AM at a higher or lower level compared to the previous day's close at 4:14 PM, primarily relevant in futures trading. According to ICT, there is a statistical probability of 70% that the price action will close 50% or more of the Open Range Gap within the first 30 minutes of trading (9:30 AM to 10:00 AM).
What is the First 1-Minute Fair Value Gap?
ICT places significant emphasis on the first 1-minute Fair Value Gap (FVG) that forms after the market opens at 9:30 AM. The FVG must occur at 9:31 AM or later to be considered valid. This gap often presents key opportunities for traders, as it represents a temporary imbalance between supply and demand that the market seeks to correct.
Understanding and leveraging these patterns can enhance trading strategies by offering insights into potential price movements shortly after market open.
ICT Open Range Gap & 1st FVG
This indicator is engineered to identify and highlight the Open Range Gaps and the first 1-minute Fair Value Gap. Furthermore, it functions across multiple timeframes, from seconds to hours, catering to various trading preferences. This flexibility is particularly beneficial for traders who favor higher timeframes or wish to observe these patterns' application at broader intervals.
Settings
The Open Range Gap indicator offers flexible display settings. It identifies the quadrants and provides optional color coding to distinguish them. Additionally, it tracks the "fill" level to visualize how far the price action has progressed into the gap, enhancing traders' ability to monitor and analyze price movements effectively. By default, the Open Range Gap will stop extending at 10:00 AM; however, there is an option to continue extending until the end of the trading day.
The 1st Fair Value Gap (FVG) can be viewed on any timeframe the indicator is active on, offering various styling options to match each trader's preferences. While the 1st FVG is particularly relevant to the day it is created, previous 1st FVGs within the same week may provide additional value. This indicator allows traders to extend Monday's 1st FVG, marking the first FVG of the week, or to extend all 1st FVGs throughout the week.
Custom Time Frame BackgroundThis indicator allows you to highlight custom time frames on your chart with alternating background colors. It's particularly useful for visualizing specific intervals that are not standard on TradingView, such as 4-hour, 6-hour, or any other custom duration you choose. Features:
Customizable time frames: Set any combination of minutes, hours, and days
Fallback to daily/weekly coloring if no custom time frame is set
User-defined colors for alternating backgrounds
How to use:
Add the indicator to your chart
In the settings, input your desired custom time frame:
Set 'Custom Minutes' for intervals less than an hour
Use 'Custom Hours' for hourly intervals
Use 'Custom Days' for daily intervals
Adjust 'Color 1' and 'Color 2' to your preferred background colors
Examples:
For a 4-hour time frame: Set Custom Hours to 4
For a 6-hour time frame: Set Custom Hours to 6
For a 2-day time frame: Set Custom Days to 2
If all inputs are set to 0, the indicator will default to daily coloring for intraday charts and weekly coloring for higher timeframes. This indicator helps traders visually segment their charts into custom intervals, making it easier to identify patterns and trends over specific time periods.
Relative Measured Volatility (RMV) – Spot Tight Entry ZonesTitle: Relative Measured Volatility (RMV) – Spot Tight Entry Zones
Introduction
The Relative Measured Volatility (RMV) indicator is designed to highlight tight price consolidation zones , making it an ideal tool for traders seeking optimal entry points before potential breakouts. By focusing on tightness rather than general volatility, RMV offers traders a practical way to detect consolidation phases that often precede significant market moves.
How RMV Works
The RMV calculates short-term tightness by averaging three ATR (Average True Range) values over different lookback periods and then normalizing them within a specified lookback window. The result is a percentage-based scale from 0 to 100, indicating how tight the current price range is compared to recent history.
Here’s the breakdown:
Three ATR values are computed using user-defined short lookback periods to represent short-term price movements. An average of the ATRs provides a smoothed measure of current tightness. The RMV normalizes this average against the highest and lowest values over the defined lookback period, scaling it from 0 to 100.
This approach helps traders identify consolidation zones that are more likely to lead to breakouts.
Key Features of RMV
Multi-Period ATR Calculation : Uses three ATR values to effectively capture market tightness over the short term. Normalization : Converts the tightness measure to a 0-100 scale for easy interpretation. Dynamic Histogram and Background Colors : The RMV indicator uses a color-coded system for clarity.
How to Use the RMV Indicator
Identify Tight Consolidation Zones:
a - RMV values between 0-10 indicate very tight price ranges, making this the most optimal zone for potential entries before breakouts.
b - RMV values between 11-20 suggest moderate tightness, still favorable for entries.
Monitor Potential Breakout Areas:
As RMV moves from 21-30 , tightness reduces, signaling expanding volatility that may require wider stops or more flexible entry strategies.
Adjust Trading Strategies:
Use RMV values to identify tight zones for entering trades, especially in trending markets or at key support/resistance levels.
Customize the Indicator:
a - Adjust the short-term ATR lookback periods to control sensitivity.
b - Modify the lookback period to match your trading horizon, whether short-term or long-term.
Color-Coding Guide for RMV
ibb.co
How to Add RMV to Your Chart
Open your chart on TradingView.
Go to the “Indicators” section.
Search for "Relative Measured Volatility (RMV)" in the Community Scripts section.
Click on the indicator to add it to your chart.
Customize the input parameters to fit your trading strategy.
Input Parameters
Lookback Period : Defines the period over which tightness is measured and normalized.
Short-term ATR Lookbacks (1, 2, 3) : Control sensitivity to short-term tightness.
Histogram Threshold : Sets the threshold for differentiating between bright (tight) and dim (less tight) histogram colors.
Conclusion
The Relative Measured Volatility (RMV) is a versatile tool designed to help traders identify tight entry zones by focusing on market consolidation. By highlighting narrow price ranges, the RMV guides traders toward potential breakout setups while providing clear visual cues for better decision-making. Add RMV to your trading toolkit today and enhance your ability to identify optimal entry points!
Previous Day Max 15-Mins Move High/LowIntroduction
This TradingView script is designed to help traders quickly identify significant price movement levels from the previous trading day based on the 15-minute time frame. It finds the largest high-to-low range of any 15-minute candle from the prior day and draws horizontal lines at those levels. These levels can help traders set potential support and resistance zones, aiding in intraday trading decisions and market analysis.
In many trading strategies, significant levels from previous sessions are crucial for determining potential support and resistance points. By identifying the largest price move from the prior day’s 15-minute candles, this script can highlight areas of market interest where volatility was at its highest. Traders can use these levels to:
Anticipate potential reversal points.
Plan entries and exits based on key support and resistance.
Gauge market sentiment by observing how the price reacts to these levels during the current session.
This can be especially valuable in fast-paced trading environments or when analyzing shorter time frames. The lines extend across all time frames, so you can use this script on higher time frames as well to see previous-day levels while zooming out.
Vishnu's Magics**Vishnu's Magics** is a powerful RSI (Relative Strength Index) indicator designed to enhance trading strategies through effective divergence detection and alerting features. This indicator provides the following key functionalities:
1. **RSI Calculation**: Calculates the RSI over a customizable length, allowing traders to identify overbought and oversold conditions.
2. **Customizable Bands**: Users can set multiple upper and lower bands to define different overbought and oversold levels, facilitating precise trading decisions.
3. **Divergence Detection**: The indicator identifies both bullish and bearish divergences by comparing price action with RSI movements. It highlights these divergences on the chart, helping traders anticipate potential reversals.
4. **Visual Alerts**: When divergences are detected, the indicator visually marks the points on the chart with labeled shapes ("Bull" for bullish divergence and "Bear" for bearish divergence) and changes the background color to indicate the condition.
5. **Alert System**: Users can set alerts for significant events, such as crossing specified bands or detecting divergences, ensuring timely notifications for trading opportunities.
6. **Custom Line Values**: Traders can edit the values for the divergence lines, providing flexibility to tailor the indicator according to their trading strategies.
Overall, **Vishnu's Magics** serves as an intuitive tool for traders looking to leverage RSI analysis and divergence strategies for informed trading decisions.
Z-Score Weighted Trend System I [InvestorUnknown]The Z-Score Weighted Trend System I is an advanced and experimental trading indicator designed to utilize a combination of slow and fast indicators for a comprehensive analysis of market trends. The system is designed to identify stable trends using slower indicators while capturing rapid market shifts through dynamically weighted fast indicators. The core of this indicator is the dynamic weighting mechanism that utilizes the Z-score of price , allowing the system to respond effectively to significant market movements.
Dynamic Z-Score-Based Weighting System
The Z-Score Weighted Trend System I utilizes the Z-score of price to assign weights dynamically to fast indicators. This mechanism is designed to capture rapid market shifts at potential turning points, providing timely entry and exit signals.
Traders can choose from two primary weighting mechanisms:
Threshold-Based Weighting: The fast indicators are given weight only when the absolute Z-score exceeds a user-defined threshold. Below this threshold, fast indicators have no impact on the final signal.
Continuous Weighting: By setting the threshold to zero, fast indicators always contribute to the final signal, regardless of Z-score levels. However, this increases the likelihood of false signals during ranging or low-volatility markets
// Calculate weight for Fast Indicators based on Z-Score (Slow Indicator weight is kept to 1 for simplicity)
f_zscore_weights(series float z, simple float weight_thre) =>
float fast_weight = na
float slow_weight = na
if weight_thre > 0
if math.abs(z) <= weight_thre
fast_weight := 0
slow_weight := 1
else
fast_weight := 0 + math.sqrt(math.abs(z))
slow_weight := 1
else
fast_weight := 0 + math.sqrt(math.abs(z))
slow_weight := 1
Choice of Z-Score Normalization
Traders have the flexibility to select different Z-score processing methods to better suit their trading preferences:
Raw Z-Score or Moving Average: Traders can opt for either the raw Z-score or a moving average of the Z-score to smooth out fluctuations.
Normalized Z-Score (ranging from -1 to 1) or Z-Score Percentile: The normalized Z-score is simply the raw Z-score divided by 3, while the Z-score percentile utilizes a normal distribution for transformation.
f_zscore_perc(series float zscore_src, simple int zscore_len, simple string zscore_a, simple string zscore_b, simple string ma_type, simple int ma_len) =>
z = (zscore_src - ta.sma(zscore_src, zscore_len)) / ta.stdev(zscore_src, zscore_len)
zscore = switch zscore_a
"Z-Score" => z
"Z-Score MA" => ma_type == "EMA" ? (ta.ema(z, ma_len)) : (ta.sma(z, ma_len))
output = switch zscore_b
"Normalized Z-Score" => (zscore / 3) > 1 ? 1 : (zscore / 3) < -1 ? -1 : (zscore / 3)
"Z-Score Percentile" => (f_percentileFromZScore(zscore) - 0.5) * 2
output
Slow and Fast Indicators
The indicator uses a combination of slow and fast indicators:
Slow Indicators (constant weight) for stable trend identification: DMI (Directional Movement Index), CCI (Commodity Channel Index), Aroon
Fast Indicators (dynamic weight) to identify rapid trend shifts: ZLEMA (Zero-Lag Exponential Moving Average), IIRF (Infinite Impulse Response Filter)
Each indicator is calculated using for-loop methods to provide a smoothed and averaged view of price data over varying lengths, ensuring stability for slow indicators and responsiveness for fast indicators.
Signal Calculation
The final trading signal is determined by a weighted combination of both slow and fast indicators. The slow indicators provide a stable view of the trend, while the fast indicators offer agile responses to rapid market movements. The signal calculation takes into account the dynamic weighting of fast indicators based on the Z-score:
// Calculate Signal (as weighted average)
float sig = math.round(((DMI*slow_w) + (CCI*slow_w) + (Aroon*slow_w) + (ZLEMA*fast_w) + (IIRF*fast_w)) / (3*slow_w + 2*fast_w), 2)
Backtest Mode and Performance Metrics
The indicator features a detailed backtesting mode, allowing traders to compare the effectiveness of their selected settings against a traditional Buy & Hold strategy. The backtesting provides:
Equity calculation based on signals generated by the indicator.
Performance metrics comparing Buy & Hold metrics with the system’s signals, including: Mean, positive, and negative return percentages, Standard deviations, Sharpe, Sortino, and Omega Ratios
// Calculate Performance Metrics
f_PerformanceMetrics(series float base, int Lookback, simple float startDate, bool Annualize = true) =>
// Initialize variables for positive and negative returns
pos_sum = 0.0
neg_sum = 0.0
pos_count = 0
neg_count = 0
returns_sum = 0.0
returns_squared_sum = 0.0
pos_returns_squared_sum = 0.0
neg_returns_squared_sum = 0.0
// Loop through the past 'Lookback' bars to calculate sums and counts
if (time >= startDate)
for i = 0 to Lookback - 1
r = (base - base ) / base
returns_sum += r
returns_squared_sum += r * r
if r > 0
pos_sum += r
pos_count += 1
pos_returns_squared_sum += r * r
if r < 0
neg_sum += r
neg_count += 1
neg_returns_squared_sum += r * r
float export_array = array.new_float(12)
// Calculate means
mean_all = math.round((returns_sum / Lookback), 4)
mean_pos = math.round((pos_count != 0 ? pos_sum / pos_count : na), 4)
mean_neg = math.round((neg_count != 0 ? neg_sum / neg_count : na), 4)
// Calculate standard deviations
stddev_all = math.round((math.sqrt((returns_squared_sum - (returns_sum * returns_sum) / Lookback) / Lookback)) * 100, 2)
stddev_pos = math.round((pos_count != 0 ? math.sqrt((pos_returns_squared_sum - (pos_sum * pos_sum) / pos_count) / pos_count) : na) * 100, 2)
stddev_neg = math.round((neg_count != 0 ? math.sqrt((neg_returns_squared_sum - (neg_sum * neg_sum) / neg_count) / neg_count) : na) * 100, 2)
// Calculate probabilities
prob_pos = math.round((pos_count / Lookback) * 100, 2)
prob_neg = math.round((neg_count / Lookback) * 100, 2)
prob_neu = math.round(((Lookback - pos_count - neg_count) / Lookback) * 100, 2)
// Calculate ratios
sharpe_ratio = math.round((mean_all / stddev_all * (Annualize ? math.sqrt(Lookback) : 1))* 100, 2)
sortino_ratio = math.round((mean_all / stddev_neg * (Annualize ? math.sqrt(Lookback) : 1))* 100, 2)
omega_ratio = math.round(pos_sum / math.abs(neg_sum), 2)
// Set values in the array
array.set(export_array, 0, mean_all), array.set(export_array, 1, mean_pos), array.set(export_array, 2, mean_neg),
array.set(export_array, 3, stddev_all), array.set(export_array, 4, stddev_pos), array.set(export_array, 5, stddev_neg),
array.set(export_array, 6, prob_pos), array.set(export_array, 7, prob_neu), array.set(export_array, 8, prob_neg),
array.set(export_array, 9, sharpe_ratio), array.set(export_array, 10, sortino_ratio), array.set(export_array, 11, omega_ratio)
// Export the array
export_array
//}
Calibration Mode
A Calibration Mode is included for traders to focus on individual indicators, helping them fine-tune their settings without the influence of other components. In Calibration Mode, the user can visualize each indicator separately, making it easier to adjust parameters.
Alerts
The indicator includes alerts for long and short signals when the indicator changes direction, allowing traders to set automated notifications for key market events.
// Alert Conditions
alertcondition(long_alert, "LONG (Z-Score Weighted Trend System)", "Z-Score Weighted Trend System flipped ⬆LONG⬆")
alertcondition(short_alert, "SHORT (Z-Score Weighted Trend System)", "Z-Score Weighted Trend System flipped ⬇Short⬇")
Important Note:
The default settings of this indicator are not optimized for any particular market condition. They are generic starting points for experimentation. Traders are encouraged to use the calibration tools and backtesting features to adjust the system to their specific trading needs.
The results generated from the backtest are purely historical and are not indicative of future results. Market conditions can change, and the performance of this system may differ under different circumstances. Traders and investors should exercise caution and conduct their own research before using this indicator for any trading decisions.
5-0 Harmonic Pattern [TradingFinder] 0XABCD 50 Harmonic Detector🔵 Introduction
Harmonic patterns are a powerful tool in technical analysis, widely used to detect reversal points and trend changes. Among these, the 5-0 Harmonic Pattern stands out due to its reliance on specific Fibonacci ratios—1.13, 1.618, 2.24, and 0.45 to 0.55—anchored at points 0, X, A, B, C, and D. This pattern provides a structured approach for identifying critical buy and sell points, helping traders achieve optimal entry and exit levels in volatile markets.
This 5-0 Harmonic Pattern indicator automatically detects and marks bullish and bearish formations on the chart, offering precise trading signals based on established harmonic ratios. With its dynamic signals, the 5-0 pattern enables traders to anticipate market movements and capitalize on favorable price trends.
Especially in fast-moving markets, harmonic patterns, particularly the 5-0 Harmonic Pattern, equip traders with an essential framework for identifying reversal opportunities and refining their trading strategies.
Bullish 5-0 Pattern :
Bearish 5-0 Pattern :
🔵 How to Use
The 5-0 Harmonic Pattern indicator is designed to automatically mark the key levels of the harmonic structure: 0, X, A, B, C, and D. By doing so, it detects both bullish and bearish patterns and helps traders recognize optimal entry and exit points.
Formed through specific Fibonacci levels, this pattern signals potential shifts in trend direction, giving traders critical insights for managing entries and exits effectively. The tool proves valuable in high-volatility settings, enabling traders to leverage these signals for refined decision-making.
🟣 Bullish 5-0 Pattern
A bullish 5-0 pattern materializes when Fibonacci levels indicate a potential price reversal to the upside. With points 0, X, A, B, C, and D in alignment, the indicator highlights this upward momentum by displaying a green arrow as a buy signal on the chart. This marking provides a clear entry point, indicating that prices are likely to rise, making it a prime moment for traders to enter long positions.
Additionally, the bullish 5-0 pattern is equipped with tools for traders to set stop-loss and take-profit points based on harmonic lines within the pattern, which represent support and resistance levels. Using these dynamic points, traders can create a more effective risk-reward setup while following the bullish signals in a standalone harmonic strategy.
🟣 Bearish 5-0 Pattern
The bearish 5-0 pattern functions similarly but signals a likely downturn. This pattern emerges when Fibonacci ratios align at points 0, X, A, B, C, and D, predicting a reversal downward. The indicator generates a sell signal, marked by a red arrow, prompting traders to exit long positions or initiate short trades to capitalize on falling prices.
Traders can utilize this bearish pattern for defining exit strategies and setting key levels for stop-loss and take-profit orders. The bearish 5-0 pattern enhances traders’ abilities to gauge critical price levels and manage trade risk effectively, especially in volatile markets. For traders focused on profiting from downward trends, this indicator serves as a powerful tool for timely entries and exits.
🔵 Setting
🟣 Logical Setting
ZigZag Pivot Period : You can adjust the period so that the harmonic patterns are adjusted according to the pivot period you want. This factor is the most important parameter in pattern recognition.
Show Valid Forma t: If this parameter is on "On" mode, only patterns will be displayed that they have exact format and no noise can be seen in them. If "Off" is, the patterns displayed that maybe are noisy and do not exactly correspond to the original pattern.
Show Formation Last Pivot Confirm : if Turned on, you can see this ability of patterns when their last pivot is formed. If this feature is off, it will see the patterns as soon as they are formed. The advantage of this option being clear is less formation of fielded patterns, and it is accompanied by the latest pattern seeing and a sharp reduction in reward to risk.
Period of Formation Last Pivot : Using this parameter you can determine that the last pivot is based on Pivot period.
🟣 Genaral Setting
Show : Enter "On" to display the template and "Off" to not display the template.
Color : Enter the desired color to draw the pattern in this parameter.
LineWidth : You can enter the number 1 or numbers higher than one to adjust the thickness of the drawing lines. This number must be an integer and increases with increasing thickness.
LabelSize : You can adjust the size of the labels by using the "size.auto", "size.tiny", "size.smal", "size.normal", "size.large" or "size.huge" entries.
🟣 Alert Setting
Alert : On / Off
Message Frequency : This string parameter defines the announcement frequency. Choices include: "All" (activates the alert every time the function is called), "Once Per Bar" (activates the alert only on the first call within the bar), and "Once Per Bar Close" (the alert is activated only by a call at the last script execution of the real-time bar upon closing). The default setting is "Once per Bar".
Show Alert Time by Time Zone : The date, hour, and minute you receive in alert messages can be based on any time zone you choose. For example, if you want New York time, you should enter "UTC-4". This input is set to the time zone "UTC" by default.
Conclusion
The 5-0 Harmonic Pattern indicator serves as a robust solution for technical analysts and traders looking to pinpoint market reversal points. By automatically recognizing 5-0 patterns and generating buy and sell signals based on Fibonacci ratios, this tool supports precise trend analysis and entry/exit timing. The indicator’s adjustable alerts, color themes, and pattern toggles allow for comprehensive customization, ensuring alignment with individual trading strategies.
Harmonic patterns, especially the 5-0 Harmonic Pattern, guide traders in identifying high-accuracy entry and exit points, thus aiding in more informed trading decisions. By combining Fibonacci ratio analysis with real-time signal updates, this indicator provides a well-rounded approach for risk management and capitalizing on trading opportunities. Professional traders can harness this tool to enhance technical analysis precision and capitalize on price trends effectively, maximizing profitability in both bullish and bearish markets.
India market cap and smart dataThis indicator displays important financial and technical data, such as Market Cap, P/E Ratio, ADR %, etc.
It is specially designed for swing traders.
Key Features and Highlights
- Market Cap Alert: If the Market Cap of a stock is below 1000 crore , it is displayed in red to indicate a potential liquidity issue.
- P/E Ratio for Loss-Making Companies : For companies with net losses, the P/E ratio is shown as 0 and displayed in red , alerting you to the unprofitable status of the company.
- ADR Alert: When the ADR is below 4% , it is highlighted in red . Swing traders typically look for stocks with high ADR.
- 52-Week High Proximity: If a stock is more than 20% below its 52-week high , this data is shown in red .
- 52-Week Low Performance: If a stock is up by more than 70% from its 52-week low , the data is displayed in green , indicating strong performance.
Additional Features
- Toggle data points on or off as desired.
- Supports both dark and light modes.
- Position the table wherever preferred on the chart.
- Customize the ADR % calculation based on the desired number of days (default is 20 days).
Note: The calculation for the percentage away from the 52-week high is based on the closing price of the 52-week high candle, not the high price.
Dynamic Volume-Based Buy/Sell IndicatorThis script provides a powerful volume-based indicator that visualizes buy and sell volumes, issues alerts for volume spikes, and adjusts color intensity dynamically based on volume size. It includes customizable settings for volume averaging and thresholds, making it adaptable to various trading strategies.
Flashtrader´s Statistical BandwidthsThe vast majority of traders exclusively concern
themselves with trend-following in all its facets. Scoring
points with trends on a regular basis is a difficult task
since prices do not constantly move in one direction
or another. In the case of the DAX future, for example,
only about 30 per cent of all trading days in a year are
trend days. And of these, there are x percent long ones
and x per cent short ones. Catching the very days when
prices rise or fall from the opening to the close is a major
challenge for a trader who also needs to have previously
recognised the corresponding direction.
However, there are also other ways of profit-taking
every day – for example, by using the mean reversion
strategy. The idea behind this is the fact that prices reach
a high and a low every day – but very rarely close at the
high or the low. This means that prices always move
away from these extreme points and the closing price is
somewhere in between. A profitable trading strategy can
be developed out of this.
But how can you know where the high and the low
will be tomorrow? Is it possible for you to know this in
advance? No – because no one can predict the future. Or
can they? At least it can be statistically determined how
high or low prices could go tomorrow. There is a high
degree of probability that one of the two possibilities
will materialise. It will then be necessary to act.
Calculation
Classic pivot points for the following day are calculated
from the high, low and closing price. But does it really
make sense to use such a mix? I don’t think so and
use a different calculation for this strategy. In a first step,
only the differences between the start and the high or low
are calculated on a daily basis. To avoid being dependent
on individual days and outliers, it is advisable to calculate,
in a second step, the average of these differences over
the past five days. Finally, this average will then be added
at the opening price of the current trading day for the
upper statistical bandwidth and subtracted for the lower
bandwidth.
upper bandwidth = oSTB (violet dashed line in the chart)
lower bandwidth = uSTB (violet dashedline in the chart)
The second interesting question is, if the previous day's high has been exceeded, how much further can the price rise from a mathematical/statistical point of view?
These calculated previous day highs expansions are shown as red dashed lines
Previous day's high expansion = VTHA
Previous day's low expansion = VTTA
For further orientation, the previous day's high (VTH) and the previous day's low (VTT) are shown in light blue dashed lines
And as a supplement, the previous day's close in the DAX Future at 10:00 p.m. VTSA in violet solid lines and the previous day's close in the cash register at 5:30 p.m. VTSN in yellow solid lines
Reaching the calculated extreme values does not mean that the trend has to change immediately, but there is at least temporary exhaustion potential with which you can earn a few points every day in the area of scalping.
Example for cheap entry long:
Example for cheap entry short:
Deutsch:
Die Masse der Trader beschäftigt sich ausschließlich mit Trendfolge in all ihren Facetten. Mit Trends regelmäßig zu punkten ist ein schwieriges Unterfangen, da die Kurse nicht ständig in die eine oder andere Richtung laufen. Beim DAX-Future zum Beispiel sind von allen Börsentagen im Jahr lediglich zirka 30 Prozent Trendtage. Davon sind dann auch noch x Prozent Long und x Prozent Short. Hier genau die Tage abzupassen, an denen die Kurse von Börsenbeginn bis zum Schluss steigen beziehungsweise fallen, ist eine große Herausforderung – wobei der Trader zuvor noch die entsprechende Richtung erkannt haben muss. Es gibt jedoch auch noch andere Methoden täglich Gewinne mitzunehmen, zum Beispiel mit der Mean-Reversion-Strategie (Mittelwertumkehr).
Hintergrund ist die Tatsache, dass die Kurse jeden Tag ein Hoch und ein Tief erreichen – aber sehr selten am Hoch oder am Tief schließen. Das bedeutet, dass die Preise sich immer wie der von diesen Extrempunkten wegbewegen und der Schlusskurs irgendwo dazwischen liegt. Hieraus lässt sich eine profitable Handelsstrategie entwickeln. Aber woher kannst Du wissen, wo morgen das Hoch und das Tief sein wird? Kannst Du das vorher schon wissen? Nein – denn niemand kann die Zukunft vorhersagen. Oder doch? Statistisch lässt sich zumindest bestimmen, wie hoch und wie tief die Kurse morgen steigen oder fallen könnten. Eine Seite wird mit sehr hoher Wahrscheinlichkeit ein treffen. Dann gilt es zu handeln.
Berechnung Klassischer Pivot-Punkte für den folgenden Tag werden aus Hoch, Tief und Schlusskurs berechnet. Aber ist es wirklich sinnvoll, einen solchen Mix zu verwenden? Ich finde das nicht und verwenden für diese Strategie eine andere Berechnung. Im ersten Schritt werden täglich die Differenzen nur vom Start bis zum Hoch beziehungsweise Tief errechnet. Um nicht von einzelnen Tagen und Ausreißern abhängig zu sein, empfiehlt es sich, in einem zweiten Schritt den Durchschnitt dieser Differenzen über die letzten fünf Tage zu errechnen. Zuletzt wird dann dieser Durchschnitt zum Eröffnungskurs des aktuellen Handelstages für die obere statistische Bandbreite addiert und für die untere Bandbreite subtrahiert.
Obere statistische Bandbreite = oSTB (violette gestrichelte Linie im Chart)
Untere statistische Bandbreite = uSTB (violette gestrichelte Linie im Chart)
Die zweite interessante Frage ist, wenn das Vortageshoch überschritten wurde, wie weit kann der Kurs dann noch steigen aus mathematisch/statistischer Sicht?
Diese berechneten Vortagesextremausdehnungen sind als rote gestrichelte Linien dargestellt
Vortageshochausdehnung = VTHA
Vortagestiefausdehnung = VTTA
Für die weitere Orientierung sind die Vortageshochs (VTH) und die Vortagestiefs (VTT) als hellblaue gestrichelte Linien abgebildet.
Als Ergänzung wird noch der Vortages Schluss im Dax Future um 22:00 Uhr VTSA mit einer violetten durchgezogenen Linie und der Kassamarktschluss um 17:30 Uhr mit einer gelben durchgezogenen Linie gezeigt.
Das Erreichen der berechneten Extremwerte bedeutet nicht, das der Trend sofort drehen muss, aber es sind zumindest temporäre Erschöpfungspotentiale mit denen sich im Bereich scalping täglich einige Punkte verdienen lassen.
Beispiel für günstigen Einstieg Long:
Beispiel für günstigen Einstieg Short:
Screener MA CrossThe Screener MA Cross is an efficient tool designed to help traders quickly identify potential buy and sell signals across multiple currency pairs and timeframes. This script monitors the crossover behavior of two moving averages (MA8 and MA50) to determine possible entry points for trades.
Key Features:
Multi-Pair Monitoring: The indicator allows users to screen popular assets, including XAUUSD, US30, GBPUSD, EURUSD, USDJPY, USDCAD, and GBPJPY. You can add or remove symbols based on your preference.
Dual Timeframe Analysis: It tracks moving average crossovers on both 15-minute and 1-hour charts, giving users insights into short-term and medium-term trends without switching between timeframes.
Color-Coded Signals:
Green: Indicates a bullish "Buy" signal when the MA8 crosses above the MA50, suggesting upward momentum.
Red: Indicates a bearish "Sell" signal when the MA8 crosses below the MA50, signaling downward momentum.
Gray: Represents a neutral or no-cross state, indicating no clear trend.
Clean Table Format: Displays all relevant signals directly on your chart in a structured, easy-to-read table format, allowing you to quickly scan and assess trading opportunities.
How It Works: The script uses moving averages (MA8 and MA50) to analyze crossover patterns, a common method for identifying trend changes. A crossover occurs when a shorter moving average (MA8) crosses above or below a longer moving average (MA50). By requesting data from the 15-minute and 1-hour timeframes, the Screener MA Cross provides a clear overview of the market situation across various assets, helping you decide on potential trades.
This tool is particularly useful for trend-following strategies and can be used to spot momentum shifts on smaller timeframes, making it ideal for day traders and scalpers.
How to Use:
Add the indicator to your chart and customize the asset symbols to match your trading preferences.
Monitor the signals on the table. Green signals indicate potential buying opportunities, while red signals suggest possible selling points.
Use alongside other analysis: While the Screener MA Cross offers valuable insights, it's best used in combination with other indicators and analysis techniques to confirm trade setups.
RPS Trading Signals & Backtesting
Overview:
The Enhanced Relative Price Strength (RPS) Indicator is designed for trend traders looking to identify the relative strength of stocks within a select universe. By comparing the price movements of chosen stocks over a specified period, this indicator helps traders make informed decisions about potential buying and selling opportunities.
Key Features:
Relative Strength Ranking: Our RPS indicator ranks the price performance of individual stocks against a curated selection, enabling users to pinpoint which stocks are exhibiting relative strength or weakness.
Customizable Stock Universe: The script evaluates 40 stocks, which include 30 high-weight NDX100 stocks, 4 major index ETFs (SPY, QQQ, DIA, IWM), and allows for the addition of 6 user-defined custom stocks.
Dynamic Color Gradients: The visual representation of the RPS score utilizes a gradient color scheme ranging from purple at low scores to red at high scores, leveraging the color for clear, immediate insight into stock performance.
Threshold Visualization: Users can set specific high (default 85) and low (default 15) thresholds for RPS, highlighted with solid line indicators and area fills. This visual aspect aids traders in quickly spotting entry and exit points.
Trading Signal Generation: The script includes logic for generating buy and sell signals according to defined RPS behaviors relative to the set thresholds, factoring in market conditions based on a long-term moving average.
Backtesting Capabilities: Users can backtest trading signals by inputting desired start and end dates, allowing traders to evaluate the effectiveness of the RPS strategy on historical data for various assets including stocks and cryptocurrencies (e.g., NVDA, LLY, GOOG, BTC, ETH, SOL).
User-Friendly Options: The script allows for adjustments such as moving average lengths, visibility of trading signals, and fills for ease of use and customization according to trading preferences.
How It Works:
The RPS Indicator functions by calculating the performance of stocks relative to each other. Based on the RPS trends, the indicator identifies when to enter or exit trades, providing a framework to capitalize on market movements.
Conclusion:
The Enhanced RPS Indicator aims to empower traders with a powerful analytical tool in their arsenal, tailored to simplify decision-making and bolster trading strategies. As this script evolves, we encourage feedback and collaboration from users to refine and enhance its capabilities further.
Trade Less, Earn More!
EMA and ATR Indicator BY DemirkanEMA 10 and ATR Indicator BY Demirkan
The EMA 10 and ATR Indicator combines two powerful technical indicators used to analyze trends and identify potential trading opportunities.
Indicator Components:
Exponential Moving Average (EMA):
EMA 10: Calculates the weighted average of the last 10 closing prices. This indicator is effective in tracking short-term price movements. When the price is above the EMA, it is considered that the trend is upward; when it is below, it is assessed as a downward trend.
Average True Range (ATR):
ATR: A measure of market volatility. When the ATR value falls within a specified range (between 10 and 14 in this indicator), the price movement is considered significant. This helps you base your trading decisions on more solid grounds.
Usage Recommendations:
Buy Signal: When the price is above the EMA and the ATR is within the specified range, this can be interpreted as a potential buy signal.
Sell Signal: When the price is below the EMA, this can be interpreted as a potential sell signal.
Chart Displays:
EMA Line: Displayed as a blue line, allowing you to see how the EMA relates to current price levels.
Price Status: Circles are used to indicate whether the price is above or below the EMA. A green circle indicates the price is above the EMA, while a red circle indicates it is below.
Background Colors: The chart background changes to green or red to highlight buy and sell conditions.
Aesthetic Presentation:
Using the "Flag" and "Below" parameters for the Price vs EMA indicator provides an aesthetically pleasing appearance on the chart. This type of visual presentation helps users quickly and easily grasp trading signals. Additionally, this aesthetic touch makes investors' charts look more professional and appealing.
This indicator is a useful tool for traders looking to develop short-term trading strategies. However, it should always be used in conjunction with additional analysis and other indicators.
Note: This indicator is for educational purposes only and should not be taken as investment advice.
Hull Moving Averages 10, 20, 50, 100, 200This script generates multiple Hull Moving Averages (HMAs) on a trading chart, allowing for comprehensive trend analysis across different timeframes. Five HMAs with lengths of 10, 20, 50, 100, and 200 periods are plotted on the chart, providing insights into short, medium, and long-term market trends.
Each HMA can be customized with individual colors to easily distinguish between the different timeframes, helping traders visually track momentum changes and trend strength across these intervals. The Hull Moving Average is known for reducing lag compared to other moving averages, which makes it particularly useful for identifying turning points more accurately.
With this script:
You can adjust the colors of each HMA line individually, ensuring optimal visual differentiation.
You can analyze short-term trends with HMA 10 and HMA 20, medium-term trends with HMA 50, and long-term trends with HMA 100 and HMA 200.
The chart provides an at-a-glance view of multi-timeframe trends, making it useful for trading strategies that rely on crossovers or divergence patterns.
This tool is ideal for traders who want to identify trend direction, strength, and possible reversal points with minimal lag.
DRKMetricsLibrary "DRKMetrics"
TODO: add library description here
curve(disp_ind)
Call function to get a certain curve of your strategy.
Parameters:
disp_ind (string)
Returns: Returns type of curve plot.
cleaner(disp_ind, plot)
Call function to filter out your Strategy plots
Parameters:
disp_ind (string)
plot (float)
cobraTable(option, position)
Assign this function to a random variable to get the "Performance Table"
Parameters:
option (simple string)
position (simple string)
VOLUME DIRECTION INDICATORDesigned for the 1-hour chart, this indicator shows:
Green Line: Volume when price rises, suggesting buying.
Red Line: Volume when price falls, indicating selling.
How to Use:
Watch for Crossover: When the Green Line moves above the Red, it might signal a budding uptrend.
Check Retracement: If the Green Line pulls back but stays above the Red, the uptrend could be strengthening.
Price Check: Look for a small price drop but not a reversal.
Trade Entry:
Enter at the high of the retracement candle.
Or wait for the Green Line to rise again.
For Precision: Draw a line at the retracement peak and switch to a shorter timeframe to find entry patterns above this line.
Remember: Use this with other tools for better trading decisions.
The Volume Direction Indicator provides a visual representation of market activity by assuming volume can be attributed to buying or selling based on price action within each bar. When the price closes higher than it opened, the volume for that period is considered as 'Bought Shares', plotted in green. Conversely, if the price closes lower, the volume is treated as 'Sold Shares', shown in red. This indicator resets daily to give a fresh perspective on trading activity each day.
Key Features:
Buying Pressure: Green line represents the cumulative volume during periods where the price increased.
Selling Pressure: Red line indicates the cumulative volume during price decreases.
Daily Reset: Accumulated values reset at the start of each new trading day, focusing on daily market sentiment.
Note: This indicator simplifies market dynamics by linking volume directly to price changes. It does not account for complex trading scenarios like short selling or market manipulations. Use this indicator as a tool to gauge general market direction and activity, not for precise transaction data.
Gold scalper 1 min or 30 secThis Pine Script code for TradingView is designed to create a trading indicator titled "Gold scalper 1 min or 30 sec." The indicator is primarily used for scalping gold and is focused on short-term timeframes (1 minute or 30 seconds).
### Key Components of the Code:
1. **Inputs:**
- **Resolution:** Users can set the timeframe for analysis (default is 240 minutes).
- **SMA (Simple Moving Average):** Users can specify the period for the SMA used in the calculations.
2. **Daily Highs and Lows:**
- The script calculates the previous day’s high (`yesterdayHigh`) and low (`yesterdayLow`) prices using the `request.security` function.
3. **SMA Calculation:**
- An SMA is computed based on the closing prices of the selected timeframe.
4. **Breakout Conditions:**
- The script detects breakouts using the SMA in relation to yesterday's high and low:
- A breakout upwards occurs when the SMA crosses above the previous day's high.
- A breakout downwards occurs when the SMA crosses below the previous day's low.
5. **RSI (Relative Strength Index) Calculations:**
- Two RSI values are calculated to assess market momentum:
- **Banker RSI:** Used for buy conditions.
- **Hot Money RSI:** Used for sell conditions.
- These include adjustable sensitivity factors and periods to customize the indicator’s sensitivity.
6. **Trade Direction Selection:**
- Users can select whether to trade long, short, or both directions.
7. **Buy and Sell Signals:**
- Buy conditions are set when the Retail Moving Average crosses the Banker Moving Average under certain conditions.
- Sell conditions are marked when the Banker Moving Average crosses under the specified sell threshold.
- These signals are visually represented on the chart with specific shapes (up arrows for buys and down arrows for sells).
8. **Alerts:**
- Alerts are generated for buy and sell signals to notify users when certain conditions are met.
9. **Trend Visualization:**
- The script visually indicates uptrends and downtrends on the chart by plotting colors based on the relationship between the current price, yesterday's high, and low.
### General Purpose:
This indicator is designed to assist traders in identifying potential buying and selling opportunities in the gold market based on short-term price movements and momentum indicators, helping them capitalize on quick price fluctuations that are characteristic of scalping strategies.
Bar count with New day Markerbased on bar count, highlight the first Bar with special colour on every day.