Graphs slope of ohlc4 MACD

When it =0, trend change

play with slow&fast lengths as well as the length used to calculate the slope.

-in progress(?)

Vertical lines in the image are as close as I could get them to SMACD=0.

Remove from Favorite Scripts Add to Favorite Scripts
study(title="Slope(MACD(ohlc4))", shorttitle="SMACD")
source = ohlc4
fastLength = input(13, minval=1), slowLength=input(5,minval=1)
fastMA = ema(source, fastLength)
slowMA = ema(source, slowLength)
macd = fastMA - slowMA
//plot(macd, color=blue)
source2 = macd
length = input(1,minval=1)
offset = input(0)
roc = (source2 - source2[length])/source2[length]
plot(roc, color=red, title="MACDROC", offset=offset)
hline(0, title="Zero Line")

EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out