Kernel Regression RibbonKernel Regression Ribbon is a flexible, visually pleasing trend identification tool. Plotting 8 different kernel regressions of different types and parameters allows the user to see where levels of support and resistance are being tested, retested and broken.
What’s Kernel Regression?
A statistical method for estimating the best fitting curve for a dataset, in this case, a time/price chart.
How’s Kernel Regression different from a Moving Average?
A Moving Average is basically a simple form of Kernel Regression, in that it uses a fixed (Retangular) Kernel function. In an MA, all data points are weighted equally over its length. However, a Kernel function reacts more to data points that are closer to the current point. This means it will adapt more quickly to changes in data than an MA. Due to this adaptability, Kernel functions often form part of Machine Learning.
Using this indicator:
Explore the default Regular mode first to get a feel for the inputs, which are more numerous than for MAs. Try out different settings, filters and intervals to get the best out of each kernel. Not all parameters are available for each KR. There are info tips to explain this in the menu, but I’ve also included handy, optional labels on the chart for each KR as a more accessible guide.
Once you know your way round the Regular mode, check out the Presets and start changing the parameters of each kernel to your liking in the “User KR1, KR2, … “ mode. Each kernel type has its strong and weak points. Blending different kernels is where this indicator comes into its own. Give your charts a funky shine!
This indicator does NOT repaint.
This script acknowledges, and hopefully showcases, the great work of @veryfid Kernel Regression Toolkit.
ממוצעים נעים
Gradient Value Overlay
This script helps with identifying certain conditions without cluttering too much of the candles.
Some use cases:
It helps identify rsi low and high values.
Directional price movement becoming difficult.
low and high volume.
it uses a percent rank to distinguish low and high values.
It then uses a gradient to match the percentile rank to heatmap type colors.
i.e. dark blue for lowest volume, white for highest volume.
Current options are:
max bars to use.
approximate color - This value will attempt to give an approximation of what the color might be for the candle close.
e.g. If you're on the 1-hour chart, and only 30 minutes have past, it will multiple the current volume by 1.5. As time passes, if no volume comes in eventually, it will multiply current volume by 1.
This approximate value is only set to work with volume-based options.
option - select the type of value you'd like to see the gradient for.
timeframe - get values from a different chart timeframe.
on/off - turns the gradient on or off.
Gradient type - color wheel or heatmap. Currently these are the only two gardient options.
color wheel's colors for low to high values:
color wheel's current colors:
dark blue
purple
pink
red
orange
yellow
green
teal
white
heatmap's current colors from low values to high values:
dark blue
purple
pink
red
orange
yellow
white
reverse gradient - will reverse the colors so dark blue will be the high value and white will be the low value. Some charts based on previous data; you might need to switch the gradient colors.
moving average length while inside timeframe - an exponential moving average is applied to the values. At 1, there is no moving average applied.
Use case for this is to smooth out the gradient.
An example use case - if your currently on the 1-hour chart, you can set the timeframe to 1 minute and then the moving average length inside timeframe to 60. You will then be seeing the color sixty 1-minute bars.
current timeframe moving average length - an exponential moving average applied to current gradient (helps with smoothing gradient).
Smooth, further smooths values.
There is no set rule for what moving average lengths to use. Adjust timeframe, and moving average lengths to get an insight.
Temporary imbalances 2.0 This indicator attempts to calculate potential points of imbalance and equilibrium based on VWAPs and modified moving averages. The idea is to determine if there has been a change in volume and perform the calculation from that point It uses the standard deviation to determine the significant imbalance threshold. Candles with bullish imbalances are highlighted in green, while candles with bearish imbalances are highlighted in red.
"It also features a set of VWAPs and modified moving averages that you can enable or disable."
When you activate the 'Show Anchor VWAP' option, it will add five modified VWAPs.
Practical Significance:
The Anchored VWAP is a volume-weighted average price that serves as a dynamic reference to assess the average price during specific moments of market imbalance.
During a bullish imbalance, the anchor_vwap reflects the VWAP at that moment, emphasizing price behavior during that specific period.
Similarly, in a bearish imbalance, the anchor_vwap provides the associated VWAP for that condition, highlighting price movements during the imbalance phase.
How to Use:
The anchor_vwap can be employed to contextualize the volume-weighted average price during critical moments associated with significant changes in market imbalance.
By analyzing price behavior during and after periods of imbalance, the Anchored VWAP can help better understand market dynamics and identify potential areas of support or resistance.
Show VWAP Percent Imbalance"
Definition: Represents the Volume Weighted Average Price (VWAP) adjusted by the volume-weighted average of the price multiplied by volume, with a focus on conditions where the percentage volume variation surpasses a predefined threshold.
Calculation: Utilizes the simple moving average weighted of the product of the volume-weighted average price and volume only when the percentage volume variation exceeds a specific threshold.
Interpretation: Provides insight into the volume-weighted price trend during conditions where the percentage volume variation exceeds a predefined limit.
The "showDeltaVWAP" is a toggleable setting that you can turn on or off. When activated, it displays special lines on the chart. Let's understand what these lines represent:
Delta Anchor VWAP:
A green line (Delta Anchor VWAP) represents a measure of market volume imbalance.
Delta2 Anchor VWAP:
A red line (Delta2 Anchor VWAP) shows another perspective of volume imbalance.
VWAP Delta Volume:
A light blue line (VWAP Delta Volume) displays a volume-weighted average of price.
VWAP Delta Volume2:
An orange line (VWAP Delta Volume2) shows another view of the volume-weighted average of price.
Delta3 Anchor VWAP:
A light blue line (Delta3 Anchor VWAP) represents a combination of the previous measures.
Delta4 Anchor VWAP:
A purple line (Delta4 Anchor VWAP) is another combination, providing an overall view.
These lines are based on different conditions and calculations related to trading volume. When you activate "showDeltaVWAP," these lines appear on the chart, aiding in better understanding market behavior.
"Show Faster Volatility" is an option that you can enable or disable. When activated (set to true), it displays special lines on the chart called "Faster Volatility VWAP," "Faster Volatility VWAP2," and "Faster Volatility VWAP3." Let's understand what these lines represent:
Faster Volatility VWAP:
A purple line (Faster Volatility VWAP) is a Volume Weighted Average Price (VWAP) that is calculated more quickly based on short-term price reversal patterns.
Faster Volatility VWAP2:
A light gray line (Faster Volatility VWAP2) is another Volume Weighted Average Price (VWAP) that is calculated even more quickly based on even shorter-term price reversal patterns.
Faster Volatility VWAP3:
A purple line (Faster Volatility VWAP3) is another Volume Weighted Average Price (VWAP) calculated rapidly based on even shorter-term price reversal patterns.
These lines are designed to indicate moments of possible exhaustion of volatility in the market, suggesting that there may be a subsequent increase in volatility. When you activate "Show Faster Volatility," these lines are displayed on the chart.
"Show Average VWAPs Imbalance" displays weighted averages of different Volume Weighted Average Prices (VWAPs) in relation to specific market conditions. Here's an explanation of each component:
Standard VWAP:
The blue line represents the standard VWAP, a volume-weighted average of asset prices over a specific period.
VWAP with Added Imbalance (avg_vwap2):
The pink line is a weighted average that adds an imbalance value to the standard VWAP. This component highlights periods of market imbalance.
VWAP with Balance (avg_vwap3):
The lilac line is a weighted average that adds balance based on the imbalance between uptrend and downtrend, reflecting changes in volume. This provides insights into supply and demand dynamics.
Overall Average of VWAPs (avg_vwaptl):
The violet line is a weighted average that incorporates both standard and adjusted VWAPs, offering an overview of market behavior under different considered conditions.
Visual Customization (Show Average VWAPs Imbalance):
Users have the option to show or hide these average lines on the chart, allowing for a clear visualization of market trends.
"Show Min Variation VWAP" is associated with the calculation and display of a smoothed version of the Volume Weighted Average Price (VWAP), taking into account the minimum price variation over a specific period.
"How Imbalance Anchor VWAP Calculated as the smoothed relationship between liquidity difference and maximum VWAP equilibrium" is associated with the calculation and display of a smoothed version of the Imbalance Anchor VWAP. Here is a detailed explanation:
Calculations and Smoothing:
The variable "smoothed_difference" represents the exponential moving average (EMA) of the difference between two variables related to liquidity.
"smoothed_difference2" is the division of "smoothed_difference" by the maximum variation of the VWAP Equilibrium.
"smoothed_difference3" involves additional manipulation of "smoothed_difference" and "vwap_delta3."
"smoothed_difference4" incorporates the previous results, adjusted by the value of the VWAP.
Visual Customization:
The user has the option to enable or disable the display on the chart.
The line is colored in a shade of green.
It provides a smoothed representation of the Imbalance Anchor VWAP.
The line is colored in a shade of blue, and the calculation involves the summation of moving averages (20, 50, 200). Afterward, there is division by 3. Additionally, there is the summation of moving averages (766, 866, 966), divided by 3. The final step is to add these results together and divide by 2. media name is Imbalance Value2
Show VWAP Equilibrium (Max Variation) Calculated as the difference between two VWAPs derived from the highest and lowest price changes
Show Equilibrium VWAP Calculated as the sum of VWAP and (sma200 - sma20)
calculate the difference between the media of 200 to 20
Show Equilibrium VWAP Calculated as the sum of VWAP and (766+866+966)/3 - (sma200 - sma20)
Show Equilibrium VWAP Standard Deviation Calculated as the Exponential Moving Average (EMA) of the Standard Deviation of SMA (sma200 + sma20 + sma8)/3
Show Equilibrium VWAP Delta Calculated as the ratio of the smoothed VWAP Delta Result componentes
Show Standard Deviation Equilibrium VWAP Delta: Calculated as the Standard Deviation between the Average of VWAP Delta Result Components and Their Smoothed Versions
This average attempts to calculate the equilibrium."
vwap_equilibrium:
Definition: Represents the Volume Weighted Average Price (VWAP) adjusted by the volume-weighted average of the price (hl2) multiplied by volume, focusing on periods of volume equilibrium.
Calculation: Utilizes the simple moving average weighted (sma) of the product of the volume-weighted average price and volume only when there is no volume imbalance.
Interpretation: This indicator provides a view of the volume-weighted price trend during moments when the market is in equilibrium, meaning there is no noticeable imbalance in volume conditions. The calculation of VWAP is adjusted to reflect market characteristics during periods of stability.
vwap_percent_condition:
Definition: Represents the Volume Weighted Average Price (VWAP) adjusted by the volume-weighted average of the price multiplied by volume, with a focus on conditions where the percentage volume variation surpasses a predefined threshold.
Calculation: Utilizes the simple moving average weighted of the product of the volume-weighted average price and volume only when the percentage volume variation exceeds a specific threshold.
Interpretation: Provides insight into the volume-weighted price trend during conditions where the percentage volume variation exceeds a predefined limit.
The objective of these two VWAPs is to calculate possible equilibrium points between buyers and sellers.
The indicator works for all timeframes This indicator can be adjusted according to the preferences and characteristics of the specific asset or market. It provides clear visual information and can be used as a complementary tool for technical analysis in trading strategies.
Interesting
Interesting
lookback period 7 , 12, 20,70,200, 500,766,866,966
imbalance threshold 2.4, 3.3 ,4.2
The objective of this indicator is to identify and highlight various points of imbalance and equilibrium.
Digital Market Insight's Dream IndicatorWhy the Digital Market Insight’s Dream Indicator Blends Sixteen Technical Indicators
Analyzing markets can be overwhelming with so many technical indicators available. Choosing the right ones and combining them effectively can be a challenge. This indicator simplifies this by leveraging the power of collaboration.
Unleashing the power of automation, Digital Market Insight's Dream Indicator simplifies both day trading and long-term investing by automatically generating buy and sell signals.
This user-friendly indicator simplifies everything, making it easy to identify profitable trades where other indicators usually fall short.
Instead of relying on a few popular indicators, the Digital Market Insight’s Dream Indicator incorporates sixteen diverse metrics. Each offers unique insights into different aspects of market behavior, giving you a complete picture that goes beyond what any single indicator can provide.
Combining indicators that analyze trends, momentum, volume, and volatility allows you to see the market from different angles. This combination creates a powerful tool that can uncover opportunities missed by traditional indicators.
Digital Market Insight’s Dream Indicator uses sophisticated algorithms to balance the influence of each individual indicator. This ensures that no single metric dominates the analysis, providing a more objective perspective.
In short, Digital Market Insight’s Dream Indicator makes the complex task of choosing and combining indicators seamless and automated. This allows traders of all experience levels to benefit from powerful technical analysis, unlocking potentially profitable opportunities they might have missed otherwise.
Leveraging sixteen popular technical indicators, the Dream Indicator from Digital Market Insight meticulously dissects trends, momentum, volume, and volatility to offer comprehensive market insights. Inspired by the Relative Strength Index (RSI), it scales these indicators and identifies breakouts with optimized overbought and underbought thresholds. This combined data is compared to the security, generating a divergence line. The line's magnitude and speed are monitored, leading to the creation of buy and sell signals.
The following is a list of the sixteen indicators that it tracks:
• Parabolic SAR
• Directional Movement Index
• Chande Momentum Oscillator
• Commodity Channel Index
• Volume-Weighted Average Price
• On-Balanced Volume
• Money Flow Index
• Relative Strength Index
• Moving average convergence divergence
• Bollinger Band
• Stochastic
• True Strength Index
• Chaikin Money Flow
• Williams %R
• Sentiment
• Supertrend
While the combination of technical indicators is intriguing, the Dream Indicator's true power lies in its dynamic false signal suppression settings. This system can adapt to frequent market changes in real-time, allowing for a nuanced understanding of market direction. Imagine a rapid price swing triggered by a news announcement. While other indicators provide static signals, the Dream Indicator takes a dynamic approach. By offering multiple adjustable factors, it allows users to customize the indicator to their specific needs and preferences, potentially revealing deeper insights into market trends.
The following is the list of suppression settings:
• Suppress Using an SMA Window? Size?
This suppresses when the security price varies outside a simple moving average window. The window size can be adjusted.
• Suppress Using Supertrend Direction? Factor?
This suppresses when the Supertrend’s direction, increasing or decreasing, is contrary to the security’s gain. The Supertrends factor can be adjusted.
• Suppress Using Security ROC? ROC?
This suppresses when the security’s rate of change (ROC) is above a selectable value.
• Suppress Unfavorable Convergence/Divergence?
The buy alert is suppressed when the faster exponential moving average is less than the slower exponential moving average for both the sentiment and standard MACD. The sell alert is suppressed when the slower exponential moving average is less than the faster exponential moving average for both the sentiment and standard MACD.
• Suppress Unfavorable Trending Sentiment?
This suppresses buy alerts when the sentiment value is lowering and its value is currently below zero. This suppresses sell alerts when the sentiment value is rising and its value is currently above zero.
• Suppress Using Contrary Accumulated Forecast?
Suppress when the combined buy/sell signal is contrary to the security trend.
• Don’t Suppress First Alert?
Always Display First Alert.
How to use:
1. Activate the Indicator:
• Add the Digital Market Insight’s Dream Indicator.
• Select a security.
• Adjust the Alert Frequency, if desired.
• Configure the ATR Multiplier for optimal trailing stop orders, if desired.
2. Set audible alerts, if desired:
1. Select a security and adjust settings if you haven’t yet.
2. Select Alert at the top of the TradingView window or press + .
3. Select Digital Market Insight’s Dream Indicator across from Condition.
4. Select Alert for Buy across from Condition.
5. Select Once Per Bar Close across from Trigger.
6. Select Notifications at the top of the Create Alert window.
7. Select the Play sound checkbox.
8. Select the Create button at the bottom of the Create Alert window.
9. Repeat steps 2–8, substituting Alert for Sell in step 4.
3. Watch displayed information for opportunities:
• Circle Alerts: Green circles indicate buy signals, red ones signal sell opportunities. Larger circles are audible, providing immediate trading prompts.
• SMA Gain: This metric reflects the average profit potential per trade, assuming a sideways trend.
4. Utilize False-Signal Suppression:
• Select the appropriate false-signal suppression methods based on your trading strategy and risk tolerance.
• Monitor the SMA Gain and Circle Alerts as you adjust these settings to see their impact.
• Eliminate misleading signals and gain a clearer picture of the market.
5. Combine with Other Indicators:
• Consider displaying the Sentiment MACD and Divergence RSI for further insights.
• Utilize these additional indicators alongside Dream Indicator's signals for a more comprehensive analysis.
The following describes the displayed information and how to use it. It is in three levels: location/displayed text/description.
Upper Left/Week:/
Displays week gain.
Upper Left/Day:/
Displays day’s gain.
Upper Left/SMA:/
Displays SMA’s gain. The SMA gain is calculated from the average difference between the buy and sell alerts and a simple moving average. This makes it easy to compare differences between securities and setting changes. Basically, the SMA gain is the average profit that can be expected from a single buy sell trade, assuming that the security is trending sideways. Note: With a free TradingView account, the data will be limited, and therefore this value will be less accurate.
Upper Center/Misc. text/
A variety of security information is displayed here, including description, country, type, sector, and industry. The analyst's recommendation is also displayed when selected in the settings section.
Upper Right/ #🕪⚠:/
Displays number of audible alerts. This shows how many audible alerts you’ll get per day on average for the selected security. You will see this number change as you adjust the Alert Frequency setting in the indicator settings section.
Lower Right/ ATR × X.X:/
Displays the Average True Range (ATR) multiplied by a multiplier that is located in the indicator settings section. The upper and lower ATR values are also displayed. The Average True Range is a measure of price volatility and can be used for things like trailing stop orders. Place your stop-loss order a multiple of the ATR below your entry price for long trades and above your entry price for short trades. This will give your trade some room to breathe while still protecting you from significant losses. Adjust the multiple based on market volatility. In more volatile markets, use a larger multiple to account for potentially wider price swings.
The following is a description of important items in the indicator settings section:
--- MISC. SETTINGS ---
Alert Frequency
Alert Frequency will increase or decrease both the displayed alerts and audible alerts. This is one of the more important indicator settings and should be adjusted according to your investing style. If you have a large number of active alerts, you may want to reduce the alert frequency to avoid being overwhelmed. However, if you set this too low, you may miss some trading opportunities.
ATR Multiplier
The ATR multiplier is a multiplier for the Average True Range which is described above. It can help with finding trailing stop order values.
Use Sentiment Coloring
This changes the color of some graphs to a color gradient, indicating the security's sentiment, and may help you identify trend changes.
Sentiment Calc Index
This setting mainly affects the sentiment color scheme and the displayed sentiment graph. Adjust it to match the index in which the security is traded. You can find it at the top left of the TradingView window.
Display Analyst’s Recommendations
This will display the analyst's recommendations and could be handy when unsure whether a security is worth investing in. :-)
--- GRAPH DISPLAY SETTINGS ---
These are additional graphs that can be displayed and can be a valuable addition to your investing. Consider displaying the Sentiment MACD and the Divergence RSI which are both variations of the standard MACD and RSI indicators.
--- FALSE ALERT SUPPRESSION ---
These settings will allow suppression of false signals and are an important feature of this indicator. They will manipulate the gain. Watch the displayed SMA Gain and Circle Alerts as you toggle some of these settings. Some Circle Alerts will appear or vanish, and the SMA Gain will change. Remember, the larger circle alerts are the only ones that will be audible. Both small and large circles indicate a buy or sell alert: green for buy and red for sell.
Disclaimer:
This is not Investment Advice. Trading involves inherent risks, and all decisions should be made at your own discretion.
Dynamic Trend Hunter [Quantigenics]The "Dynamic Trend Hunter” script focuses on trend identification, dynamic entry and exit signals, and effective risk management. While a standalone trading script designed for versatile application across all markets, it can also be complemented by other indicators for enhanced analysis.
Core Features:
Dynamic Trend Indicator: Central to the script, this indicator discerns market trend direction using a color-coded system. Blue indicates an uptrend, red a downtrend, and a flat line signifies a sideways market.
Buy and Sell Signals: Provides clear, on-chart buy and sell signals to assist in identifying optimal entry points in alignment with the trend.
Profit Target Exits: A key feature designed to help traders lock in profits at strategic points. This feature uses a sophisticated mechanism (outlined in more detail below) to identify potential exit points, signaling the trader to close a position and secure gains before a potential market reversal.
Dynamic Stop Loss Levels: Essential for risk management, these levels adjust automatically, providing a mechanism for trailing stop losses and safeguarding against adverse market movements.
Technical Composition:
Dynamic Trend Indicator:
Calculation Method: Utilizes a blend of the highest and lowest prices over a specified length, averaged to create a trend line. This line is helpful in identifying the overall market trend.
Color Coding: The trend line changes color based on its relation to price action. A blue line indicates an uptrend when prices are consistently above this average line, while a red line signifies a downtrend when prices stay below it.
Signal-Based Trading:
Trend Entry Signals: Generated when there's a shift in the color of the trend line, indicating a potential change in market direction.
Pullback Entries: Identified when the closing price crosses the previous high (for long entries) or low (for short entries), while also considering the current trend line position.
Dynamic Stop Loss Levels:
Calculation: Stop loss levels are dynamically determined using the highest and lowest closing prices over the 'Length' period. These levels adjust with market movements, providing a trailing stop loss mechanism.
Visualization: Depicted as colored dots on the chart, changing in response to the market's movement relative to the trend line.
Oscillator for Dynamic Exits:
Mechanism: The script employs an oscillator to identify potential exit points, signaled by yellow dots. This oscillator is based on the relative extremity of the current price action compared to recent price movements.
Alerts: Dynamic exits trigger alerts when the oscillator reaches specified threshold levels, signaling potential market reversals or exhaustion points.
Customization and Flexibility:
Length Adjustment: The primary 'Length' input parameter allows traders to modify the sensitivity of the trend line and stop levels, catering to different trading styles and market conditions.
Alert Customization: Traders can set alerts for trend line changes and dynamic exits, ensuring timely responses to market movements.
Input Parameter Settings:
Intra-Bar Order Generation (IntraBar): Enables real-time signal generation within the current bar or after its closure.
Dynamic Exits (DynamicExits): Toggles the visibility of dynamic exit signals for profit-taking.
Dynamic Trend Length: Defines the lookback period for calculating the trend line. This length, which is adjustable and set by default to 21, specifies the number of bars over which the highest and lowest prices are analyzed to determine the trend line.
Dynamic Stop Loss Levels Length: This parameter defines the lookback period for calculating stop loss levels. It sets the number of bars used to determine the highest and lowest values for stop loss positioning. Adjusting this length allows traders to customize the sensitivity and placement of stop loss levels in accordance with their trading strategy and risk tolerance. This feature is crucial for tailoring stop loss settings to different market conditions and volatility levels, ensuring more effective risk management. Note: that initial stop loss levels, and tighter stop losses, can be set behind the Dynamic Trend Line itself.
Show Trend/Pullback Entries: Controls the display of specific entry signals based on trend continuation or market pullbacks.
Alert Settings: Options for setting alerts on trend line changes and dynamic exits, enhancing trade management.
Customizable Colors: Allows personalization of stop level and trend line colors for better chart visualization.
How to Trade with the Dynamic Trend Hunter:
Trend Following: Enter trades in the direction of the trend indicated by the color-coded trend line.
Pullback Entries: Look for pullback entry signals during established trends for additional entry points.
Dynamic Exits: Use yellow dot signals and dynamic stop loss levels for determining exit points or to adjust stop losses.
Risk Management: Employ the dynamic stop loss levels to manage risk effectively and protect against significant losses.
Alerts and Notifications:
Traders can set up alerts for trend line changes and dynamic exits, ensuring they are promptly informed about critical market movements and can react accordingly.
Conclusion:
The "Dynamic Trend Hunter " is a comprehensive and adaptable trading tool, suitable for various market conditions and trading styles. Its ability to provide clear trend indications, along with dynamic entry and exit signals, makes it an invaluable asset for traders aiming to enhance their market analysis and decision-making process. While it is a standalone system, it can be used in conjunction with other indicators to further refine trading strategies.
While we believe this tool may enhances your trading strategy, we encourage thorough familiarization before live trading. Remember, trading involves risk, and past performance is not indicative of future results.
You can see the “Author’s instructions" below to get immediate access to Dynamic Trend Hunter & the rest of the “Quantigenics Premium Indicator Suite”.
Eternal Moving AverageA moving average with absolutely no* settings??? Now that is a challenge.
* The only setting is for the user to change the calculation method of the dataset.
A trader must have their mind on recent price action. At the same time they must not miss the bigger picture. Instead of creating a moving average that takes some data into account (like 200 days), I decided to take all data into account. Each chart is analyzed separately. A custom algorithm generates moving averages, some slower, some faster.
In the future I may tweak the lengths of the algorithm. It is a hard process and it will take user-feedback as well as personal research for future alterations of the algorithm. It is however a complete, working product at the time of writing.
The basis of this moving average is EMA. It has the responsiveness of EMA, that takes more recent data into account. Contrary to some MAs, it preserves long-term trends.
As a hidden extra, with this moving average no candle is lost. Everything is analyzed without repainting.
This indicator does not provide any signals. The meaning of any lines crossing is left to the trader for explanation. This indicator helps trend analysts retain perspective of past price action.
Urika Relative PriceThe Urika Relative Price (URP) indicator is designed to compare the current price of an asset to an average of previous closing prices. It aims to show whether the current price is above or below the historical average and whether it's increasing or decreasing relative to that average. URP is more focused on the relationship between the current price and its historical context.
Calculation:
URP calculates the difference between the current price and the average of previous prices. It uses this difference to create a histogram that can be green (if the current price is higher than the historical average) or red (if it's lower). The color lightens if the current bar is shorter than the previous bar, providing additional visual information.
Total number strength by ticker volumeThis is about stocks, which I always analyze.
Figure this out by looking at what the code calls ta.secutity.
This indicator plots the highest value of the ratio of total volume to individual volume for the stock you are analyzing, and the histogram tumbles to red when the stock changes in that value. The changed value is plotted as a label above that histogram. By using this indicator, you can determine which is currently the focus of attention, and if there are outliers, you will know by the histogram's detachment.
The parameters are explained below, but Timefream is the market value to be determined
setvalue sets the item to be judged, and lenght sets the time period to be judged. setvalue is the parameter that determines the timeframe for the judgment. vol is the volume, VP is the total purchase price, VPMA is its average, VPMAD is the detachment from its average, MA is the average of the vol, MAD is the detachment from its average, LRC is the average of the vol, and LRC is the average of the vol. value of linear regression, and also
The calculation of detachment is not negative because it comes out as a square, but it is not a problem because it is calculated as a percentage.
There is a *problem, and if the timefreame to be displayed is not calculated below the value of timefreame, an error will occur. We are currently searching for a solution to this problem. If you know the solution, I would appreciate it if you could let me know in the chat.
RSI 11 IndicatorThis script explains how RSI can be used to catch market moves in trend, reversal or sideways market.
What is RSI indicator:-
RSI is a momentum oscillator which measures the speed and change of price movements. RSI moves up and down (oscillates) between ZERO and 100. Generally RSI above 70 is considered overbought and below 30 is considered oversold. Some traders may use a setting of 20 and 80 for oversold and overbought conditions respectively. However this may reduce the number of signals. You can also use RSI to identify divergences, strength, reversals, general trend etc.
Calculation:-
There are three basic components in the RSI - Avg Gain, Avg Loss & RS.
Avg Gain = Average of Upward Price Change
Avg Loss = Average of Downward Price Change
RS = (Avg Gain)/(Avg Loss)
RSI = 100 – (100 / (1 +RS ))
First Calculation:-
RSI calculation is based on default 14 periods.
Average gain and Average loss are simple 14 period averages.
Average Loss equals the sum of the losses divided by 14 for the first calculation.
Average Gain equals the sum of the Gains divided by 14 for the first calculation.
First Average Gain = Sum of Gains over the past 14 periods / 14.
First Average Loss = Sum of Losses over the past 14 periods / 14.
The formula uses a positive value for the average loss.
RS values are smoothed after the first calculation.
Second Calculation:-
Subsequent calculations multiply the prior value by 13, add the most recent value, and divide the total by 14.
Average Gain = / 14.
Average Loss = / 14.
if
Average Loss = 0, RSI = 100 (means there were no losses to measure).
Average Gain = 0, RSI = 0 (means there were no gains to measure).
Logic of this indicator:-
RSI is an oscillator that fluctuates between zero and 100 which makes it easy to use for many traders.
Its easy to identify extremes because RSI is range-bound.
But remember that RSI works best in range bound market and is less trustworthy in trending markets.
A new trader need to be cautious because during strong trends in the market/security, RSI may remain in overbought or oversold for extended periods.
Chart Timeframe:-
RSI indicator works well on all timeframes.
Timeframe depends on which strategy or settings are you using.
Generally a lower timeframe like 1 min, 3 min, 5 min, 15 min, 30 min, 1 Hr etc is used for intraday trades or short duration trades
and higher timeframes like 1 day, 1 week, 1 month are used for positional or long term trades.
Please Read the Idea "Mastering RSI with 11 Strategies" to understand this indicator better.
Indicator 1
Basis Strategy of Overbought and Oversold
Usually an asset with RSI reading of 70 or above indicates a bullish and an overbought situation.
overbought can be seen as trading at a higher price than it should.
traders may expect a price correction or trend reversal and sell the security.
but RSI indicator can stay in the overbought for a long time when the stock is in uptrend - This may trap an immature trader.
an Immature trader will enter a sell position when RSI become overbought (70), whereas a mature trader will enter sell position when RSI line crosses below the overbought line (70).
An asset with RSI reading of 30 or below indicates a bearish and an oversold condition.
oversold can be seen as trading at a lower price than it should.
traders may expect a price correction or trend reversal and buy the security.
but RSI indicator can stay in the oversold for a long time when the stock is in downtrend - This may trap an immature trader.
an Immature trader will enter a buy position when RSI become oversold (30), whereas a mature trader will enter buy position when RSI line crosses above the oversold line (30).
Center dotted Mid line is RSI 50.
Chart RSI is shown in yellow colour.
Red shaded area above the red horizontal line shows the stock or security has entered overbought condition. "R" signal in red shows a likely downside reversal, means it may be a likely Selling opportunity.
Green shaded area below the green horizontal line shows the stock or security has entered oversold condition. "R" signal in green shows a likely upside reversal, means it may be a likely Buying opportunity.
Note:-
so its better to wait for reversal signal.
traders may use 20 instead of 30 as oversold level and 80 instead of 70 as overbought level.
new traders may learn to use the indicator as per the prevailing trend to get better results.
false signals may be avoided by using bullish signals in bullish trend and bearish signals in bearish trend.
Indicator 2
RSI Strength Crossing 50
RSI crossing centreline 50 in the below chart showing strength and buy/sell signal.
Centre line is at RSI 50.
if RSI is above 50 its considered bullish trend. (increasing strength)
if RSI is below 50 its considered bearish trend. (decreasing strength)
RSI crossing centre line (50) upside may be a buy signal.
RSI crossing centre line (50) downside may be a sell signal.
"B" signal in green colour shows that RSI is crossing above Mid 50 horizontal line, which may be a likely Buy signal.
"S" signal in red colour shows that RSI is crossing below Mid 50 horizontal line, which may be a likely Sell signal.
Indicator 3
RSI 40 and RSI 60 Support and Resistance
RSI 40 acting as support in the below chart
In an uptrend RSI tends to remain in the 40 to 90 range with 40 as support (buying opportunity at support).
RSI 60 acting as resistance in the below chart
In a downtrend RSI tends to remain in 10 to 60 range with 60 as resistance (selling opportunity at resistance).
"40" signal in green colour shows that RSI is crossing above 40 horizontal line, which may be a likely Support in making and a Buy signal.
"60" signal in red colour shows that RSI is crossing below 60 horizontal line, which may be a likely Resistance in making and a Sell signal.
Note:-
These ranges may change depending on RSI settings and change in the market trend.
Indicator 4
RSI Divergence
Below chart shows a simple example of Bullish Divergence and Bearish Divergence.
An RSI divergence occurs when price moves in the opposite direction of the RSI.
A bullish divergence is when price is falling but RSI is rising. which means RSI making higher lows and price making lower lows (buy signal).
A bearish divergence is when price is rising but RSI is falling. which means RSI making lower high and price making higher highs (sell signal).
Divergences are more strong when appear in an overbought or oversold condition.
There may be many false signals during a strong uptrend or strong downtrend.
In a strong uptrend, RSI may show many false bearish divergences before finally reversing down.
same way in a strong downtrend, RSI may show many false bullish divergences before finally reversing up.
"Bull Div" signal along with divergence line in green colour shows Bullish Divergence, which may be a likely Buy signal.
"Bear Div" signal along with divergence line in red colour shows Bearish Divergence, which may be a likely Sell signal.
Indicator 5
Double Top & Double Bottom
Double Bottom = RSI goes below oversold (30). RSI comes back above 30. RSI falls back again towards 30 and again rise making a Double bottom. its a signal of buying and likely upside reversal.
Double Top = RSI goes above overbought (70). RSI comes back below 70. RSI rises back again towards 70 and again fall making a Double top. its a signal of selling and likely downside reversal.
Double Bottom is shown with Green Dashed line joining two low's of RSI indicating a likely Buy Signal.
Double Top is shown with Red Dashed line joining two High's of RSI indicating a likely Sell Signal.
Indicator 6
Trendline Support and Resistance
Below chart shows RSI Trendline Resistance and Support
RSI resistance trendline = Connect three or more points on the RSI line as it falls to draw a RSI downtrend line (RSI resistance trendline).
Everytime it takes resistance from a RSI downtrend line its a selling opportunity.
RSI support trendline = Connect three or more points on the RSI line as it rises to draw a RSI uptrend line (RSI support trendline).
Everytime it takes support on a RSI uptrend line its a buying opportunity.
RSI Resistance trendline shown in Red colour indicating a likely fall again after rejection from this Red trendline till the time RSI breaks above it to change the trend from Bearsih to Bullish.
RSI support trendline shown in Green colour indicating a likely Rise again after support from this Green trendline till the time RSI breaks below it to change the trend from Bullish to Bearish.
Indicator 7
Trendline Breakout and Breakdown
Below chart shows RSI Trendline Breakout and Breakdown
RSI resistance trendline Breakout = Connect three or more points on the RSI line as it falls to draw a RSI downtrend line (RSI resistance trendline).
Whenever it breakout above RSI resistance trendline its a buying opportunity.
RSI support trendline Breakdown = Connect three or more points on the RSI line as it rises to draw a RSI uptrend line (RSI support trendline).
Whenever it breakdown below RSI support trendline its a selling opportunity.
Note:-
Correlate both the RSI and the closing price to ensure proper breakout or breakdown.
Challenge is to correctly identify if a breakout or breakdown is sustainable or its a false signal.
Indicator 8
RSI Crossover same timeframe
RSI with two different RSI length crossing each other on same timeframe.
when lower RSI length crossing above higher RSI length its a buy signal.
when lower RSI length crossing below higher RSI length its a sell signal.
for example RSI with length 7 & length 14 on 15 Minutes timeframe.
Green Cross shows that Fast RSI is crossing above Slow RSI on the same timeframe with different RSI length Settings, which means it may be a likely Buy Signal.
Red Cross shows that Fast RSI is crossing below Slow RSI on the same timeframe with different RSI length Settings, which means it may be a likely Sell Signal.
Indicator 9
RSI Crossover Multi timeframe
RSI with same RSI length but on two different timeframes crossing each.
when lower timeframe RSI crossing above higher timeframe RSI its a buy signal.
when lower timeframe RSI crossing below higher timeframe RSI its a sell signal.
for example RSI with length 14 on 5 Minutes and 1 Hr timeframes.
Green Cross shows that Lower Timeframe RSI is crossing above Higher Timeframe RSI with same RSI length Settings, which means it may be a likely Buy Signal.
Red Cross shows that Lower Timeframe RSI is crossing below Higher Timeframe RSI with same RSI length Settings, which means it may be a likely Sell Signal.
Indicator 10
RSI EMA/WMA/SMA Crossover
when RSI crossing above EMA/WMA/SMA its a buy signal.
when RSI crossing below EMA/WMA/SMA its a sell signal.
Green Circle shows that RSI is crossing above EMA/WMA/SMA etc, which means it may be a likely Buy Signal.
Red Circle shows that RSI is crossing below EMA/WMA/SMA etc, which means it may be a likely Sell Signal.
Indicator 11
RSI with Bollinger bands
Bollinger bands and RSI complimenting each other and giving a Buy and Sell signal in below chart
if a security price reaches upper band of a Bollinger Band channel and also the RSI is above 70 (overbought), a trader can look for selling opportunities (reversal) (sell).
but in case price reaches upper band of a Bollinger Band channel but RSI is not above 70 (overbought), there may be chance that security remains in an uptrend, so a trader may wait before entering a sell position.
if a security price reaches lower band of a Bollinger Band channel and also the RSI is below 30 (oversold), a trader can look for buying opportunities (reversal) (buy).
but in case price reaches lower band of a Bollinger Band channel but RSI is not below 30 (oversold), there may be chance that security remains in an downtrend, so a trader may wait before entering a buy position.
so bollinger band with RSI can give a double confirmation on a reversal.
Buy Signal = If the RSI is below Green Horizontal line (Oversold zone) and also below Lower Bollinger Band it indicates that an upside reversal may come, which means that it may be a likely Buy Signal.
Sell Signal = If the RSI is above Red Horizontal line (Overbought zone) and also above Upper Bollinger Band it indicates that an Downside reversal may come, which means that it may be a likely Sell Signal.
Special Thanks to //© HoanGhetti for RSI Trendlines.
Limitations of the RSI:-
RSI works best in range bound market and is less trustworthy in trending markets.
So new traders may get trapped in an uptrend or a downtrend if they forget to see the overall long term trend of that security.
Traders should set stop loss and take profit levels as per risk reward ratio.
Note:
Don't confuse RSI and relative strength. RSI is changes in the price momentum of a security.
whereas relative strength compares the price performance of two or more securities.
Like other technical indicators, RSI also is not a holy grail. It can only assist you in building a good strategy. You can only succeed with proper position sizing, risk management and following correct trading Psychology (No overtrade, No greed, No revenge trade etc).
THIS INDICATOR OF RSI IS FOR EDUCATIONAL PURPOSE AND PAPER TRADING ONLY. YOU MAY PAPER TRADE TO GAIN CONFIDENCE AND BUILD FURTHER ON THESE. PLEASE CONSULT YOUR FINANCIAL ADVISOR BEFORE INVESTING. WE ARE NOT SEBI REGISTERED.
Hope you all like it
happy learning.
Average Percentage ChangeThis indicator computes the average percentage change between Simple Moving Averages (SMAs) of high and low prices over a specified lookback length.
The 'length' input determines the period for calculating the SMAs.
The resulting line, represented by 'AVG', displays the percentage change, indicating potential shifts or trends in price momentum.
Traders can use this indicator to identify periods of potential volatility or significant price movements.
Note for Traders:
- Adjust the 'length' input for different analysis periods.
- Watch for crossovers or divergences between the AVG line and price action for potential trading signals.
- Combine with other indicators or analysis techniques for comprehensive market insights.
Originality and Usefulness:
This script provides a unique perspective by evaluating the average percentage change, derived from SMAs of high and low prices, offering traders insights into potential price momentum shifts.
Triple Moving Averages (Gradient, Alarm & Multi TF)Triple Moving Averages
Features:
- 7 Different MA's (RMA, SMA, EMA, 'WMA', HMA, DEMA, EMA)
- Gradient coloring
- Multi timeframe
- Crossover alarm's and alarm delay function
- Forecasting (By removing the last bar in the MA period)
Moving Average to easely identify the trend and trend strength.
Gradient coloring and personal color preferences can be made.
Alert Delay System
When timing is essentially, this helps you get the alarm just in time.
Use it with the triggers ONLY ONCE PER BAR or ONLY ONCE. Then the alarm comes before the close, but you don't have to worry about it triggering just seconds after bar open :)
Default = 15m Recomended for 1h chart
Alarm's
Get the alarms before it's actually crossing or when it crosses
*This is not a selfmade indicator but simply merging from several indicators and added alert delay function and multi timeframe support
// Credits
- BigBitsIO Script : Scripting Tutorial 6 Triple Many Moving Averages Forecasting
- PineCoders Script : Color Gradient Framework PineCoders
Advanced Dynamic Threshold RSI [Elysian_Mind]Advanced Dynamic Threshold RSI Indicator
Overview
The Advanced Dynamic Threshold RSI Indicator is a powerful tool designed for traders seeking a unique approach to RSI-based signals. This indicator combines traditional RSI analysis with dynamic threshold calculation and optional Bollinger Bands to generate weighted buy and sell signals.
Features
Dynamic Thresholds: The indicator calculates dynamic thresholds based on market volatility, providing more adaptive signal generation.
Performance Analysis: Users can evaluate recent price performance to further refine signals. The script calculates the percentage change over a specified lookback period.
Bollinger Bands Integration: Optional integration of Bollinger Bands for additional confirmation and visualization of potential overbought or oversold conditions.
Customizable Settings: Traders can easily customize key parameters, including RSI length, SMA length, lookback bars, threshold multiplier, and Bollinger Bands parameters.
Weighted Signals: The script introduces a unique weighting mechanism for signals, reducing false positives and improving overall reliability.
Underlying Calculations and Methods
1. Dynamic Threshold Calculation:
The heart of the Advanced Dynamic Threshold RSI Indicator lies in its ability to dynamically calculate thresholds based on multiple timeframes. Let's delve into the technical details:
RSI Calculation:
For each specified timeframe (1-hour, 4-hour, 1-day, 1-week), the Relative Strength Index (RSI) is calculated using the standard 14-period formula.
SMA of RSI:
The Simple Moving Average (SMA) is applied to each RSI, resulting in the smoothing of RSI values. This smoothed RSI becomes the basis for dynamic threshold calculations.
Dynamic Adjustment:
The dynamically adjusted threshold for each timeframe is computed by adding a constant value (5 in this case) to the respective SMA of RSI. This dynamic adjustment ensures that the threshold reflects changing market conditions.
2. Weighted Signal System:
To enhance the precision of buy and sell signals, the script introduces a weighted signal system. Here's how it works technically:
Signal Weighting:
The script assigns weights to buy and sell signals based on the crossover and crossunder events between RSI and the dynamically adjusted thresholds. If a crossover event occurs, the weight is set to 2; otherwise, it remains at 1.
Signal Combination:
The weighted buy and sell signals from different timeframes are combined using logical operations. A buy signal is generated if the product of weights from all timeframes is equal to 2, indicating alignment across timeframe.
3. Experimental Enhancements:
The Advanced Dynamic Threshold RSI Indicator incorporates experimental features for educational exploration. While not intended as proven strategies, these features aim to offer users a glimpse into unconventional analysis. Some of these features include Performance Calculation, Volatility Calculation, Dynamic Threshold Calculation Using Volatility, Bollinger Bands Module, Weighted Signal System Incorporating New Features.
3.1 Performance Calculation:
The script calculates the percentage change in the price over a specified lookback period (variable lookbackBars). This provides a measure of recent performance.
pctChange(src, length) =>
change = src - src
pctChange = (change / src ) * 100
recentPerformance1H = pctChange(close, lookbackBars)
recentPerformance4H = pctChange(request.security(syminfo.tickerid, "240", close), lookbackBars)
recentPerformance1D = pctChange(request.security(syminfo.tickerid, "1D", close), lookbackBars)
3.2 Volatility Calculation:
The script computes the standard deviation of the closing price to measure volatility.
volatility1H = ta.stdev(close, 20)
volatility4H = ta.stdev(request.security(syminfo.tickerid, "240", close), 20)
volatility1D = ta.stdev(request.security(syminfo.tickerid, "1D", close), 20)
3.3 Dynamic Threshold Calculation Using Volatility:
The dynamic thresholds for RSI are calculated by adding a multiplier of volatility to 50.
dynamicThreshold1H = 50 + thresholdMultiplier * volatility1H
dynamicThreshold4H = 50 + thresholdMultiplier * volatility4H
dynamicThreshold1D = 50 + thresholdMultiplier * volatility1D
3.4 Bollinger Bands Module:
An additional module for Bollinger Bands is introduced, providing an option to enable or disable it.
// Additional Module: Bollinger Bands
bbLength = input(20, title="Bollinger Bands Length")
bbMultiplier = input(2.0, title="Bollinger Bands Multiplier")
upperBand = ta.sma(close, bbLength) + bbMultiplier * ta.stdev(close, bbLength)
lowerBand = ta.sma(close, bbLength) - bbMultiplier * ta.stdev(close, bbLength)
3.5 Weighted Signal System Incorporating New Features:
Buy and sell signals are generated based on the dynamic threshold, recent performance, and Bollinger Bands.
weightedBuySignal = rsi1H > dynamicThreshold1H and rsi4H > dynamicThreshold4H and rsi1D > dynamicThreshold1D and crossOver1H
weightedSellSignal = rsi1H < dynamicThreshold1H and rsi4H < dynamicThreshold4H and rsi1D < dynamicThreshold1D and crossUnder1H
These features collectively aim to provide users with a more comprehensive view of market dynamics by incorporating recent performance and volatility considerations into the RSI analysis. Users can experiment with these features to explore their impact on signal accuracy and overall indicator performance.
Indicator Placement for Enhanced Visibility
Overview
The design choice to position the "Advanced Dynamic Threshold RSI" indicator both on the main chart and beneath it has been carefully considered to address specific challenges related to visibility and scaling, providing users with an improved analytical experience.
Challenges Faced
1. Differing Scaling of RSI Results:
RSI values for different timeframes (1-hour, 4-hour, and 1-day) often exhibit different scales, especially in markets like gold.
Attempting to display these RSIs on the same chart can lead to visibility issues, as the scaling differences may cause certain RSI lines to appear compressed or nearly invisible.
2. Candlestick Visibility vs. RSI Scaling:
Balancing the visibility of candlestick patterns with that of RSI values posed a unique challenge.
A single pane for both candlesticks and RSIs may compromise the clarity of either, particularly when dealing with assets that exhibit distinct volatility patterns.
Design Solution
Placing the buy/sell signals above/below the candles helps to maintain a clear association between the signals and price movements.
By allocating RSIs beneath the main chart, users can better distinguish and analyze the RSI values without interference from candlestick scaling.
Doubling the scaling of the 1-hour RSI (displayed in blue) addresses visibility concerns and ensures that it remains discernible even when compared to the other two RSIs: 4-hour RSI (orange) and 1-day RSI (green).
Bollinger Bands Module is optional, but is turned on as default. When the module is turned on, the users can see the upper Bollinger Band (green) and lower Bollinger Band (red) on the main chart to gain more insight into price actions of the candles.
User Flexibility
This dual-placement approach offers users the flexibility to choose their preferred visualization:
The main chart provides a comprehensive view of buy/sell signals in relation to candlestick patterns.
The area beneath the chart accommodates a detailed examination of RSI values, each in its own timeframe, without compromising visibility.
The chosen design optimizes visibility and usability, addressing the unique challenges posed by differing RSI scales and ensuring users can make informed decisions based on both price action and RSI dynamics.
Usage
Installation
To ensure you receive updates and enhancements seamlessly, follow these steps:
Open the TradingView platform.
Navigate to the "Indicators" tab in the top menu.
Click on "Community Scripts" and search for "Advanced Dynamic Threshold RSI Indicator."
Select the indicator from the search results and click on it to add to your chart.
This ensures that any future updates to the indicator can be easily applied, keeping you up-to-date with the latest features and improvements.
Review Code
Open TradingView and navigate to the Pine Editor.
Copy the provided script.
Paste the script into the Pine Editor.
Click "Add to Chart."
Configuration
The indicator offers several customizable settings:
RSI Length: Defines the length of the RSI calculation.
SMA Length: Sets the length of the SMA applied to the RSI.
Lookback Bars: Determines the number of bars used for recent performance analysis.
Threshold Multiplier: Adjusts the multiplier for dynamic threshold calculation.
Enable Bollinger Bands: Allows users to enable or disable Bollinger Bands integration.
Interpreting Signals
Buy Signal: Generated when RSI values are above dynamic thresholds and a crossover occurs.
Sell Signal: Generated when RSI values are below dynamic thresholds and a crossunder occurs.
Additional Information
The indicator plots scaled RSI lines for 1-hour, 4-hour, and 1-day timeframes.
Users can experiment with additional modules, such as machine-learning simulation, dynamic real-life improvements, or experimental signal filtering, depending on personal preferences.
Conclusion
The Advanced Dynamic Threshold RSI Indicator provides traders with a sophisticated tool for RSI-based analysis, offering a unique combination of dynamic thresholds, performance analysis, and optional Bollinger Bands integration. Traders can customize settings and experiment with additional modules to tailor the indicator to their trading strategy.
Disclaimer: Use of the Advanced Dynamic Threshold RSI Indicator
The Advanced Dynamic Threshold RSI Indicator is provided for educational and experimental purposes only. The indicator is not intended to be used as financial or investment advice. Trading and investing in financial markets involve risk, and past performance is not indicative of future results.
The creator of this indicator is not a financial advisor, and the use of this indicator does not guarantee profitability or specific trading outcomes. Users are encouraged to conduct their own research and analysis and, if necessary, consult with a qualified financial professional before making any investment decisions.
It is important to recognize that all trading involves risk, and users should only trade with capital that they can afford to lose. The Advanced Dynamic Threshold RSI Indicator is an experimental tool that may not be suitable for all individuals, and its effectiveness may vary under different market conditions.
By using this indicator, you acknowledge that you are doing so at your own risk and discretion. The creator of this indicator shall not be held responsible for any financial losses or damages incurred as a result of using the indicator.
Kind regards,
Ely
maRSI - Moving Averages for RSI with Outer BandsWhat distinguishes this indicator?
This indicator can help to identify a trend at an early stage or as a confirmation - based on a RSI and its Moving Average. It should invite you to experiment and thereby be adapted to your own way of trading.
The type of moving average could be defined: "SMA", "EMA", "DEMA", "TEMA", "SMMA", "LSMA", "HMA", "WMA"
A suggestion for interpretation of “maRSI”:
A cross over the middle line (Signal Line) can be interpreted as a trend change. Is often used for more aggressive trading styles.
Everything above the middle line (Signal Line) could be interpreted as Uptrend. Vice versa.
Depending on how the outer bands were configured, these could be interpreted as earlier signals of a trend change. Is often used for slightly less aggressive trading styles.
Depending on the selected moving average, more or less conservative signals can be output.
The plot "RSI" shows the RSI based on the settings you have made.
The plot "Signal Line" is colored and shows whether the Signal Line is up- or downtrending.
The plot "Direction: RSI to Signal Line" provides clear information about the direction in which the "Signal Line" intersects the RSI and where the RSI is to the "Signal Line". "1" means RSI above "Signal Line" and "-1" means RSI below "Signal Line"
The plot "Direction: Signal Line” provides clear information about the direction of the Signal Line. "1" means uptrending while "-1" means downtrending.
What do I need to consider?
By definition this indicator can be classified as lagging - since it based on historical prices/values. It may be advisable to add further indicators and an analysis of the market structure in order to confirm the signals issued by the indicator. Please note that when you make adjustments to any strategy, you always carry out particularly detailed tests.
Details concerning the crosses of maRSI with its Signal Line and Outer Bands:
#revision: lv07
ATR Based Stoploss - TakeProfit [CharmyDexter]
This script combines the power of Average True Range (ATR) and a Moving Average (MA) to dynamically set stop-loss and take-profit levels. It introduces a volatility surge condition and includes a risk management table for comprehensive trade insights.
1) **Originality:**
- This script is original in its approach to combining Average True Range (ATR) with a Moving Average (MA) to create a dynamic stop-loss and take-profit strategy. The addition of a volatility surge condition and the inclusion of a risk management table further contribute to its uniqueness.
2) **Functionality:**
- The script aims to provide traders with a dynamic stop-loss and take-profit strategy based on ATR, incorporating a volatility surge condition and a moving average. The risk management table displays crucial information, including the fund size, potential profit/loss, ATR values, and risk.
3) **Operation:**
- The script uses ATR to calculate volatility, identifying surges in volatility. It adjusts the stop-loss and take-profit levels based on the average of ATR during these surge periods. The moving average acts as a trend indicator, and the script dynamically adjusts stop-loss and take-profit levels accordingly.
4) **Usage:**
- Traders can use this script by applying it to their preferred financial instrument's chart. The script automatically plots the moving average and dynamically adjusts stop-loss and take-profit levels based on ATR and volatility surges. Users can observe the levels on the chart for potential trade management.
5) **Concepts:**
- The script employs concepts of ATR for volatility, moving average for trend identification, and a dynamic adjustment mechanism during volatility surges. Risk management is incorporated by calculating potential profit/loss percentages based on user-defined risk.
6) **Mashup Explanation:**
- The script combines ATR, moving average, and volatility conditions to create a comprehensive strategy. ATR determines the market's volatility, the moving average serves as a trend indicator, and volatility surges trigger dynamic adjustments to stop-loss and take-profit levels. The risk management table enhances the script's utility.
7) **Line Descriptions:**
- Blue Line (Moving Average): Indicates the trend direction.
- Lime Line (Long Take Profit): Represents the level for taking profit in a long position.
- Maroon Line (Short Take Profit): Represents the level for taking profit in a short position.
- Fuchsia Line (Short Stop Loss): Represents the level for setting a stop loss in a short position.
- Orange Line (Long Stop Loss): Represents the level for setting a stop loss in a long position.
8) **Line Usage:**
- Use the blue line for trend identification.
- When taking long positions, the close should be above the blue line.
- For long positions, the lime line is a potential take-profit level, and the orange line is a potential stop-loss level.
- For short positions, the maroon line is a potential take-profit level, and the fuchsia line is a potential stop-loss level.
- The risk management table provides insights into fund size, potential profit/loss, ATR values, and risk.
Note: The profit/loss calculations in this script may not be entirely accurate due to factors like market execution. Market execution may not always occur at the exact levels specified by the script due to slippage or delays in order processing. This can impact the realized profit or loss compared to the calculated levels.
It is crucial to note that this ATR Based Stop-loss - Take-Profit indicator is merely one tool among many that traders can employ to establish trading targets. Additional technical indicators are essential for taking trades and making informed decisions.
Commented-out sections for alerts and shape plotting are provided, allowing for visual and auditory notifications if desired.
It's crucial for traders to be aware of these factors and use the script as a tool within a broader trading strategy. Additionally, regular monitoring and adjustments based on real-time market conditions are recommended to enhance the accuracy of profit/loss assessments.
Impulse+This indicator is a trade setup inspired by the Impulse Trading System published by Alexander Elder.
This setup should only be used for long trades and not short trades.
This setup includes trend analysis using 4 EMA lines, volatility range using Keltner Channels, momentum on each bar using MACD and 10 EMA and also helps managing risk on each trade by calculating the max quantity for the max risk specified in the settings. Each of the above is described in detail below:
Trend Analysis
This indicator displays 4 EMA lines (10, 20, 50 and 200). These lines can serve as an indicator to gauge the trend of the stock.
Volatility Analysis
This setup also includes Keltner Channels using ATR 14 and 20 EMA with a multiplier of 2. Widening channel indicates an increase in volatility and vice versa.
Momentum Analysis
Momentum is calculated on each bar and are according color coded. The bar can have 3 possible colors. Aqua / Green indicates a bullish momentum. Gray indicates sideways momentum and Red indicates a bearish momentum.
The momentum is derived by using MACD and EMA 10.
If the EMA 10, MACD and MACD Histogram have a positive slope, the bar is colored green indicating a bullish momentum. While if all the 3 have a negative slope, the bar is colored red indicating a bearish momentum. However if there is a mismatch in the slope of the 3 entities, the bars are colored gray indicating sideways movement.
Risk Management
This indicator takes max risk per trade as one of the settings parameters. Based on this, the indicator calculates the maximum quantity to be purchased for different stop loss values. Also as a utility, the indicator also displays target on a 1:3 risk reward ratio.
A table is displayed at the bottom right of the chart which displays the possible stop loss and their corresponding quantity.
The stop losses considered are EMA 10, EMA 20, EMA 50, EMA 200, Keltner Channel Top, Keltner Channel Bottom, 1 Candle Low, 1 Candle Mid and 2 Candle Low.
These stop losses are only indicative and should be followed as per risk appetite of the consumer.
The trade setup is primarily built for daily timeframe, however the same logic can be applied to other time frames as well. The indicator follows the chart timeframe.
ayogetit Trades™ Dynamic 5DMAThe Dynamic 5-Day Moving Average (MA) indicator is designed to provide traders with a consistent, time-adjusted moving average line across various timeframes. This indicator is especially useful for traders who switch between multiple timeframes and want a moving average that represents a fixed 5-day period, ensuring that the MA reflects a consistent lookback period relative to the amount of trading time each candle represents.
Features:
Timeframe Adaptability: Automatically adjusts the MA period to correspond to a 5-day lookback, regardless of the selected timeframe.
Intraday Precision: For intraday charts (5m, 15m, 30m, 1h, 2h, 4h), the indicator calculates the number of periods within the 5-day span based on the chart's timeframe.
Daily and Weekly Timeframe Compatibility: Sets the period to 5 for daily charts to maintain the 5-day MA, and to 1 for weekly charts, where each candlestick represents a week's worth of trading days.
Calculation Logic:
The indicator begins by defining the total number of trading minutes in 5 days, based on a standard 6.5-hour trading day.
A dynamic period calculation function then determines the number of those intervals that fit into the 5-day minute total for the selected timeframe.
For daily charts, the period is a straightforward 5, while for weekly charts, the period is set to 1, reflecting the average of the past 5 trading days.
GKD-C PA-Adaptive Hull Parabolic [Loxx]The Giga Kaleidoscope GKD-C PA-Adaptive Hull Parabolic is a confirmation module included in Loxx's "Giga Kaleidoscope Modularized Trading System."
█ GKD-C PA-Adaptive Hull Parabolic
Ehlers' Phase Accumulation
John Ehlers is well-known in the trading community for his digital signal processing approach to market data. One of his standout techniques is phase accumulation. This method identifies the dominant cycle in the market by accumulating the phases of individual cycles. By doing so, it "adapts" to real-time market conditions.
Here's the brilliance of phase accumulation in this code
The indicator doesn't merely use a static look-back period. Instead, it dynamically determines the dominant market cycle through phase accumulation.
The calcComp function, rooted in Ehlers' methodology, provides a complex computation using a digital signal processing approach to filter out market noise and pinpoint the current cycle's frequency.
By measuring and adapting to the instantaneous period of the market, it ensures that the indicator remains relevant, especially in non-stationary market conditions.
Hull's Moving Average
John Hull introduced the Hull Moving Average (HMA) aiming to reduce lag and improve smoothing. The HMA's essence lies in its weighted average computation, prioritizing more recent prices.
This code takes an adaptive twist on the HMA
Instead of a fixed period, the HMA uses the dominant cycle length derived from Ehlers' phase accumulation. This makes the HMA not just fast and smooth, but also adaptive to the dominant market rhythm.
The intricate iLwmp function in the script provides this adaptive HMA computation. It's a weighted moving average, but its length isn't static; it's based on the previously determined dominant market cycle.
Trading Insights
The indicator paints the bars to represent the immediate trend: green for bullish and red for bearish.
Entry points, both long ("L") and short ("S"), are presented visually. These are derived from crossovers of the adaptive HMA, a clear indication of a potential shift in the trend.
Additionally, alert conditions are set, ready to notify a trader when these crossovers occur, ensuring real-time actionable insights.
Conclusion
The PA-Adaptive Hull Parabolic is a masterclass in advanced technical indicator design. By marrying John Ehlers' adaptive phase accumulation with John Hull's HMA, it creates a dynamic, responsive, and precise tool for traders. It's not just about capturing the trend; it's about understanding the very rhythm of the market.
█ Giga Kaleidoscope Modularized Trading System
Core components of an NNFX algorithmic trading strategy
The NNFX algorithm is built on the principles of trend, momentum, and volatility. There are six core components in the NNFX trading algorithm:
1. Volatility - price volatility; e.g., Average True Range, True Range Double, Close-to-Close, etc.
2. Baseline - a moving average to identify price trend
3. Confirmation 1 - a technical indicator used to identify trends
4. Confirmation 2 - a technical indicator used to identify trends
5. Continuation - a technical indicator used to identify trends
6. Volatility/Volume - a technical indicator used to identify volatility/volume breakouts/breakdown
7. Exit - a technical indicator used to determine when a trend is exhausted
8. Metamorphosis - a technical indicator that produces a compound signal from the combination of other GKD indicators*
*(not part of the NNFX algorithm)
What is Volatility in the NNFX trading system?
In the NNFX (No Nonsense Forex) trading system, ATR (Average True Range) is typically used to measure the volatility of an asset. It is used as a part of the system to help determine the appropriate stop loss and take profit levels for a trade. ATR is calculated by taking the average of the true range values over a specified period.
True range is calculated as the maximum of the following values:
-Current high minus the current low
-Absolute value of the current high minus the previous close
-Absolute value of the current low minus the previous close
ATR is a dynamic indicator that changes with changes in volatility. As volatility increases, the value of ATR increases, and as volatility decreases, the value of ATR decreases. By using ATR in NNFX system, traders can adjust their stop loss and take profit levels according to the volatility of the asset being traded. This helps to ensure that the trade is given enough room to move, while also minimizing potential losses.
Other types of volatility include True Range Double (TRD), Close-to-Close, and Garman-Klass
What is a Baseline indicator?
The baseline is essentially a moving average, and is used to determine the overall direction of the market.
The baseline in the NNFX system is used to filter out trades that are not in line with the long-term trend of the market. The baseline is plotted on the chart along with other indicators, such as the Moving Average (MA), the Relative Strength Index (RSI), and the Average True Range (ATR).
Trades are only taken when the price is in the same direction as the baseline. For example, if the baseline is sloping upwards, only long trades are taken, and if the baseline is sloping downwards, only short trades are taken. This approach helps to ensure that trades are in line with the overall trend of the market, and reduces the risk of entering trades that are likely to fail.
By using a baseline in the NNFX system, traders can have a clear reference point for determining the overall trend of the market, and can make more informed trading decisions. The baseline helps to filter out noise and false signals, and ensures that trades are taken in the direction of the long-term trend.
What is a Confirmation indicator?
Confirmation indicators are technical indicators that are used to confirm the signals generated by primary indicators. Primary indicators are the core indicators used in the NNFX system, such as the Average True Range (ATR), the Moving Average (MA), and the Relative Strength Index (RSI).
The purpose of the confirmation indicators is to reduce false signals and improve the accuracy of the trading system. They are designed to confirm the signals generated by the primary indicators by providing additional information about the strength and direction of the trend.
Some examples of confirmation indicators that may be used in the NNFX system include the Bollinger Bands, the MACD (Moving Average Convergence Divergence), and the MACD Oscillator. These indicators can provide information about the volatility, momentum, and trend strength of the market, and can be used to confirm the signals generated by the primary indicators.
In the NNFX system, confirmation indicators are used in combination with primary indicators and other filters to create a trading system that is robust and reliable. By using multiple indicators to confirm trading signals, the system aims to reduce the risk of false signals and improve the overall profitability of the trades.
What is a Continuation indicator?
In the NNFX (No Nonsense Forex) trading system, a continuation indicator is a technical indicator that is used to confirm a current trend and predict that the trend is likely to continue in the same direction. A continuation indicator is typically used in conjunction with other indicators in the system, such as a baseline indicator, to provide a comprehensive trading strategy.
What is a Volatility/Volume indicator?
Volume indicators, such as the On Balance Volume (OBV), the Chaikin Money Flow (CMF), or the Volume Price Trend (VPT), are used to measure the amount of buying and selling activity in a market. They are based on the trading volume of the market, and can provide information about the strength of the trend. In the NNFX system, volume indicators are used to confirm trading signals generated by the Moving Average and the Relative Strength Index. Volatility indicators include Average Direction Index, Waddah Attar, and Volatility Ratio. In the NNFX trading system, volatility is a proxy for volume and vice versa.
By using volume indicators as confirmation tools, the NNFX trading system aims to reduce the risk of false signals and improve the overall profitability of trades. These indicators can provide additional information about the market that is not captured by the primary indicators, and can help traders to make more informed trading decisions. In addition, volume indicators can be used to identify potential changes in market trends and to confirm the strength of price movements.
What is an Exit indicator?
The exit indicator is used in conjunction with other indicators in the system, such as the Moving Average (MA), the Relative Strength Index (RSI), and the Average True Range (ATR), to provide a comprehensive trading strategy.
The exit indicator in the NNFX system can be any technical indicator that is deemed effective at identifying optimal exit points. Examples of exit indicators that are commonly used include the Parabolic SAR, the Average Directional Index (ADX), and the PA-Adaptive Hull Parabolic.
The purpose of the exit indicator is to identify when a trend is likely to reverse or when the market conditions have changed, signaling the need to exit a trade. By using an exit indicator, traders can manage their risk and prevent significant losses.
In the NNFX system, the exit indicator is used in conjunction with a stop loss and a take profit order to maximize profits and minimize losses. The stop loss order is used to limit the amount of loss that can be incurred if the trade goes against the trader, while the take profit order is used to lock in profits when the trade is moving in the trader's favor.
Overall, the use of an exit indicator in the NNFX trading system is an important component of a comprehensive trading strategy. It allows traders to manage their risk effectively and improve the profitability of their trades by exiting at the right time.
What is an Metamorphosis indicator?
The concept of a metamorphosis indicator involves the integration of two or more GKD indicators to generate a compound signal. This is achieved by evaluating the accuracy of each indicator and selecting the signal from the indicator with the highest accuracy. As an illustration, let's consider a scenario where we calculate the accuracy of 10 indicators and choose the signal from the indicator that demonstrates the highest accuracy.
The resulting output from the metamorphosis indicator can then be utilized in a GKD-BT backtest by occupying a slot that aligns with the purpose of the metamorphosis indicator. The slot can be a GKD-B, GKD-C, or GKD-E slot, depending on the specific requirements and objectives of the indicator. This allows for seamless integration and utilization of the compound signal within the GKD-BT framework.
How does Loxx's GKD (Giga Kaleidoscope Modularized Trading System) implement the NNFX algorithm outlined above?
Loxx's GKD v2.0 system has five types of modules (indicators/strategies). These modules are:
1. GKD-BT - Backtesting module (Volatility, Number 1 in the NNFX algorithm)
2. GKD-B - Baseline module (Baseline and Volatility/Volume, Numbers 1 and 2 in the NNFX algorithm)
3. GKD-C - Confirmation 1/2 and Continuation module (Confirmation 1/2 and Continuation, Numbers 3, 4, and 5 in the NNFX algorithm)
4. GKD-V - Volatility/Volume module (Confirmation 1/2, Number 6 in the NNFX algorithm)
5. GKD-E - Exit module (Exit, Number 7 in the NNFX algorithm)
6. GKD-M - Metamorphosis module (Metamorphosis, Number 8 in the NNFX algorithm, but not part of the NNFX algorithm)
(additional module types will added in future releases)
Each module interacts with every module by passing data to A backtest module wherein the various components of the GKD system are combined to create a trading signal.
That is, the Baseline indicator passes its data to Volatility/Volume. The Volatility/Volume indicator passes its values to the Confirmation 1 indicator. The Confirmation 1 indicator passes its values to the Confirmation 2 indicator. The Confirmation 2 indicator passes its values to the Continuation indicator. The Continuation indicator passes its values to the Exit indicator, and finally, the Exit indicator passes its values to the Backtest strategy.
This chaining of indicators requires that each module conform to Loxx's GKD protocol, therefore allowing for the testing of every possible combination of technical indicators that make up the six components of the NNFX algorithm.
What does the application of the GKD trading system look like?
Example trading system:
Backtest: Multi-Ticker CC Backtest
Baseline: Hull Moving Average
Volatility/Volume: Hurst Exponent
Confirmation 1: Advance Trend Pressure as shown on the chart above
Confirmation 2: uf2018
Continuation: Coppock Curve
Exit: Rex Oscillator
Metamorphosis: Baseline Optimizer
Each GKD indicator is denoted with a module identifier of either: GKD-BT, GKD-B, GKD-C, GKD-V, GKD-M, or GKD-E. This allows traders to understand to which module each indicator belongs and where each indicator fits into the GKD system.
? Giga Kaleidoscope Modularized Trading System Signals
Standard Entry
1. GKD-C Confirmation gives signal
2. Baseline agrees
3. Price inside Goldie Locks Zone Minimum
4. Price inside Goldie Locks Zone Maximum
5. Confirmation 2 agrees
6. Volatility/Volume agrees
1-Candle Standard Entry
1a. GKD-C Confirmation gives signal
2a. Baseline agrees
3a. Price inside Goldie Locks Zone Minimum
4a. Price inside Goldie Locks Zone Maximum
Next Candle
1b. Price retraced
2b. Baseline agrees
3b. Confirmation 1 agrees
4b. Confirmation 2 agrees
5b. Volatility/Volume agrees
Baseline Entry
1. GKD-B Baseline gives signal
2. Confirmation 1 agrees
3. Price inside Goldie Locks Zone Minimum
4. Price inside Goldie Locks Zone Maximum
5. Confirmation 2 agrees
6. Volatility/Volume agrees
7. Confirmation 1 signal was less than 'Maximum Allowable PSBC Bars Back' prior
1-Candle Baseline Entry
1a. GKD-B Baseline gives signal
2a. Confirmation 1 agrees
3a. Price inside Goldie Locks Zone Minimum
4a. Price inside Goldie Locks Zone Maximum
5a. Confirmation 1 signal was less than 'Maximum Allowable PSBC Bars Back' prior
Next Candle
1b. Price retraced
2b. Baseline agrees
3b. Confirmation 1 agrees
4b. Confirmation 2 agrees
5b. Volatility/Volume agrees
Volatility/Volume Entry
1. GKD-V Volatility/Volume gives signal
2. Confirmation 1 agrees
3. Price inside Goldie Locks Zone Minimum
4. Price inside Goldie Locks Zone Maximum
5. Confirmation 2 agrees
6. Baseline agrees
7. Confirmation 1 signal was less than 7 candles prior
1-Candle Volatility/Volume Entry
1a. GKD-V Volatility/Volume gives signal
2a. Confirmation 1 agrees
3a. Price inside Goldie Locks Zone Minimum
4a. Price inside Goldie Locks Zone Maximum
5a. Confirmation 1 signal was less than 'Maximum Allowable PSVVC Bars Back' prior
Next Candle
1b. Price retraced
2b. Volatility/Volume agrees
3b. Confirmation 1 agrees
4b. Confirmation 2 agrees
5b. Baseline agrees
Confirmation 2 Entry
1. GKD-C Confirmation 2 gives signal
2. Confirmation 1 agrees
3. Price inside Goldie Locks Zone Minimum
4. Price inside Goldie Locks Zone Maximum
5. Volatility/Volume agrees
6. Baseline agrees
7. Confirmation 1 signal was less than 7 candles prior
1-Candle Confirmation 2 Entry
1a. GKD-C Confirmation 2 gives signal
2a. Confirmation 1 agrees
3a. Price inside Goldie Locks Zone Minimum
4a. Price inside Goldie Locks Zone Maximum
5a. Confirmation 1 signal was less than 'Maximum Allowable PSC2C Bars Back' prior
Next Candle
1b. Price retraced
2b. Confirmation 2 agrees
3b. Confirmation 1 agrees
4b. Volatility/Volume agrees
5b. Baseline agrees
PullBack Entry
1a. GKD-B Baseline gives signal
2a. Confirmation 1 agrees
3a. Price is beyond 1.0x Volatility of Baseline
Next Candle
1b. Price inside Goldie Locks Zone Minimum
2b. Price inside Goldie Locks Zone Maximum
3b. Confirmation 1 agrees
4b. Confirmation 2 agrees
5b. Volatility/Volume agrees
Continuation Entry
1. Standard Entry, 1-Candle Standard Entry, Baseline Entry, 1-Candle Baseline Entry, Volatility/Volume Entry, 1-Candle Volatility/Volume Entry, Confirmation 2 Entry, 1-Candle Confirmation 2 Entry, or Pullback entry triggered previously
2. Baseline hasn't crossed since entry signal trigger
4. Confirmation 1 agrees
5. Baseline agrees
6. Confirmation 2 agrees
Choose Symbol, Mode with HullThis Pine Script code is designed to create a customizable indicator on the TradingView platform. Below is an introduction to its features and purpose:
Introduction:
This script serves as a versatile indicator on TradingView, allowing users to choose between different modes (Heikin-Ashi, Linear, and Normal) and apply a Hull Moving Average (Hull) for trend analysis. The primary features include mode selection, the choice of using different calculation methods, and the option to incorporate the Hull Moving Average for enhanced trend visibility.
Key Features:
Mode Selection:
Users can choose between "Heikin-Ashi," "Linear," or "Normal" modes, influencing how the open, high, low, and close prices are calculated.
Hull Moving Average:
The script incorporates the Hull Moving Average (Hull) to provide a smoothed trend line for better trend identification.
Calculation Methods:
Users can select different calculation methods for the open, high, low, and close prices, including Simple Moving Average (SMA), Exponential Moving Average (EMA), Smoothed Moving Average (SMMA or RMA), Weighted Moving Average (WMA), and Volume Weighted Moving Average (VWMA).
Customizable Lengths:
Length parameters are customizable, allowing users to adjust the period lengths for the Hull Moving Average and other calculation methods.
Buy and Sell Signals:
Buy and sell signals are generated based on crossovers and crossunders between the Hull Moving Average and the price. These signals are visually displayed on the chart with corresponding labels.
Color-Coding:
The script utilizes color-coding to distinguish between bullish (lime) and bearish (red) trends, making it easier for users to identify potential changes in market direction.
Customizable Symbol and Resolution:
Users have the option to choose a specific trading symbol and resolution for analysis.
Important Note:
This script is provided for educational purposes and does not constitute financial advice. Traders and investors should conduct thorough research and analysis before making any trading decisions. Additionally, customization options should be explored to align the script with individual trading preferences.
MACD of Relative Strenght StrategyMACD Relative Strenght Strategy :
INTRODUCTION :
This strategy is based on two well-known indicators: MACD and Relative Strenght (RS). By coupling them, we obtain powerful buy signals. In fact, the special feature of this strategy is that it creates an indicator from an indicator. Thus, we construct a MACD whose source is the value of the RS. The strategy only takes buy signals, ignoring SHORT signals as they are mostly losers. There's also a money management method enabling us to reinvest part of the profits or reduce the size of orders in the event of substantial losses.
RELATIVE STRENGHT :
RS is an indicator that measures the anomaly between momentum and the assumption of market efficiency. It is used by professionals and is one of the most robust indicators. The idea is to own assets that do better than average, based on their past performance. We calculate RS using this formula :
RS = close/highest_high(RS_Length)
Where highest_high(RS_Length) = highest value of the high over a user-defined time period (which is the RS_Length).
We can thus situate the current price in relation to its highest price over this user-defined period.
MACD (Moving Average Convergence - Divergence) :
This is one of the best-known indicators, measuring the distance between two exponential moving averages : one fast and one slower. A wide distance indicates fast momentum and vice versa. We'll plot the value of this distance and call this line macdline. The MACD uses a third moving average with a lower period than the first two. This last moving average will give a signal when it crosses the macdline. It is therefore constructed using the values of the macdline as its source.
It's important to note that the first two MAs are constructed using RS values as their source. So we've just built an indicator of an indicator. This kind of method is very powerful because it is rarely used and brings value to the strategy.
PARAMETERS :
RS Length : Relative Strength length i.e. the number of candles back to find the highest high and compare the current price with this high. Default is 300.
MACD Fast Length : Relative Strength fast EMA length used to plot the MACD. Default is 14.
MACD Slow Length : Relative Strength slow EMA length used to plot the MACD. Default is 26.
MACD Signal Smoothing : Macdline SMA length used to plot the MACD. Default is 10.
Max risk per trade (in %) : The maximum loss a trade can incur (in percentage of the trade value). Default is 8%.
Fixed Ratio : This is the amount of gain or loss at which the order quantity is changed. Default is 400, meaning that for each $400 gain or loss, the order size is increased or decreased by a user-selected amount.
Increasing Order Amount : This is the amount to be added to or subtracted from orders when the fixed ratio is reached. The default is $200, which means that for every $400 gain, $200 is reinvested in the strategy. On the other hand, for every $400 loss, the order size is reduced by $200.
Initial capital : $1000
Fees : Interactive Broker fees apply to this strategy. They are set at 0.18% of the trade value.
Slippage : 3 ticks or $0.03 per trade. Corresponds to the latency time between the moment the signal is received and the moment the order is executed by the broker.
Important : A bot has been used to test the different parameters and determine which ones maximize return while limiting drawdown. This strategy is the most optimal on BITSTAMP:ETHUSD in 8h timeframe with the parameters set by default.
ENTER RULES :
The entry rules are very simple : we open a long position when the MACD value turns positive. You are therefore LONG when the MACD is green.
EXIT RULES :
We exit a position (whether losing or winning) when the MACD becomes negative, i.e. turns red.
RISK MANAGEMENT :
This strategy can incur losses, so it's important to manage our risks well. If the position is losing and has incurred a loss of -8%, our stop loss is activated to limit losses.
MONEY MANAGEMENT :
The fixed ratio method was used to manage our gains and losses. For each gain of an amount equal to the value of the fixed ratio, we increase the order size by a value defined by the user in the "Increasing order amount" parameter. Similarly, each time we lose an amount equal to the value of the fixed ratio, we decrease the order size by the same user-defined value. This strategy increases both performance and drawdown.
Enjoy the strategy and don't forget to take the trade :)
SMA Cross with a Price FilterA moving average strategy generates an entry (buy) signal when the price goes above the moving average, and an exit (sell) signal when the price goes below the moving average. But it gives lots of whipsaws and noise depends on the moving average we use. A fast moving average gives more whipsaws and a slow moving average gives less whipsaws. To reduce the noise/whipsaws, we can add a filter on a fast/slow moving average. It will improve entry/exit performance significantly specially for those who don't want to watch the market actively.
I created this indicator with a price filter. This means the price of an underlying asset must be at least a specific percentage above its moving average to generate a buy signal and a specific percentage below its moving average to generate a sell signal. This price filter can also be a confirmation after the price crosses above/below its SMA. I couldn't find any indicator yet based on this idea. So I wrote this indicator and publishing it so it helps those who are interested.
I use 200 SMA and 3% price filter as default and using SPY as an example. So,
ENTRY signal when the closing price of SPY is 3% above its 200 SMA.
EXIT signal when the closing price of SPY is 3% below its 200 SMA.
Enjoy and let me know if it works.
** This chart only generates entry (buy) and exit (sell) signals. Please, do your own diligence to make any investment or trading decisions.
Trend-based Price Action StrategyThis is a strategy script that combines trend-based price action analysis with the Relative Strength Index (RSI) and Exponential Moving Averages (EMA) as trend filters. Here's a summary of the key components and logic:
Price Action Candlestick Patterns:
Bullish patterns: Engulfing candle and Morning Star.
Bearish patterns: Engulfing candle and Evening Star.
RSI Integration:
RSI is used to identify overbought and oversold conditions.
EMA Trend Filter:
Three EMAs with different periods: Fast , Medium and Slow.
Long trend condition occur when the fast EMA is above the medium and the medium is above the slow EMA.
Short trend condition occur when the slow EMA is above the medium and the medium is above the fast EMA.
Long entry conditions: RSI is oversold, RSI is decreasing, bullish candlestick pattern, and EMA trend filter conditions are met.
Short entry conditions: RSI is overbought, RSI is decreasing, bearish candlestick pattern, and EMA trend filter conditions are met.
Exit conditions:
Take profit or stop loss is reached.
Plotting:
Signals are plotted on the chart when entry conditions are met.
EMAs are plotted when the EMA trend filter is enabled.
This script aims to capture potential trend reversal points based on a combination of candlestick patterns, RSI, and EMA trend analysis.
Traders can use this script as a starting point for further customization or as a reference for developing their own trading strategies. It's important to note that past performance is not indicative of future results, and thorough testing and validation are recommended before deploying any trading strategy.
Multi-Timeframe EMA Tracker by Ox_kaliThis script is an advanced trend analysis indicator crafted for traders who seek a detailed and customizable view of market trends across multiple timeframes. This tool utilizes exponential moving averages (EMAs) to offer insights into market direction and momentum.
Key Features:
Multi-Timeframe Analysis: MTEMA-Tracker covers a wide range of timeframes, including 1, 2, 3, 5, 10, 15, 30 minutes; 1, 2, 4, 6, 12 hours; 1 day; and 1 week. This allows traders to analyze market trends from various perspectives, from short-term fluctuations to longer-term movements.
EMA-Based Trend Determination: The indicator employs two EMAs (50 and 200 periods) for each timeframe to ascertain the market trend. A higher EMA50 compared to EMA200 indicates an uptrend, while the opposite scenario suggests a downtrend.
User-Defined Trend Colors: Traders can personalize the appearance of the trend lines with custom colors for upward and downward trends, enhancing visual clarity and quick interpretation.
Selectable Timeframe Display: MTEMA-Tracker by Ox_kali offers the flexibility to choose which timeframes to display, enabling traders to focus on the most relevant data for their trading strategy.
Average Trend Calculation: A unique feature of MTEMA-Tracker is its ability to compute the average trend across all selected timeframes, providing a holistic view of the market's general direction.
List of Parameters:
Color of the trend: Customizable color settings for both upward and downward trends.
Settings for the Lengths of the EMAs: Options to set the lengths of the short and long-term EMAs.
Display Options for Each Timeframe's EMA Trend: Ability to activate or deactivate the display of EMAs for each selected timeframe.
Indicators and Financial Name Label settings: To ensure maximum clarity and understanding of the displayed trends, users should not hesitate to use the function to display "indicators and financial name labels" in their settings. This feature will help in identifying the legends for each trend, making it easier to interpret the market direction for the selected timeframes.
Please note that the MTEMA-Tracker is not a guarantee of future market performance and should be used in conjunction with proper risk management. Always ensure that you have a thorough understanding of the indicator’s methodology and its limitations before making any investment decisions. Additionally, past performance is not indicative of future results.
Mtl Weekly This Pine Script indicator for TradingView calculates and plots a line on the weekly chart, representing the average of the weekly high and low prices. The script uses conditional statements to determine and update the weekly high and low values. The calculated average is then plotted as a line on the chart in blue color. This indicator helps visualize the central point between weekly highs and lows, providing insights into potential trend directions.