TradingView
Algokid
٢٤ شباط فبراير ٢٠١٥ ٠٦:٢٨

AK MACD BB INDICATOR V 1.00 

Apple Inc.NASDAQ

الوصف

Here's my version of the MACD _BB . This is a great indicator to capture short term trends.

yellow candles = long
aqua candles = short

This indicator can be much better. I will work on it and publish an improved version (hopefully) soon. In the mean time , go ahead and play around with the code, and please share your findings :)

Cheers

Algo
التعليقات
Cryptocontinuum
What is the difference between the aqua bars with a red boarder and those without - does it signal weak (red boarder) and strong (no boarder)?
secretsanta007
@Cryptocontinuum, to simplify you look at the yellow and aqua bars to go long or short. If you see a colored box around the yellow and aqua bars it is showing what the color of the candle was (red or green day for example).
risingsun.arun
Thank you for developing a very powerful indicator super, Im using on 5 min time frame for day trading..
Any tricks to improve accuracy for entry and exit ?
TASAVANT
Great indicator in this market
Looking forward to V2 ...I use 5 35 5 setting and scalp aggressively
ramvardhan
@TASAVANT, Hi bro, which combination of indicators of are you using?
pereira.alex
Hi, modded this indicator a little : added barcolor input ( enable/disable). Thanks !
Source code below:

//AK MACD BB
//created by Algokid , February 24,2015
//modded by Alexandre Pereira, July 6, 2016
color_red_light = #e57373
color_red = #f44336
color_red_dark = #d32f2f

color_blue_light = #64b5f6
color_blue = #2196f3
color_blue_dark = #1976d2

color_green_light = #81c784
color_green = #4caf50
color_green_dark = #388e3c

color_orange_light = #ffb74d
color_orange = #ff9800
color_orange_dark = #f57c00

color_lime_light = #dce775
color_lime = #cddc39
color_lime_dark = #afb42b



study("AK MACD BB v 1.00")

length = input(10, minval=1, title="BB Periods")
dev = input(1, minval=0.0001, title="Deviations")
bar_color = input(false, "Bar colors")
//MACD
fastLength = input(12, minval=1)
slowLength=input(26,minval=1)
signalLength=input(9,minval=1)
fastMA = ema(close, fastLength)
slowMA = ema(close, slowLength)
macd = fastMA - slowMA

//BollingerBands

Std = stdev(macd, length)
Upper = (Std * dev + (sma(macd, length)))
Lower = ((sma(macd, length)) - (Std * dev))


Band1 = plot(Upper, color=color_red_light, style=line, linewidth=2,title="Upper Band")
Band2 = plot(Lower, color=color_green_light, style=line, linewidth=2,title="lower Band")
fill(Band1, Band2, color=color_blue_light, transp=75,title="Fill")

mc = macd >= Upper ? color_green: macd <= Lower ? color_red : color_blue

// Indicator

plot(macd, color=mc, style =circles,linewidth = 3)
zeroline = 0
plot(zeroline,color= orange,linewidth= 2,title="Zeroline")

//buy
barcolor(bar_color and macd > Upper ? color_lime:na)
//short
barcolor(bar_color and macd < Lower ? color_orange:na)
Algokid
Thank you for sharing this with the rest of the community. :)
gumbah
Thanks for the indicator Algo!
Q: did you ever manage to find time for a new/improved version of this? And in what way would you improve it?
doremifasol
@gumbah, How can I test this? Very new when it comes to changing scripts..
A980388
@Pereira.alex, can u pls convert this to version 5 of pine script THANKS grt8 work
المزيد