Volume Weighted MACD with Named PlotsLiterally just copied VWMACD but named the plot lines to make setting alerts more clear.
Convergencia/divergencia de la media móvil (MACD)
The WWG Plan Indicator V2█ OVERALL
This indicator was specifically created for the Walsh Wealth Group.
In short it is a fusion of some of the most basic and widely used indicators to show overbought patterns and trend reversals.
Its best usage is with LTF scalping and agressive profit taking but can also be used to find HTF dips and buy-zones.
█ FEATURES
Buy Signal (Buy):
Printed only with all confirmations triggered
Small Buy Signal (B1 & B2)
Printed if some of the confirmations are triggered and can be treated as DCA entries or for further
confirmation with other indicators and basic TA.
Crayons (Color Bars):
Blue: RSI is oversold
Olive: RSI and Stoch RSI are oversold
Yellow: RSI, Stoch RSI are oversold and lower Bollinger Bands are crossed by Low
Orange: RSI, Stoch RSI and CCI are oversold
Trailing SL:
If activated in the config, a trailing SL can be displayed on the chart based on ATR.
█ SETTINGS
The underlying indicators used are RSI, Stoch RSI, Bollinger Bands, MACD and CCI.
All possible configs can be changed in the config settings.
█ GENERAL INFORMATION
Depending on the settings, the indicator performance will be highly affected.
This indicator is only displaying highly oversold areas and events of trend reversal it is not a *God*-Signal and will print false positives.
█ ALERTS
An alert for the main buy-signal is implemented and can be used via the TV alert functionality.
MACD 50x Leveraged Strategy Real Equity Simulation Hello, I wrote this script to merge the two scripts I shared before.
The aim here is to see the real value of the state of the capital as a result of leveraged transactions and to combine both long and short directions.
Scripts :
MACD Long 50x Leverage Strategy :
MACD Short 50x Leverage Strategy :
The parameters have not changed so they are the same as the previous two scripts:
Adding margin: Forbidden or not specified. (Add Margin : No)
Position Size : %1 (0.01) (For each trade)
Stop-Loss : %2 (For each trade)
Long : Crossover(delta,0) (Standard MACD)
Long Exit : Long Stop Level or Short Entry
(In the case of Long Stop, all trades are closed and no positions are opened in short direction.)
Short : Crossunder(delta,0) (Standard MACD)
Short Exit : Short Stop or Long Entry
(In the case of Short Stop, all trades are closed and no positions are opened in the long direction.)
NOTE :
This is a simulation made using standard parameters, showing the state of the balance in very simple rules with leveraged transactions only.
The nice thing here is the direct observation of the results by making modifications on the strategy parameters.
Regards.
EMA Cross and MACD Signal CombinedThe rule is simple.
When MACD crosses up, it is supposed to give a buy signal. However, before entering into a Long position, there is a need for a confirmation. This confirmation can be from a down trendline breakout or from another indicator.
In this case, I've chosen the Exponential Moving Average Cross to be as the confirmation.
The Buy Signal will appear when there it fulfills the following conditions:-
i. The MACD line is above the Signal Line
ii. The fast EMA crosses the Slow EMA
The Sell signal will appears when the opposite of the above condition is met.
This indicator is meant for the Swing Trader whom would like to hold a position for a long time.
MACD Price Projected Bands [MPPB] Strategy for NIFTY / BTC 2 minMACD Price Projected Bands is an intraday NON REPAINTING Strategy to be used over BTCUSD and NIFTY on 2mins charts for optimum results!!
How the Strategy works
The strategy uses MACD with standard configuration as its main component.
The adaptive Bands are calculated over the MACD lookback, and MACD crosses of the adaptive bands are projected over the Price for creating a decision logic
A cyclic Trend Filter is used to calculate the Optimum Entry and Exit Points for the Strategy,
Levels are also plotted over the price projected bands for better visualisation of the targets!
What is used !
Macd_config : { fast:12 , slow:26 , signal:9 }
Lookback Length : 55
The Strategy has Provision for Alerts
You get Two signals
1. MPPBS Buy Signal
2. MPPBS Sell Signal
How the Visual Target System Works and How to trade Using this Strategy
An Adaptive Projected Band is constructed using MACD for traders to get Visual inputs regarding targets!!
The Trading Methodologies are in below Charts
For Short Trades
For Long Trades
Strategy Configurations for Backtest
For Englishmen!
The Backtesting Rules in the Strategy calculates only when order gets filled, the basic pyramiding in the strategy is set to 1, i.e The maximum number of entries allowed in the same direction is set to 1,
Also we trade only 1 quantity of the security with initial capital of 100000USD, and The commission type used in the strategy is set to 0.05 USD that means we pay 0.05USD as commissions in every trade!
For Coders!
{
calc_on_order_fills=true,
pyramiding=1,
default_qty_type=strategy.fixed,
default_qty_value=1,
initial_capital=100000,
currency=currency.USD,
commission_type= strategy.commission.cash_per_order,
commission_value = 0.05
}
How can you get access
Only do private message to me, donot use comment box for requesting access!
RSI of MACD Strategy [Long only]This strategy uses the RSI on MACD indicator.
BUY
====
When RSI indicator crossing over 30 or 35 line and price above slow ema
Note: when the position already taken, you may reenter on the purple candle
Partial Exit
==========
Partial profit taking option is available in settings. If this is selected , 1/3 position exited when RSI indicator crossing down 80 line
Close
=====
When RSI indicator crossing below 15
Stop Loss
=========
I havent used hard stop loss in this strategy. Reason is , when price going down , indicator may go up ... so just wanted to ride along with indicator ...
Stop loss mentioned in the settings is used in calculation of how many units can be be purchased based on risk level
Tested with SPY and QQQ ETFs on hourly chart
Warning
=========
For the eductional purposes only ...
This is not a financial advise. please do your own research before taking any trading decission
MACD Strategy (SL/TP Levels and Risk Management)Strategy based on MACD and EMA.
- Risk/Reward Ratio can be adjusted
- SL level can be slightly adjusted (Takes the last low/high as SL)
- Visual representation of SL and TP levels
- Risk management => 1 % max loss on a trade
MACD including 6-period Forecast and Divergences█ OVERVIEW
This is my personal interpretation of the classic MACD Indicator. I am using the MACD as part of my analysis, and often I was wondering when I can expect the next signal (e.g. a Histogram cross). As I had come across some EMA forecast logics on tradingview, my goal was to use the EMA forecast calculation as basis to come to a complete MACD forecast. Here is the result.
Starting point is the classic MACD which is then plotted with MACD-Line, Signal Line and Histogram. In addition to the classic MACD, a 6 period Forecast for MACD, Signal and Histogram is available and divergences can be displayed on either the Histogram or the MACD Line.
Important:
As I am considering the closing price of the current candle as the basis for the calculation, the forecast values will REPAINT. But in my opinion this is fine as this indicator will not provide direct trading signals, but more an outlook into a potential future.
█ CALCULATION LOGIC
Below some details regarding the additional functionalities:
MACD Forecast:
The MACD Forecast is mainly based on a combination of EMA Forecasts. The inspiration for this basic forecast calculation is taken from the below tradingview members:
--> EMA Forecast input taken from "Triple MA Forecast" by yatrader2
--> Forecast Bias input taken from "Fancy Bollinger Bands" by BigBitsIO
When showing the forecast, the following options are available:
- Forecast Type: Determines if the Forecast is assuming a Flat price (last values of the MA calculation are replaced by current value) or if a Linear Regression is taken
- Number of candles taken for Linear Regression Calculation
- Bias of Forecast (Based on the recent Average True Range, the forecast values are either more bullish or more bearish calculated. "Neutral" turns off this function)
- Number of ATR Periods used to calculate Bias adjustment value
- Possibility to weight the Bias via a Multiplier - Default value is 1
Based on the above inputs, the forecasted values for MACD, Signal Line and Histogram are calculated and plotted for the next 6 periods.
Divergence Detection:
Based on the default tradingview divergence script with some adjustments:
- User can select to use either Histogram or MACD Line as basis for Divergence detection (Histogram by default)
- User can select if Divergence detection should be based on the candles including Wicks or only the Candle Bodies (Wicks by default)
█ DISCLAIMER
This is an experimental indicator and I do not know if my theory works in real life. So treat this not as financial advise, but purely for entertainment and educational purposes.
I publish this code open so that everyone can re-use it or hopefully even improve it.
Let me know if you have any ideas for improvement and if it is within my coding capabilities (which to be honest are quite limited), I will try to accomodate it.
Have fun.
On Chart Reverse MACD HistogramThe On Chart Reverse MACD Histogram is a visual representational spin of the original MACD Histogram to assist the end-user in their decision making for entry, exit and risk management, as well as freeing up space for the chart.
The On Chart Reverse MACD Histogram, which very basically is a reverse engineered calculation of the MACD's Histogram gives the user a visual representation of the relationship between the current price and the MACD's Histogram on the chart instead of having to reference the MACD itself. At a glance this can then be used to visually see on the chart the closing price level needed in order to change the MACD's Histogram momentum either up or down.
Optional Settings Include:
-------------------------------
1.) Show/Hide Reverse MACD Histogram Momentum text
2.) Change the Reverse MACD Histogram Momentum information type (Basic/Detailed)
3.) Change the Reverse MACD Histogram Momentum text size
4.) Change the Reverse MACD Histogram Momentum text color
5.) Change the Reverse MACD Histogram Momentum text left margin
6.) Show/hide the Reverse MACD Histogram Momentum text currency
7.) Change the Reverse MACD Histogram Momentum text decimal value
8.) Show/hide the MACD Histogram Momentum Level
9.) Show the MACD Histogram Momentum Level As Columns *
* Please Note: When using the "Show Histogram Level As Columns" setting, in order to display this feature correctly without distorting the chart, click the ⚙️ (cog) icon in the bottom right corner of your chart and select the 'Scale Price Chart Only' option.
Better OBVOBV with William C. Garrett's Approximation
In the classical OBV (On-Balance Volume) indicator, it simply takes the idea from traditional tape reading - treat the "up tick" as Buy, "down tick" as Sell, and it assumes no change in price as neutral* (*which is not the case in tape reading).
When it comes to interpret the daily volume as such, errors will add up cumulatively. For example, there are days when a Doji Star with high volume just merely one cent higher than yesterday price and the whole day volume would be taken as a BUY Volume....
Here is a gentlemen, William C. Garrett, attempted to break down the daily volume into two parts in his book - "Torque Analysis of Stock Market Cycle".
Published indicator has two modes: Cumulative and Time Segmented. Time Segmented Volume (TSV) - performs a MACD operation on the Garrett Money Flow.
Note on Divergence:
When using a indicator as Time Segmented Money Flow, divergence would surely occur on and off. This is where Wyckoff 3rd principle comes into play - "Effort vs Result" that is not matching. Meaning that the cumulation of shares goes in one direction while the price goes another direction.
MACD Seasons by Dr Ken Longthis specific Moving Average Divergence Convergence Seasons Indicator is made by Dr Ken Long Tortoise Capital brings a unique way of the flow of the market, the 4 seasons are used to describe the areas of the MACD so for example when the area is below zero and hasn't crossed the EMA 5 we call that winter which is very bear bias, once you get support in winter and crosses above the EMA 5 we call that fall which is the first indication of support for price and some weakness toward the downside. if the MACD is above the zero line we call that summer which is a very bull bias valued area, and once it crosses below the EMA 5 then that's where we call fall mode showing us weakness and very slight indication of a possible reversal. the MACD can be both used for swing trade and day trading, it provides a unique insight to the markets showing the layers of a trend using seasons.
MACD with Lines - ChartWhat is MACD with Lines - Chart and why do you need it?
I use it for chart analysis to identify key macd /signal levels from which bullish / bearish market structure continues to develop.
Chart means that every Macd /Signal cross above/below the signal lines will be notified on your Chart and not on your MACD Indicator. To see them on your chart please choose "MACD with Lines - Default" in my library.
Once Signal, Macd or the Histogramm cross over or under your upper or lower signal line you will see background colors which you can adjust in the settings menu.
This small indicator is for a larger project which will be uploaded in several days/weeks.
MACD with Lines - DefaultWhat is MACD with Lines - Default and why do you need it?
I use it for chart analysis to identify key macd/signal levels from which bullish/bearish market structure continues to develop.
Default means that every Macd/Signal cross above/below the signal lines will be notified on your MACD Indicator and not on your chart. To see them on your chart please choose "MACD with Lines - Chart" in my library.
Once Signal,Macd or the Histogramm cross over or under your upper or lower signal line you will see background colors which you can adjust in the settings menu.
This small indicator is for a larger project which will be uploaded in several days/weeks.
Combo Backtest 123 Reversal & MACD Crossover with Trail and Stop
This is a modification of @HPotter "Combo Backtest 123 Reversal & MACD Crossover" script.
I've added a trail stop, basic leverage simulation and stop loss.
Below is HPotter's explanation of the script principals.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
MACD – Moving Average Convergence Divergence. The MACD is calculated
by subtracting a 26-day moving average of a security's price from a
12-day moving average of its price. The result is an indicator that
oscillates above and below zero. When the MACD is above zero, it means
the 12-day moving average is higher than the 26-day moving average.
This is bullish as it shows that current expectations (i.e., the 12-day
moving average) are more bullish than previous expectations (i.e., the
26-day average). This implies a bullish , or upward, shift in the supply/demand
lines. When the MACD falls below zero, it means that the 12-day moving average
is less than the 26-day moving average, implying a bearish shift in the
supply/demand lines.
A 9-day moving average of the MACD (not of the security's price) is usually
plotted on top of the MACD indicator. This line is referred to as the "signal"
line. The signal line anticipates the convergence of the two moving averages
(i.e., the movement of the MACD toward the zero line).
Let's consider the rational behind this technique. The MACD is the difference
between two moving averages of price. When the shorter-term moving average rises
above the longer-term moving average (i.e., the MACD rises above zero), it means
that investor expectations are becoming more bullish (i.e., there has been an
upward shift in the supply/demand lines). By plotting a 9-day moving average of
the MACD , we can see the changing of expectations (i.e., the shifting of the
supply/demand lines) as they occur.
WARNING:
- For purpose educate only
- This script to change bars colors.
Self-Optimising MACD (Experimental)Hi guys, just thought I'd share a small part of an idea i've been working on.
One of the biggest problems with algo trading is optimisation and finding a way to constantly adapt to the market conditions as time unfolds.
First of all... You should NEVER EVER trade just using a MACD, including this study, and I only produced this script in a small amount of time, so make sure you backtest it properly before using it. When backtesting, it is my advice that your sample size should be at least 5000 trades, but I recommend 10000 in order to get sufficient statistical significance.
Also, I am not a financial advisor, and any trading based decisions are your sole responsibility.
Anyways...
This script is simple... it simply uses 4 different MACD's and tracks their profit/loss and automatically uses the one with the most historical profit at any given time to execute a trade. The type of MACD will obviously change as market states fluctuate.
Included are : Hull MACD, Ema MACD, Sma MACD and VWMA Macd.
You can adjust all four of their settings to your desire.
The trade execution is simple and definitely flawed... it simply tracks the MACD when it has a crossover for long, and then the opposite for short.
The green line represents the performance of the top MACD for Longs at any given time. This line refreshes once a year, and where it is in relation to price, reflects how profitable it has been I.e - the higher it is the better.
The Red line represents the performance on the Short side, and again, it reflects profit/loss, but this time the LOWER the line is in relation to price the better.
There is no exit strategy in place! This is why I do NOT recommend trading off this script alone, but to use it as a tool to help optimise your choice of MACD.
However, your exit strategy could change your optimal choice of MACD, so keep that in mind.
The lookback period represents how far the script will track the performance at any given time. This will change your results. The longer the period, the more it will show long term success and vice versa.
This optimisation process could be done with different indicators, moving averages, or even multiple strategies to find the most statistically viable option at any given time... if you wish to have this process coded into your strategies or indicators, message me.
Enjoy.
MACD Intraday Trend - RSJMACD Intraday Trend is an Indicator developed through an adaptation made of the original MACD created by Gerald Appel in the 1960s.
Through years of trading it was observed that by changing the parameters of the MACD with Fibonacci proportions we achieve a better presentation of the continuity of the trend movements, making that it is possible to more efficiently detect the beginning and end of a price trend.
Due to its efficiency in detecting price trends, it is also possible to identify very clearly the divergences of tops and bottoms, thus taking better advantage of trading opportunities.
-> Every time the histogram is positive and crosses the signal line down there is a high probability that an uptrend will end and a downtrend will start.
-> Every time the histogram is negative and crosses the signal line up there is a high probability of ending a downtrend and starting an uptrend.
The Indicator MACD Intraday Trend works with any currency pair, at any candlesticks timeframe and with Renko charts.
The Indicator has an amazing performance on Renko charts.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
MACD Intraday Trend é um Indicador desenvolvido através de uma adaptação feita do MACD original criado por Gerald Appel nos anos 1960.
Através de anos de trading foi observado que alterando os parâmetros do MACD com proporções de Fibonacci conseguimos uma melhor apresentação de continuidade dos movimentos de tendência, fazendo com que seja possível detectar de forma mais eficiente o início e fim de uma tendência de preços.
Devido sua eficiência em detecção de tendências de preços é possível também identificar com muita clareza as divergências de topos e fundos, desta forma aproveitando melhor as oportunidades de trading.
-> Toda vez que o histograma estiver positivo e cruzar a linha de sinal para baixo existe uma alta probabilidade de fim de uma tendência de alta e início de uma tendência de baixa.
-> Toda vez que o histograma estiver negativo e cruzar a linha de sinal para cima existe uma alta probabilidade de fim de uma tendência de baixa e início de uma tendência de alta.
O Indicador MACD Intraday Trend funciona com qualquer par de moedas, em qualquer tempos gráficos com candlesticks e gráficos do tipo Renko.
O Indicador tem uma performance surpreendente em gráficos do tipo Renko.
MACD classic strategy setupsetup for a classic MACD strategy with some filter to choose.
it keep the default setup of MACD because is the most popular.
it place the stop loss and take profit based on the trading rush video of MACD, if you want a different profict factor you can change until to reach 3, over this as a fixed risk reward don't have so much sense
MACD Crossover Strategy with EMA200 Trend DetectionSimple MACD Strategy Indicator.
Rules:
- MACD Crossover with Signal Line
If
- MACD Crossover above zero line
- Price is below EMA200
=> Sell
If
- MACD Crossover below zero line (buy)
- Price is above EMA200
=> Buy
CT Reverse MACD CrossIntroducing the Reverse MACD Cross
MACD.... short for moving average convergence/divergence, is a trading indicator used in technical analysis of stock prices, created by Gerald Appel in the late 1970s.
It is designed to reveal changes in the strength, direction, momentum, and duration of a trend in a stock's price.
Prior work by Johny Dough showed how we can compute the price level required to make the MACD stay at its current level,
and also how to compute the price level required for the MACD to cross the zero line.
I have brought that idea to it logical conclusion for the MACD by creating a new function which also computes the price level required to cross the MACD with its signal line.
This allows the user to quickly see all of the most relevant information from the MACD and the actual price levels where the indicator will change its posture.
The MACD indicator (or "oscillator") is a collection of three time series calculated from historical price data, most often the closing price.
These three series are:
the MACD series proper shown here in blue
the "Signal Line" or "average" series shown here in red
the "Divergence" series which is the difference between the two shown here as a histogram.
There is also usually a baseline set at zero.
The MACD series is the difference between a "fast" (short period) exponential moving average (EMA), and a "slow" (longer period) EMA of the price series.
The average series (signal line) is an EMA of the MACD series itself.
The MACD indicator thus depends on three parameters, namely the time periods of the three EMAs.
The notation "MACD ( a, b, c )" usually denotes the standard indicator where the MACD series is the difference of EMAs with characteristic times a and b, and the average series is an EMA of the MACD series with characteristic time c.
There is an infobox which displays...
Whether the MACD is falling or rising
the price level which will make the MACD to change from rising to falling or vice versa
the price level which will cause the MACD to cross the signal line
the price level which will cause the MACD to cross the zero line
The most commonly used values are 12 for the fast, 26 for the slow, and 9 for the signal line, that is, MACD ( 12, 26, 9 ) .
The MACD and average series are customarily displayed as continuous lines in a plot whose horizontal axis is time oscillating above and below a zero line, whereas the divergence is commonly shown as a bar graph / histogram.
A fast EMA responds more quickly than a slow EMA to recent changes in a stock's price.
By comparing EMAs of different periods, the MACD series can indicate changes in the trend of a stock.
It is claimed that the divergence series can reveal subtle shifts in the stock's trend.
Since the MACD is based on moving averages, it is a lagging indicator. As a future metric of price trends, the MACD is less useful for stocks that are not trending (trading in a range) or are trading with unpredictable price action.
SmoothOps v1 - StudyThe purpose of this script was to fine tune an indicator on BTCUSDT . I think the results speak for themselves in the study version.
This is a script that uses the MACD to predict future price movement. The original MACD signal lags too much for my taste so I went searching for something that could give signals sooner. I decided a smooth macd would help filter out noise and grabbing the highest values and lowest values over the past number of bars. I spent several days backtesting different settings and combinations of signals to arrive at what you see now. This strategy has been fine tuned for BTC /USDT on Binance, so I suggest you only use it for that. Any other coin/pair and exchange will need a new backtest since the data will be different. This is not a generalized indicator like everything else. It's specifically good at one thing: prediction BTCUSDT on Binance.
I wanted to also add the histogram from the study version but there wasn't a good way to do that, so I came up with a visual solution using color transitions on the 168sma. When the color changes from blue to red it means the histogram is reversing.
I added forecasting to the moving averages to help people predict future movement so they can make decisions by something other than just a sign of when to buy/sell.
There is a transition prediction feature that blurs the macd signal to show when a reversal may occur before it happens.
I also added precitions into the indicator that show when there may be a possible bounce or major move because of a current squeeze in the moving averages.
And finally...
My biggest issue with indicators that other people sell is that they become visually deceptive when using supports and buy/sell signs. I came up with a solution that shows you exactly if you made profits during the trade or not. Hopefully this will inspire others to do something similar.
How to use:
Use only on BTCUSDT Binance.
Set the preset to the timeframe you want. I HIGHLY suggest only using the 1h timeframe. It gives the best profit over time.
Set the preset to custom if you want to try using your own settings.
You can change the source input if you want. ohlc4 usually works best for 1h.
Adjust the moving averages to your liking. You can also toggle the checkbox to completely remove them.
Turn on/off the forecasting of the moving averages.
Turn on/off the additional signals with the checkbox.
Transition prediction uses a blur variable to signal when the macd might be slowing down and reversing.
Bounce prediction and sensitivity tries to find possible reversal areas when price falls too fast or hits a specific moving average.
Macro signals just tries to show when price is above the 168moving average to get the macro trend.
Squeeze prediction indicates when a possible strong move may occur. Could go up or down though.
Show profit is my favorite part because it shows if you made profit during the last trade visually and non deceptively.