抓板决策主图(通达信公式 主图 源码 测试图)
{公式名称: 抓板决策主图公式描述: 无参数公式类型: 技术指标公式-其他类型画线方法: 主图叠加公式版本: 0显示小数: 缺省位数坐标线位置: 自动额外Y轴分界: 无参数精灵:无用法注释:无公式源码:}XA_1:=REF(CLOSE,1);XA_2:=IF((CLOSE-XA_1)*100/XA_1>=10-0.07*100/XA_1,1,0);STICKLINE(XA_2,OPEN,CLOSE,0.2,0),COLORYELLOW;XA_3:=IF((XA_1-CLOSE)*100/XA_1>=10-0.03*100/XA_1,1,0);STICKLINE(XA_3,OPEN,CLOSE,1,0),COLORBLUE;DRAWTEXT_FIX(CLOSE<0,0.01,0.9,0,'22'),COLORBLACK;XA_4:=STRCAT(HYBLOCK,4);XA_5:=STRCAT(XA_4,DYBLOCK);XA_6:=STRCAT(XA_5,4);DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(XA_6,GNBLOCK)),COLORWHITE;XA_7:=CLOSE>REF(CLOSE,1)*1.098 AND CLOSE=HIGH;XA_8:=MA(CLOSE,5);XA_9:=MA((LOW+HIGH+CLOSE)/3,5);XA_10:=MA(CLOSE,5);XA_11:=CLOSE*VOL;XA_12:=EMA((EMA(XA_11,3)/EMA(VOL,3)+EMA(XA_11,6)/EMA(VOL,6)+EMA(XA_11,12)/EMA(VOL,12)+EMA(XA_11,24)/EMA(VOL,24))/4,13);XA_13:=HHV(MA((LOW+HIGH+CLOSE+OPEN)/4,5),58);XA_14:=LLV(MA((LOW+HIGH+CLOSE+OPEN)/4,6),58);XA_15:=EMA((HIGH+LOW+CLOSE)/3*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*20/10+XA_14,2);XA_16:=(3*XA_11-2*SMA(XA_15,5,1))*0.3;XA_17:=(HHV(INDEXH,13)-INDEXC)/(HHV(INDEXH,13)-LLV(INDEXL,13));XA_18:=EMA(3*XA_17-2*SMA(XA_17,18,1),5);XA_19:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8));XA_20:=3*SMA(XA_19,3,1)-2*SMA(SMA(XA_19,3,1),5,1);XA_21:=(INDEXC*2+INDEXH+INDEXL)/4;XA_22:=EMA(XA_21,13)-EMA(XA_21,34);XA_23:=EMA(XA_22,5);XA_24:=1.86*EMA(CLOSE,12)-EMA(CLOSE,34);XA_25:=SMA(CLOSE,160,1);XA_26:=(55*XA_25+34*REF(XA_25,1)+22*REF(XA_25,2)+15*REF(XA_25,3)+8*REF(XA_25,4)+5*REF(XA_25,5)+3*REF(XA_25,6)+2*REF(XA_25,7)+REF(XA_25,8)+REF(XA_25,9))/155;XA_27:=REF(XA_26,1);XA_28:=CLOSE=HHV(CLOSE,20);XA_29:=BARSLAST(XA_28);XA_30:=IF(XA_29>0,REF(CLOSE,XA_29),REF(CLOSE,XA_29));XA_31:=CROSS(CLOSE,REF(XA_30,1));XA_32:=XA_31 AND COUNT(XA_31,5)=1 AND COUNT(REF(CLOSE,1)/REF(CLOSE,2)>1.095,10);DRAWICON(XA_32,LOW*0.95,9);XA_33:=(CLOSE+LOW+HIGH)/3;XA_34:=ATAN(EMA(XA_33,13)-REF(EMA(XA_33,13),1))*3.1416*10;XA_35:=EMA(CLOSE,8);XA_36:=MA(CLOSE,5);XA_37:=(CLOSE-XA_36)/XA_36*100;XA_38:=ATAN((XA_36/REF(XA_36,1)-1)*100)*180/3.1416;XA_39:=SMA(EMA((XA_36-REF(XA_36,1))/REF(XA_36,1),3)*100,3,1);XA_40:=EMA(XA_39-REF(XA_39,1),3);XA_41:=MA(CLOSE,10);XA_42:=MA(CLOSE,20);XA_43:=ATAN((XA_41/REF(XA_41,1)-1)*100)*180/3.1416;XA_44:=MA(CLOSE,30);XA_45:=(CLOSE-XA_44)/XA_44*100;XA_46:=XA_42-XA_44>REF(XA_42-XA_44,1) AND XA_42>REF(XA_42,1) AND XA_44>REF(XA_44,1);XA_47:=XA_44-XA_42<REF(XA_44-XA_42,1) AND XA_42<REF(XA_42,1) AND XA_44<REF(XA_44,1);XA_48:=ATAN((XA_44/REF(XA_44,1)-1)*100)*180/3.1416;XA_49:=FILTER(XA_48>30 AND XA_43>45 AND CROSS(XA_38,60),10);XA_50:=FILTER(COUNT(CROSS(XA_38,30),5)>=1 AND XA_36>REF(XA_36,1) AND XA_45>REF(XA_45,1) AND XA_41>REF(XA_41,1) AND XA_40>REF(XA_40,1) AND XA_39>REF(XA_39,1),10) AND COUNT(REF(CLOSE,1)/REF(CLOSE,2)>1.095,20);DRAWTEXT(XA_50,LOW*0.96,'买1'),COLORYELLOW;XA_51:=MA(CLOSE,24)+2*STD(CLOSE,24);XA_52:=MA(CLOSE,5);XA_53:=MA(CLOSE,5)>REF(MA(CLOSE,5),1) AND XA_51>REF(XA_51,1) AND XA_51/MA(CLOSE,5)<1.07 AND OPEN<XA_51 AND CLOSE>XA_51 AND CLOSE/REF(CLOSE,1)>1.031;XA_54:=MA(CLOSE,25)+MA(CLOSE,25)*20/100;XA_55:=XA_53 AND CLOSE>XA_54;XA_56:=OPEN<MA(CLOSE,5) AND XA_53 AND CLOSE<XA_54;XA_57:=XA_55 OR XA_56;XA_58:=XA_57 AND NOT(REF(XA_57,1));DRAWTEXT(XA_58,LOW*0.98,'买2'),COLORRED;上轨
DRAWTEXT(XA_92,LOW*0.94,'3'),COLORGREEN;