本通达信公式:相似K线主图,最大的特点是:在右上角有预测 有明天上涨概率
DRAWGBK(OPEN>CLOSE,RGB(0,0,0),RGB(0,0,0),0,226,1);
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA60:MA(CLOSE,60);
MA120:MA(CLOSE,120);
MA250:MA(CLOSE,250);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
DRAWTEXT_FIX(1,0.99,0.99,1,STRCAT(227,EXTERNSTR(0,1))),COLORRED;
var1:=240/FROMOPEN;
var2:=var1;
var3:=HIGH-(HIGH-LOW)/3;
var4:=LOW+(HIGH-LOW)/3;
var5:=0.45;
var6:=CONST(HHV(HIGH,90));
var7:=CONST(LLV(LOW,100));
var8:=CONST(IF(REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)<REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2),1,0));
var9:=CONST(IF(REF(CLOSE,2)/REF(OPEN,2)>1.03 AND REF(OPEN,1)>REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2),1,0));
var10:=CONST(IF(CLOSE=OPEN AND HIGH/LOW>1.03,1,0));
var11:=CONST(IF(CLOSE=OPEN AND CLOSE=LOW AND CLOSE!=HIGH,1,0));
var12:=CONST(IF(REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)<REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2),1,0));
var13:=CONST(IF(REF(CLOSE,2)/REF(OPEN,2)>1.05 AND REF(OPEN,1)>REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND CLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2),1,0));
var14:=CONST(IF(MIN(OPEN,CLOSE)=LOW AND HIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE>MA(CLOSE,5),1,0));
var15:=CONST(IF(MIN(OPEN,CLOSE)=LOW AND HIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE<MA(CLOSE,5),1,0));
var16:=CONST(IF(HIGH=MAX(OPEN,CLOSE) AND HIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE<MA(CLOSE,5),1,0));
var17:=CONST(IF(HIGH=MAX(OPEN,CLOSE) AND HIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5),1,0));
var18:=CONST(IF(REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96 AND CLOSE<REF(OPEN,1) AND OPEN>REF(CLOSE,1) OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04 AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1)),1,0));
var19:=CONST(IF(REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97 AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1),1,0));
var20:=CONST(IF(REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03 AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1),1,0));
var21:=CONST(IF(ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)>0.04 AND ABS(CLOSE-OPEN)/CLOSE<0.005 AND MAX(CLOSE,OPEN)<MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN)>MIN(REF(CLOSE,1),REF(OPEN,1)),1,0));
var22:=CONST(IF(ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)>0.04 AND CLOSE=OPEN AND CLOSE<MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE>MIN(REF(CLOSE,1),REF(OPEN,1)),1,0));
var23:=CONST(IF(ABS(HIGH-REF(HIGH,1))/HIGH<0.001,1,0));
var24:=CONST(IF(ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001,1,0));
var25:=CONST(IF(CLOSE/OPEN>1.05 AND HIGH/LOW<CLOSE/OPEN+0.018,1,0));
var26:=CONST(IF(REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPEN AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1),1,0));
var27:=CONST(IF(REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND CLOSE/OPEN<0.98,1,0));
var28:=CONST(IF(REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1) AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND CLOSE>=OPEN AND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1) AND (MAX(CLOSE,REF(CLOSE,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2))<=1/100,1,0));
var29:=CONST(IF(REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN,1,0));
var30:=CONST(IF(OPEN<EMA(CLOSE,20) OR OPEN<EMA(CLOSE,40) OR OPEN<EMA(CLOSE,60) AND CLOSE>MAX(EMA(CLOSE,20),MAX(EMA(CLOSE,40),EMA(CLOSE,60))) AND (VOL/MA(VOL,30)>1.2 AND CLOSE/REF(CLOSE,1)>1.049),1,0));
var31:=CONST(IF(REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>REF(CLOSE,4),1,0));
var32:=CONST(IF(REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,4),1,0));
var33:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0));
var34:=CONST(IF(REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2) AND CLOSE<REF(CLOSE,1),1,0));
var35:=CONST(IF(LOW=CLOSE AND HIGH!=LOW,1,0));
var36:=CONST(IF(HIGH=CLOSE AND HIGH!=LOW,1,0));
var37:=CONST(IF(OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0,1,0));
var38:=CONST(IF((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667,1,0));
var39:=CONST(IF((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,1,0));
var40:=CONST(IF(CLOSE=OPEN AND HIGH!=LOW,1,0));
var41:=CONST(IF(OPEN/CLOSE>1.05 AND HIGH/LOW<OPEN/CLOSE+0.018,1,0));
var42:=CONST(IF(REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002 OR (REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002),1,0));
var43:=CONST(IF(REF(CLOSE,1)/REF(OPEN,1)>=1.03 AND OPEN<REF(CLOSE,1) AND OPEN>REF(OPEN,1) AND CLOSE<REF(OPEN,1),1,0));
var44:=CONST(IF(EVERY(CLOSE<OPEN,4),1,0));
var45:=CONST(IF(EVERY(CLOSE>OPEN,4),1,0));
var46:=CONST(IF(VOL>REF(VOL,1) OR VOL>CAPITAL AND (OPEN>=REF(HIGH,1) AND REF(HIGH,1)>REF(HIGH,2)*1.06) AND CLOSE>REF(CLOSE,1)-REF(CLOSE,1)*0.01 AND (CLOSE<HIGH*0.965 AND HIGH>OPEN*1.05) AND (LOW<OPEN AND LOW<CLOSE AND HIGH>REF(CLOSE,1)*1.06) AND (HIGH-MAX(OPEN,CLOSE))/2>MIN(OPEN,CLOSE)-LOW AND ABS(OPEN-CLOSE)/2<MIN(OPEN,CLOSE)-LOW,1,0));
var47:=CONST(IF(REF(CLOSE,2)/REF(CLOSE,3)>=1.0977 AND REF(OPEN,1)>REF(HIGH,2) AND REF(LOW,1)>REF(HIGH,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE>REF(CLOSE,1) AND LOW>REF(LOW,1),1,0));
STICKLINE(var8=1 AND (REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)<REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(var9=1 AND (REF(CLOSE,2)/REF(OPEN,2)>1.03 AND REF(OPEN,1)>REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2)),OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(var10=1 AND (CLOSE=OPEN AND HIGH/LOW>1.03),OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(var11=1 AND (CLOSE=OPEN AND CLOSE=LOW AND CLOSE!=HIGH),OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(var12=1 AND (REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)<REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(var13=1 AND (REF(CLOSE,2)/REF(OPEN,2)>1.05 AND REF(OPEN,1)>REF(CLO |