以下是完美操盘

完美操盘
SJ:=1;

ZTB:=IF(CURRBARSCOUNT=1 AND PERIOD=5,REF(C,1)*1.099,DRAWNULL),NODRAW;

涨停:ZTB,COLORYELLOW;

STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,ZTB,REF(C,1)*SJ,-1,-1),COLORYELLOW;

DTB:=IF(CURRBARSCOUNT=1 AND PERIOD=5,REF(C,1)*0.9,DRAWNULL),NODRAW;

跌停:DTB,COLORLICYAN;

STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,DTB,REF(C,1),-1,-1),COLORLICYAN;

{MACD}

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9);

MACD:=(DIF-DEA)*2;

{压力支撑}

HD:=FILTER(BACKSET(FILTER(REF(C,10)=HHV(C,2*10+1),10),10+1),10);

LD:=FILTER(BACKSET(FILTER(REF(C,10)=LLV(C,2*10+1),10),10+1),10);

前高:REF(C,BARSLAST(HD))*SJ,COLOR00FF00,POINTDOT;

前低:REF(C,BARSLAST(LD))*SJ,COLORFF00FF,POINTDOT;

{冷暖气带}

DRAWBAND(MA(CLOSE,60),RGB(100,0,0),MA(CLOSE,120),RGB(10,60,0));

DRAWBAND(MA(CLOSE,5),RGB(220,160,30),MA(CLOSE,10),RGB(60,70,90));

MA120:MA(CLOSE,120)*SJ,COLORRED;

MA60:MA(CLOSE,60)*SJ,COLORGREEN;

MA20:=MA(CLOSE,20)*SJ,COLORRED;

MA10:=MA(CLOSE,10)*SJ,COLORYELLOW;

MA5:=MA(CLOSE,5)*SJ,COLORWHITE;

压力:XMA(2*H-L,15)*(1+0.0001)*(1+0.0001),COLORBLUE,LINETHICK2;

支撑:XMA(2*L-H,15)*(1-0.0001)*(1-0.0001),COLORWHITE,LINETHICK2;

DRAWKLINE(H,O,L,C);

{涨停板}

STICKLINE(C/REF(C,1)>=1.099,O,C,3,-2),COLORYELLOW;

A1:=H>MA(C,5) AND H>MA(C,10) AND H>MA(C,20) AND H>MA(C,30) AND H>MA(C,60)

AND H>MA(C,120);

A2:=L<MA(C,5) AND L<MA(C,10) AND L<MA(C,20) AND L<MA(C,30) AND L<MA(C,60)

AND L<MA(C,120);

STICKLINE(A1 AND A2,O,C,3,0),COLORYELLOW;

STICKLINE(前高,前高,前高,11,0),COLOR00FF00;

STICKLINE(前低,前低,前低,11,0),COLORFF00FF;

{MACD 显示}

STICKLINE(MACD<REF(MACD,1) AND DIF>0,O,C,1,0),COLORBLUE;

STICKLINE(MACD>REF(MACD,1) AND DIF>0,O,C,1,0),COLORRED;

STICKLINE(MACD<REF(MACD,1) AND DIF<0,O,C,1,0),COLORLIGREEN;

STICKLINE(MACD>REF(MACD,1) AND DIF<0,O,C,1,0),COLORLIMAGENTA;

DRAWTEXT(CROSS(支撑,C),L,’低吸’),COLORYELLOW;

DRAWTEXT(CROSS(C,压力),H,’高抛’),COLORGREEN;

DRAWICON(L<支撑,L,5);

DRAWICON(H>压力,H,6);

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。