TradingView
LonesomeTheBlue
20 Th07 2020 12:17

MACD-AS 

Bitcoin / TetherUSBinance

Mô tả

Hello All,


This the script for Moving Average Convergence Divergence – MACD of Thomas Aspray, and called as MACD-AS and you may get earlier signals than MACD.

As MACD and MACD-AS are trend following indicators, they do not function well in sideway markets.

An example how it gets earlier signals than MACD



Good luck!

Phát hành các Ghi chú

updated.
Bình luận
rayudu2006
Hello Sir - could you please help put some description /comments on how to use this MACD-AS tool? As it doesnt have a support line similar to MACD - atleast i am confused when to take Long or Short?
As this indictor doesnt have signal - could you please help mention some notes when can we decide on Buy or Sell signals please

Thanks again and All the Best

Regards,
Subbu
swarnrekha97
@rayudu2006, add this line at the end of script, then you will be able to see an early crossover

plot(macdas, title="MACDAS", color=color.new(color.black, 0), linewidth = 2)
pakshalgemawat1996
@swarnrekha97, I am not able to add it, it showing issue with 5th line regarding study
CROSSOUW
@swarnrekha97, Hi, Can you please explain how to do that? TIA, Chantelle
ICEKI
First time to seeing this leading MACD indicator; appreciated your posting bro =D
forestcall
I’m testing this on MES - Micro e-mini Futures based on the 5 minute chart.

I will adjust some the code and send it back to you.

I’m new to Pine Script but have been a professional full stack software developer for 25 years.
djjz
喜欢你的脚本,都挺实用.
UnknownUnicorn9999603
Well done
kvramana12
LoneSome sir, you are just awesome sir, one more great indicator from you dedication to trading community
Great Job Sir
ScruffyTrades
Really accurate MACD, would be awesome if it plotted crossover trend indicators on candles. I've tried to do it myself but couldn't get it to work since I got zero experience with Pine, any help would be greatly appreciated!
Here's a sample of the original code:

// Check EMA200
EMA = ema(close, 200)
macd_crossup=macd < 0 and crossover(macd, signal)
macd_crossdown=macd > 0 and crossunder(macd, signal)
bullish = close > EMA and macd_crossup
bearish = close < EMA and macd_crossdown

alertcondition(bullish, title='Bullish MACD Crossover detected', message="Bullish trend detected")
alertcondition(bearish, title='Bearish MACD Crossover detected', message='Bearish trend detected')

plotshape(bullish, title="buy", text="Buy", color=color.green, style=shape.labelup, location=location.belowbar, size=size.small, textcolor=color.white, transp=0) //plot for buy icon
plotshape(bearish, title="sell", text="Sell", color=color.red, style=shape.labeldown, location=location.abovebar, size=size.small, textcolor=color.white, transp=0) //plot for sell icon

Basically, I don't want it to be locked on a 200 EMA but rather have it plot all buy/sell crossover signals on all the candles that the MACD-AS produces.
Thêm nữa