DBMA - Dual Bollinger Moving AverageThe Dual Bollinger moving average (DBMA) consists of a moving average (MA) & two Bollinger Bands (BB), with the color of the bands representing the level of price compression. In its default settings, it is a 20-day simple moving average with 2 upper Bollinger Bands, having the standard deviation (SD) settings of 0.5 & 1, respectively.
How close the price is to the moving average?
For a pullback trader, the entry point should be close to the moving average, preferably with price compression. How close should it be, is where the bands serve as a guide. The low of the pullback candle should be within the bands, that is, at least within the far band (1 SD of the MA), or even better if it's within the near band (0.5 SD). When the price is outside the bands, it should not be considered favourable for a pullback entry.
For how long has the price been closer to the moving average?
John Carter’s TTM Squeeze indicator looked at the relationship between Bollinger Bands and Keltner's Channels to help identify period of volatility contractions. Bollinger Bands being completely enclosed within the Keltner Channels is indicative of a very low volatility. This is a state of volatility contraction known as squeeze. Using different ATR lengths (1.0, 1.5 and 2.0) for Keltner Channels, we can differentiate between levels of squeeze (High, Mid & Low compression, respectively). Greater the compression, higher the potential for explosive moves.
The squeeze portion of the script is based on LazyBear's script ( Squeeze Momentum Indicator )
The High, Mid & Low compression squeezes are depicted via the color of the bands being red, orange, or yellow, respectively. With the low of the pullback candle within the bands, & the squeeze color changing to red, it should be considered favourable for a pullback entry.
Trailing the price with the lower bands
The lower bands can be used for trailing with the moving average. While trailing, once the price closes below the moving average, the trailing stoploss (TSL) is said to be triggered, & the trade is exited. Here we use the bands to give it some cushion. Let the price close below the 1SD band for labelling the TSL as being triggered to exit the trade. If the price closes below the MA but is still within the bands, the signal is to keep holding the trade.
Скользящие средние
Custom EMAsNow the indicator includes 10 different types of EMAs, each with a changeable length and selectable type. You can use the input settings to adjust the type and length for each EMA. The plot shows all 10 EMAs on the chart.
SRTL, 2EMA & TRAMASRTL - Support Resistance and Trend Line with Double EMA and TRAMA
The SRTL indicator is a powerful tool for technical analysis that seamlessly integrates support and resistance levels, trend lines, and moving average signals. It offers traders a comprehensive view of the market's dynamics, making it a valuable addition to any trading toolkit. Here's a concise summary of its key features and functionalities:
Key Features:
- Dynamic Support and Resistance Levels based on Pivot Points
- Trend Lines based on Recent Pivot Points
- Double Exponential Moving Averages (EMA) with adjustable lengths
- Trend Regularity Adaptive Moving Average (TRAMA) for trend identification
- Buy and Sell signals based on the crossover of EMAs
The indicator is composed of 4 main components:
1. Support and resistance levels: The indicator calculates support and resistance levels based on pivot points and a channel width parameter. These levels can be used to identify potential entry and exit points for trades. The script calculates and plots dynamic support and resistance levels based on pivot points. Users can adjust the period for calculating pivot points, loopback period, and S/R strength to customize the levels' sensitivity.
2. Trend Lines: The script identifies and plots trend lines based on recent pivot points. Users can customize the number of pivot points to consider and the start date to begin plotting the trend lines. The script identifies and plots trend lines based on recent pivot points. By adjusting the number of pivot points to consider and the start date, traders can visualize potential trends and assess the market's overall direction. This feature helps traders understand the prevailing market sentiment and make informed trading decisions.
3. Double Exponential Moving Averages (EMA): The script calculates and plots two Exponential Moving Averages (EMA) with customizable lengths. A crossover of these EMAs can be used as a signal for potential trend changes. The study calculates and displays two Exponential Moving Averages (EMA) with adjustable lengths. The crossover of these EMAs serves as a crucial signal for potential trend changes. When the faster EMA crosses above the slower EMA, a "Buy" signal is generated, and when the faster EMA crosses below the slower EMA, a "Sell" signal is generated.
4. Trend Regularity Adaptive Moving Average (TRAMA): The script calculates and plots the TRAMA, a unique adaptive moving average that helps identify trends and adapt to market conditions. The indicator includes the Trend Regularity Adaptive Moving Average (TRAMA), an adaptive moving average designed to identify trends and adapt to varying market conditions. TRAMA helps traders gauge the strength of a trend and provides valuable insights into potential trend reversals.
5. Signals: The script generates "Buy - Green" and "Sell- Red" signals based on the crossover of the two EMAs and Pivot Point Trend Levels. That Also Customizable.
How to Use:
The SRTL indicator is a powerful tool for technical analysis, offering multiple layers of information for traders. When the price approaches dynamic support or resistance levels, The dynamic support and resistance levels are based on pivot points and adjust to the market's current conditions. The trend lines help visualize potential trends and can be adjusted to show different numbers of pivot points. Additionally, the Double EMA and TRAMA lines provide further insight into the market's momentum and potential reversals. Traders can assess the potential for trend reversals or breakouts. The trend lines help visualize the market's prevailing direction, and the crossover of the Double EMA signals potential entry and exit points.
Traders should use this study as part of a broader trading strategy and combine it with other technical indicators, fundamental analysis, and risk management techniques. Additionally, it's essential to test the indicator thoroughly in a demo or back testing environment before applying it to live trading to ensure its compatibility with individual trading styles and preferences.
Trend Analyser by Abdul KhaderThis indicator is designed to provide buy and sell signals based on a combination of technical analysis methods. It uses the Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), and Exponential Moving Averages (EMA) to generate signals. It also calculates Stop Loss (SL) and Take Profit (TP) levels based on the Average True Range (ATR).
Components:
RSI: An oscillator that measures the speed and change of price movements. RSI is used to identify overbought and oversold conditions. In this indicator, an RSI below 30 is considered oversold and an RSI above 70 is considered overbought.
MACD: A trend-following momentum indicator that shows the relationship between two moving averages of a security’s price. The MACD triggers technical signals when it crosses above (to buy) or below (to sell) its signal line.
EMA: These moving averages give more weight to recent prices and are used to identify short-term price trends. A crossover of a shorter period EMA (9 periods in this case) above a longer period EMA (21 periods in this case) generates a buy signal. Conversely, a crossover of the shorter EMA below the longer EMA generates a sell signal.
ATR: This is a market volatility indicator. The ATR is used to calculate Stop Loss and Take Profit levels. These levels are set at a distance from the entry price, equal to a certain multiplier (1.5 in this case) of the ATR.
How to Use:
Buy Signal: A green triangle below the price bar indicates a buy signal. This is generated when the following conditions are met:
The short-term EMA crosses above the long-term EMA
The RSI is below 30 (oversold condition)
The MACD line crosses above the signal line and is above zero
Sell Signal: A red triangle above the price bar indicates a sell signal. This is generated when the following conditions are met:
The short-term EMA crosses below the long-term EMA
The RSI is above 70 (overbought condition)
The MACD line crosses below the signal line and is below zero
Stop Loss and Take Profit: These levels are indicated by dashed lines. The stop loss for a long position is set below the entry price, while the take profit is set above. For a short position, the stop loss is set above the entry price and the take profit is set below.
Important Notes:
This indicator is designed for intraday trading and may not be suitable for longer-term trades.
Always use this indicator in conjunction with other aspects of technical and fundamental analysis. No indicator can provide accurate signals 100% of the time.
Always backtest this indicator with historical data before using it in live trading.
Risk management is crucial in trading. Never risk more than a small percentage of your trading capital on a single trade.
ATR Extension [QuantVue]The Moving Average ATR Extension Indicator offers a powerful blend of two key market elements: the Average True Range (ATR) and Moving Averages (MA), capturing the dynamics of market momentum and trend direction.
This indicator is used to measure market extension from a user-selected moving average based on multiples of the Average True Range (ATR). By doing this, it becomes remarkably straightforward to spot strength at breakout points or exhaustion near the end of a run.
As a market breaks out the extension indicates a surge in buying pressure, while an extension after a sizeable move can often be an indication of market exhaustion. This extended position essentially reflects over-enthusiastic buying and could be an early warning sign of a potential trend reversal.
Breakout Strength:
Exhaustion:
Give this indicator a BOOST and COMMENT your thoughts!
We hope you enjoy.
Cheers.
EMA-Deviation-Corrected T3 [Loxx]EMA-Deviation-Corrected T3 is a T3 moving average that uses EMA deviation correcting to produce signals. This comes via the beloved genius Mladen.
The origin of the correcting algorithm can be attributed to Dr. Alexander Uhl, who developed a method to filter the moving average and identify signals. Originally, this method utilized standard deviation as a measure to correct the average values.
However, the current indicator in question employs a modified version of the correcting method. Instead of using standard deviation for calculation, it uses EMA deviation, which stands for Exponential Moving Average deviation. The idea behind using EMA deviation is two-fold:
Efficiency: EMA deviation can be calculated faster than standard deviation, resulting in more efficient code execution.
Signal Reduction: Surprisingly, this modified "correcting" approach generates fewer signals compared to using standard deviation. This is because EMA deviation is more responsive to price changes, making the correcting process less sensitive to whipsaws or false signals.
What is T3?
The T3 moving average, short for "Tim Tillson's Triple Exponential Moving Average," is a technical indicator used in financial markets and technical analysis to smooth out price data over a specific period. It was developed by Tim Tillson, a software project manager at Hewlett-Packard, with expertise in Mathematics and Computer Science.
The T3 moving average is an enhancement of the traditional Exponential Moving Average (EMA) and aims to overcome some of its limitations. The primary goal of the T3 moving average is to provide a smoother representation of price trends while minimizing lag compared to other moving averages like Simple Moving Average (SMA), Weighted Moving Average (WMA), or EMA.
To compute the T3 moving average, it involves a triple smoothing process using exponential moving averages. Here's how it works:
Calculate the first exponential moving average (EMA1) of the price data over a specific period 'n.'
Calculate the second exponential moving average (EMA2) of EMA1 using the same period 'n.'
Calculate the third exponential moving average (EMA3) of EMA2 using the same period 'n.'
The formula for the T3 moving average is as follows:
T3 = 3 * (EMA1) - 3 * (EMA2) + (EMA3)
By applying this triple smoothing process, the T3 moving average is intended to offer reduced noise and improved responsiveness to price trends. It achieves this by incorporating multiple time frames of the exponential moving averages, resulting in a more accurate representation of the underlying price action.
Included
Bar coloring
Signals
Alerts
Loxx's Expanded Source Types
Crunchster's Turtle and Trend SystemThis is a combination of two popular systematic trading strategies - in the trend following category.
The strategy is designed for use on the daily timeframe. Specific features of this system are outlined below:
1. Two different strategies to choose from, "Trend" which is a volatility adjusted Exponential Moving Average (EMA) crossover strategy and "Breakout" which is my adaptation of the well documented "Turtle Strategy"
2. Uses advanced position sizing and risk management, usually reserved for institutional portfolio management, a proven technique utilised by Commodity Trading Advisors and Managed Futures funds (Algo/Quant funds).
"Trend" uses a fast (user defined) and slow EMA crossover, where the slow length is 5 times the fast length. The resulting signal is adjusted for the volatility of returns over a 252 lookback period, which helps to normalise the signal across different assets. The system goes long or short when it detects a new trend has formed.
"Break" uses the highest high or lowest low over a user defined lookback period to define the recent range. This is converted into a price normalised signal to allow the system to detect when a breakout occurs. The system goes long or short based off the breakout signal.
Position sizing is based on recent price volatility and the user defined annualised risk target. In essence positions are inverse volatility weighted, so larger size is opened during lower volatility and smaller size during increased volatility. Recent volatility is calculated as the standard deviation of returns with 14 period lookback, then extrapolated into an annualised volatility of expected returns. Annualised recent volatility is then referenced to the risk target set by the user to adjust the position size. The default settings are a conservative 15% annual risk target/volatility. Initial capital should be set as the maximum risk capital per trade (ie if $10,000 total capital and 10% risk per trade, initial capital should be $1000). Maximum leverage per position can be set independently, to facilitate hitting risk targets that are greater than the natural volatility of the traded asset, and to accommodate low volatility conditions, whilst maintaining overall risk controls. Direction (long or short) is at the user's discretion.
Hard stop losses are based on multiples of the average true range of recent price (14 period lookback), user configurable.
Strategy trailing stops are based off recent highest highs or lowest lows (user defined lookback) to cut the position if the trend or momentum is lost.
Although both strategies can be run simultaneously, optimal diversification will be achieved if ran separately/individually to avoid masking of entries.
CCI+EMA Strategy with Percentage or ATR TP/SL [Alifer]This is a momentum strategy based on the Commodity Channel Index (CCI), with the aim of entering long trades in oversold conditions and short trades in overbought conditions.
Optionally, you can enable an Exponential Moving Average (EMA) to only allow trading in the direction of the larger trend. Please note that the strategy will not plot the EMA. If you want, for visual confirmation, you can add to the chart an Exponential Moving Average as a second indicator, with the same settings used in the strategy’s built-in EMA.
The strategy also allows you to set internal Stop Loss and Take Profit levels, with the option to choose between Percentage-based TP/SL or ATR-based TP/SL.
The strategy can be adapted to multiple assets and timeframes:
Pick an asset and a timeframe
Zoom back as far as possible to identify meaningful positive and negative peaks of the CCI
Set Overbought and Oversold at a rough average of the peaks you identified
Adjust TP/SL according to your risk management strategy
Like the strategy? Give it a boost!
Have any questions? Leave a comment or drop me a message.
CAUTIONARY WARNING
Please note that this is a complex trading strategy that involves several inputs and conditions. Before using it in live trading, it is highly recommended to thoroughly test it on historical data and use risk management techniques to safeguard your capital. After backtesting, it's also highly recommended to perform a first live test with a small amount. Additionally, it's essential to have a good understanding of the strategy's behavior and potential risks. Only risk what you can afford to lose .
USED INDICATORS
1 — COMMODITY CHANNEL INDEX (CCI)
The Commodity Channel Index (CCI) is a technical analysis indicator used to measure the momentum of an asset. It was developed by Donald Lambert and first published in Commodities magazine (now Futures) in 1980. Despite its name, the CCI can be used in any market and is not just for commodities. The CCI compares current price to average price over a specific time period. The indicator fluctuates above or below zero, moving into positive or negative territory. While most values, approximately 75%, fall between -100 and +100, about 25% of the values fall outside this range, indicating a lot of weakness or strength in the price movement.
The CCI was originally developed to spot long-term trend changes but has been adapted by traders for use on all markets or timeframes. Trading with multiple timeframes provides more buy or sell signals for active traders. Traders often use the CCI on the longer-term chart to establish the dominant trend and on the shorter-term chart to isolate pullbacks and generate trade signals.
CCI is calculated with the following formula:
(Typical Price - Simple Moving Average) / (0.015 x Mean Deviation)
Some trading strategies based on CCI can produce multiple false signals or losing trades when conditions turn choppy. Implementing a stop-loss strategy can help cap risk, and testing the CCI strategy for profitability on your market and timeframe is a worthy first step before initiating trades.
2 — AVERAGE TRUE RANGE (ATR)
The Average True Range (ATR) is a technical analysis indicator that measures market volatility by calculating the average range of price movements in a financial asset over a specific period of time. The ATR was developed by J. Welles Wilder Jr. and introduced in his book “New Concepts in Technical Trading Systems” in 1978.
The ATR is calculated by taking the average of the true range over a specified period. The true range is the greatest of the following:
The difference between the current high and the current low.
The difference between the previous close and the current high.
The difference between the previous close and the current low.
The ATR can be used to set stop-loss orders. One way to use ATR for stop-loss orders is to multiply the ATR by a factor (such as 2 or 3) and subtract it from the entry price for long positions or add it to the entry price for short positions. This can help traders set stop-loss orders that are more adaptive to market volatility.
3 — EXPONENTIAL MOVING AVERAGE (EMA)
The Exponential Moving Average (EMA) is a type of moving average (MA) that places a greater weight and significance on the most recent data points.
The EMA is calculated by taking the average of the true range over a specified period. The true range is the greatest of the following:
The difference between the current high and the current low.
The difference between the previous close and the current high.
The difference between the previous close and the current low.
The EMA can be used by traders to produce buy and sell signals based on crossovers and divergences from the historical average. Traders often use several different EMA lengths, such as 10-day, 50-day, and 200-day moving averages.
The formula for calculating EMA is as follows:
Compute the Simple Moving Average (SMA).
Calculate the multiplier for weighting the EMA.
Calculate the current EMA using the following formula:
EMA = Closing price x multiplier + EMA (previous day) x (1-multiplier)
STRATEGY EXPLANATION
1 — INPUTS AND PARAMETERS
The strategy uses the Commodity Channel Index (CCI) with additional options for an Exponential Moving Average (EMA), Take Profit (TP) and Stop Loss (SL).
length : The period length for the CCI calculation.
overbought : The overbought level for the CCI. When CCI crosses above this level, it may signal a potential short entry.
oversold : The oversold level for the CCI. When CCI crosses below this level, it may signal a potential long entry.
useEMA : A boolean input to enable or disable the use of Exponential Moving Average (EMA) as a filter for long and short entries.
emaLength : The period length for the EMA if it is used.
2 — CCI CALCULATION
The CCI indicator is calculated using the following formula:
(src - ma) / (0.015 * ta.dev(src, length))
src is the typical price (average of high, low, and close) and ma is the Simple Moving Average (SMA) of src over the specified length.
3 — EMA CALCULATION
If the useEMA option is enabled, an EMA is calculated with the given emaLength .
4 — TAKE PROFIT AND STOP LOSS METHODS
The strategy offers two methods for TP and SL calculations: percentage-based and ATR-based.
tpSlMethod_percentage : A boolean input to choose the percentage-based method.
tpSlMethod_atr : A boolean input to choose the ATR-based method.
5 — PERCENTAGE-BASED TP AND SL
If tpSlMethod_percentage is chosen, the strategy calculates the TP and SL levels based on a percentage of the average entry price.
tp_percentage : The percentage value for Take Profit.
sl_percentage : The percentage value for Stop Loss.
6 — ATR-BASED TP AND SL
If tpSlMethod_atr is chosen, the strategy calculates the TP and SL levels based on Average True Range (ATR).
atrLength : The period length for the ATR calculation.
atrMultiplier : A multiplier applied to the ATR to set the SL level.
riskRewardRatio : The risk-reward ratio used to calculate the TP level.
7 — ENTRY CONDITIONS
The strategy defines two conditions for entering long and short positions based on CCI and, optionally, EMA.
Long Entry: CCI crosses below the oversold level, and if useEMA is enabled, the closing price should be above the EMA.
Short Entry: CCI crosses above the overbought level, and if useEMA is enabled, the closing price should be below the EMA.
8 — TP AND SL LEVELS
The strategy calculates the TP and SL levels based on the chosen method and updates them dynamically.
For the percentage-based method, the TP and SL levels are calculated as a percentage of the average entry price.
For the ATR-based method, the TP and SL levels are calculated using the ATR value and the specified multipliers.
9 — EXIT CONDITIONS
The strategy defines exit conditions for both long and short positions.
If there is a long position, it will be closed either at TP or SL levels based on the chosen method.
If there is a short position, it will be closed either at TP or SL levels based on the chosen method.
Additionally, positions will be closed if CCI crosses back above oversold in long positions or below overbought in short positions.
10 — PLOTTING
The script plots the CCI line along with overbought and oversold levels as horizontal lines.
The CCI line is colored red when above the overbought level, green when below the oversold level, and white otherwise.
The shaded region between the overbought and oversold levels is plotted as well.
Multiple Exponential Moving AveragesThe "Multiple Exponential Moving Averages" indicator is a custom technical analysis tool created for TradingView. It combines five different Exponential Moving Averages (EMAs) into a single indicator. Each EMA has a user-defined length, and they are plotted on the chart with different colors to differentiate them.
Exponential Moving Averages are commonly used in technical analysis to smooth out price data and identify trends. They give more weight to recent price data, making them more responsive to recent price changes than Simple Moving Averages (SMAs). By combining multiple EMAs with different lengths, TradingView users will no longer have to worry that they will run out of slots when wanting to add new indicators to their chart.
Engulfing Signals
Okay, so we've got an indicator here that prints buy sell signals based on engulfing candles and uses a 200 EMA and RSI to filter out some of the noise.
This indicator incorporates price action, in the form of engulfing candles, moving averages and a momentum oscillator. It also has the of plotting either a Simple Moving Average or an Exponential Moving Average over varying periods in order to determine if price is respecting a certain level or to develop more accurately-timed alert signals. Engulfing candles can be a good indication of a change in sentiment and momentum.
Engulfing candles can be a good indication of a change in market behaviour but they happen far too often to be of any practical use by themselves.
In order to filter out some of the weaker candles, I have incorporated RSI into this script. The indicator will provide a BUY signal only when an engulfing candle prints and there is a reading of above 50 on the RSI, which is considered to reflect overall bullish sentiment. The signal is printed directly on the chart as a small green triangle just under the engulfing candle.
In contrast, the indicator will provide a SELL signal only when an engulfing candle prints and there is a reading of below 50 on the RSI, which is considered to reflect overall bearish sentiment. The signal is printed directly on the chart as a small red triangle just above the engulfing candle.
In order to maintain a clean chart and maximise the opportunity to couple this indicator up with other indicators that may increase the accuracy of the signals even further, the RSI will not be shown on the chart. However, to verify the accuracy of the signals please feel free to load the RSI indicator onto your chart and you will see that the signals only print according to the conditions described above.
In order to further filter out weaker signals I have made a rule that a buy signal should only print if it is above the 200 EMA and a sell signal only if the engulfing candle is below the 200 EMA. I use the 200 EMA because it is a commonly accepted indication of the general trend and to make the signals as accurate as possible we want to be trading with the longer trend, not against it.
The indicator will not print signals for engulfing candles outside of these parameters.
I suggest combining this indicator with a shorter moving average such as a 9, 14 or 20 perhaps. There is no need to add an additional indicator. You can do this directly in the settings menu. This unique feature allows you to study possible levels that price may or may not be respecting.
Alternatively, you could use the MACD to filter out some of the weaker signals, though bear in mind that the RSI is already doing that to some degree before the signal even prints.
To my knowledge there is no other indicator out there that combines these three concepts but, as you will see, doing so provides some high quality signals.
RSI-Volume Oscillator Quick Scalping By Akhilesh PatelTitle: RSI-Volume Oscillator Quick Scalping Indicator
Description:
The "RSI-Volume Oscillator Quick Scalping" is a powerful and versatile custom indicator designed for traders who engage in scalping strategies. This indicator combines the Relative Strength Index (RSI) with a Volume Oscillator to provide valuable insights into momentum and volume dynamics in the market. Traders can also select their preferred moving average types (SMA, EMA, or HMA) to further customize the indicator's behavior.
Key Features:
RSI and Volume Oscillator Fusion: The indicator blends the RSI and a custom Volume Oscillator to offer a comprehensive view of both price momentum and volume trends. This integration provides valuable signals for quick scalping opportunities.
Customizable Moving Averages: Traders can choose from three popular moving average types (SMA, EMA, or HMA) for further customization. This flexibility allows users to align the indicator with their preferred trading strategies.
Clear Visualization: The Combined RSI-Volume Oscillator is plotted as a solid blue line, while the three selected moving averages are represented by orange, purple, and green lines, respectively. The zero line, overbought, and oversold levels for RSI are also indicated for easy reference.
Quick Scalping Signals: The indicator helps traders spot potential buy and sell signals efficiently, making it ideal for quick scalping strategies in rapidly moving markets.
Usage Instructions:
Customize the indicator by selecting your preferred RSI length, Volume Oscillator length, and moving average type (SMA, EMA, or HMA).
Observe the Combined RSI-Volume Oscillator and moving averages for potential entry and exit points.
Look for crossovers between the Combined RSI-Volume Oscillator and the selected moving averages for buy and sell signals.
The overbought (70) and oversold (30) levels for RSI can be used to identify potential reversal points.
Important Note:
Test the indicator on historical data and demo accounts before using it in live trading to ensure it aligns with your trading strategy.
Understand that no indicator guarantees profits, and trading involves risk. Always use proper risk management and discipline when executing trades.
Overall, the "RSI-Volume Oscillator Quick Scalping" indicator is a valuable addition to any scalper's toolkit, providing comprehensive insights into momentum and volume dynamics to enhance trading decisions. Happy scalping!
RibboNN Machine Learning [ChartPrime]The RibboNN ML indicator is a powerful tool designed to predict the direction of the market and display it through a ribbon-like visual representation, with colors changing based on the prediction outcome from a conditional class. The primary focus of this indicator is to assist traders in trend following trading strategies.
The RibboNN ML in action
Prediction Process:
Conditional Class: The indicator's predictive model relies on a conditional class, which combines information from both longcon (long condition) and short condition. These conditions are determined using specific rules and criteria, taking into account various market factors and indicators.
Direction Prediction: The conditional class provides the basis for predicting the direction of the market move. When the prediction value is greater than 0, it indicates an upward trend, while a value less than 0 suggests a downward trend.
Nearest Neighbor (NN): To attempt to enhance the accuracy of predictions, the RibboNN ML indicator incorporates a Nearest Neighbor algorithm. This algorithm analyzes historical data from the Ribbon ML's predictive model (RMF) and identifies patterns that closely resemble the current conditional prediction class, thereby offering more robust trend forecasts.
Ribbon Visualization:
The Ribbon ML indicator visually represents its predictions through a ribbon-like display. The ribbon changes colors based on the direction predicted by the conditional class. An upward trend is represented by a green color, while a downward trend is depicted by a red color, allowing traders to quickly identify potential market directions.
The introduction of the Nearest Neighbor algorithm provides the Ribbon ML indicator with unique and adaptive behaviors. By dynamically analyzing historical patterns and incorporating them into predictions, the indicator can adapt to changing market conditions and offer more reliable signals for trend following trading strategies.
Manipulation of the NN Settings:
Smaller Value of Neighbours Count:
When the value of "Neighbours Count" is small, the algorithm considers only a few nearest neighbors for making predictions.
A smaller value of "Neighbours Count" leads to more flexible decision boundaries, which can result in a more granular and sensitive model.
However, using a very small value might lead to overfitting, especially if the training data contains noise or outliers.
Larger Value of "Neighbours Count":
When the value of "Neighbours Count" is large, the algorithm considers a larger number of nearest neighbors for making predictions.
A larger value of "Neighbours Count" leads to smoother decision boundaries and helps capture the global patterns in the data.
However, setting a very large value might result in a loss of local patterns and make the model less sensitive to changes in the data.
CC Trend strategy 2- Downtrend ShortTrend Strategy #2
Indicators:
1. EMA(s)
2. Fibonacci retracement with a mutable lookback period
Strategy:
1. Short Only
2. No preset Stop Loss/Take Profit
3. 0.01% commission
4. When in a profit and a closure above the 200ema, the position takes a profit.
5. The position is stopped When a closure over the (0.764) Fibonacci ratio occurs.
* NO IMMEDIATE RE-ENTRIES EVER!*
How to use it and what makes it unique:
This strategy will enter often and stop quickly. The goal with this strategy is to take losses often but catch the big move to the downside when it occurs through the Silvercross/Fibonacci combination. This is a unique strategy because it uses a programmed Fibonacci ratio that can be used within the strategy and on any program. You can manipulate the stats by changing the lookback period of the Fibonacci retracement and looking at different assets/timeframes.
This description tells the indicators combined to create a new strategy, with commissions and take profit/stop loss conditions included, and the process of strategy execution with a description of how to use it. If you have any questions feel free to PM me and boost if you found it helpful. Thank you, pineUSERS!
CHEATCODE1
Impulse MACD buy OwlPixelDescription:
The Impulse MACD Buy Indicator, developed by OwlPixel, is a powerful trading tool for traders using TradingView's Pine Script version 5. This indicator aims to provide valuable insights for identifying potential buy signals in the market using the popular MACD (Moving Average Convergence Divergence) oscillator.
Key Features:
MACD Analysis: The indicator displays the MACD line (blue) and the signal line (orange) on the chart, helping traders assess the momentum and trend direction of an asset.
Impulse Histo: The Impulse Histo (blue histogram) visualizes the difference between the MACD line and the signal line, making it easier to spot changes in market strength and potential trend reversals.
Impulse MACD CD Signal: This histogram (maroon color) highlights the divergence between the Impulse Histo and the signal line, providing further insights into trend shifts.
Background Boxes: The indicator features three rows of different colored background boxes that represent distinct market conditions - an uptrend (light green), a downtrend (light red), and a neutral trend (light yellow).
Crossover Points: Buy signals are marked with green circles when the MACD line crosses above the signal line, suggesting potential entry points for long positions.
Demand and Supply Bars: The demand (lime/green) and supply (red/orange) bars are intensified, aiding traders in identifying possible reversal areas.
Stop Loss and Take Profit:
The Impulse MACD Buy Indicator automatically calculates Stop Loss (SL) and Take Profit (TP) levels for buy signals. The SL level is set at the highest of the last three candles, while the TP level is determined by a user-defined percentage of the closing price. This information helps traders manage risk and optimize their profit potential.
Usage:
Apply the Impulse MACD Buy Indicator to your TradingView chart by copying the provided Pine Script into the Pine Editor.
Configure the input parameters, such as the MA Length and Signal Length, to suit your trading preferences.
Observe the MACD line, signal line, and histograms to gain insights into market momentum and trends.
Identify buy signals when the MACD line crosses above the signal line, signaled by green circles.
Utilize the provided Stop Loss and Take Profit levels for risk management and exit strategies.
Please note that this indicator is for informational purposes only and should be used in conjunction with other analysis techniques to make well-informed trading decisions. Happy trading!
Quantitative Trend Strategy- Uptrend longTrend Strategy #1
Indicators:
1. SMA
2. Pivot high/low functions derived from SMA
3. Step lines to plot support and resistance based on the pivot points
4. If the close is over the resistance line, green arrows plot above, and vice versa for red arrows below support.
Strategy:
1. Long Only
2. Mutable 2% TP/1.5% SL
3. 0.01% commission
4. When the close is greater than the pivot point of the sma pivot high, and the close is greater than the resistance step line, a long position is opened.
*At times, the 2% take profit may not trigger IF; the conditions for reentry are met at the time of candle closure + no exit conditions have been triggered.
5. If the position is in the green and the support step line crosses over the resistance step line, positions are exited.
How to use it and what makes it unique:
Use this strategy to trade an up-trending market using a simple moving average to determine the trend. This strategy is meant to capture a good risk/reward in a bullish market while staying active in an appropriate fashion. This strategy is unique due to it's inclusion of the step line function with statistics derived from myself.
This description tells the indicators combined to create a new strategy, with commissions and take profit/stop loss conditions included, and the process of strategy execution with a description on how to use it. If you have any questions feel free to PM me and boost if you enjoyed it. Thank you, pineUSERS!
Consolidation Finder Expo [serkany88]It's relatively easy to create a repainting system where you can detect consolidation but it can be pretty hard to detect breakouts while the consolidation is happening live. This experimental approach came to my mind after brainstorming a bit.
What it does
This indicator DOES NOT REPAINT and try to show consolidation zones by coloring the bars or background to a selected color(default white)
How it works
In this approach we use weighted standard deviation of Vidya (Variable Index Dynamic Average created by Tushar Chande). The reason we use vidya is it's length is actually being adapted to volatility and lookback is dynamically adjusted. After getting vidya of base we also create same length vidya of high's and low's and get weighted standard deviation of those. After this we add and subtract those with base vidya and and get their average with our multiplier weight starting from the first bar. If our current value is higher than the average it means we are not in consolidation, else we are thus the bar and background will be painted.
How to use
Consolidation Finder can be used with your existing bot strategy as an additional filter or can be used with your manual trading system as an additional filter or detect breakouts. But be aware that you might need to tinker with length and multipliers in the settings depending on your timeframe to get best results possible before using it reliably. You can also enable the plots of vidya's from the style tab which is disabled by default to see how the deviations actually move if you are interested in it.
Volume ValueWhen VelocityTitle: Volume ValueWhen Velocity Trading Strategy
▶ Introduction:
The " Volume ValueWhen Velocity " trading strategy is designed to generate long position signals based on various technical conditions, including volume thresholds, RSI (Relative Strength Index), and price action relative to the Simple Moving Average (SMA). The strategy aims to identify potential buy opportunities when specific criteria are met, helping traders capitalize on potential bullish movements.
▶ How to use and conditions
★ Important : Only on Spot Binance BINANCE:BTCUSDT
Name: Volume ValueWhen Velocity
Operating mode: Long on Spot BINANCE BINANCE:BTCUSDT
Timeframe: Only one hour
Market: Crypto
currency: Bitcoin only
Signal type: Medium or short term
Entry: All sections in the Technical Indicators and Conditions section must be saved to enter (This is explained below)
Exit: Based on loss limit and profit limit It is removed in the settings section
Backtesting:
⁃ Exchange: BINANCE BINANCE:BTCUSDT
⁃ Pair: BTCUSDT
⁃ Timeframe:1h
⁃ Fee: 0.1%
- Initial Capital: 1,000 USDT
- Position sizing: 500 usdt
-Trading Range: 2022-07-01 11:30 ___ 2023-07-21 14:30
▶ Strategy Settings and Parameters:
1. `strategy(title='Volume ValueWhen Velocity', ...`: Sets the strategy title, initial capital, default quantity type, default quantity value, commission value, and trading currency.
↬ Stop-Loss and Take-Profit Settings:
1. long_stoploss_value and long_stoploss_percentage : Define the stop-loss percentage for long positions.
2. long_takeprofit_value and long_takeprofit_percentage : Define the take-profit percentage for long positions.
↬ ValueWhen Occurrence Parameters:
1. occurrence_ValueWhen_1 and occurrence_ValueWhen_2 : Control the occurrences of value events.
2. `distance_value`: Specifies the minimum distance between occurrences of ValueWhen 1 and ValueWhen 2.
↬ RSI Settings:
1. rsi_over_sold and rsi_length : Define the oversold level and RSI length for RSI calculations.
↬ Volume Thresholds:
1. volume_threshold1 , volume_threshold2 , and volume_threshold3 : Set the volume thresholds for multiple volume conditions.
↬ ATR (Average True Range) Settings:
1. atr_small and atr_big : Specify the periods used to calculate the Average True Range.
▶ Date Range for Back-Testing:
1. start_date, end_date, start_month, end_month, start_year, and end_year : Define the date range for back-testing the strategy.
▶ Technical Indicators and Conditions:
1. rsi: Calculates the Relative Strength Index (RSI) based on the defined RSI length and the closing prices.
2. was_over_sold: Checks if the RSI was oversold in the last 10 bars.
3. getVolume and getVolume2 : Custom functions to retrieve volume data for specific bars.
4. firstCandleColor : Evaluates the color of the first candle based on different timeframes.
5. sma : Calculates the Simple Moving Average (SMA) of the closing price over 13 periods.
6. numCandles : Counts the number of candles since the close price crossed above the SMA.
7. atr1 : Checks if the ATR_small is less than ATR_big for the specified security and timeframe.
8. prevClose, prevCloseBarsAgo, and prevCloseChange : ValueWhen functions to calculate the change in the close price between specific occurrences.
9. atrval: A condition based on the ATR_value3.
▶ Buy Signal Condition:
Condition: A combination of multiple volume conditions.
buy_signal: The final buy signal condition that considers various technical conditions and their interactions.
▶ Long Strategy Execution:
1. The strategy will enter a long position (buy) when the buy_signal condition is met and within the specified date range.
2. A stop-loss and take-profit will be set for the long position to manage risk and potential profits.
▶ Conclusion:
The " Volume ValueWhen Velocity " trading strategy is designed to identify long position opportunities based on a combination of volume conditions, RSI, and price action. The strategy aims to capitalize on potential bullish movements and utilizes a stop-loss and take-profit mechanism to manage risk and optimize potential returns. Traders can use this strategy as a starting point for their own trading systems or further customize it to suit their preferences and risk appetite. It is crucial to thoroughly back-test and validate any trading strategy before deploying it in live markets.
↯ Disclaimer:
Risk Management is crucial, so adjust stop loss to your comfort level. A tight stop loss can help minimise potential losses. Use at your own risk.
How you or we can improve? Source code is open so share your ideas!
Leave a comment and smash the boost button!
Buy Only Strategy with Dynamic Re-Entry and ExitThe strategy aims to create a simple buy-only trading system based on moving average crossovers and the Weekly Commodity Channel Index (CCI) or Weekly Average Directional Index (ADX). It generates buy signals when the fast-moving average crosses above the slow-moving average and when the Weekly CCI and or Weekly ADX meet the specified conditions.
The strategy also allows for dynamic re-entry, which means it can open new long positions if the price goes above the three moving averages after an exit. However, the strategy will exit the long position if the price closes below the third moving average.
ENTRY CONDITIONS
The script defines the conditions for generating buy signals. It checks for two conditions for a valid buy signal:
• If the fast-moving average crosses above the slow-moving average -THERE IS Dynamic Re-Entry also
• If the user chooses HE OR SHE CAN FILTER TRADES BY USING CCI OR ADX
Dynamic Re-Entry:
the script allows for dynamic re-entry. If there is no active long position and the price is above all three moving averages a new long position is opened.
Exit Conditions
The script defines the exit condition for closing a long position. If the price closes below the third moving average, the script closes the long position.
IMPORTANT NOTICE
ONLY DAILY TIME FRAME
THERE WOULD BE WHIPSAW USE YOUR OWN ACCUMEN TO MINIMISE THEM
ITS ONLY BUY STRATEGY
EXIT CAN BE STRATEGY BASED OR SET PROFIT AND TARGETS AS PER RISK APETITE /RISK MANAGEMENT
DONT TRADE OPTIONS ON THIS
SUITABLE FOR STOCKS OF USA AND INDIAN MARKETS
ALWAYS REMEMBER TO DO YOUR OWN RESEARCH BEFORE TRADING AND INVESTING
Inverse Moving Average Weighted (IWMA)Description:
The Inverse Weighted Moving Average (IWMA) is a unique technical indicator that puts more emphasis on older price data compared to recent data. Unlike traditional moving averages that give more weight to recent data, the IWMA believes that older data points have a larger psychological impact on traders and therefore should be given more importance.
The IWMA is calculated by assigning weights to the price data points in a moving window, with the oldest data point given the highest weight and the most recent data point given the lowest weight. These weights are then used to calculate a weighted average, which forms the IWMA.
The IWMA can be used in the same way as other moving averages. When the price crosses above the IWMA, it may indicate a potential upward trend, signaling a good time to buy. Conversely, when the price crosses below the IWMA, it may indicate a potential downward trend, signaling a good time to sell.
The IWMA is a unique tool for traders who believe in the lasting impact of older price data. It provides a different perspective on price trends and can be a valuable addition to your trading toolkit.
Dee EMA 5.0
1. Indicator Features:
- The indicator can plot four different sets of EMA on a chart.
- The EMA values can be displayed on the chart with their respective names (e.g., ema9, ema20, etc.).
- The indicator allows customization of the EMA values.
2. Purpose of Dee_EMA 5.0:
- Dee_EMA 5.0 is a unique EMA indicator specially designed for traders to provide better insights and aid in trading decisions.
- The primary reason for building this indicator is to address the challenge of managing multiple time frames while using normal EMA tables.
- Traditional EMA tables might not show all EMA values across different time frames simultaneously, leading to time-consuming processes like shifting time frames and refreshing charts.
- Dee_EMA 5.0 solves this issue by displaying EMA values for different time frames in one table, allowing traders to make quick judgments without repeatedly changing time frames and refreshing charts.
3. Importance of Different Time Frame EMA Values:
- Different time frames EMA values are crucial in trading because they provide valuable insights into the market dynamics at various levels.
- When using shorter time frames (e.g., 1-minute), EMA values can help identify short-term trends, support, and resistance levels.
- On the other hand, using larger time frames (e.g., 5-minute or 15-minute) provides more data and increases the accuracy of EMA-based analysis, enabling traders to identify longer-term trends and potential price movements.
4. EMA Crossover Table:
- Traders often prefer a clutter-free chart without too many lines, but they still need access to EMA values for analysis.
- The EMA table and EMA crossover table serve this purpose by providing EMA values and EMA crossover information in a structured table format.
- With the EMA crossover table, traders can quickly check EMA values and crossovers across different time frames without having to switch time frames repeatedly, saving time and facilitating faster decision-making during trading.
In summary, Dee_EMA 5.0 is an EMA indicator designed to help traders efficiently analyze EMA values across different time frames, allowing for faster and more informed trading decisions. The EMA crossover table provides additional convenience by presenting EMA crossovers without cluttering the chart.
Major and Minor Trend Indicator by Nikhil34a V 2.2Title: Major and Minor Trend Indicator by Nikhil34a V 2.2
Description:
The Major and Minor Trend Indicator v2.2 is a comprehensive technical analysis script designed for use with the TradingView platform. This powerful tool is developed in Pine Script version 5 and helps traders identify potential buying and selling opportunities in the stock market.
Features:
SMA Trend Analysis: The script calculates two Simple Moving Averages (SMAs) with user-defined lengths for major and minor trends. It displays these SMAs on the chart, allowing traders to visualize the prevailing trends easily.
Surge Detection: The indicator can detect buying and selling surges based on specific conditions, such as volume, RSI, MACD, and stochastic indicators. Both Buying and Selling surges are marked in black on the chart.
Option Buy Zone Detection: The script identifies the option buy zone based on SMA crossovers, RSI, and MACD values. The buy zone is categorized as "CE Zone" or "PE Zone" and displayed in the table along with the trigger time.
Two-Day High and Low Range: The script calculates the highest high and lowest low of the previous two trading days and plots them on the chart. The area between these points is shaded in semi-transparent green and red colors.
Crossover Analysis: The script analyzes moving average crossovers on multiple timeframes (2-minute, 3-minute, and 5-minute) and displays buy and sell signals accordingly.
Trend Identification: The script identifies the major and minor trends as either bullish or bearish, providing valuable insights into the overall market sentiment.
Usage:
Customize Major and Minor SMA Periods: Adjust the lengths of major and minor SMAs through input parameters to suit your trading preferences.
Enable/Disable Moving Averages: Choose which SMAs to display on the chart by toggling the "showXMA" input options.
Set Surge and Option Buy Zone Thresholds: Modify the surgeThreshold, volumeThreshold, RSIThreshold, and StochThreshold inputs to refine the surge and buy zone detection.
Analyze Crossover Signals: Monitor the crossover signals in the table, categorized by timeframes (2-minute, 3-minute, and 5-minute).
Explore Market Bias and Distance to 2-Day High/Low: The table provides information on market bias, current price movement relative to the previous two-day high and low, and the option buy zone status.
Additional Use Cases:
Surge Indicator:
The script includes a Surge Indicator that detects sudden buying or selling surges in the market. When a buying surge is identified, the "BSurge" label will appear below the corresponding candle with black text on a white background. Similarly, a selling surge will display the "SSurge" label in white text on a black background. These indicators help traders quickly spot strong buying or selling activities that may influence their trading decisions. These surges can be used to identify sudden premium dump zones.
Option Buy Zone:
The Option Buy Zone is an essential feature that identifies potential zones for buying call options (CE Zone) or put options (PE Zone) based on specific technical conditions. The indicator evaluates SMA crossovers, RSI, and MACD values to determine the current market sentiment. When the option buy zone is triggered, the script will display the respective zone ("CE Zone" or "PE Zone") in the table, highlighted with a white background. Additionally, the time when the buy zone was triggered will be shown under the "Option Buy Zone Trigger Time" column.
Price Movement Relative to 2-Day High/Low:
The script calculates the highest high and lowest low of the previous two trading days (high2DaysAgo and low2DaysAgo) and plots these points on the chart. The area between these two points is shaded in semi-transparent green and red colors. The green region indicates the price range between the highpricetoconsider (highest high of the previous two days) and the lower value between highPreviousDay and high2DaysAgo. Similarly, the red region represents the price range between the lowpricetoconsider (lowest low of the previous two days) and the higher value between lowPreviousDay and low2DaysAgo.
Entry Time and Current Zone:
The script identifies potential entry times for trades within the option buy zone. When a valid buy zone trigger occurs, the script calculates the entryTime by adding the durationInMinutes (user-defined) to the startTime. The entryTime will be displayed in the "Entry Time" column of the table. Depending on the comparison between optionbuyzonetriggertime and entryTime, the background color of the entry time will change. If optionbuyzonetriggertime is greater than entryTime, the background color will be yellow, indicating that a new trigger has occurred before the specified duration. Otherwise, the background color will be green, suggesting that the entry time is still within the defined duration.
Current Zone Indicator:
The script further categorizes the current zone as either "CE Zone" (call option zone) or "PE Zone" (put option zone). When the market is trending upwards and the minor SMA is above the major SMA, the currentZone will be set to "CE Zone." Conversely, when the market is trending downwards and the minor SMA is below the major SMA, the currentZone will be "PE Zone." This information is displayed in the "Current Zone" column of the table.
These additional use cases empower traders with valuable insights into market trends, buying and selling surges, option buy zones, and potential entry times. Traders can combine this information with their analysis and risk management strategies to make informed and confident trading decisions.
Note:
The script is optimized for identifying trends and potential trade opportunities. It is crucial to perform additional analysis and risk management before executing any trades based on the provided signals.
Happy Trading!
Crunchster's Normalised Trend StrategyThis is a unique rules-based, systematic trading strategy - in the trend following category.
The strategy is designed for use on the daily timeframe. Specific features of this strategy are outlined below:
1. Uses a transformed price series (which I dub "real price") to generate signals rather than ticker price
2. Uses advanced position sizing and risk management, usually reserved for institutional portfolio management, a proven technique utilised by Commodity Trading Advisors and Managed Futures funds (Algo/Quant funds).
"Real Price" is a transformed price series derived from the sum of volatility adjusted (daily) returns, over the entire price series of an asset. The lookback period of the volatility adjustment is user defined.
A Hull moving average (HMA) is derived from the real price, and used as the main trend determinant. The lookback period of the HMA is user defined. Default lookback of 100 periods (days) ensures a responsive trend indicator, but without leading to over-trading from frequent crossovers (average holding period 14 days on BTC).
The core strategy is very simple, go long when real price crosses over HMA, go short when real price crosses under HMA. New position triggers automatically close open positions in the counter direction.
Position sizing is based on recent price volatility and the user defined annualised risk target. In essence positions are inverse volatility weighted, so larger size is opened during lower volatility and smaller size during increased volatility. Recent volatility is calculated as the standard deviation of returns with 14 period lookback, then extrapolated into an annualised volatility of expected returns. Annualised recent volatility is then referenced to the risk target set by the user to adjust the position size. The default settings are a very conservative 10% annual risk target. Initial capital should be set as the maximum risk capital per trade (ie if $10,000 total capital and 10% risk per trade, initial capital should be $1000). Maximum leverage per position can be set independently, to facilitate hitting risk targets that are greater than the natural volatility of the traded asset, and to accommodate low volatility conditions, whilst maintaining overall risk controls.
Hard stop losses are based on multiples of the average true range of recent price (14 period lookback), user configurable.
Please leave comments regarding further features or refinements. I plan to develop further adding alternative moving average selections and the ability to select/deselect long and short strategies.
3 hours ago
Release Notes:
Added option to compound profits versus using a fixed position capital. Be mindful that compounding will potentially increase profits, but also increase drawdowns and overall risk. Leverage will still cap overall exposure with compounding and therefore provides an additional layer of risk control.
2 hours ago
Release Notes:
Added function to toggle long/short strategy legs on and off.
EMA Buy/Sell Alerts with ATR-based TP/SLI wanted to fill a void in the Tradingview FREE indicators. I have searched far and wide on a moving average alert with ATR based take profits and stop loss. I have attempted a rudimentary version of what I hope to improve upon in the future. Will try and add different moving average options such as simple, hull, RMA, JMA, SSL, WMA, etc. For now, a basic EMA with 3 TP and a SL based on the current ATR should suffice.
I grow tired of the ATR take profits being hidden behind a paywall. Please use the script and add to your favorite indicators as you please.
Please leave feedback for future development.