Схождение/расхождение скользящих средних (MACD)
MACD/EMA Golden CrossThis is a slight modification to the MACD indicator. The golden cross indicator makes use of EMA 7 and EMA 21 as well as MACD together, in which it will turn the MACD line yellow & fill the MACD with a yellow background when MACD is above the signal line and EMA7 is above EMA21. This is best suited for swing trading on a daily timeframe.
My BTST RSI MACD X-BODYMy trial of script base on EMA , RSI and MACD to filter the best Candle which has likely hood of uptrend in a practice of " Buy Today Sell Tomorrow".
Blue candle : 40 to 70 % RSI
Orange candle > 80 % RSI
Yellow candle < 30 % RSI - buy and can hold
Lime candle buy above MACD line.
Also i added the label when 2 EMAs and SMA cross each other in solid body candle.
Buy on Blue, Lime.
Buy and hold on Yellow candle.
Good luck!
NIFTY Money Flow - Scalping/SwingBrief Description About Script
It considers the change of price in the direction
change of price is +Ve then considered as +Ve money flow
-Ve then considered as -Ve money flow
and it multplied by Volume change
This Strategy works best with NIFTY
For Scalping:-
Settings:- 1 Min Candle Time Frame, Length 20
For Swing:-
Setting:- 30 Min Candle Time Frame, Length 11
How to use it?
Common usage:-
Buy - When turns Red to Green Buy by keeping 1.5 * ATR as SL or Trailing SL(Optional) at the same time frame
Sell - When turns Green to Red SL by keeping 1.5 * ATR as SL or Trailing SL(Optional) at the same time frame
Trend reversal:-
Draw Divergence between indicator and price
Buy - Indicator forms Higher Highs(Red Side), Price Lower Lows
Sell - Indicator forms Lower Lows(Green Side), Price Higher Highs
Breakouts:-(Less Accurate compared to other scenarios)
End of Triangel/Box Indicator Turns Red to Green - Bullish Breakout, Green to Red Bearish Breakout
can use for breakouts chart patterns and guess which side it's going to break
can use for reversal as well by observing divergence between price & indicator
Note:-
In the future, an updated version is coming with it auto-generated buy/sell signal on the chart & gives backtesting results as a strategy
RSI/RSX Divergance on chart [Anan]This script points Regular/Hidden Bull/Bear RSI/RSX divergences on the chart.
Options:
-RSI/RSX source
-RSI/RSX length
-Show/hide Regular/hidden Bull/Bear divergences
KMACThis is a heavily modified MACD indicator that includes two different measurements, either regular, or weighted. Weighted is either EMA or KAMA dependent. I personally only use this in certain scenarios but it has proved handy for overall trend as it's slower.
This indicator also has a colorized histogram for the rising/falling of momentum, as well as arrows and crosses to indicate the "death" crosses, "golden" crosses, and falling above/below the "0-Line". 0-Line is embedded into the indicator as well, the user need not worry about drawing it on top of the indicator.
BSKL Short-Term Momentum TradingIndicator to identify the beginning of a Momentum, designed to use for the Malaysian market(I haven't tried it on other markets).
Best to use on 30 minute timeframe. When all criteria is fulfilled, there will be a "^" logo appearing below the candlestick .
Not to be commercialised, feel free to PM me for any improvement or suggestion.
Happy trading.
Divergence of Market Breadth & Price deduction indicatorHow it begin?
Traders and investors use market breadth in order to assess the index’s overall health. Market breadth can be a reliable, if not an accurate, indicator of an upcoming price rise in the index. Similarly, it can also provide early warning signs for a future price decline.
What is it?
market breadth in this case refer to percentage of stocks above 20 Simple Moving Average,which could be used as a barometer for the market.
How it works?
This paticular indicator compare the divergence of Nasdaq 100 and Russell 2000 percentage of stocks above 20 Simple Moving Average.
This indicator also include a deduction price method ,which is inspired from LEI & LoneCapital
RSI and market strength with alerts By combining the true strength of the Nasdaq (NDX) and S&P500 ( SPY ) we can then compare that against the volatility /fear index ( VIX ). The true strength of the Volatility Index ( VIX ) is shown by the red area and the Nasdaq (NDX) and S&P500 ( SPY ) by the silver /teal areas.
The yellow EMA area shows the average difference between the VIX and the NDX/ SPY indexes. When the yellow area crosses above the zero line and is climbing it means that the NDX/ SPY are strengthening. When the yellow area is decreasing or crosses under the zero line it means the fear/volatility index ( VIX ) is becoming stronger and NDX/ SPY are weakening. The RSI is overlaid as a white line to show the correlation of the instrument strength compared to the market.
When looking at charts of companies/components listed on the Nasdaq and/or S&P 500 you will notice a frequent correlation between the movement of the yellow area depicting index health and the RSI of the chart you are viewing. It’s a very quick and effective method of seeing the strength and fear within the market indexes and how they are effecting your chart.
The background color changes when the market strength combined with the active symbol RSI and higher timeframe MACD signals are aligned. Green is a buy zone, Red is a sell zone.
There are also red and green indicator x’s at the top/bottom of the indicator. They show a drastic change in Relative strength within a short period. This often indicates a buy or sell opportunity.
It is tested and works well on all timeframes with Stocks listed on NASDAQ & S&P500 .
Buy, Sell, Exit Buy and Exit Sell alerts are included.
There are also red and green indicator x’s at the top/bottom of the indicator. They show a drastic change in Relative strength within a short period. This often indicates a buy or sell opportunity.
MA MTF Momentum HistogramMy own interpretation indicator which i call multi time frame moving averages momentum with NO LAG EMA support (Optional).
The indicator is calculated by subtracting the long-term EMA from the short-term EMA .
This pretty much resembles the MACD moving averages calculation but without the smoothing of the histogram.
Can also be used to find divergences.
The background shows the main trend with higher time frame which can be set in the settings.
Aimed to use with Higher time frame (Double or more) but can also work with lower time frame.
How to use the indicator?
==Histogram==
Green: Momentum of asset is positive and increasing.
Lighter Green: Momentum of asset is still positive but decreasing and can revert to negative momentum.
Red: Momentum of asset is negative and increasing.
Lighter Red: Momentum of asset is still negative but increasing and revert to positive momentum.
==Background Color - Main Trend==
Green: HTF (Higher time frame) momentum is positive.
RED: HTF momentum is negative.
Feel free to comment and Follow to stay updated with upcoming scripts: www.tradingview.com
NOTE: BARS ARE COLORED BY DEFAULT WITH HISTOGRAM COLORS! (Can be changed in settings)
MACD and EMA200 With SignalsThis is my first indicator. It PROVIDES BUY, SHORT, and FALSE Signals by taking the MACD and the 200EMA.
PWTPROv5 TrendIndicator with LONG/SHORT BTC ETH alerts
This PWTPRO indicator is based on VWAP , MACD and EMAs
Best fits for BTC /USDT and ETH/USDT trading for 1H timeframe for positional trading (3-5 trades per week)
15min TF is good for intraday scalping. 4H is good for longterm. Fits for any coin, forex, metals, oil and bonds.
There are 4 types of entries, 1,3 and 4 are on by default. It's more accurate. Rest you can test.
Warning. Not yet works with huge trend continuation. Use it manually with you own risk management, don't forget stop-losses.
Show take profits and stop-loss (It's off by defaults)
You can now add 3 take-profit and 1 stop-loss labels on chart in %
Use 0 values to remove any of them from the charts.
New option: Show entering position price as label
Minor visual improvements with price labels (y position is now correctly above/below bars)
+added new option to round prices for integer values (i.e. 9251 for btc instead of 9251.35) off by defaults and now fits for altcoins and any asses that has price below 1 (usd, btc etc)
This is invite only script. PM me if you want to test it.
MACD Multiple Time Frames Weighted Momentum Score OscillatorThis script looks at the current momentum direction (up or down) for the 5 minute, 30 minute, 1 hour, 4 hour and daily and allows you to set scores of importance to these.
These scores are then added up to create an oscillator matching your preferences. Tune the indicator to match what you believe is the most important time frames that people use and score it accordingly. The values I put by default are just for demonstration.
For example, (and if you want to test to verify it's working), set the scores to 0 for everything except for the daily). Look at the daily macD by adding it as an indicator and set a score. Whenever the macD is trending up it will add the appropriate value to the score and likewise remove it when it's not.
Enjoy!
Ampleforth Rebase MACDThis script reveals Ampleforth rebase levels which are going to always work. In addition to that is MACD crossovers serving as potential buy/sell entries. You can set alerts for MACD crossovers and price entering balanced value area (0.96 - 1.06).
MACD signals can be used to automatically open a position and entering a balanced value area can be used as take-profit. Since the price will always move to this level, using this strategy without leverage should be profitable.
Ampleforth seems like a nice asset to trade since it is unlikely to correlate with anything else. At least not when it gets to the extreme levels.
MACD & RSIThis indicator shows the MACD and the RSI in one chart. So that both oscillators can be displayed, the RSI was subtracted by 50.
The RSI ranges between 50 and -50 (default 0-100)
The MACD is in the normal setting.
Adaptive MACDThis is part 6 of 11 in the system named Ninetales/Volt V2 you can find on Tradingview.
Add custom values to backtest, it will return the most accurate of them.
MACD with Buy & Sell alerts by Keiron RichieA redesign of the Moving Average Convergence Divergence (MACD) indicator to include background color changes for easy identification and includes Buy/Sell Alerts.
When the MACD (White line) crosses above the Signal (Red Line) the background changes to GREEN.
Likewise, when the MACD (White line) crosses under the Signal (Red Line) the background changes to RED.
Buy & Sell alerts are included.
MACD for WA1) I updated MACD formula to work with the Elliott Wave Principle
2) I changed the standard parameters and indicator’s display type as default for use in Wave Analysis
1) Актуализировал формулу MACD для работы по Волновому Принципу Эллиотта
2) Изменил по умолчанию стандартные параметры и вид отображения индикатора для использования в Волновом Анализе
MACD Indicator [SystemAlpha]This is a MACD indicator enhanced with:
- Show MACD and Signal Only or Histogram Only or Both
- Show Buy and Sell Alert - MACD Cross
- Show Bar Color
- Show Regular and Hidden divergence
- Show Divergence Labels
- Generate Alerts: Buy/Sell and Divergence
MACD-X, More Than MACD by DGTMoving Average Convergence Divergence – MACD
The most popular indicator used in technical analysis, the moving average convergence divergence (MACD), created by Gerald Appel. MACD is a trend-following momentum indicator, designed to reveal changes in the strength, direction, momentum, and duration of a trend in a financial instrument’s price
Historical evolution of MACD,
- Gerald Appel created the MACD line,
- Thomas Aspray added the histogram feature to MACD
- Giorgos E. Siligardos created a leader of MACD
MACD employs two Moving Averages of varying lengths (which are lagging indicators) to identify trend direction and duration. Then, MACD takes the difference in values between those two Moving Averages (MACD Line) and an EMA of those Moving Averages (Signal Line) and plots that difference between the two lines as a histogram which oscillates above and below a center Zero Line. The histogram is used as a good indication of a security's momentum.
Mathematically expressed as;
macd = ma(source, fast_length) – ma(source, slow_length)
signal = ma(macd, signal_length)
histogram = macd – signal
where exponential moving average (ema) is in common use as a moving average (ma)
fast_length = 12
slow_length = 26
signal_length = 9
The MACD indicator is typically good for identifying three types of basic signals ;
Signal Line Crossovers
A Signal Line Crossover is the most common signal produced by the MACD. On the occasions where the MACD Line crosses above or below the Signal Line, that can signify a potentially strong move. The standard interpretation of such an event is a recommendation to buy if the MACD line crosses up through the Signal Line (a "bullish" crossover), or to sell if it crosses down through the Signal Line (a "bearish" crossover). These events are taken as indications that the trend in the financial instrument is about to accelerate in the direction of the crossover.
Zero Line Crossovers
Zero Line Crossovers occur when the MACD Line crossed the Zero Line and either becomes positive (above 0) or negative (below 0). A change from positive to negative MACD is interpreted as "bearish", and from negative to positive as "bullish". Zero crossovers provide evidence of a change in the direction of a trend but less confirmation of its momentum than a signal line crossover
Divergence
Divergence is another signal created by the MACD. Simply, divergence occurs when the MACD and actual price are not in agreement. A "positive divergence" or "bullish divergence" occurs when the price makes a new low but the MACD does not confirm with a new low of its own. A "negative divergence" or "bearish divergence" occurs when the price makes a new high but the MACD does not confirm with a new high of its own. A divergence with respect to price may occur on the MACD line and/or the MACD Histogram
Moving Average Crossovers , another hidden signal that MACD Indicator identifies
Many traders will watch for a short-term moving average to cross above a longer-term moving average and use this to signal increasing upward momentum. This bullish crossover suggests that the price has recently been rising at a faster rate than it has in the past, so it is a common technical buy sign. Conversely, a short-term moving average crossing below a longer-term average is used to illustrate that the asset's price has been moving downward at a faster rate and that it may be a good time to sell.
Moving Average Crossovers in reality is Zero Line Crossovers, the value of the MACD indicator is equal to zero each time the two moving averages cross over each other. For easy interpretation by trades, Zero Line Crossovers are simply described as positive or negative MACD
False signals
Like any forecasting algorithm, the MACD can generate false signals. A false positive, for example, would be a bullish crossover followed by a sudden decline in a financial instrument. A false negative would be a situation where there is bearish crossover, yet the financial instrument accelerated suddenly upwards
What is “MACD-X” and Why it is “More Than MACD”
In its simples form, MACD-X implements variety of different calculation techniques applied to obtain MACD Line, ability to use of variety of different sources , including Volume related sources, and can be plotted along with MACD in the same window and all those features are available and presented within a single indicator, MACD-X
Different calculation techniques lead to different values for MACD Line, as will further discuss below, and as a consequence the signal line and the histogram values will differentiate accordingly. Mathematical calculation of both signal line and the histogram remain the same.
Main features of MACD-X ;
1- Introduces different proven techniques applied on MACD calculation , such as MACD-Histogram, MACD-Leader and MACD-Source, besides the traditional MACD (MACD-TRADITIONAL)
• MACD-Traditional , by Gerald Appel
It is the MACD that we know, stated as traditional just to avoid confusion with other techniques used with this study
• MACD-Histogram , by Thomas Aspray
The MACD-Histogram measures the distance between MACD and its signal line (the 9-day EMA of MACD). Aspray developed the MACD-Histogram to anticipate signal line crossovers in MACD. Because MACD uses moving averages and moving averages lag price, signal line crossovers can come late and affect the reward-to-risk ratio of a trade. Bullish or bearish divergences in the MACD-Histogram can alert chartists to an imminent signal line crossover in MACD
The MACD-Histogram represents the difference between MACD and its 9-day EMA, the signal line. Mathematically,
macdx = macd - ma(macd, signal_length)
Aspray's contribution served as a way to anticipate (and therefore cut down on lag) possible MACD crossovers which are a fundamental part of the indicator.
Here come a question, what if repeat the same calculations once more (macdh2 = macdh - ma(macdh, signal_length), will it be even better, this question will remain to be tested
• MACD-Leader , by Giorgos E. Siligardos, PhD
MACD Leader has the ability to lead MACD at critical situations. Almost all smoothing methods encounter in technical analysis are based on a relative-weighted sum of past prices, and the Leader is no exception. The concealed weights of MACD Leader are such that more relative weight is used in the more recent prices than the respective weights used by the components of MACD. In effect, the Leader expresses more changes in average price dynamics for the recent price movement than MACD, thus eventually leading MACD, especially when significant trend changes are about to take place.
Siligardos creates two less-laggard moving averages indicators in its formula using the same periods as follows
Indicator1 = ma(source, fast_length) + ma(source - ma(source, fast_length), fast_length)
Indicator2 = ma(source, slow_length) + ma(source - ma(source, slow_length), slow_length)
and then take the difference:
Indicator1 - Indicator2
The result is a new MACD Leader indicator
macdx = macd + ma(source - fast_ma, fast_length) - ma(source - slow_ma, slow_length)
• MACD-Source , a custom experimental interpretation of mine ,
MACD Source, presents an application of MACD that evaluates Source/MA Ratio, relatively with less lag, as a basis for MACD Line, also can be expressed as source convergence/divergence to its moving average. Among the various techniques for removing the lag between price and moving average (MA) of the price, one in particular stands out: the addition to the moving average of a portion of the difference between the price and MA. MACD Source, is based on signal length mean of the difference between Source and average value of shot length and long length moving average of the source (Source/MA Ratio), where the source is actual value and hence no lag and relatively less lag with the average value of moving average of the source . Mathematically expressed as,
macdx = ma(source - avg( ma(source, fast_length), ma(source, slow_length) ), signal_length)
MACD Source provides relatively early crossovers comparing to MACD and better momentum direction indications, assuming the lengths are set to same values
For further details, you are invited to check the following two studies, where the first seeds were sown of the MACD-Source idea
Price Distance to its Moving Averages study, adapts the idea of “Prices high above the moving average (MA) or low below it are likely to be remedied in the future by a reverse price movement", presented in an article by Denis Alajbeg, Zoran Bubas and Dina Vasic published in International Journal of Economics, Commerce and Management
First MACD like interpretation comes with the second study named as “ P-MACD ”, where P stands for price, P-MACD study attempts to display relationship between Price and its 20 and 200-period moving average. Calculations with P-MACD were based on price distance (convergence/divergence) to its 200-period moving average, and moving average convergence/divergence of 20-period moving average to 200-period moving average of price.
Now as explained above, MACD Source is a one adapted with traditional MACD, where Source stands for Price, Volume Indicator etc, any source applicable with MACD concept
2- Allows usage of variety of different sources, including Volume related indicators
The most common usage of Source for MACD calculation is close value of the financial instruments price. As an experimental approach, this study will allow source to be selected as one of the following series;
• Current Close Price (close)
• Average of High, Low, and Close Price (hlc3)
• On Balance Volume (obv)
• Accumulation Distribution (accdist)
• Price Volume Trend (pvt)
Where,
-Current Close Price and Average of High, Low, and Close Price are price actions of the financial instrument
- Accumulation Distribution is a volume based indicator designed to measure underlying supply and demand
- On Balance Volume (OBV) , is a momentum indicator that measures positive and negative volume flow
- Price Volume Trend (PVT) is a momentum based indicator used to measure money flow
3- Can be plotted along with MACD in the same window using the same scaling
Default setting of MACD-X will display MACD-Source with Current Close Price as a source and traditional MACD can be plotted eighter as a companion of MACD-X or can be selected to be plotted alone.
Applying both will add ability to compare, or use as a confirmation of one other
In case, traditional MACD Is plotted along with MACD-X to avoid misinterpreting, the lines plotted, the area between MACD-X Line and Signal-X Line is highlighted automatically, even if the highlight option not selected. Otherwise highlight will be applied only if that option selected
4- 4C Histogram
Histogram is plotted with four colors to emphasize the momentum and direction
5- Customizable
Additional to ability of selecting Calculation Method, Source, plotting along with MACD, there are few other option that allows users to customize the MACD-X indicator
Lengths are configurable, default values are set as 12, 26, 9 respectively for fast, slow and smoothing length. Setting lengths to 8,21,5 respectively Is worth checking, slower length moving averages will lead to less lag and earlier reaction to price actions but yet requires a caution and back testing before applying
Highlight the area between MACD-X Line and Signal-X Line, with colors emphasising the direction
Label can be added to display Calculation Method, Source and Length settings, the aim of this label is to server only as a reminder to trades to be aware of settings while they are occupied with charts, analysis etc.
Here comes another question, which is of more importance having the reminder or having the indicators with multi timeframe feature? Build-in Multi Time Frame features of Pine is not supported when labels and lines introduced in the script, there are other methods but brings complexity. To be studied further, this version will be with labels for time being.
Epilogue
MACD-X is an alternative variant of MACD, the insight/signals provided by MACD are also applicable to MACD-X with early and clear warnings for the changes in the trend.
If MACD is essential to your analysis, then it is my guess that after using the MACD-X for a while and familiarizing yourself with its unique character and personality, you will make it an inseparable companion to other indicators in your charts.
The various signals generated by MACD/MACD-X are easily interpreted and very few indicators in technical analysis have proved to be more reliable than the MACD, and this relatively simple indicator can quickly be incorporated into any short-term trading strategy
Disclaimer : Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely
The script is for informational and educational purposes only. Use of the script does not constitutes professional and/or financial advice. You alone the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
MACD+ Alerts [SystemAlpha]This is the alert companion of the MACD+ Strategy . Instead of using just the normal crossovers, we use trend filters, trailing stop loss and take profit targets. This strategy was developed for crypto, forex and stocks on daily timeframe but feel free to experiment on 15 minutes or higher using heikin ashi or normal candles.
In this alert you have a choice of:
Trend Filters:
- Average Directional Index ( ADX ) – buy when price is trend is up and sell when trend is down.
- Moving Average (MA) – buy when price close above the defined moving average and sell when price close below moving average
- Parabolic SAR – buy when SAR is above price is above price and sell when SAR is below price.
- All - Use ADX , MA and SAR as filters
For MA Filter , you can use the “TF MA Type” and "TF MA Period" parameter to select Simple or Exponential Moving Average and length.
Stop Loss:
- Average True Range (ATR) – ATR % stop as trailing stop loss.
- Parabolic SAR ( SAR ) – Parabolic SAR adapted as trailing stop loss.
For ATR , you can use the “ATR Trailing Stop Multiplier” parameter to set an initial offset for trailing stop loss.
Take Profit Target:
- Average True Range (ATR) – ATR % stop as trailing stop loss.
- Standard % – Percent as target profit
For ATR , you can use the “ATR Take Profit Multiplier” parameter to set an initial offset for trailing stop loss.
Additional feature include:
- Regular and Hidden Divergence display and alerts
Alerts:
When creating alerts use “Once Per Bar Close” parameter for Long and Short and “Once Per Bar” for Close, Trailing Stop, Take Profit and Divergence.
TradingView Links:
Strategy:
MACD:
How to use:
1. Apply the script by browsing through Indicators --> Invite-Only scripts and select the indicator
2. Once loaded, click the gear (settings) button to select/adjust the parameters based on your preference.
3. Wait for the next BUY or SELL signal to enter the trade!
Disclaimer:
The indicator and signals generated do not constitute investment advice; are provided solely for informational purposes and therefore is not an offer to buy or sell a security; are not warranted to be correct, complete or accurate; and are subject to change without notice.