MACD EMA - TradingRush StrategyHey there!
Today I present you a rather simple, but very profitable MACD strategy. Since I trade it with cryptocurrencies, the settings have been adjusted.
I discovered the strategy on a YouTube channel and tried to transfer it as a strategy into a script.
Tested with the crypto pair ETH/USDT in the 15 minute chart.
There is the possibility to switch between short and long positions.
-----------------------------------------------------------------------------------
How does the strategy work?
ENTRY
The MACD indicator must cross below the histogram. If it crosses when the price is below the EMA, only short positions are traded. Above the EMA - long.
EXIT
The Lowest Low (long) / highest high (short) serves as the stop loss. The TP is formed on the basis of a factor. (SL multiplied by factor 2.1 = TP).
The red lines are used to illustrate the SL. Above for short positions below for long positions.
The results of the strategy are without commissions and levers.
If you have any questions or feedback, please let me know in the comments.
If you need more information about the strategy and want to know exactly how to apply it, check out my profile.
I wish you good luck with the strategy!
Macd-v
MACD Triple - Moving Average Convergence Divergence - TradingEDThis case study is based on a previous MACD study, but with three different counts to compare different trends. The use of this indicator is restricted to private use, and it can be used only by invitation. Different functionalities have been added to the original code, such as alerts and signals that seek to make trading much easier to interpret by any type of trading operator of any experience level, from beginner to intermediate and advanced.
Key components of the original indicator:
● The Moving Average Convergence Divergence (MACD) is calculated by subtracting a long period (26) Exponential Moving Average (EMA) from a short (12) period EMA.
● MACD triggers technical signals when it crosses above (to buy) or below (to sell) its signal line.
● The speed of crossovers is also taken as a signal of a market is overbought or oversold.
● MACD helps traders to understand whether the bullish or bearish movement in the price is strengthening or weakening.
It is a momentum indicator that follows the trend and shows the relationship between two moving averages of the price of a security. It can function as a trigger for buy and sell signals, when you cross above (to buy) or below (to sell) your signal line. It helps to understand if the movement is bullish or bearish, if it is getting stronger or weaker. The further the MACD is above or below its baseline, it indicates that the distance between the two EMAs will be growing, often shown with a histogram that graphically represents the distance between the MACD and its signal line, and It is used to identify when the bullish or bearish momentum.
Main functions of this modified indicator:
1) You can select the type of MOVING AVERAGE , among many available options (SMA, EMA, DEMA, HMA, etc.)
2) The SOURCES for the counts can be determined by the trader (close, open, etc).
3) The MEASURE can be based on a CANDLES count if you are trading OHLC Charts from 1D onwards , or if your trading is intraday, you can also select counts by MINUTES , HOURS or DAYS , depending on your trading style.
4) LENGTH , by default it will be loaded as in the STRATEGY , but considering the previous point, you can modify it according to your convenience.
5) You have the option to hide or show the HISTOGRAM or even the MACD if you want to see one of them.
6) You have the option to hide or show a LABEL at the top of the chart, with respect to the signals: BULLISH green, BEARISH red.
Main performance functions of this modified indicator:
I) In the case of the PERFORMANCE that appears at the right of the chart, you have the option to adjust the WIDTH of each box.
II) The TEXT of the PERFORMANCE is not modifiable, but you can customize the default color. *
III) The BACKGROUND of the PERFORMANCE , you can customize the default color. *
IV) You have the option to hide or show a PERFORMANCE that appears at the right of the chart.
Main functions to customize the style of this indicator:
a) You can select the colors for the FAST LENGTH , SLOW LENGTH AND HISTOGRAM with the colors that best suit you. * **
b) For any type of SIGNAL , it is painted as a VERTICAL LINE in the graph, you can change the color that comes by default. *
c) In the case of the LABELS that appear at the top, the text is not modifiable, but you can customize both the type of label and change the default color. *
d) You can select the colors for the BACKGROUND of the indicator according to the trend, whether it is BEARISH or BULLISH , with the colors that best suit you. *
e) You can select the color for the ZERO LEVEL , with the colors that best suit you.
* By default, they are marked as red for downtrends and green for uptrends.
** By default, they are marked as orange for downtrends and blue for uptrends.
Forward Cross ProjectionA quick script used to predict the average value the price should have to create a cross between a slow and fast MA at a given time. The line is red when the current cross is bullish and the line is green when the current cross is bearish. Crossing a red line downwards means that the price is getting lower and a bearish death cross is impending. Crossing a green line upwards means that the price is rising and a bullish cross is impending. Script was made thanks to the idea of Dannii
MACD-RSI Confluence SimplifiedAnother simple version of the MACD RSi Confluence script. But this is one is more simplified with simple signals. Again to fully understand macd & RSI you should already have some type of knowledge of how they work. With understanding this script & it's signals are great for those who do. This script is based on Barcolor signals reflected by macd & RSI data
SimpleScalper2.0MACDThis indicator should be implemented with more indicators, by itself it is not recommended. SimpleScalper 2.0 MACD its strong are the negative values during the major corrections or waves of impulse of downtrend and see divergences with better visibility
All in One Strategy no RSI Label - For higher dollar cryptoThis is the All in One Strategy without the RSI suggestion label that will work well for any of the crypto currencies trading above $500 so the overlay shows up better. I am using ETH as an example on this.
Based on some comments on my previously published script that has been replaced I have added Alert Conditions to this version that can be used in other bots. You can also copy and paste these alert conditions into the other All in One script I published for the lower priced cryptocurrencies.
To use the alert conditions I have in here, you will need to convert this strategy into a study to do so. Delete the entry and exit logic at the end (lines 299 through 351), delete line 18 and paste the following in place of line 18:
study(shorttitle='Ain1 No Label',title='All in One Strategy no RSI Label', overlay=true, scale=scale.left)
Here are the settings to mimic what you see here in the back test strategy I am publishing. Remember that previous results do not guarantee future results.
Chart Time = 30 Minutes (if you didn't read my original All in One post, read it. Shorter isn't better. You lose your money faster in a shorter amount of time and I learned that the hard way)
Start Time = 1 April 2021 00:00
End Time = 31 December 2021 00:00
Trade Type = Long/Short
Stop Loss % = 20.1
Take Profit % = 14.57
RSI Length = 20
Overbought = 44
Oversold = 45
EMA Fast Length = 5
EMA Slow Length = 15
Overbought Lookback Minimum Value = 62
Overbought Lookback Bars = 3
Oversold Minimum Value = 43
Oversold Lookback Bars = 5
Source = Close
Max Lookback Period = 5
Use EMA Only = True (check the box)
K = 9
D = 17
K Mode = SMA
High Source = ohlc4
Low Source = ohlc4
Properties - Starting Amount is $3500, everything else is the same.
Any questions, feel free to ask. I will answer as soon as I can.
Table: Relative Strength Index (Multiple Timeframes) DESCRIPTION
It is the most popular and dependent Indicator, Relative Strength Index (RSI) . Now, I put inside a table to view chart momentum from Multiple timeframes.
This indicator tells different Timeframe (30 minutes, 1 hour, 4 hour, 1 day, 1 week, 1 month) of RSI value within table form.
HOW TO USE
Can consider a Long position when all timeframes go oversold while Short position when all timeframes go overbought. Alarm function is available. It sounds as all timeframes are overbought or oversold.
Modified The source of indicator from ©BeeHolder named "Performance"
Technicals Rating Strategy v420Ichimoku, HMA, RSI, Stoch, CCI, MACD, Technicals Rating Strategy is a trading Bot that looks at these chosen indicators and assigns a value to each, then calculates the result of adding each indicators result value to a overall rating, which is then compared to a user set level. Here seen on Bitcoin, it has the broker fee included in the testing result. If you choose to use it on Forex etc, perhaps remove the broker fee which is unrealistic for FX trading.
It has a Win/Loss ratio of only 40% wins, but it catches the big moves and thats the main thing, so if ELON MUSK had of used this strategy instead of BUY and HOLD, he could of made 700% instead of 7% (as is, may, 2021)
Mainly intended for use as Automated TRADE BOT.
(imagine if Elon Musk did use this bot with his 1.3 billion $ worth of BTC, the drawdown would be like, half a billion or something haha (p.s.- use smaller lotsize % to get smaller drawdown, but then smaller profit....) )
For use with any pair and timeframe. In fact there is a timeframe setting to set the strategy to look at alternative timeframe from chart, but as default will just be set to charts timeframe.
MACD Signal with RSI Indicating StrategyThis strategy looks for MACD signal crossover and RSI confirmation of oversold/overbought condition.
Tune to your crypto/stock for best results using the strategy and sent an alert. Currently set up to use 25% of equity at each buy signal and will sell 1/3 of position at each sell signal. Initial investment is $1000, but adjust as necessary.
Currently tuned to DOGEUSD on 30min chart.
If you like/use/profit, follow me or shoot me a donation. If you are looking for a script design, I can help.
Easy Entry/Exit Trend Colors (With Alerts)This is an updated version of user Algokid's script called 'AK MACD BB INDICATOR V 1.00'. You can find that original script here:
I added many alerts along with the Bullish and Bearish alerts when the MACD crosses over the Upperband or crosses down on the Lowerband.
I personally use this indicator with Crypto charts (Bitcoin on a 15min, 1hour, and 4 hour timeframe) as one of many confirmations that it's a good time to enter a trade. This script was made to be easy to follow with the colors of GREEN triangles being a good uptrend or entry confirmation, and RED being a confirmation to sell/short or exit your trade.
It's important to use this indicator in combination with other indicators that can give you more confirmations to enter or exit a trade, and make sure you are on normal candles and not HA or any other candles as you can get wildly inaccurate results.
This script also has the Death & Golden crosses, which is the slow and fast moving averages crossing over each other. I don't use this as an additional confirmation, it's just nice to know where the cross happens.
Hopper Trigger - Free Cryptohopper WidgetWelcome to our Tradingview cryptohopper trigger widget.
We designed this script to give Cryptohopper users the possibility to set up an alarm when btc is trending down. Cause of the BTCs behavior as the supertrend coin for the market it is better to turn your hopper off or be extremly careful when BTC is trending down. We implemented to types of alarms, because atm its not possible to automate using them to deactivate your hopper. On Alarm setup could be used to send signals every minute to trigger a push notification on your App or to trigger your Alexa. The other type of alarm only sends one single signal for normal purposes.
We recommend using this indicator in the 30 minute or 1 hour timeframe and to deactivate your hopper and deleting all positions when a alarm is signaling. The risk of a larger drop is very high in this marketphase. Never take an drop again using this approach. Little drawdown in bearish or ranging times but high reward in bullish times.
Smartgrow-Trading is a community project with the aim of developing the best and most successful trading strategies and sharing them with the community.
The basic idea of this script is to calculate how far an coin is away from its ATH , to gave warning signals for deactivating coins after they reached there ATH . So it could also be used for other coins and pairs.
If there are questions, write them into the comments or contact us directly over the direct message or social media. Happy Trading!
Triple Exponential MACDA modification of the classic MACD to use Triple EMAs which tends to have less lag than the standard indicator. (I also have a Double Exp MACD indicator, I tend to use both simultaneously)
Alert conditions are pre-configured for simple line crosses and you can enable/disable the histogram from the indicator options menu.
Enjoy!
Double Exponential MACDA modification of the classic MACD to use Double EMAs which tends to have less lag than the standard indicator.
Alert conditions are pre-configured for simple line crosses and you can enable/disable the histogram from the indicator options menu.
Enjoy!
Simple Macd Momentum Reversal IndicatorThis Simple indicator uses the MACD history to check trend reversals. It primarily check if the histogram has moved up from a downtrend above a certain margin. If it has, it places a green B on the chart. If you were to use/improve this indicator, please use it with other indicators to confirm your position. This is NOT an indicator that can be well used alone.
Simple MACD + 200EMA StrategyThis script is based on classic MACD / 200EMA strategy.
It takes a Long trade when MACD line crossup Signal line, when both below Zero line, and Close price above 200 EMA.
It takes a Short trade when MACD line crossdown Signal line, when both above Zero line, and Close price below 200 EMA
It seems to have decent results with 1:1.5 Risk/Reward, with 30min TF (on cryptocurrency market)
It has a number of 1 per day on average.
FEATURES
ORDERS
You can have both Long and Short, or disable one.
STOPLOSS
Stoploss is based on last swing (high or low). You can adjust the lookback period of the swing.
TAKE PROFIT
For now, there is 2 possibilities for TP :
Using adjustable Risk/Reward ratio (Trailing Stoploss need to be at 0)
Using adjustable Trailing Stoploss percentage (RR Ratio need to be at 0)
Results below are with this parameters :
Start date 01/01/2021
1:1.5 RR ratio
100USD Initial capital
100USD Order Size
0.01% Commission fees.
Price Acceleration Convergence Divergence V2This is a fork of the previous PACD indicator i made by working out the RSI another two times. it works the exact same but is more leading in trend reversals and divergences.
this indicator plots 4x the RSI of the RSI of the price using the derivatives of RSI. Data is plotted just like the MACD.
points 5 and -5 are very strong support/resistance points and should be very important points to take note of.
use this indicator like the MACD essentially with the assistance of a 4x RSI momentum. enjoy
macZLSMA - Overlay**Overlay Version** Macd that shows instantaneous trend using ZLSMA. This crossover has the ability to reveal trend directions before it happens. With multi time frame option.
Above image shows 1 hour timeframe using 12hour setting on indicator
Example with 1 hour timeframe:
Example with 1 hour timeframe using daily setting on indicator:
Non overlay version available here:
Sentiment OscillatorPrice moves when there are more market takers than there are market makers at a certain price (i.e. price moves up when there are more market buys than limit sells and vice versa). The idea of this indicator is to show the ratio between market takers and market makers in a way that is intuitive to technical analysis methods, and hopefully revealing the overall sentiment of the market in doing so. You can use it in the same way you would other oscillators (histogram crossing zero, divergences, etc). The main difference between this and most volume-weighted indicators is that the price is divided by volume instead of multiplied by it, thus giving you a rough idea of how much "effort" it took to move the price. My hypothesis is that when more volume is needed to move the price, that means bulls and bears are not in agreement of what the "fair price" should be for an asset (e.g. if the candle closes only a bit higher than its open but there's a huge spike in volume, that tells you that a majority of the market are starting to think the price is too high and they've started selling).
Methods of Calculation
1. Price Change Per Volume
The main method this indicator uses to reveal market sentiment is by comparing price change to the volume of trades in a bar.
You will see this calculation plotted in its most basic form by ticking the "Show Bar per Bar Change/Volume" box in the inputs dialog. I personally found that the plots were too noisy and cannot be used in real time reliably due to the fact that there is not much volume at the open of a new bar. I decided to leave in the option to use this method, in case you'd like to experiment with it or get a better grasp of how the indicator works.
2. Exponential Moving Averages
In my quest to smooth out the plotted data, I experimented with exponential moving averages. Applying an EMA on the change per volume data did smooth it out a bit, but still left in a lot of noise. So I worked around it by applying the EMA to the price change first, and then dividing it by the EMA of the volume. The term I use for the result of this calculation is "Market Sentiment" (do let me know if you have a better-fitting term for it ;-)), and I have kept it as an option that you can use in the way you would use other oscillators like CMF, OBV, etc. This option is unticked by default.
3. MACD
I left "Market Sentiment" unchecked as the default option because I thought an easier way to use this indicator would be as a momentum indicator like the MACD . So that's what I turned it into! I applied another EMA on the Market Sentiment, added a slower EMA to subtract from the first, and now we have a MACD line. I added a signal line to subtract from the MACD , and the result is plotted as a histogram... ish . I used area instead of columns for plot style so you don't get confused when comparing with a regular MACD indicator, but you can always change it if an actual histogram is more your taste.
The "histogram" is the main gauge of sentiment change momentum and it is easiest to use, that is why it is the only calculation plotted by default.
Methods of Use
As I have mentioned before, you can use this as you would other oscillators.
-The easiest way to use this indicator is with the Momentum histogram, where crosses over 0 indicate increasing bullish sentiment, and crosses below 0 indicate increasing bearish sentiment. You may also spot occasional divergences with the histogram.
-For the Market Sentiment option, the easiest way to use it is to look for divergences.
-And if you use the "Price Change per Volume of Each Bar", well... I honestly don't know. I guess divergences would be apparent towards the close of a bar, but in realtime, I don't recommend you use this. Maybe if you'd like to study the market movement, looking at historical data and comparing price, volume , and Change per Volume of each bar would come in handy in a pseudo-tape-reading kind of way.
Anyway, that's my explanation of this indicator. The default values were tested on BTC/USDT (Binance) 4h with decent results. You'll have to adjust the parameters for different markets and timeframes.
I have published this as a strategy so you can test out how the indicator performs as you're tweaking the parameters.
I'm aware that the code might not be the cleanest as I have only started learning pine (and code in general) for about a month, so any suggestions to improve the script would be appreciated!
Good luck and happy trading :-)
macZLSMAMacd that shows instantaneous trend using ZLSMA. This crossover has the ability to reveal trend directions before it happens.
All in One StrategyTrue improvement over my previous script. This script adds in all of the complementary indicators, makes it truly easy to adjust the inputs, and has produced a real world net gain using the TradingView bots paired with any broker's API that is supported.
It has a selection for which strategy you'd like to use and due to limitations in Pine I cannot program in logic to make sure you only pick one, so you need to make sure you are only picking one.
To tweak the Connors option - it only depends on the RSI length variable, everything else is hard coded and tweaked for Crypto.
To tweak the MACD - play around with the min and max values of the RSI for lookback and the amount of candles to lookback. Then tweak the fast and slow MA lengths. I have found that a fast length of 3 or 4 and a slow length between 6 and 10 will yield the highest gains.
Also, when I was a young Noob I thought using a chart timeframe of 5 minutes was the best...no...no it wasn't. I lost my ass. Don't lose yours. I highly suggest sticking with a 30 minute timeframe, you will minimize losses caused by false triggers, have less trades and higher profits. More is not always better, trades that may sell one day and then buy six days later are normal. Leave it do its magic and you'll be very happy in the end.
Rfactory: Ken Long MACD SeasonsRfactory has partnered with Dr Ken Long of Tortoise Capital Management to provide his MACD Seasons Indicator which is loaded into its own sub-graph. All settings are preconfigured to be the same as Dr Long uses out of the box and the plots include the MACD line colored by Season, the Signal line and the Red River. SSC (Spring Supported Crossing) Signals are specifically highlighted with large Dots on the MACD Line. Everything is customizable including not only coloring and line styles but also the underlying settings for lookbacks as well as a selector to use SMA's or EMA's for the calculations.
The MACD Seasons indicator helps identify where a market is in a seasonal cycle. In summer (green) the market is trending up and at an expanding pace. Once the season changes to Fall (blue) the market is still trending up but the pace has slowed. When the market moves into Winter (red) the trend has changed to down and at a quickening pace. In Spring (yellow) the trend is still down but the pace has slowed and we are looking ahead to get back to Summer.
The Red River volatility band is an indication of normal and helps identify in particular when a market is in a particularly harsh winter or summer.
The MACD Seasons works best with (and is an extension of) Dr Long's RLCO Framework.
MACD, RSI, & RVOL Strategy
This strategy combines the use of MACD (12, 26, 9), RSI (14, 30, 70), and RVOL (14) to create Long Buy and Sell signals. This works well with many different time intervals but was developed with 15-minute intervals in mind.
Using MACD as a reference, the strategy identifies when the MACD line crosses over (a factor in a buy signal) and under (a factor in a Sell signal) the Signal line. This shows a shift in positive (cross over) and negative (cross under) of a security.
Using the Relative Strength Index ( RSI ) as an indicator, the strategy notices when the velocity and magnitude of the directional price movements cross over the Oversold signal (30) and crosses under the Overbought signal (70) as a factor in creating a Buy and Sell signal.
Using Relative Volume (RVOL) as an indicator, the strategy calculates when the current volume has crossed over the 2x average volume indicator over a given period and is then used as a factor in creating a Buy signal. RVOL is also used when the change in volume crosses under a set RVOL number (in this strategy, it is set to a RVOL of 5).
RVOL = Current Volume / Average Volume over a certain period
This strategy indicates a Buy signal when 2/3 conditions are met:
- RSI Cross Over the Over Sold signal (default 30)
- MACD Cross Over of Signal ( MACD > Signal)
- RVOL Cross Over of 2 (RVOL > 2)
This strategy indicates a Sell signal when 2/3 conditions are met:
- RSI Cross Under the Over Bought signal (default 70)
- MACD Cross Under of Signal ( MACD < Signal)
- RVOL Cross Under 5 (RVOL < 5)
Enjoy and leave feedback!
Rfactory: Ken Long RLCO FrameworkRfactory has partnered with Dr Ken Long of Tortoise Capital Management to provide his complete RLCO Framework into a single seamless TradingView indicator along with his most recent MACD Seasons work. This is by far the quickest and easiest way to get up and running with a beautifully crafted RLCO Framework in just a few clicks.
Dr Long developed the RLCO (Regression Line Cross Over) Framework as a statistical lens through which he trades the markets and has taught the approach to countless traders through Dr Van Tharp's IITM as well as his own workshops and trading community.
All elements of the Framework are preconfigured and the indicator includes a custom "Stats" overlay with daily range statistics (such as FrogBox, Hybrid FrogBox, Rangestat, etc). Each element of the RLCO Framework can be enabled or disabled at the click of a button via the indictor settings.
The RLCO Framework elements include the Linear Regression lines (RL10, RL30, RL90, RL270), the Bands (River, Flood Plain & Z3 Bands as well as the Dragon and the Baby Dragon) and a host of other Supplemental tools that are often used in conjunction with the above including VWAP, PSAR and the customized PSAR on the RL10 that Dr. Long pioneered.
In order to keep an eye on intraday volatility the Z3 bands will change color to yellow when we enter an SQC (Sideways Quiet Channel) environment to alert the trader.
Each element has been carefully designed with pre-configured and deliberate layering, coloring and translucency settings by default so it looks gorgeous out of the box but can also be customized to taste using the usual TradingView indicator settings.
For an even more intuitive experience you can monitor the MACD Season at a glance from within the RLCO Framework itself by coloring either the RL10 line or the Dragon by MACD Season which has become a very popular feature.
Also available (although it is a separate indicator it is included along with the framework) is the MACD Seasons Indicator which is loaded into its own sub-graph. All settings are preconfigured to be the same as Dr. Long uses out of the box and the plots include the MACD line colored by Season, the Signal line and the Red River. SSC (Spring Supported Crossing) Signals are specifically highlighted with large Dots on the MACD Line. Everything is customizable including not only coloring and line styles but also the underlying settings for lookbacks as well as a selector to use SMA's or EMA's for the calculations.