仕事が完了した
指定
I need someone to code and or modify the BollingerBand Macd indicator and code a TrendPeriod indicator which is a simple slow length and fast length variant of the macd. Please don't apply and or accept the job if you don't understand what i am looking for. I have attached images and a video showing exactly what i need and how it needs to look like. The images and code i have attached is from Thinkorswim which is the platform i currently use.
Thinkorswim BBMACD Code:
#Wammys MACDBollinger
declare lower;
input price = close;
input BBlength = 10;
input BBNum_Dev = 1.0;
input MACDfastLength = 8;
input MACDslowLength = 22;
input MACDLength = 5;
def MACD_Data = MACD(fastLength=MACDfastLength, slowLength=MACDslowLength, MACDLength = MACDLength);
plot MACD_Dots = MACD_Data;
plot MACD_Line= MACD_Data;
plot BB_Upper = BollingerBandsSMA(price = MACD_Line, length=BBlength, Num_Dev_Dn=-BBNum_Dev, Num_Dev_Up=BBNum_Dev).UpperBand;
plot BB_Lower = BollingerBandsSMA(price = MACD_Line, length=BBlength, Num_Dev_Dn=-BBNum_Dev, Num_Dev_Up=BBNum_Dev).Lowerband;
plot BB_Midline = BollingerBandsSMA(price = MACD_Line, length=BBlength, Num_Dev_Dn=-BBNum_Dev, Num_Dev_Up=BBNum_Dev).MidLine;
BB_Upper.SetDefaultColor(color.gray);
BB_Lower.SetDefaultColor(color.gray);
BB_MidLine.SetDefaultColor(color.gray);
BB_MidLine.setStyle(curve.SHORT_DASH);
MACD_Line.setDefaultColor(color.white);
MACD_Dots.setStyle(curve.POINTS);
MACD_Dots.setLineWeight(2);
MACD_Dots.assignValueColor(if MACD_Line>MACD_line[1] then color.green else color.red);
plot zero = 0;
zero.assignValueColor(if MACD_line<0 then color.red else color.green);
zero.setLineWeight(2);
Please note the mid line is very important. When MACD line crosses and or closes below the midline its red; if crosses and or closes above the midline its green. The indicator should look like the attached bbmacd in the picture and or the video shown here(http://vimeo.com/12983221)
The last indicator is a Trendperiod indicator it is a variant of the MACD indicator. It consists of the fast and slow line. Its exactly like the color changing midline as noted directly above but gives a different visualization. Again i have attached the Thinkorswim code. If you could decode it and code it for mt4 i'd greatly appreciate it.
Thinkorswim Trendperiod:
# TD Ameritrade IP Company, Inc. (c) 2009-2013
#
declare lower;
input fastLength = 7;
input slowLength = 15;
plot Periods = sign(ExpAverage(close, fastLength) - ExpAverage(close, slowLength));
Periods.SetDefaultColor(GetColor(1));
Again please don't apply for this job if you dont have a clear idea what i am looking for. Please message me for clarity before applying for the job.