1、无级专家组 专家系统 {无级专家组} {专家系统} MID2:= MA(CLOSE,21); UPPER2:= MID2 + 1.382 * STD(CLOSE,21); LOWER2:= MID2 - 1.382 * STD(CLOSE,21); UP2:= MID2 + 2.56 * STD(CLOSE,21); LOOW2:= MID2 - 2.56 * STD(CLOSE,21); MID:= MID2; UPPER:= UPPER2; UP:= UP2; LOWER:= LOWER2; LOOW:= LOOW2; A:= CLOSE; ROC1:= 100 * (A - REF(A,9))/REF(A,9); ROC2:= 100 * (A - REF(A,13))/REF(A,13); ROC3:= 100 * (A - REF(A,18))/REF(A,18); ROC4:= 100 * (A - REF(A,24))/REF(A,14); KST:= (MA(ROC1,9) + 2 * MA(ROC2,13) + 3 * MA(ROC3,18) + 4 * MA(ROC4,24))/10; KSTMA4:= MA(KST,4); KSTMA10:= MA(KST,10); XX:= EMA(CLOSE,30) - EMA(CLOSE,17); YY:= EMA(XX,13); 短针2:= TROUGHBARS(3,5,1)<1 AND XX<YY; 阴:= IFF(短针2>0,0.4,0); 价格多头:= KST>REF(KST,1) AND KSTMA4>REF(KSTMA4,1) AND KSTMA10>REF(KSTMA10,1); 天地2号:= DRAWICON(REF(阴,1) AND KST>REF(KST,1) AND KSTMA4>REF(KSTMA4,1) AND CROSS(C,LOWER),L * 0.98,7); 天地3号:= DRAWICON(REF(阴,1) AND KST>REF(KST,1) AND KSTMA4>REF(KSTMA4,1) AND CROSS(C,LOOW),L * 0.99,25); ENTERLONG: (REF(阴,1) AND 价格多头 AND CROSS(C,MID)) OR 天地2号 OR 天地3号;
2、新涨跌停公式
新涨跌停公式(创业板8月24日涨跌停新规则) 下面的公式源码,可以添加到你自己的公式中,新涨跌停公式源码如下: 前5天:=BARSCOUNT(C)>5; ZUC:=REF(C,1); ZAFU:=(H-ZUC+0.01)/ZUC*100; FAZF:=(ZUC-L+0.01)/ZUC*100; 涨5:=ZAFU>=5 AND 前5天; 跌5:=FAZF>=5 AND 前5天; 涨10:=ZAFU>=10 AND 前5天; 跌10:=FAZF>=10 AND 前5天; 涨20:=ZAFU>=20 AND 前5天; 跌20:=FAZF>=20 AND 前5天; 板:=IF(INBLOCK('科创板'),涨20,IF(INBLOCK('创业板') AND DATE>1200823,涨20,IF(INBLOCK('ST板块'),涨5,涨10))); 板跌:=IF(INBLOCK('科创板'),跌20,IF(INBLOCK('创业板') AND DATE>1200823,跌20,IF(INBLOCK('ST板块'),跌5,跌10))); CC11:=(C+O)/2; STICKLINE(板,O,CC11,0.01,0),COLOR00FFFF; STICKLINE(板,C,CC11,0,0),COLOR00FFFF; STICKLINE(板跌,O,C,1,0),COLORFF0000;
3、分时突破抓板
MZ0:=(BARSLAST(((HOUR=9) AND (MINUTE=31)))+1); 上穿分时:IF(((SETCODE<2) AND (CONST(MZ0)<241)),CONST(IF((TIME<1000),HHV(CLOSE,0),SUM((IF((TIME=1000),1,0)*HHV(CLOSE,0)),0))),DRAWNULL),LINETHICK2,COLORRED; 底支:IF(((SETCODE<2) AND (CONST(MZ0)<241)),CONST(IF((TIME<1000),HHV(CLOSE,0),SUM((IF((TIME=1000),1,0)*LLV(CLOSE,0)),0))),DRAWNULL),LINETHICK2,COLORGREEN; STICKLINE(TIME=931 OR TIME=1000,上穿分时,底支,0,-1),COLORLIBLUE; 分时上突:=CROSS(C,上穿分时); 上突:=C<上穿分时 AND 上穿分时>底支;DRAWICON(分时上突,C,5); 股价支撑线:=MA(CLOSE,20);
|