TradingView
ChartArt
30 nov. 2015 14:23

MACD + SMA 200 Strategy (by ChartArt) 

Description

Here is a combination of the classic MACD (moving average convergence divergence indicator) with the classic slow moving average SMA with period 200 together as a strategy.

This strategy goes long if the MACD histogram and the MACD momentum are both above zero and the fast MACD moving average is above the slow MACD moving average. As additional long filter the recent price has to be above the SMA 200. If the inverse logic is true, the strategy goes short. For the worst case there is a max intraday equity loss of 50% filter.

Save another $999 bucks with my free strategy.

This strategy works in the backtest on the daily chart of Bitcoin, as well as on the S&P 500 and the Dow Jones Industrial Average daily charts. Current performance as of November 30, 2015 on the SPX500 CFD daily is percent profitable: 68% since the year 1970 with a profit factor of 6.4. Current performance as of November 30, 2015 on the DOWI index daily is percent profitable: 51% since the year 1915 with a profit factor of 10.8.

All trading involves high risk; past performance is not necessarily indicative of future results. Hypothetical or simulated performance results have certain inherent limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not actually been executed, the results may have under- or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown.
Commentaires
AverageJoe907
the bartrend color setup is confusing to me... what am i missing? I can't figure out what the color changes mean in relation to the bars, signal, trend, etc... could someone please explain to me how and why the bars go from blue to green and blue to red, etc, and what it means when it happens? thanks
Tokenchoke
@AverageJoe907, I like to know this too
mentalAuthor84873
@AverageJoe907, blue means a correction and a setup to enter in a trend
Jim51259
@AverageJoe907, Blue is a normal volume, green is 150% above normal so green is bullish, Red is 150% above normal to the bearish side, I really like these candles, have them on every chart
bouzianenetteller
@Jim51259, wow i like this smart indicator and bars color helpful
Mamtamu
jd78114
@AverageJoe907, the blue tends to be a pullback & if anything a sign of reversal. I changed the color to yellow to show a slowdown of the trend.
mianleo
Do these arrows repaints or not?????
Mikegi
@mianleo, they repaint
limitless3
Hi thanks for the strategy, I m trying from your script to build strategy where you go long when both MACD cross over and a 2 Simple moving avarage crossover happen like a 20 and 50 sma.
I keep getting errors \,could you help me? this is the script I m trying.

//@version=2
strategy("MovingAvg2Line Cross", overlay=true)
fastLength = input(9)
slowLength = input(18)
price = close
veryfastLength = input(12)
veryslowlength = input(26)
MACDLength = input(9)

MACD = ema(close, veryfastLength) - ema(close, veryslowlength)
aMACD = ema(MACD, MACDLength)
delta = MACD - aMACD
mafast = sma(price, fastLength)
maslow = sma(price, slowLength)

if (crossover(mafast, maslow)and crossover(hist, 0) and macd > 0 and veryfastMA > veryslowMA
strategy.entry("MA2CrossLE", strategy.long, comment="MA2CrossLE")

if (crossunder(mafast, maslow))
strategy.entry("MA2CrossSE", strategy.short, comment="MA2CrossSE")
Plus