The best MACD line + MACD signal + MACD histogram DivergencesHi everyone,
Here is a script that synthesizes divergence signals from the MACD indicator, including 3 options:
- MACD divegence
- MACD signal divergence
- MACD histogram divergence
Scripts are used for learning and research purposes. THESE ARE NOT BUY/SELL SIGNALS.
If you have a better idea, share it here or contact me via msg. I will improve this script better in next version.
Settings:
Basically, you only need to care about 2 parameters:
- MACD Source: There are 3 options: macdLine, signLine and histLine.
- Lookback Level For Divs: Number of previously adjacent peak.
- Other parameters, you can research more
Feel free to use, share, comment & provide feedback.
Get indicator or strategy trading signals at yummyprofit.
Good luck!
平滑异同移动平均线(MACD)
Onats indicatorBuy signal when RSI=>50, Stoch=>50, and MACD is above signal line. Set buy to the high of Buy signal candle and add 0.01.
Sell signal when RSI<50, Stoch<50, and MACD is below signal line. Set sell to the low of Sell signal candle and subtract 0.01.
Works well on Daily charts.
Bitcoin (BTC) Scalp / Short-term Long IndicatorThe purpose of this scalping Indicator is to help identifying Buy signals for short term trades on Bitcoin (Spot, Features, etc.) .
This script is working with more indicators and everything is balanced by hard work on (back)testing.
Result for users is a simple signal to BUY .
You can use it as easy indicator in your graph or create alerts.
I have the best results on 1min graph, with leverage and stop-loss feature.
This is my own version of scalping Buy Script / Indicator, which is a combination of few indicators, for example RSI, BB and price levels (actual and average) and works on standard candles .
LONG signal paints below the candle and you can set your target / trailing / stop-loss in the settings and check how it works in Strategy Tester .
Settings of this Indicator:
Take Profit
Stop Loss
Trailing Stop Loss
Trailing Stop Loss Offset
Initial Capital
Base Currency
Order size
Pyramiding
Commissions
Slippage
Average price lines (colors and visibility)
Plot background
These signals can be often observed at the beginning of a strong move, but there is a significant probability that these price levels will be revisited at a later point in time again.
Therefore these are interesting levels to place limit orders.
A Buy signal is defined as the last down candle before a sequence of up candles.
In my trading settings I have more but small positions, one safety limit order (for price averaging = better entry - easier close in profit) and stop-loss.
Sometimes trailing-profit feature have very nice profits.
Settings depends on your own money-management and free capital.
In addition to the upper/lower limits of each line, also average value is marked as this is an interesting area for price interaction and better view.
PM me to obtain access, more informations or support.
NOTICE: By requesting access to this script you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script.
SALEH All in One Strategythis script is based on MACD strategy
for MACD:
when we have an uptrend ( the price is above the EMA 200) & the macd line cross up the signal line while they are both under the 0 level of histogram it generates buy signals.
when we have a downtrend ( the price is below the EMA 200) & the macd line cross below the signal line while they are both above the 0 level of histogram it generates sell signals.
donchian channel works as a confirmation for the macd signal.
this strategy works best at London session.
feel free to comment
best regards Forexsquad2020
Deviation rate of Chinese stock market index// Deviation rate of Chinese stock market index
//The purpose of the indicator is to monitor the Chinese stock market index deviation rate to the 20EMA, so each major index can be observed longitudinally at the same time.
//This indicator give signal of which Index or instrument should you be focused and when should you enter the market to get a long or short position.
//The chart shows the deviation rate between the current price of each major index current price to the 20EMA.
//Also it count a deductive ratio between current price to the previous 20th bar close price to (which lead to the slope of the 20SMA)
//When using, adjust the corresponding period according to the chart period.
//The word DI (divergence) represents the deviation value between the current price and 20EMA, and DE (deduction) represents the deviation value between the current price and the 20 deduction price.
//Attention marker: The marker tells one of the moving average (EMA20 and MA20) is turning towards the opposite direction. When DE and DI one is plus , one is minus attention marker appear on the instrument title.
//Take the bull trend as an example. If the price is higher than ema20, the EMA20 is turning.If the price is higher than the close price of the bar 20 days ago , the sma20 is turning.
//When the ema20 has not turned around to opposite direction , and the ma20 is turning , the deviation rate of the moving average and the deviation rate of the deductible price are different in positive or negative.
//The marker as a reminder will appear on the instrument title.
//How to use this watchlist: You can freely replace the major indices with the instrument you are focused.
Relative Strength Index of EU and US Stock Index Trends quality//Relative Strength Index of European and US Stock Index Trends quality
//This indicator reveals the relative strength of European and US stock index futures.
//take Bull trend as an example , the current closed price>EMA20 value and the current closed price >20th previous bar closed price( deduction price),
//it's defined as a lower level bull trend .If the current price EMA20>EMA60, it's defined as a higher level bull trend .If the EMA20>EMA60>EMA120,it's defined as the highest level bull trend.
//You can choose to draw the curve with the deviation rate of the original major indexes to 20EMA, or draw the deviation rate with the average value (default value is 5 bars).
//In addition, a more technical method is added to analyze the deviation changes of the major indexes.The deviation rate changing velocity value, parameter tan (abbreviated by t) of 1, 2, 5, 10 is introduced.
//You can have the option of calculate the tan using average value of 5 candlesticks or original value.
//Taking tan1 as an example, it indicates how much the deviation rate between the current price and the previous candlestick has changed.
//The indicator of the index color and the description of the trend quality color can be switched off in option.
//In addition, this code color scheme is only suitable for black background (the code color needs to be changed by yourself if you use white background).
RogTrader AlgoA simple BUY/SELL algorithm based on Moving Averages (EMA), MACD, RSI, Stochastic, ADX, ATR, CCI, OBV, Pivot Points, and Parabolic Sar, and Volume averaged.
Simple algo that uses multiples indicator strengths and weight them to generate buy and sell signals
Indicator strengths are displayed on each candle (green is bullish and red is bearish)
Green Buy and Red Sell shall be primarily used for long positions
Bull and Bear Strengths are created based on Price Action, and Volume, the length of the array shows upward or downward strength
Indicators' Signal Strength shows number Indicators' indication for the direction.
Bollinger Bands are in red and green filled
VWAP Bands are in gray, green, and red
Linear Regression is the blue line
Check multiple timeframes.
Stock Market Strategy : VWAP, MACD, EMA, Breakout, BBHello there,
Today I bring you a stock market strategy, specialized in NASDAQ stocks.
Its a daytrading strategy, that can only do a max of 1 trade per day. In this case it only trades the first 2 opening hours of the market.
The rules are simple :
We follow the trend based on a big EMA, in this case 200, after that, we check for VWAP direction , then, we check histogram from MACD. This is the simple logic of the strategy.
Inside there is another strategy, that not just do the above, but also uses Bollinger bands, and checks for breakout of bottom or top line. Also it uses Average directional Index, for even a bigger criteria .
So for example a long condition it would be : candle is above the ema, and candle is above vwap, and histogram is positive, and candle break the top bb level and ADI < 40 -> long signal . The opposite works for short(ADI > 20).
In this case all this criterias are between the first 2 hours of market. So we enter between the first hour, and exit in the next hour. For this we need to use very short time frames.
Hope you enjoy it.
Let me know if you have any questions
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)
Cycles StrategyThis is back-testable strategy is a modified version of the Stochastic strategy. It is meant to accompany the modified Stochastic indicator: "Cycles".
Modifications to the Stochastic strategy include;
1. Programmable settings for the Stochastic Periods (%K, %D and Smooth %K).
2. Programmable settings for the MACD Periods (Fast, Slow, Smoothing)
3. Programmable thresholds for %K, to qualify a potential entry strategy.
4. Programmable thresholds for %D, to qualify a potential exit strategy.
5. Buttons to choose which components to use in the trading algorithm.
6. Choose the month and year to back test.
The trading algorithm:
1. When %K exceeds the upper/lower threshold and then hooks down/up, in the direction of the Moving Average (MA). This is the minimum entry qualification.
2. When %D exceeds the lower/upper threshold and angled in the direction of the trade, is the exit qualification.
3. Additional entry filters include the direction of MACD, Signal and %D. Also, the "cliff", being a long entry is a higher high or a short entry is a lower low.
4. Strategy can only go "Long" or "Short" depending on the selected setting.
5. By matching the settings in the "Cycles" indicator, you can (almost) see what the strategy is doing.
6. Be sure to select the "Recalculate" buttons, to recalculate on every new Tick, for best results.
Please click the Like button and leave a comment if you appreciate this script. Improvements will be implemented as time goes on.
I am not a licensed trade advisor. This strategy is for entertainment only. Use at your own risk!
ISS V5 Strategy for ETHUSDTSimple long/short strategy. Using MACD and few more oscillators.
Optimized for ETHUSDT 4h, Enjoy!
Simple and efficient MACD crypto strategy with risk managementToday I am glad to bring you another great creation suited for crypto markets.
MARKET
Its a simple and efficient strategy, designed for crypto markets( btcusd , btcusdt and so on), and suited for for higher time charts : like 1hour, 4hours, 1 day and so on.
Preferably to use 1h time charts.
COMPONENTS
MACD with simple moving average
ENTRY DESCRIPTION
For entries we have :
We check the direction with MACD . Depending if its an uptrend and positive level on histogram of MACD we go long, otherwise we go short.
RISK MANAGEMENT
In this strategy we use a stop loss based on our equity. For this example I choosed a 2% risk .That means if our account has 100.000 eur, it will automatically close the trade if we lose 2.000.
We dont use a take profit level.
In this example also we use a 100.000 capital account, risking 5% on each trade, but since its underleveraged, we only use 5000 of that ammount on every trade. With leveraged it can be achieved better profits and of course at the same time we will encounter bigger losses.
The comission applied is 5$ and a slippage of 5 points aswell added.
For any questions or suggestions regarding the script , please let me know.
High/low crypto strategy with MACD/PSAR/ATR/EWaveToday I am glad to bring you another great creation of mine, this time suited for crypto markets.
MARKET
Its a high and low strategy, designed for crypto markets( btcusd , btcusdt and so on), and suited for for higher time charts : like 1hour, 4hours, 1 day and so on.
Preferably to use 1h time charts.
COMPONENTS
Higher high and lower low between different candle points
MACD with simple moving average
PSAR for uptrend and downtrend
Trenddirection made of a modified moving average and ATR
And lastly elliot wave oscillator to have an even better precision for entries and exits.
ENTRY DESCRIPTION
For entries we have : when the first condition is meet(we have a succession on higher high or lower lows), then we check the macd histogram level, then we pair that with psar for the direction of the trend, then we check the trend direction based on atr levels with MA applied on it and lastly to confirm the direction we check the level of elliot wave oscillator. If they are all on the same page we have a short or a long entry.
STATS
Its a low win percentage , we usually have between 10-20% win rate, but at the same time we use a 1:30 risk reward ratio .
By this we achieve an avg profit factor between 1.5- 2.5 between different currencies.
RISK MANAGEMENT
In this example, the stop loss is 0.5% of the price fluctuation ( 10.000 -> 9950 our sl), and tp is 15% (10.000 - > 11500).
In this example also we use a 100.000 capital account, risking 5% on each trade, but since its underleveraged, we only use 5000 of that ammount on every trade. With leveraged it can be achieved better profits and of course at the same time we will encounter bigger losses.
The comission applied is 5$ and a slippage of 5 points aswell added.
For any questions or suggestions regarding the script , please let me know.
MACD and EMA200 With SignalsThis is my first indicator. It PROVIDES BUY, SHORT, and FALSE Signals by taking the MACD and the 200EMA.