框架3 MACD同图趋势

框架3

D:="MK.明D#DAY";

Y:=D*(1+0.04);

Z:=D*(1-0.02);

K:=D*(1-0.04);

KJ2:REFDATE(Y,DATE),COLORCYAN,LINETHICK2;

DRAWTEXT(CURRBARSCOUNT=240,KJ2*(1-0.002),'1:压力线'),COLORYELLOW;

KJ4:REFDATE(D,DATE),COLORFF00FF,LINETHICK2;

DRAWTEXT(CURRBARSCOUNT=240,KJ4*(1+0.002),'2:强势线'),COLORYELLOW;

KJ5:REFDATE(Z,DATE),COLOR00FF00,LINETHICK3;

DRAWTEXT(CURRBARSCOUNT=240,KJ5*(1+0.002),'3:平衡线'),COLORYELLOW;

KJ6:REFDATE(K,DATE),COLORWHITE,LINETHICK2;

DRAWTEXT(CURRBARSCOUNT=240,KJ6*(1+0.002),'4:支撑线'),COLORYELLOW;

均:SUM(CLOSE*VOL,FROMOPEN)/SUM(VOL,FROMOPEN),COLORYELLOW,DOTLINE;

DKX11:="DKX.DKX#DAY";

DKX22:="DKX.MADKX#DAY";

STICKLINE(DKX11>DKX22,DKX11,(DKX11+DKX11*0.002),2,0),COLORRED;

STICKLINE(DKX11<DKX22,DKX11,(DKX11+DKX11*0.002),2,0),COLORGREEN;

KK1:=DKX11*(1+0.005);

KK2:=DKX11*(1-0.005);

KKM:=IF(DKX11>KJ2,KK2,KK1);

DRAWTEXT(CURRBARSCOUNT=240,KKM,'长线—5:红多,6:绿空'),COLORYELLOW;

DRAWTEXT(ISLASTBAR,KJ2*(1-0.002),'1压力线—注 意 风 险'),COLORYELLOW;

DRAWTEXT(ISLASTBAR,KJ4*(1+0.002),'2强势线—突破2和6买2/3'),COLORYELLOW;

DRAWTEXT(ISLASTBAR,KJ5*(1+0.002),'3平衡线—突破3和6买1/3'),COLORYELLOW;

DRAWTEXT(ISLASTBAR,KJ5*(1-0.002),'......突破3和5最佳买点'),COLORYELLOW;

DRAWTEXT(ISLASTBAR,KJ6*(1+0.002),'4支撑线——跌破止损'),COLORYELLOW;

DRAWTEXT(ISLASTBAR, KKM,'长线:—5红多,6绿空'),COLORYELLOW;

{DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,'突破:①注意风险')COLORRED;

DRAWTEXT_FIX(ISLASTBAR,0.005,0.10,0,'突破:②和⑥买2/3')COLORRED;

DRAWTEXT_FIX(ISLASTBAR,0.005,0.14,0,'突破:③和⑥买1/3')COLORRED;

DRAWTEXT_FIX(ISLASTBAR,0.005,0.18,0,'突破:③和⑤最佳买点')COLORRED;

DRAWTEXT_FIX(ISLASTBAR,0.005,0.22,0,'跌破:④止损')COLORRED;};

(0)

相关推荐