MACD and RSI divergence by Rexio v2Hi everyone!
I wrote this indicator for intraday trading and it cannot be use only by itself you need to at least draw some S/R lines to make it useful. It is based at MACD histogram and gives signal when it sees divergence on MACD/RSI/MACD's Histogram (or all at once - settings) when macd's histogram switchs trend. Im using it to playing with a trend most of the time looking for hidden divergence at higher time frame and after that looking for regular divergence at lower time frame.
Im not a computer programist nor professional trader so it is only for educational purposes only.
스크립트에서 "MACD"에 대해 찾기
MACD背离(MACD divergent)[公开版][gouge99]注意:背离意味着做反转交易,所以入场要求很高,但是背离一般的收益风险比很大
MACD背离:收盘价创造新高或者新低,但是macd却没有出新高或者新低
计算原理:根据历史K线长度(默认90根K线)来判断收盘价的高低极值和macd的高低极值来进行比较判断
建议使用:
1.在震荡调整行情中,在支撑和压力位附近出现的突然的趋势K线,一般是假突破
2.在趋势末端,一般还会有一次缓慢的测试趋势极点的行情,一般这是趋势反转进入震荡的开始
3.结合其他形态如双顶,头肩,pin bar
4.结合其他指标如stoch随机指标做反转
5.推荐在1h, 30m, 15m级别中使用,5m也可以使用,但是最好背离计算长度设置大一点 比如150
Awesome Oscillator and MACD Histogram by SierraPilot (Lemrin)This is an indicator I stole from Lemrin. I added the plots for the MACD line and the Signal line and also changed the AO and MACD histo to an area plot. MACD = red and green. AO = blue and yellow. Green over top of Blue = possible reversal. Green overlaid over blue = uptrend. Yellow over top of Red = downside reversal possible. Yellow overlaid over Red = downtrend in progress. MACD and Signal line behave normally. Thanks to Lemrin for the majority of the code.
GBPJPY MACD 1min Long OnlyThis MACD indicator uses two lines for long and sell long. It also uses a MACD indicator line with a historian. When the MACD historian crosses over the buy line, a long signal is executed. When the MACD historian crosses over the sell line, a close entry is signal is executed. There is a also a built in stop loss and you can adjust the buy and sell lines accordingly.
This does not repaint and I use it for autoview with an alert to autotrade this strategy.
GBPUSD MACD 1min Long OnlyThis MACD indicator uses two lines for long and sell long. It also uses a MACD indicator line with a historian. When the MACD historian crosses over the buy line, a long signal is executed. When the MACD historian crosses over the sell line, a close entry is signal is executed. There is a also a built in stop loss and you can adjust the buy and sell lines accordingly.
This does not repaint and I use it for autoview with an alert to autotrade this strategy.
EURUSD MACD 1 min Long OnlyThis MACD indicator uses two lines for long and sell long. It also uses a MACD indicator line with a historian. When the MACD historian crosses over the buy line, a long signal is executed. When the MACD historian crosses over the sell line, a close entry is signal is executed. There is a also a built in stop loss and you can adjust the buy and sell lines accordingly.
This does not repaint and I use it for autoview with an alert to autotrade this strategy.
MG - MACD - Divergence - 1.0The MACD indicator can produce some powerful divergence signals which can be useful confirmation for entering / exiting a trade.
This indicator generates and alert and plots (if enabled), when a divergence is detected. For example, if bullish (above zero) and two bearish MACD crosses are detected with the second being lower than the first, a bearish divergence alert is triggered. Theoretically a good place to take profit / possibly enter a short position if you have further confirmation.
Can also be configured to include continuation signals i.e. a bullish trend with two bullish MACD crosses where the second is higher than the first. This could indicate more bullish action ahead.
In order to illustrate how this indicator helps to sift out a good amount of false signals, I have highlighted in the above image in dark green, all of the divergence buy signals highlighted by the indicator and in light green, the rest of the MACD buy signals.
VC_ Coloured MACDMACD VonCrypto
Combined MACD and MACD 4C indicators to give quick visual of MACD position. My personal defaults are, remove histogram, set lines to thinest setting, make MACD lines 100% opaque, light blue and orange.
SUPER MACDthis indicator serves to differentiate the classic source of MACD and add the: DYNAMIC MACD and DYNAMIC BAND
with these inputs you can modify the inputs of the different Bar's, you can choose between:
Candles = classic Candles
Heikin Hashi
Kagi
Line break
Pointfigure
Renko
To use the Dynamic Macd and Band just check the box:
Use Dynamic Rsi??? = this input will change the Rsi in the Dynamic Rsi
Use Dynamic Band??? = this input will change the Bands to the Dynamic Band
Selecting the input: "Use Different Source ???" you can use a source with multiple elements of your choice:
2 = (Source 1 + Source 2) / 2
3 = (Source 1 + Source 2 + Source 3) / 3
4 = (Source 1 + Source 2 + Source 3 + Source 4) / 4
5 = (Source 1 + Source 2 + Source 3 + Source 4 + Source 5) / 5
Range Strat - MACD/RSIThis strategy uses a trend based indicator (MACD) for entry/exit signals with a momentum oscillator (RSI) to act as confirmation. Although relying on a trend based indicator this has been created for range bound crypto markets, which have been in a period of chop since June 2022.
Long/Short signals are generated from MACD with the RSI oscillator thresholds suppressing entries at price extremes. This is not a mean reversion RSI strategy! As the indicators are contrary to each other you will need to be generous with the RSI settings in order for signals to trigger.
Strategy is designed for use on the 4h timeframe, it may work well on higher timeframes, but lower time frames will lead to false signals. Use fixed percentage of equity for order size to capture the compounding effect. As a reversal strategy bear in mind that should market trend strongly in either direction stops will be required.
The RSI thresholds can be tailored to provide higher frequency or safer signals. Similarly tweaking MACD settings will provide earlier/more frequent or safer signals. As this is intended to enter near range high / low you should check the visual cues to ensure a ping-pong effect is observed, so that peaks and troughs are captured. Once an observable range is established the strategy works well across a range of crypto markets,
The script is open source, so feel free to amend as you wish. Using a different momentum oscillator may provide better results. I have prior coding experience, but first time using PineScript was last night, so it's not very tidy. I will update this with some additional customisation and TP/SL in the near future.
Usage: Range bound markets
Markets: Cryptocurrency Alts/BTC/ETH
Timeframe: 4h
Smoother Momentum MACD w/ DSL [Loxx]Smoother Momentum MACD w/ DSL uses two different EMA calculations to derive momentum and then calculates the MACD between those momentum outputs. This indicator uses a variation of Discontinued Signal Lines for the breakout/breakdown/reversal signals . There are three different signal types: middle, levels, and slope. I've also added alerts and signals. The discontinued signal lines can be smoothed using EMA or Fast EMA.
What are DSL Discontinued Signal Line?
A lot of indicators are using signal lines in order to determine the trend (or some desired state of the indicator) easier. The idea of the signal line is easy : comparing the value to it's smoothed (slightly lagging) state, the idea of current momentum/state is made.
Discontinued signal line is inheriting that simple signal line idea and it is extending it : instead of having one signal line, more lines depending on the current value of the indicator.
"Signal" line is calculated the following way :
When a certain level is crossed into the desired direction, the EMA of that value is calculated for the desired signal line
When that level is crossed into the opposite direction, the previous "signal" line value is simply "inherited" and it becomes a kind of a level
This way it becomes a combination of signal lines and levels that are trying to combine both the good from both methods.
In simple terms, DSL uses the concept of a signal line and betters it by inheriting the previous signal line's value & makes it a level.
Included:
Loxx's Expanded Source Types
Alerts
Signals
Bar coloring
Other momentum indicators
CFB-Adaptive Velocity Histogram
Variety-Filtered, Squeeze Moving Averages
William Blau Ergodic Tick Volume Indicator (TVI)
Hodrick-Prescott MACD [Loxx]Hodrick-Prescott MACD is a MACD indicator using a Hodrick-Prescott Filter.
What is Hodrick–Prescott filter?
The Hodrick–Prescott filter (also known as Hodrick–Prescott decomposition) is a mathematical tool used in macroeconomics, especially in real business cycle theory, to remove the cyclical component of a time series from raw data. It is used to obtain a smoothed-curve representation of a time series, one that is more sensitive to long-term than to short-term fluctuations. The adjustment of the sensitivity of the trend to short-term fluctuations is achieved by modifying a multiplier Lambda.
The filter was popularized in the field of economics in the 1990s by economists Robert J. Hodrick and Nobel Memorial Prize winner Edward C. Prescott, though it was first proposed much earlier by E. T. Whittaker in 1923.
There are some drawbacks to use the HP filter than you can read here: en.wikipedia.org
Included
Bar coloring
3 types of signals
Alerts
Loxx's Expanded Source Types
Digital Kahler MACD [Loxx]Digital Kahler MACD is a MACD indicator that uses an extreme noise reduction algorithm by Philipp Kahler. For our purposes here, we call it Digital Kahler.
What is Digital Kahler?
From Philipp Kahler's article for www.traders-mag.com, August 2008. "A Classic Indicator in a New Suit: Digital Stochastic"
Digital Indicators
Whenever you study the development of trading systems in particular, you will be struck in an extremely unpleasant way by the seemingly unmotivated indentations and changes in direction of each indicator. An experienced trader can recognise many false signals of the indicator on the basis of his solid background; a stupid trading system usually falls into any trap offered by the unclear indicator course. This is what motivated me to improve even further this and other indicators with the help of a relatively simple procedure. The goal of this development is to be able to use this indicator in a trading system with as few additional conditions as possible. Discretionary traders will likewise be happy about this clear course, which is not nerve-racking and makes concentrating on the essential elements of trading possible.
How Is It Done?
The digital stochastic is a child of the original indicator. We owe a debt of gratitude to George Lane for his idea to design an indicator which describes the position of the current price within the high-low range of the historical price movement. My contribution to this indicator is the changed pattern which improves the quality of the signal without generating too long delays in giving signals. The trick used to generate this “digital” behavior of the indicator. It can be used with most oscillators like RSI or CCI.
First of all, the original is looked at. The indicator always moves between 0 and 100. The precise position of the indicator or its course relative to the trigger line are of no interest to me, I would just like to know whether the indicator is quoted below or above the value 50. This is tantamount to the question of whether the market is just trading above or below the middle of the high-low range of the past few days. If the market trades in the upper half of its high-low range, then the digital stochastic is given the value 1; if the original stochastic is below 50, then the value –1 is given. This leads to a sequence of 1/-1 values – the digital core of the new indicator. These values are subsequently smoothed by means of a short exponential moving average. This way minor false signals are eliminated and the indicator is given its typical form.
Included:
Bar coloring
Signals
Alerts
Loxx's Expanded Source Types
Loxx's Moving Averages
Inverse MACD + DMI Scalping with Volatility Stop (By Coinrule)This script is focused on shorting during downtrends and utilises two strength based indicators to provide confluence that the start of a short-term downtrend has occurred - catching the opportunity as soon as possible.
This script can work well on coins you are planning to hodl for long-term and works especially well whilst using an automated bot that can execute your trades for you. It allows you to hedge your investment by allocating a % of your coins to trade with, whilst not risking your entire holding. This mitigates unrealised losses from hodling as it provides additional cash from the profits made. You can then choose to hodl this cash, or use it to reinvest when the market reaches attractive buying levels.
Alternatively, you can use this when trading contracts on futures markets where there is no need to already own the underlying asset prior to shorting it.
ENTRY
The trading system uses the Momentum Average Convergence Divergence (MACD) indicator and the Directional Movement Index (DMI) indicator to confirm when the best time is for selling. Combining these two indicators prevents trading during uptrends and reduces the likelihood of getting stuck in a market with low volatility.
The MACD is a trend following momentum indicator and provides identification of short-term trend direction. In this variation it utilises the 12-period as the fast and 26-period as the slow length EMAs, with signal smoothing set at 9.
The DMI indicates what way price is trending and compares prior lows and highs with two lines drawn between each - the positive directional movement line (+DI) and the negative directional movement line (-DI). The trend can be interpreted by comparing the two lines and what line is greater. When the negative DMI is greater than the positive DMI, there are more chances that the asset is trading in a sustained downtrend, and vice versa.
The system will enter trades when two conditions are met:
1) The MACD histogram turns bearish.
2) When the negative DMI is greater than the positive DMI.
EXIT
The strategy comes with a fixed take profit combined with a volatility stop, which acts as a trailing stop to adapt to the trend's strength. Depending on your long-term confidence in the asset, you can edit the fixed take profit to be more conservative or aggressive.
The position is closed when:
Take-Profit Exit: +8% price decrease from entry price.
OR
Stop-Loss Exit: Price crosses above the volatility stop.
In general, this approach suits medium to long term strategies. The backtesting for this strategy begins on 1 April 2022 to 18 July 2022 in order to demonstrate its results in a bear market. Back testing it further from the beginning of 2022 onwards further also produces good returns.
Pairs that produce very strong results include SOLUSDT on the 45m timeframe, MATICUSDT on the 2h timeframe, and AVAUSDT on the 1h timeframe. Generally, the back testing suggests that it works best on the 45m/1h timeframe across most pairs.
A trading fee of 0.1% is also taken into account and is aligned to the base fee applied on Binance.
Sherry on Crypto - MACD ScalpingThis indicator is originally made by someone else, I just modified it to increase its win rate.
How to use this indicator?
Step 1: This indicator only works in 5 minutes timeframe (BTC) . Apply 5 minutes timeframe in Tradingview.
Step 2: Apply 2 EMA(s), 1st EMA length 50, 2nd EMA length 200.
Step 3: Draw support and resistance and understand price action as well.
Step 4: Use RSI along with this indicator.
Strategy: When you see a down tick on the MACD in 5 minutes timeframe,
you are allow to take a long position. When you see an up tick on the MACD in 5 minutes timeframe, you are allow to take a Short position,
but RSI should be Included (you can do your own settings of RSI).
Recommended TP 0.50 and SL 0.40.
ComiCo - Joel on Crypto - MACD ScalpingThis is a modified (hopefully improved) version of the "Joel on Crypto - MACD Scalping" indicator. It got turned into a strategy, and added some extra filters, like number of trades after EMA cross, minimal EMA distance (EMA 50's distance from the EMA 200). It is just an experiment to see how good this scalping strategy can get.
Play around with it and let me know if you found good settings, or just have a comment on it.
I could get fairly good results on BTCUSDT 5m with these settings (all others left on default values):
Ticks Avg. Multiplier = 1.4
Max trades after EMA cross = 16
Limit Price Difference = 0
Take Profit = 0.0065
Stop Loss = 0.0085
Min EMA difference = 110
Pyramiding = 3
Probability Density Function based MA MACD [Loxx]Probability Density Function based MA MACD is a MACD indicator using a type of weighted moving average.
What is Probability Density Function based MA MACD?
Probability density function based MA is a sort of weighted moving average that uses probability density function to calculate the weights.
Included:
-Toggle on/off bar coloring
Disclosure of 'MACD-Total' indicator (MACD-T)hello?
Traders, welcome.
If you "follow", you can always get new information quickly.
Please also click "Like".
Have a good day.
-------------------------------------
A trend indicator has been added to the previously published MACD-Price indicator.
The added MS-Signal indicator is an indicator for viewing the trend and the strength of the trend.
Trading with a trend line is not easy.
Therefore, various MA lines or slanted lines drawn on the chart are used to see the flow of the chart.
Therefore, it is not recommended to trade with the added MS-Signal indicator as support and resistance points.
A trade requires support and resistance points.
To mark support and resistance points, you need a point or section on the horizontal line.
Therefore, it is necessary to utilize the 'Buy/Sell' indicator corresponding to the previously disclosed MACD-Price indicator.
(1W chart)
The long horizontal point of the 'Buy/Sell' indicator serves as support and resistance.
It is possible to check in which section the trend reversal has changed by displaying the MS-Signal indicator.
(1D chart)
A move has emerged to show a reversal of the trend by breaking above the MS-Signal indicator.
Therefore, the MS-Signal indicator is about to change from a downtrend to an uptrend.
I numbered the horizontal line of the 'Buy/Sell' indicator.
The length is different in the order of No. 2 > No. 1 > No. 3.
Since horizontal line 2 is the longest, it indicates that support and resistance play the greatest role.
If you check the support at the first horizontal point, it can be interpreted that there is a high possibility of receiving resistance at the second horizontal point.
However, if you find support at the 2nd horizontal point, you can see that it will go up significantly with 3rd position.
Trading with indicators allows you to make quick choices and decisions.
However, more important than the use of indicators is your own trading strategy.
in other words,
- How much investment will you proceed with the purchase?
- How to proceed with installment purchases
- At what point will the Stop Loss be done?
- How long will the investment period be?
- Is it a long-term investment or a short-term investment?
As listed above, the most important trading strategy for trading should be established.
When conducting a trade, ignoring the above list and thinking about where to buy and where to sell is like sailing in the dark.
We disclose the indicators in the hope that it will become a faster and more objective indicator for trading with the trading strategy you have established.
thank you
------------------------------------------------------------ -----------------------------------------------------
Customizable Non-Repainting HTF MACD MFI Scalper Bot StrategyThis script was originally shared by Wunderbit as a free open source script for the community to work with.
WHAT THIS SCRIPT DOES:
It is intended for use on an algorithmic bot trading platform but can be used for scalping and manual trading.
This strategy is based on the trend-following momentum indicator . It includes the Money Flow index as an additional point for entry.
HOW IT DOES IT:
It uses a combination of MACD and MFI indicators to create entry signals. Parameters for each indicator have been surfaced for user configurability.
Take profits are fixed, but stop loss uses ATR configuration to minimize losses and close profitably.
HOW IS MY VERSION ORIGINAL:
I started trying to deploy this script myself in my algorithmic trading but ran into some issues which I have tried to address in this version.
Delayed Signals : The script has been refactored to use a time frame drop down. The higher time frame can be run on a faster chart (recommended on one minute chart for fastest signal confirmation and relay to algotrading platform.)
Repainting Issues : All indicators have been recoded to use the security function that checks to see if the current calculation is in realtime, if it is, then it uses the previous bar for calculation. If you are still experiencing repainting issues based on intended (or non intended use), please provide a report with screenshot and explanation so I can try to address.
Filtering : I have added to additional filters an ABOVE EMA Filter and a BELOW RSI Filter (both can be turned on and off)
Customizable Long and Close Messages : This allows someone to use the script for algorithmic trading without having to alter code. It also means you can use one indicator for all of your different alterts required for your bots.
HOW TO USE IT:
It is intended to be used in the 5-30 minute time frames, but you might be able to get a good configuration for higher time frames. I welcome feedback from other users on what they have found.
Find a pair with high volatility (example KUCOIN:ETH3LUSDT ) - I have found it works particularly well with 3L and 3S tokens for crypto. although it the limitation is that confrigurations I have found to work typically have low R/R ratio, but very high win rate and profit factor.
Ideally set one minute chart for bots, but you can use other charts for manual trading. The signal will be delayed by one bar but I have found configurations that still test well.
Select a time frame in configuration for your indicator calculations.
Select the strategy config for time frame. I like to use 5 and 15 minutes for scalping scenarios, but I am interested in hearing back from other community memebers.
Optimize your indicator without filters (trendFilter and RSI Filter)
Use the TrendFilter and RSI Filter to further refine your signals for entry. You will get less entries but you can increase your win ratio.
I will add screenshots and possibly a video provided that it passes community standards.
Limitations: this works rather well for short term, and does some good forward testing but back testing large data sets is a problem when switching from very small time frame to large time frame. For instance, finding a configuration that works on a one minute chart but then changing to a 1 hour chart means you lose some of your intra bar calclulations. There are some new features in pine script which might be able to address, this, but I have not had a chance to work on that issue.
TUE ADX/MACD Confluence V1.0The ADX and MACD confluence can be a powerful predictor in stock movements. This script will help you find those confluences in an easy to understand visual manner.
It includes Buy and Sell signals for detected confluences, and will show colored candles to help you determine when to exit a trade. When the candles turn to white that means the detected confluence is no longer in play and you may want to consider a trailing stop loss.
The Buy and Sell signals will display on the first occurrence of each confluence.
It's important to understand that both of these are lagging indicators, but with a careful attention to your stoploss you can easily generate a positive profit factor.
This code is provided open source and you're free to use it for any purpose other than resale.
Predictive MACDThis is MACD indicators have display prediction of next 3 bar which if close price not change or price move following directions of momentum this indicators will show how price will move next 3 bar.
Market Sector Scanner/Screener With MOM + RSI + MFI + DMI + MACDMARKET SECTOR SCANNER/SCREENER MOM + RSI + MFI + DMI + MACD FOR STOCKS CRYPTO & FOREX
This script scans 9 markets constantly and returns the values of 5 different popular indicators.
This indicator helps you see when one of your favorite stocks is bullish or bearish when you are not watching that chart so you can always catch the big moves as they happen.
***HOW TO USE***
A great way to use this market screener is to set up separate chart layouts for each sector you like to trade. Such as the top 9 stocks in the S & P 500, top 9 stocks in the XLF etf, etc. Make sure to set up separate chart layouts in Tradingview so you don’t have to change the symbols constantly. This will give you a good idea in real time if that entire sector is bullish, bearish or mixed. When the entire grid goes red or green, those are very strong signs of market direction across that entire sector, so trades in the corresponding direction are quite safe.
This can be done for crypto as well, using the top 9 cryptocurrencies by market cap. Watch the grid and wait for the entire lot to turn green or red and then take a position in that direction.
You can also use this with a variety of your favorite tickers so you can see when specific markets are looking strong in either direction, instead of constantly changing charts or missing good opportunities because you weren’t watching that specific chart.
This grid can also be used to determine how long to hold a position as well. If the entire grid is still green or red, according to your trade direction, you can usually expect price to continue in that direction until you see some conflicting colors start to pop up on the grid. As it starts to give mixed signals, you can expect the market to be indecisive or reverse which is a good time to get out.
If you have your scanner setup to show similar markets in one sector, be careful taking trades when the grid is very mixed in color. This shows signs of indecision and will likely have choppy price action until the market decides a direction so make sure to use caution when the grid is mixed. It is best to wait for the entire grid to turn green or red and then take position.
***COLOR MEANINGS***
When each indicator value is in bullish territory, the background of that value will turn green.
When each indicator value is in bearish territory, the background of that value will turn red.
When each indicator value is in neutral territory, the background of that value will turn blue.
When all 5 indicators for a ticker are bullish, the ticker background will turn green.
When all 5 indicators for a ticker are bearish, the ticker background will turn red.
When there is a mixture of bullish and bearish values, the ticker background will turn blue.
***CUSTOMIZATION***
You can customize which tickers are in your scanner including stocks, crypto, futures and forex, the source of the indicators, the length of the indicator settings and the smoothing parameters.
***INDICATORS USED***
The indicators used for each ticker are as follows:
Momentum(MOM) - Default length is 14. Bullish is above zero, bearish is below zero.
Relative Strength Index(RSI) - Default length is 14. Bullish is above 50, bearish is below 50.
Money Flow Index(MFI) - Default length is 14. Bullish is above 50, bearish is below 50.
Directional Movement Index(DMI) - Default length is 14 and smoothing is 14. Calculated by subtracting di minus from di plus. If the value is positive, it is bullish. If the value is negative, it is bearish.
Moving Average Convergence & Divergence(MACD) - Default settings are 12, 26, 9. If the short line is greater than the long line, then it is bullish. If the short line is less than the long line, it is bearish.
***MARKETS***
This market scanner can be used as a signal on all markets, including stocks, crypto, futures and forex.
***TIMEFRAMES***
This scanner can be used on all timeframes and pulls data from other tickers using the same timeframe as what your current chart is set to.
***TIPS***
Try using numerous indicators of ours on your chart so you can instantly see the bullish or bearish trend of multiple indicators in real time without having to analyze the data. Some of our favorites are Trend Friend Scalp & Swing Signals, Auto Fibonacci, Directional Movement Index, Volume Profile With Buy/Sell Pressure, Auto Support And Resistance and Money Flow Index in combination with this Scanner. They all have real time Bullish and Bearish labels as well so you can immediately understand each indicator's trend.
MACD + AveragesA classic MACD with average peak and dip lines. The lighter green and red horizontal lines are the average peak and dip of the entire span, respectively. The second, bolder of the two lines are the averages of the peaks and dips above and below the overall peak and dip averages. The filled in color is to help visualize these averages and possible trade setups.