MacD Custom Indicator-Multiple Time Frame+All Available Options!

This MacD Indicator has every feature available. See First Post for Details.
お気に入りスクリプトから削除 お気に入りスクリプトに追加
//Created by user ChrisMoody updated 4-10-2014
//Regular MACD Indicator with Histogram that plots 4 Colors Based on Direction Above and Below the Zero Line
//Update allows Check Box Options, Show MacD & Signal Line, Show Change In color of MacD Line based on cross of Signal Line.
//Show Dots at Cross of MacD and Signal Line, Histogram can show 4 colors or 1, Turn on and off Histogram.
//Special Thanks to that incredible person in Tech Support whoem I won't say you r name so you don't get bombarded with emails
//Note the feature Tech Support showed me on how to set the default timeframe of the indicator to the chart Timeframe, but also allow you to choose a different timeframe.
//By the way I fully disclose that I completely STOLE the Dots at the MAcd Cross from "TheLark"

study(title="CM_MacD_Ult_MTF", shorttitle="CM_Ult_MacD_MTF")
source = close
useCurrentRes = input(true, title="Use Current Chart Resolution?")
resCustom = input(title="Use Different Timeframe? Uncheck Box Above", type=resolution, defval="60")
smd = input(true, title="Show MacD & Signal Line? Also Turn Off Dots Below")
sd = input(true, title="Show Dots When MacD Crosses Signal Line?")
sh = input(true, title="Show Histogram?")
macd_colorChange = input(true,title="Change MacD Line Color-Signal Line Cross?")
hist_colorChange = input(true,title="MacD Histogram 4 Colors?")

res = useCurrentRes ? period : resCustom

fastLength = input(12, minval=1), slowLength=input(26,minval=1)

fastMA = ema(source, fastLength)
slowMA = ema(source, slowLength)

macd = fastMA - slowMA
signal = sma(macd, signalLength)
hist = macd - signal

outMacD = security(tickerid, res, macd)
outSignal = security(tickerid, res, signal)
outHist = security(tickerid, res, hist)

histA_IsUp = outHist > outHist[1] and outHist > 0
histA_IsDown = outHist < outHist[1] and outHist > 0
histB_IsDown = outHist < outHist[1] and outHist <= 0
histB_IsUp = outHist > outHist[1] and outHist <= 0

//MacD Color Definitions
macd_IsAbove = outMacD >= outSignal
macd_IsBelow = outMacD < outSignal

plot_color = hist_colorChange ? histA_IsUp ? aqua : histA_IsDown ? blue : histB_IsDown ? red : histB_IsUp ? maroon :yellow :gray
macd_color = macd_colorChange ? macd_IsAbove ? lime : red : red
signal_color = macd_colorChange ? macd_IsAbove ? yellow : yellow : lime

circleYPosition = outSignal
plot(smd and outMacD ? outMacD : na, title="MACD", color=macd_color, linewidth=4)
plot(smd and outSignal ? outSignal : na, title="Signal Line", color=signal_color, style=line ,linewidth=2)
plot(sh and outHist ? outHist : na, title="Histogram", color=plot_color, style=histogram, linewidth=4)
plot(sd and cross(outMacD, outSignal) ? circleYPosition : na, title="Cross", style=circles, linewidth=4, color=macd_color)
hline(0, '0 Line', linestyle=solid, linewidth=2, color=white)


Where can I find instructions on how to use this indicator?
Thank you in advanced
+276 返信
marcilioqsj bostonmagik
@bostonmagik, same here. He said "Full description in 1st post", but where is it?
+119 返信
hi pro, I am very interested in your indicator. But can you explain clearly how to use that? Please, thanks you
+108 返信
where is the first post ?!
+68 返信
RUS7211 alirezazarei28
@alirezazarei28, 1st in downthere, just keep scrolling)
1 й пост-описание в самом низу, скроли вниз до упора)
+9 返信

Iam very new to trading so I may be wrong.

I tried this indicator and its amazing. I was observing the buy/sell recommendations for BTC/USD (XBT/USD BITMEX Exchange), for 15 min TF, the indicator showed a sell (red dot) and in the next candle, there a spike of $100.


1) Is everything working fine? Or am I missing something?
2) DO I have to keep verifying abt the buy/sell on diff time frames before taking the trade?

Many thanks.
+66 返信
@wotzzup, the MACD doesn’t give perfect signals. Nothing does. At least, nothing public. Otherwise everyone would use it.

So there’s nothing wrong. Sometimes there’s a pump or dump that people don’t anticipate and, if you’re using MAs with no stoploss for buying and selling, you’ll get rekt.
+4 返信
@wotzzup, This indicator may not work well in crypto where pump and dump are very common
+3 返信
@wotzzup, before taking any trade verify with other indicator. if every indicator indicates same signal or trend, then enter, otherwise stay away
Features of this indicator: MacD w/ Ability to see Different Timeframes!

-Defaults automatically to chart timeframe.
-Ability to change to reflect a Higher or Lower Timeframe.
-CheckBox to have MacD line change colors when it crosses the Signal Line.
-CheckBox to take MacD and Signal line off, just leaving Histogram.
-Show Dots at MacD - Signal Line Cross.
-CheckBox to take Histogram off chart.
-Checkbox to change Histogram from 4 colors to 1 color (Gray is Default).

Video On Importing Custom Indicator from PasteBin Link Below:

Link to Code for Indicator:
+46 返信
ホーム 株式スクリーナー FXスクリーナー 仮想通貨スクリーナー 経済指標カレンダー 使い方 チャート機能 価格 友達紹介 ハウスルール ヘルプセンター ウェブサイト&ブローカー向けソリューション ウィジェット チャートソリューション 軽量チャートライブラリ ブログ&ニュース ツイッター
プロフィール プロフィール設定 アカウントとお支払い 友達紹介 コイン マイサポートチケット ヘルプセンター 公開したアイデア フォロワー フォロー中 プライベートメッセージ チャット サインアウト