VER1:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),13,1);
VER2:=HIGH-REF(HIGH,1);
VER3:=REF(LOW,1)-LOW;
VER4:=SMA(IF(VER2>0 AND VER2>VER3,VER2,0),13,1);
VER5:=SMA(IF(VER3>0 AND VER3>VER2,VER3,0),13,1);
VER6:=VER4*100/VER1;
VER7:=VER5*100/VER1;
AAAA:=SMA(ABS(VER7-VER6)/(VER7+VER6)*100,13,1);
PPPP:=VER6-VER7;
QN1:=AAAA>=30 AND VER6>VER7;
STICKLINE(QN1=1,0,PPPP,3,0),COLORRED;
牛:IF(QN1=1,PPPP,DRAWNULL),NODRAW,COLORRED;
QX1:=AAAA>=30 AND VER6<VER7;
STICKLINE(QX1=1,0,PPPP,3,0),COLORGREEN;
熊:IF(QX1=1,PPPP,DRAWNULL),NODRAW,COLORGREEN;
Q1:=AAAA<30 AND AAAA>16 AND VER6>VER7;
STICKLINE(Q1=1,0,PPPP,3,0),COLOR0080FF;
强:IF(Q1=1,PPPP,DRAWNULL),NODRAW,COLOR0080FF;
R1:=AAAA<30 AND AAAA>16 AND VER6<VER7;
STICKLINE(R1=1,0,PPPP,3,0),COLORYELLOW;
弱:IF(R1=1,PPPP,DRAWNULL),NODRAW,COLORYELLOW;
RS1:=AAAA<16;
STICKLINE(RS1=1,0,PPPP,3,0),COLORGRAY;
观望:IF(RS1=1,PPPP,DRAWNULL),NODRAW,COLORLIGRAY;
趋势线:MA(PPPP,3),COLORWHITE,LINETHICK2;
·————RAWNULL,NODRAW,COLORWHITE;
【趋势线大于0RAWNULL,NODRAW,COLORWHITE;
为操作区间】RAWNULL,NODRAW,COLORWHITE;
————RAWNULL,NODRAW,COLORWHITE;
{------大盘安全期--------------}
18,COLORBLACK,NODRAW;
DIFF1:=( EMA(INDEXC,10) - EMA(INDEXC,100));DEA1:=EMA(DIFF1,5);MACD:=1.20*(DIFF1-DEA1);
VAR1:=(CLOSE*2+HIGH+LOW)/4;
SK:=EMA(VAR1,13)-EMA(VAR1,73);
SD:=EMA(SK,2);
DIF:=DIFF1;
DEA:=DEA1;
大盘安全周期:IF(DIFF1>REF(DIFF1,1),100,DRAWNULL),NODRAW,COLORFF5F0F;
观望周期:IF(DIFF1<REF(DIFF1,1),100,DRAWNULL),NODRAW,COLORBBBBBB;
【周期】:IF(DIF>REF(DIF,1),BARSLAST(DIF>REF(DIF,1) AND REF(DIF,1)<REF(DIF,2))+1,0),NODRAW,COLORFF5F0F;
18888222222288,COLORBLACK,NODRAW;
88888122222228,COLORBLACK,NODRAW;
18000022222200,COLORBLACK,NODRAW;
大盘安全:IF(DIFF1>REF(DIFF1,1),趋势线,DRAWNULL),LINETHICK3,COLORFF5F0F;
观望期:IF(DIFF1<REF(DIFF1,1),趋势线,DRAWNULL),LINETHICK3,COLORBBBBBB; |