操作线:MA(CLOSE,M1),COLOR0000FF,LINETHICK2;
辅助线:MA(CLOSE,M2),COLOR00FF00,LINETHICK2;
MA3:=MA(CLOSE,M3),COLOR00FFFF,LINETHICK2;
{当天操盘线位置 }
RL3:=(REF(L,1)*(1+4.3*0.01))-0.003,COLOR0080FF;
F:=100*(C-REF(C,1))/REF(C,1);
JXZ:=IF(C REF(O,1) AND F 0,1,0);
P1:=JXZ;
JXQ:=IF(C REF(O,2) AND F 0,1,0);
P2:=JXQ;
M3:=MA(C, 3),COLORRED;
XG:=H =HHV(H,5);
TF:=BARSLAST(XG);
L1:=IF(L (0.989*REF(L,TF)),1,0);
L11:=L1 AND COUNT(L1,TF) 2 AND TF 30 AND TF
T2:=BARSLAST(L11);
L2:=IF(L (0.989*REF(L,T2)),1,0);
L22:=L2 AND COUNT(L2,T2) 2 AND T2 30 AND TF 0 AND T2
T3:=BARSLAST(L22);
L3:=IF(L (0.989*REF(L,T3)),1,0);
L33:=L3 AND COUNT(L3,T3) 2 AND T3 30 AND TF 0 AND T2 0 AND T3
{买信号}
ZZ:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1;
ZB:=ZZ AND (REF(L22,1) OR REF(L33,1) OR REF(L33,2) ) ;
DRAWTEXT(ZB,LOW,'买'),COLOR00FFFF;
DRAWTEXT_FIX(1,0.05,0.0,0,'遵守规则'),COLOR0000FF,LINETHICK1;
DRAWTEXT_FIX(1,0.12,0.0,0,'红线上穿绿线买进,下穿绿线卖出,出现黄色 买 可以买进,隔天,如盘中就看出不会超过买进价,坚决止。股灾中要等行情企稳在买。'),COLOR00FFFF,LINETHICK1;
DRAWTEXT_FIX(1,0.05,0.1,0,'☆绿线:线上阴线买,买错也要买,线下阳线抛,抛错也要抛☆'),COLORYELLOW;
所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT(' [行业] ',HYBLOCK),STRCAT(' [地域] ',DYBLOCK)),STRCAT(' [概念] ',GNBLOCK)));
DRAWTEXT_FIX(ISLASTBAR,0.005,0.2,0,所属板块),COLORMAGENTA;