|
马上注册,享用更多功能,让你轻松玩转本论坛。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
//美如画优化版
DIFF1:= EMA(C,3) - EMA(C,13);
DEA1 := EMA(DIFF1,9);
MACD1:= 2*(DIFF1-DEA1)*10;
DIFF2:= EMA(C,5) - EMA(C,26);
DEA2 := EMA(DIFF2,9);
MACD2:= 2*(DIFF2-DEA2)*10;
DIFF3:= EMA(C,7) - EMA(C,89);
DEA3 := EMA(DIFF3,21);
MACD3:= 2*(DIFF3-DEA3)*10;
DRAWGBK(c>0,colorrgb(255,255,220),colorrgb(5,100,255),1),colorf80606;
FILLRGN(macd3>=0,0,macd3),color009e3a;
FILLRGN(macd3<0,0,-macd3),color646464;
FILLRGN(macd2>=0,0,macd2),color007d19;
FILLRGN(macd2<0,0,-macd2),color555555;
FILLRGN(macd1>=0,0,macd1),color006400;
FILLRGN(macd1<0,0,-macd1),color414141;
FILLRGN(macd3,0,-abs(macd3)*0.6),color232323;
FILLRGN(macd1,0,-abs(macd1)*0.6),color0f0f0f;
x1:=MA(LLV(C,8)*1.1,13);
x2:=MA(HHV(C,21)*0.9,13);
x3:=MA(LLV(INDEXC,8)*1.1,13);
x4:=MA(HHV(INDEXC,21)*0.9,13);
资金进出:=3*(MA(C,1)-(x1+x2)/2-(x1+x2)/2*((x3+x4)/2-EMA(INDEXC,3))/((x3+x4)/2));
STICKLINE(资金进出<0,资金进出,0,0.5,0),COLORCYAN;
STICKLINE(资金进出>=0,资金进出,0,0.5,0),ColorFF8BFF;
红持: (SMA(CLOSE,2,1)-EMA(LLV((CLOSE+LOW)/2,10),21))/MA(LLV((CLOSE+LOW)/2,10),21)*25,PRECISION2,LINETHICK0,COLORRED;
白减: (SMA(CLOSE,4,1)-EMA(LLV((CLOSE+LOW)/2,10),21))/MA(LLV((CLOSE+LOW)/2,10),21)*25,PRECISION2,LINETHICK0,COLORFFFFFF;
fillrgn(红持<白减,红持,白减),COLORWHITE;
fillrgn(红持>白减,红持,白减),COLORRED;
|
|