SMI Ergodic Indicator + OscillatorThis indicator is one that I came across a while ago. The main way this indicator works is a lot like the True Strength Index except it also adds a signal line. I like to think of it as a faster MACD that gives you a chance to lag a little less behind the MACD. This of course comes with the additional risk of fake-outs being prevalent. The signal line in the indicator allows you to use the EMA in the indicator itself and adds another indicator that it's either going to do a reversal or confirm trend.
In the indicator I created it has the Oversold and Overbought areas highlighted to show the oscillators function as kind of an RSI + MACD indicator. There is also added crossing alerts in the form of circles (or whatever you want to change it to) indicating a cross of the SMI line and the Signal EMA line. This is usually the point where you want to make an entrance or exit point. The Overbought and Oversold zones are adjustable to wherever you as a trader feel comfortable having them be.
I also combined bother the SMI and Signal line with the SMI Oscillator adding a histogram.
Medias móviles
True Range Moving Average Deviation🔶 Overview
The True Range Moving Average Deviation Indicator (TRMAD) is a technical analysis tool that combines elements of price deviation, volatility, and overbought/oversold conditions.
🔶 Key Components
Current price (Close) : most recent closing price of the asset.
Moving Average (MA) : represents a smoothed trendline of the asset's closing prices over a specified period. By default, TRMAD uses the Simple Moving Average (SMA) with a 20-period setting.
Average True Range (ATR) : reflects the average price range between the high and low over a given time frame. By default, TRMAD uses a 14-period ATR setting with a Simple Moving Average (SMA) calculation. ATR quantifies the historical price volatility of the asset, which is crucial for normalizing the price deviation.
🔶 Calculation
(Close - MA) / ATR
🔶 Interpretation
When TRMAD is above +3 ATR , it is often considered an indication that the asset may be overbought, suggesting a potential reversal or correction to the downside.
When TRMAD is below -3 ATR , it is often considered an indication that the asset may be oversold, suggesting a potential reversal or bounce to the upside.
TRMAD values around 0 ATR may indicate a balanced market condition.
🔶 Usage
🔹 Overbought and Oversold Conditions:
TRMAD can help identify overbought and oversold conditions. When TRMAD reaches or exceeds certain user-defined thresholds (e.g., +3 ATR or -3 ATR), it can signal that the asset is in an extreme condition.
Traders can use these extreme conditions to adjust their positions or look for potential reversal opportunities.
🔹 Divergence Analysis:
Traders often analyze divergences between the TRMAD indicator and price movements. For example, if the price is making higher highs while TRMAD is making lower highs (bearish divergence), it could indicate a potential trend reversal.
🔹 Trend Confirmation:
TRMAD can be used in conjunction with other technical indicators to confirm trends. For example, if TRMAD is consistently positive during an uptrend, it can provide confirmation of the trend's strength.
Positive TRMAD : When TRMAD is positive but hasn't reached the overbought threshold (e.g., +3 ATR), it suggests that there is some bullish momentum, but traders may exercise caution and look for other confirming signals before considering a long position.
Negative TRMAD : When TRMAD is negative but hasn't reached the oversold threshold (e.g., -3 ATR), it suggests some bearish sentiment, but traders may want to seek additional confirmation before considering a short position.
🔹 Risk Management:
Traders can use TRMAD as part of their risk management strategy. For instance, if TRMAD suggests that an asset is overbought, a trader might consider tightening their stop-loss orders to manage potential downside risk.
🔶 Credits
The idea about this indicator came from Fabio Figueiredo (Vlad)
Nadaraya-Watson Envelope: Modified by YosietRange Filter indicator based on the LuxAlgo Nadaraya-Watson Envelope () indicator adding the SMA 30 high and SMA 7 low to predict the changes of the trends lines price.
WARNING: This indicator, as the same as the original, repaints the chart and could affect the exact values of the prices.
SMA Low 7 was identified using tensorflowJS years ago as accurate and abstract rsi indicator
SMA High 30 was identified using tensorflowJS years ago as accurate and strong trend line
This two SMAs were added to the original indicator Nadaraya-Watson to predict the exact points where the price will change direction or will re-test the trend to continue on.
The signals will act as the Williams Fractals, replacing the original signals of the indicator.
For those ICT/SMC traders, the bands and SMAs can toggle off in the settings of this indicator.
SETTINGS
Can set the source of the UPPER band indivuadilly
Can set the source of the LOWER band indivuadilly
Can toggle the visibility of the bands, this will not affect the calculations
Can toggle the visibility of SMAs
ALERTS AND SIGNALS
When the SMA LOW 7 cross under or over the bands, will trigger a signal orange
When the SMA 30 High cross over the upper band, will trigger a short signal purpple
HOW TO USE IT
If the both signals appears (sma 7 low and sma 30 high) crossing the upper band at the same point, this means that the price will drop strongly.
If the sma 7 low cross signal (orange triangle) appears under the price and lower band, means that the price will go up.
The separation of the signals from the chart will suggest the force of the movement. While more distance be, strongest reaction of the price.
DISCLAIMER : This indicator or script does not imply or constitute financial advice, investment advice, trading advice or any other type of advice or recommendation by and for TradingView. Use it at your own risk and your own decision.
Moving Averages w/Signals [CSJ7]Unlock the power of three dynamic moving averages: Fast, Medium, and Slow. Choose between the reliability of Simple or the responsiveness of Exponential MAs. Plus, with our tailored Buy and Sell signals based on user-defined crossing scenarios, you're equipped with a clear roadmap in the ever-changing landscape of the markets.
1. Spot Trends with Ease: Our color-coded system makes identifying the market's direction intuitive. Green signals bullish momentum, while red indicates bearish movements.
2. Precision Signals: Navigate the markets confidently with our Buy and Sell signals, designed to highlight potential entry and exit points.
3. Gauge Trend Strength: The color intensity between the Medium and Slow MAs offers a visual cue on the trend's strength, ensuring you're always in the know.
Limitations:
- Inherent Lag: As with all moving average tools, there's a natural delay. But it's this reflective nature that offers valuable insights.
- Stay Alert in Sideways Markets: During consolidative phases, the indicator might produce occasional false signals. Always cross-reference with other tools.
- Customization is Key: The tool's true potential shines when you adjust the settings to align with your trading style and strategy.
4. How to Use:
Quick Setup: Select your preferred MA type, set the lengths, and define your ideal crossover scenarios. It's that simple!
Interpreting Signals: A green triangle below the price suggests a potential buying zone, while a red triangle above hints at a selling opportunity.
Trend Insights: The color gradient between the Medium and Slow MAs offers a visual representation of the trend's vigor. The more vibrant, the stronger the trend.
Elevate your trading strategy with the Moving Averages w/Signals & AutoTrade . With clarity and precision, it's the companion every trader deserves.
Alxuse Supertrend 4EMA Buy and Sell for tutorialAll abilities of Supertrend, moreover :
Drawing 4 EMA band & the ability to change values, change colors, turn on/off show.
Sends Signal Sell and Buy in multi timeframe.
The ability used in the alert section and create customized alerts.
To receive valid alerts the replay section , the timeframe of the chart must be the same as the timeframe of the indicator.
Supertrend with a simple EMA Filter can improve the performance of the signals during a strong trend.
For detecting the continuation of the downward and upward trend we can use 4 EMA colors.
In the upward trend , the EMA lines are in order of green, blue, red, yellow from bottom to top.
In the downward trend, the EMA lines are in order of yellow, red, blue, green from bottom to top.
How it works:
x1 = MA1 < MA2 and MA2 < MA3 and MA3 < MA4 and ta.crossunder(MA3, MA4)
x2 = MA1 < MA2 and MA2 < MA3 and MA3 < MA4 and ta.crossunder(MA2, MA3)
x3 = MA1 < MA2 and MA2 < MA3 and MA3 < MA4 and ta.crossunder(MA1, MA2)
y1 = MA4 < MA3 and MA3 < MA2 and MA2 < MA1 and ta.crossover(MA3, MA4)
y2 = MA4 < MA3 and MA3 < MA2 and MA2 < MA1 and ta.crossover(MA2, MA3)
y3 = MA4 < MA3 and MA3 < MA2 and MA2 < MA1 and ta.crossover(MA1, MA2)
Red triangle = x1 or x2 or x3
Green triangle = y1 or y2 or y3
Long = BUY signal and followed by a Green triangle
Exit Long = SELL signal
Short = SELL signal and followed by a Red triangle
Exit Short = BUY signal
It is also possible to get help from the Stochastic RSI and MACD indicators for confirmation.
For receiving a signal with these two conditions or more conditions, i am making a video tutorial that I will release soon.
Supertrend
Definition
Supertrend is a trend-following indicator based on Average True Range (ATR). The calculation of its single line combines trend detection and volatility. It can be used to detect changes in trend direction and to position stops.
The basics
The Supertrend is a trend-following indicator. It is overlaid on the main chart and their plots indicate the current trend. A Supertrend can be used with varying periods (daily, weekly, intraday etc.) and on varying instruments.
The Supertrend has several inputs that you can adjust to match your trading strategy. Adjusting these settings allows you to make the indicator more or less sensitive to price changes.
For the Supertrend inputs, you can adjust atrLength and multiplier:
the atrLength setting is the lookback length for the ATR calculation;
multiplier is what the ATR is multiplied by to offset the bands from price.
When the price falls below the indicator curve, it turns red and indicates a downtrend. Conversely, when the price rises above the curve, the indicator turns green and indicates an uptrend. After each close above or below Supertrend, a new trend appears.
Summary
The Supertrend helps you make the right trading decisions. However, there are times when it generates false signals. Therefore, it is best to use the right combination of several indicators. Like any other indicator, Supertrend works best when used with other indicators such as MACD, Parabolic SAR, or RSI.
Exponential Moving Average
Definition
The Exponential Moving Average (EMA) is a specific type of moving average that points towards the importance of the most recent data and information from the market. The Exponential Moving Average is just like it’s name says - it’s exponential, weighting the most recent prices more than the less recent prices. The EMA can be compared and contrasted with the simple moving average.
Similar to other moving averages, the EMA is a technical indicator that produces buy and sell signals based on data that shows evidence of divergence and crossovers from general and historical averages. Additionally, the EMA tries to amplify the importance that the most recent data points play in a calculation.
It is common to use more than one EMA length at once, to provide more in-depth and focused data. For example, by choosing 10-day and 200-day moving averages, a trader is able to determine more from the results in a long-term trade, than a trader who is only analyzing one EMA length.
It’s best to use the EMA when for trending markets, as it shows uptrends and downtrends when a market is strong and weak, respectively. An experienced trader will know to look both at the line the EMA projects, as well as the rate of change that comes from each bar as it moves to the next data point. Analyzing these points and data streams correctly will help the trader determine when they should buy, sell, or switch investments from bearish to bullish or vice versa.
Short-term averages, on the other hand, is a different story when analyzing Exponential Moving Average data. It is most common for traders to quote and utilize 12- and 26-day EMAs in the short-term. This is because they are used to create specific indicators. Look into Moving Average Convergence Divergence (MACD) for more information. Similarly, the 50- and 200-day moving averages are most common for analyzing long-term trends.
Moving averages can be very useful for traders using technical analysis for profit. It is important to identify and realize, however, their shortcomings, as all moving averages tend to suffer from recurring lag. It is difficult to modify the moving average to work in your favor at times, often having the preferred time to enter or exit the market pass before the moving average even shows changes in the trend or price movement for that matter.
All of this is true, however, the EMA strives to make this easier for traders. The EMA is unique because it places more emphasis on the most recent data. Therefore, price movement and trend reversals or changes are closely monitored, allowing for the EMA to react quicker than other moving averages.
Limitations
Although using the Exponential Moving Average has a lot of advantages when analyzing market trends, it is also uncertain whether or not the use of most recent data points truly affects technical and market analysis. In addition, the EMA relies on historical data as its basis for operating and because news, events, and other information can change rapidly the indicator can misinterpret this information by weighting the current prices higher than when the event actually occurred.
Summary
The Exponential Moving Average (EMA) is a moving average and technical indicator that reflects and projects the most recent data and information from the market to a trader and relies on a base of historical data. It is one of many different types of moving averages and has an easily calculable formula.
The added features to the indicator are made for training, it is advisable to use it with caution in tradings.
Crypto Notes Scalping Indicator by Mohsin
**Crypto Notes Indicator**
This custom trading indicator, named "Crypto Notes," is designed to assist traders in analyzing cryptocurrency price movements. It combines two key components: the SSL (Stochastic Support and Resistance) channel and a Moving Average.
**Indicator Components:**
1. **SSL Channel:**
- The SSL channel is a technical analysis tool that helps identify potential support and resistance levels in the cryptocurrency price chart.
- The indicator calculates two values: `sslDown` and `sslUp`, which represent potential support and resistance levels, respectively.
- The SSL channel is based on a user-defined period and length, allowing traders to customize the sensitivity of the support and resistance levels.
2. **Buy and Sell Signals:**
- Buy and sell signals are generated when the `sslUp` crosses above `sslDown` (a buy signal) or when `sslUp` crosses below `sslDown` (a sell signal).
- These signals help traders identify potential entry and exit points for their cryptocurrency trades.
3. **Moving Average (MA1):**
- The indicator also includes a customizable exponential moving average (EMA) with a length defined by the user.
- This moving average (MA1) can be used to smooth out price data and identify trends in the cryptocurrency's price movement.
**How to Use:**
1. **SSL Channel:** The SSL channel visually represents potential support and resistance levels on the price chart. Traders can observe price behavior concerning these levels to make trading decisions.
2. **Buy Signals:** Buy signals are labeled as "BUY" on the chart when `sslUp` crosses above `sslDown`. This is an indication of a potential bullish trend or an opportune time to enter a long position.
3. **Sell Signals:** Sell signals are labeled as "SELL" on the chart when `sslUp` crosses below `sslDown`. This suggests a potential bearish trend or an opportune time to exit a long position or consider shorting.
4. **Moving Average (MA1):** The customizable moving average (MA1) can help traders identify trends in the cryptocurrency's price movement. When MA1 is above the price, it may suggest an uptrend, and when it's below, it may suggest a downtrend.
**Customization:**
- Traders can adjust the indicator's parameters, such as the SSL channel period, length, and the length of the EMA (MA1), to suit their specific trading strategies and preferences.
**Disclaimer:** This indicator is a tool for technical analysis and does not provide financial advice. Trading cryptocurrencies involves risks, and users should conduct thorough research and risk management before making any trading decisions.
**Note:** It's essential to thoroughly test this indicator and incorporate it into a comprehensive trading strategy before using it for actual trading.
---
Please ensure you understand the indicator's functionality and consider using it alongside other tools and analysis methods as part of your trading strategy.
SMA/EMA/RSImagic 36.963 by IgorPlahutaTwo Elements in this script:
Alerts: These are notifications that draw your attention to specific market conditions. There are two types:
RSI Higher Lows or Lower Highs: This alert triggers when the Relative Strength Index (RSI) forms higher lows or lower highs.
RSI Exiting 30 (Up) or RSI Exiting 70 (Down): These alerts activate when the RSI crosses the 30 threshold upwards or the 70 threshold downwards.
ALL BUY/SELL: to catch both of them with one setting
To Set Up an Alert: To configure an alert, select the one relevant to your trading strategy, choose the "Greater than" option, and input a value of "0" (this essentially activates the alert). Adjust other settings as per your requirements.
Please note that these alerts should be used in conjunction with a system you trust for confirmation.
Moving Averages: This involves monitoring several moving averages:
SMA12, SMA20, EMA12, EMA20: These moving averages are highlighted with background colors to help you quickly identify changes or crossovers. They are superimposed on each other for easy comparison.
SMA 50, SMA200: These moving averages are also highlighted with background colors to spot crossovers, and their lines change color depending on their direction (falling in red or rising in green).
Enjoy using these tools in your trading endeavors!
BZ_SMASMA crossover with 80% profitable probability
SMA crossover with 80% profitable probability
SMA crossover with 80% profitable probabilitySMA crossover with 80% profitable probability
SMA crossover with 80% profitable probability
Rolling VWAP OscillatorTL;DR - TradingView's Rolling VWAP as centered oscillator
I really like TradingView's rolling VWAP (Rolling Volume-Weighted Average Price - RVWAP) indicator. But I also like clean charts that's why I'm mainly using indicators which are not displayed on the chart. Instead of simply moving the RVWAP to another pane I turned it into a centered oscillator. This allows me checking the RVWAP while having my chart clean.
You can find the oroginal RVWAP here .
Creds to TradingView for creating this indicator 👍
* I also added a fourth deviation band, gradient colors and the option to switch between candles and lines.
[blackcat] L1 T3 MA Lite Version
Tilson T3 Moving Average (T3MA) is a type of moving average line designed to reduce lag and improve the accuracy of trend identification. It is based on a combination of multiple smoothed moving averages, with each subsequent smoothed moving average having a higher weight than the previous one. The T3MA formula includes three different smoothing coefficients and a volume coefficient or volatility coefficient, which can be adjusted according to user preferences. T3MA is commonly used by traders and investors to identify trends and generate trading signals.
The calculation method for T3MA requires the use of exponential moving averages (EMA). In Pine scripts in the TradingView community, over 90% of them use the EMA function to calculate T3MA. Specifically, in Pine scripts, it is necessary to define the length and volatility coefficient of T3MA, then calculate three different lengths of EMA separately. Next, three constants need to be calculated that are related to volatility. Finally, the weighted average value of the three EMAs and three constants is added together to obtain the value of T3MA. If you want to customize the length and volatility of T3MA, you just need to modify the parameters in the code. Overall, T3MA is a very useful technical indicator that can help traders better understand market trends and improve trading efficiency.
The improved version introduced today mainly addresses my perception that traditional T3 algorithms are too redundant with high computational complexity leading to delayed reactions. Therefore, I have developed a lightweight version called L1 T3 MA Lite Version. This doesn't bring about any qualitative changes; it simply makes adjustments in terms of computational resources and response speed. To illustrate its advantages compared with traditional T3 MA indicators, I will provide a comparison using Everget's script from TradingView community blogger everget.
The difference between these two scripts for calculating T3 Moving Average lies in their implementation methods. The first script (Everget) uses a more complex calculation formula, which requires calculating three different lengths of EMA and computing three constants based on volatility. Finally, they are weighted averaged to obtain T3MA. This complex calculation formula can enhance the sensitivity of the T3MA indicator, thereby better identifying price trends. On the other hand, the second script (Blackcat1402) uses a relatively simple calculation formula that only requires calculating three different lengths of EMA and computing three constants based on volatility. Finally, they are weighted averaged to obtain T3MA as well. This simple calculation formula reduces computational complexity and speeds up calculations. Both have slightly different effects and calculation methods; users can choose the script that suits their needs.
In summary, T3 Moving Average is a very useful technical indicator that can help traders better understand market trends and improve trading efficiency. Users can choose scripts suitable for themselves according to their needs and flexibly adjust the length and volatility coefficient of T3MA to adapt to different markets.
Day Trader's Anchored Moving Averages [wbburgin]For day traders, establishing a trend at the start of the day is critically important for setting targets and entering positions. This can be difficult when traditional moving averages lag from previous days, causing late entry and/or incorrect trend interpretation.
The Day Trader's Anchored MA indicator plots three dynamic moving averages which restart on each new period (session or monthly - more coming soon). This eliminates the lag in traditional moving averages while better identifying the trend, as the moving averages essentially 'build up' their lengths as the day progresses, until they reach your chosen maximum length.
This means that these anchored moving averages are
Quicker to identify the start-of-day trend, as markets tend to establish and then follow one trend throughout the day;
Dynamically increasing throughout the day (to your specifications)
Completely independent from previous days
Quick usage note: make sure that your moving average length is less than the number of bars in the period, or it won't reach the maximum length you specified.
TL;DR: Moving average that resets every day and does not lag. Inspired by the VWAP.
Sudden increase in volume [PINESCRIPTLABS]The indicator plots buying and selling histograms on the price chart, as well as graphical signals in the form of triangles to highlight buying and selling conditions. Buying conditions are based on a sudden increase in volume and oversold RSI, while selling conditions are based on a sudden increase in volume and overbought RSI.
In summary, this strategy aims to identify moments when there is a significant surge in trading volume along with overbought or oversold conditions in the RSI. These moments are considered potential signals for buying or selling in the market.
Sudden Volume Surge: It checks if the current volume is greater than a multiple of the exponential moving average of volume (EMA) calculated with a specific length (ema_length). This indicates a sudden surge in trading volume.
RSI Overbought and Oversold Levels: Two RSI values, rsi_overbought and rsi_oversold, are used as references. If the RSI value is below the rsi_oversold level, it is considered to be in oversold territory, and if the RSI value is above the rsi_overbought level, it is considered to be in overbought territory.
El indicador plotea histogramas de compra y venta en el gráfico de precios, así como señales gráficas en forma de triángulos para resaltar las condiciones de compra y venta. Las condiciones para la compra se basan en un aumento brusco de volumen y un RSI en sobreventa, mientras que las condiciones para la venta se basan en un aumento brusco de volumen y un RSI en sobrecompra.
En resumen, esta estrategia busca identificar momentos en los que haya un aumento significativo en el volumen de operaciones junto con condiciones de sobrecompra o sobreventa en el RSI. Estos momentos se consideran señales potenciales de compra o venta en el mercado.
Aumento brusco de volumen: Se verifica si el volumen actual es mayor que un múltiplo del promedio móvil exponencial del volumen (EMA) calculado con una longitud específica (ema_length). Esto indica un aumento repentino en el volumen de operaciones.
Niveles de RSI en sobrecompra y sobreventa: Se utilizan dos valores de RSI como referencia, rsi_overbought y rsi_oversold. Si el valor del RSI está por debajo del nivel rsi_oversold, se considera que está en territorio de sobreventa, y si el valor del RSI está por encima del nivel rsi_overbought, se considera que está en territorio de sobrecompra.
DynamicEMA-RSI IndicatorIntroducing the 'Custom EMA and RSI Indicator' – a powerful trading tool compatible with US30 and USDJPY. This indicator is designed to provide high-precision trading signals once a day. It combines the expertise of Exponential Moving Averages (EMA) and Relative Strength Index (RSI) to identify optimal entry points in the market. With a track record of high accuracy, this indicator can help you make informed trading decisions. It's the perfect addition to your trading arsenal for precision trading on the US30 and USDJPY currency pairs."
Longonly. ema cross tester WithTolerenceJust a sample script to test ema cross strategy.
Tolerance is included to make the signal tunable.
SMA RSI Fractal Entry & Exit PointsUsing the 20, 50, 200 SMA, RSI, and Fractals to indicate when to exit buy/sells or move SL if your not trailing to protect profits
SMA RSI Fractal Strategy V4 Edit 1Made from RSI, SMA, and fractals. With the bands and signals for buy and sell entry. The colors are of opposite.
RSI+SMA AL SATrsi ve sma'nın kesiştiği dönemlerde yükseliş ve düşüş dalgalarını bulmaya yarıyan indikator
En ideal kullanım 8e 8 değerleri
Engulfing and emaThis is a Pine Script script that helps you see the Engulfing Candlestick and Inside Bar (Boring Candle) candle patterns on the TradingView chart, as well as drawing two Exponential Moving Averages (EMA). Here's a simple explanation:
1. **Candle Pattern**:
- This script identifies the Engulfing Candlestick pattern, which indicates potential changes to the price. If this pattern is detected, the script will show a green (for buy) or red (for sell) arrow above or below that candle.
- The script also identifies the Inside Bar (Boring Candle), which indicates the period area in the market. This candle will be the color you choose (default is orange).
2. **Moving Average (EMA)**:
- This script also plots two Exponential Moving Averages (EMA) on the chart. EMA is a tool that helps you see price trends more clearly.
3. **Risk Management**:
- This script calculates the Stop Loss (SL) and Take Profit (TP) levels for each Engulfing pattern. This helps you manage your trading risks.
- Labels are displayed on the charts for SL and TP, so you know where to place them.
With the help of this script, you can easily identify important patterns in the market and manage your risks better. Make sure to choose a demo account before using it in real trading.
EMA & Camarilla StrategyChat GPT based , 20, 200 EMA Strategy
This script calculates EMAs (5, 20, and 200), Camarilla Pivot Points, and checks for your specified candlestick pattern conditions. It then generates buy and sell signals based on the EMA crossover and the candlestick pattern. Stop loss is calculated as the lowest low of the last 5 bars, and the target is set at the Camarilla pivot point (you can customize these values).
EMA x 3 MAsThis indicator can be used for moving average strategies based on a EMA trigger over MAs (SMAs) : MA1 , MA2 , MA3 .
Based on those crossings, the background color will change for the upcoming candle showing green for upper crossing change (the more MA are crossed, the darker is the background). Order and priority of background colors :
1/ EMA x MA1
2/ EMA x MA2 (if EMA x MA1 confirmed)
3/ EMA x MA3 (if EMA x MA1and EMA x MA2 confirmed)
EMA and MAs can also be tuned with your own values in the parameters, therefore allowing you to try different strategies and to use the EMA and MAs as support/resistance indication.
You can set up the background and lines colors in the Style in the parameters.
[blackcat] L1 Magic Moving AverageThis is a code snippet written in the Pine programming language for TradingView platform. It is an implementation of a custom technical indicator called "L1 Magic Moving Average".
Moving averages are widely used in technical analysis to identify trends and reversals in the price of an asset. The idea behind moving averages is to smooth out the price data by calculating the average price over a certain period of time. This helps to filter out the noise in the price data and provides a clearer picture of the underlying trend.
The Magic Moving Average (MMA) is a custom moving average that is calculated using a combination of three different types of moving averages: simple moving average (SMA), exponential moving average (EMA), and weighted moving average (WMA). The MMA is designed to be more responsive to changes in the price of an asset compared to traditional moving averages.
The code starts by defining the input parameters for the indicator. The length parameter determines the number of periods used for calculating the moving averages. The source parameter specifies the price data used to calculate the moving averages. Finally, the smoothness parameter adjusts the weighting of the WMA component of the MMA.
Once the input parameters are defined, the code calculates the MMA by adding the SMA, EMA, and WMA components. The SMA and EMA components are calculated using the standard functions provided by TradingView. The WMA component is calculated using a custom function that takes into account the smoothness parameter.
After the MMA is calculated, the code plots it on the chart as two lines, one for the current value and one for the previous value. The two lines are then filled with colors depending on the position of the current MMA relative to its previous value. If the current value is higher than the previous value, the plot is filled with yellow color, otherwise, it is filled with fuchsia color.
In addition to the plot, the code also includes logic for generating buy and sell signals based on the crossover of the MMA and its previous value. If the MMA crosses above its previous value, a buy signal is generated. Conversely, if the MMA crosses below its previous value, a sell signal is generated. When a signal is generated, an alert is triggered to notify the user.
Finally, the code also includes labels for the generated signals. When a buy signal is generated, a green "B" label is placed at the bottom of the candle. Similarly, when a sell signal is generated, a red "S" label is placed at the top of the candle. These labels help the user to quickly identify the signals on the chart.
Overall, this code provides a simple yet effective way of generating trading signals based on the Magic Moving Average. By using a combination of different types of moving averages, the indicator is able to capture different aspects of the price movement and generate signals that are more reliable. The flexibility of the input parameters also allows the user to adjust the indicator to their specific trading needs.
TTP Green/Red Consecutive CandlesThis indicator counts consecutive green/red candles offering some basic statistics and signals/alerts.
Features
- Counts consecutive green/red candles in an oscillator chart
- Moving average of the counting helps spotting when the consecutive candles are away from the mean. MA length and multiplier to adjust the signal sensitivity.
- Thresholds can be set to backtest and send alerts on any number of arbitrary consecutive candles of the same color.
- All time highs: the indicator keeps track of when the maximum has been reached
- Distribution data: the number of times each number of consecutive color candles has been reached is offered
Signals
- Threshold signal triggers when the number of candles of the same color is above the specified threshold.
- MA cross signal triggers when the number of candles of the same color is above the MA.