X1:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6); 在最后的分號前加 AND V>REF(V,1)*1.5 即可
主圖
DRAWGBK(O>C,RGB(80,100,0),RGB(100,66,13),0,'',0);
STICKLINE(CLOSE> O ,HIGH,LOW,0,1 ),COLORRED; STICKLINE(CLOSE> O ,OPEN,CLOSE,3.1,0 ),COLOR000033; STICKLINE(CLOSE> O ,OPEN,CLOSE,2.7,0 ),COLOR000066; STICKLINE(CLOSE> O ,OPEN,CLOSE,2.1,0 ),COLOR000099; STICKLINE(CLOSE> O ,OPEN,CLOSE,1.5,0 ),COLOR0000CC; STICKLINE(CLOSE> O ,OPEN,CLOSE,0.9,0 ),COLOR0000FF; STICKLINE(CLOSE> O ,OPEN,CLOSE,0.3,0 ),COLORCC66FF; STICKLINE(CLOSE< O ,HIGH,LOW,0,1 ),COLORCYAN; STICKLINE(CLOSE< O ,OPEN,CLOSE,3.1,0 ),COLOR990000; STICKLINE(CLOSE< O ,OPEN,CLOSE,2.7,0 ),COLORCC0000; STICKLINE(CLOSE< O ,OPEN,CLOSE,2.1,0 ),COLORFF4400; STICKLINE(CLOSE< O ,OPEN,CLOSE,1.5,0 ),COLORFF8800; STICKLINE(CLOSE< O ,OPEN,CLOSE,0.9,0 ),COLORFFCC00; STICKLINE(CLOSE< O ,OPEN,CLOSE,0.3,0 ),COLORCYAN; STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR555555; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF; DRAWTEXT_FIX( C>0.1,0.05,0.05,0,'雨中舟修改專用主圖'),COLORYELLOW; X1:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6); X2:=EMA(X1,10); VARD:=((((OPEN + LOW) + HIGH) + CLOSE) / 4); 支撐:=EMA(VARD,5); BMA:=MA(CLOSE,118); 阻擋:=(SMA(HIGH,21,2) * 1.05); 舟:=REF(C,1); 漲停:=IF((C-舟)*100/舟>=(10-0.01*100/舟),1,0); STICKLINE(漲停,H,L,2,0),COLORYELLOW; 跌停:=IF((舟-C)*100/舟>=(10-0.01*100/舟),1,0); STICKLINE(跌停,H,L,3.1,0 ),COLOR555555; STICKLINE(跌停,H,L,2.7,0 ),COLOR777777; STICKLINE(跌停,H,L,2.1,0 ),COLOR999999; STICKLINE(跌停,H,L,1.5,0 ),COLORBBBBBB; STICKLINE(跌停,H,L,0.9,0 ),COLORDDDDDD; STICKLINE(跌停,H,L,0.3,0 ),COLORFFFFFF; STICKLINE(漲停,H,L,3.1,0 ),COLOR555555; STICKLINE(漲停,H,L,2.7,0 ),COLOR777777; STICKLINE(漲停,H,L,2.1,0 ),COLOR009999; STICKLINE(漲停,H,L,1.5,0 ),COLOR00BBBB; STICKLINE(漲停,H,L,0.9,0 ),COLOR00DDEE; STICKLINE(漲停,H,L,0.3,0 ),COLOR00FFFF; STICKLINE(漲停,H,L,0.2,0 ),COLORYELLOW; 異軍突起:=FILTER(((((((OPEN < X2) AND (WINNER(CLOSE) < 0.2)) AND (CLOSE > X2)) AND ((X2 - REF(X2,1)) > 0)) AND (HIGH < 阻擋)) AND ((CLOSE - REF(CLOSE,1)) > 0.35)),4); 均線16:MA(CLOSE,16),COLORYELLOW,LINETHICK2; 均線8:MA(CLOSE,8),COLORWHITE,LINETHICK2; STICKLINE(異軍突起,H,L,2.5,0),COLORYELLOW; DRAWTEXT(異軍突起,LOW - 0.45,'★異軍突起'),COLORYELLOW; |
|