{公式名称: 波段买卖}
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.93,0.97,0,CODE),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.87,0.97,0,STKNAME),COLORCYAN;
MA5:MA(CLOSE,5),COLORWHITE,LINETHICK3;
波段高:(XMA(XMA(HIGH,60),60)-XMA(XMA(LOW,60),60))*2.5+XMA(XMA(HIGH,60),60),COLORWHITE,LINETHICK2;
波段低:XMA(XMA(LOW,60),60)-(XMA(XMA(HIGH,60),60)-XMA(XMA(LOW,60),60))*2.5,COLORWHITE,LINETHICK2;
俞言友情:(波段高+波段低)/2,DOTLINE,COLOR909090;{www.70822.com}
IF(波段高>=REF(波段高,1),波段高,DRAWNULL),COLOR000088,LINETHICK2;
IF(波段低>=REF(波段低,1),波段低,DRAWNULL),COLOR000088,LINETHICK2;
IF(波段高<=REF(波段高,1),波段高,DRAWNULL),COLOR008800,LINETHICK2;
IF(波段低<=REF(波段低,1),波段低,DRAWNULL),COLOR008800,LINETHICK2;
IF(MA5>=REF(MA5,1),MA5,DRAWNULL),COLORRED,LINETHICK4;
IF(MA5<=REF(MA5,1),MA5,DRAWNULL),COLORGREEN,LINETHICK3;
STICKLINE(REF(LOW,1)<波段低 AND CLOSE>波段低 AND 波段高>=REF(波段高,1) AND CLOSE>OPEN,CLOSE,OPEN,(-1),0),COLORYELLOW;
STICKLINE(REF(HIGH,1)>=波段高 AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN,CLOSE,OPEN,(-1),0),COLORFF6600;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,FGBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0,0.1,0,GNBLOCK);
DRAWICON(REF(LOW,1)<波段低 AND CLOSE>波段低 AND 波段高>=REF(波段高,1) AND CLOSE>OPEN,LOW,3);
DRAWICON(REF(HIGH,1)>=波段高 AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN,HIGH,4);
p2018382225927036.jpg
|