通达信趋势控盘主图指标 源码 贴图
2024-12-13 08:32:00来源:本站整理浏览:904
通达信趋势控盘主图指标 源码 贴图
X_1:=MA(CLOSE,20);
上:X_1+2*STD(CLOSE,20),NODRAW;
下:X_1-2*STD(CLOSE,20),NODRAW;
DRAWBAND(X_1,RGB(0,60,5),下,RGB(0,60,5));
牵牛线:EMA(COST(81),10),COLORYELLOW,LINETHICK2;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
X_3:=MA(CLOSE,5);
X_4:=MA(CLOSE,10);
X_5:=MA(CLOSE,20);
X_6:=MA(CLOSE,60);
X_7:=(HIGH*18+REF(HIGH,1)*17+REF(HIGH,2)*16+REF(HIGH,3)*15+REF(HIGH,4)*14+REF(HIGH,5)*13+REF(HIGH,6)*12+REF(HIGH,7)*11+REF(HIGH,8)*10+REF(HIGH,9)*9+REF(HIGH,10)*8+REF(HIGH,11)*7+REF(HIGH,12)*6+REF(HIGH,13)*5+REF(HIGH,14)*4+REF(HIGH,15)*3+REF(HIGH,16)*2+REF(HIGH,17)*1)/171;
X_8:=(LOW*18+REF(LOW,1)*17+REF(LOW,2)*16+REF(LOW,3)*15+REF(LOW,4)*14+REF(LOW,5)*13+REF(LOW,6)*12+REF(LOW,7)*11+REF(LOW,8)*10+REF(LOW,9)*9+REF(LOW,10)*8+REF(LOW,11)*7+REF(LOW,12)*6+REF(LOW,13)*5+REF(LOW,14)*4+REF(LOW,15)*3+REF(LOW,16)*2+REF(LOW,17)*1)/171;
X_9:=(CLOSE>=X_7 OR (CLOSE>X_3 AND CLOSE>X_4 AND CLOSE>X_5 AND CLOSE>X_6));
X_10:=(X_8>CLOSE OR (CLOSE< X_3 AND CLOSE< X_4 AND CLOSE< X_5 AND CLOSE< X_6));
X_11:=BARSLAST(X_9);
X_12:=BARSLAST(X_10);
X_13:=BARSLAST(CROSS(X_12,X_11));
X_14:=BARSLAST(CROSS(X_11,X_12));
X_15:=X_13< X_14;
X_16:=X_14< X_13;
X_17:=(X_7+X_8)/2;
趋势上升:IF(X_15 AND X_17< X_3,X_17,DRAWNULL),COLORRED,LINETHICK5;
趋势下降:IF(X_16 AND X_17>X_3,X_17,DRAWNULL),COLORBLUE,LINETHICK5;
DRAWICON(X_15 AND X_17< X_3 AND X_17>MA(CLOSE,20),X_17,1);
指引:MA(CLOSE,5),COLORMAGENTA,LINETHICK2;
判势:IF(指引< REF(指引,1),指引,DRAWNULL),COLORWHITE,LINETHICK2;
辅助:MA(CLOSE,8),COLORGREEN;
X_18:=CLOSE/REF(CLOSE,1)>=1.094;
STICKLINE(X_18,OPEN,CLOSE,0.1,0),COLORMAGENTA;
STICKLINE(REF(X_18,1) AND FILTER(REF(X_18,1),1) AND X_18,OPEN,CLOSE,3,0),COLORMAGENTA;
X_19:=VOL*(OPEN+CLOSE+HIGH+LOW)/4;
X_20:=EMA(X_19,21)/EMA(VOL,21);
X_21:=6*HHV(X_20,2)-5*X_20;
X_22:=2*X_20-X_21;
X_23:=(HIGH+LOW+CLOSE)/3;
X_24:=(X_23-MA(X_23,21))/(0.015*AVEDEV(X_23,21));
X_25:=MA(X_24,7);
X_26:=MA(X_25,3)/4;
DRAWICON(CLOSE>=X_20 AND REF(CLOSE,1)< REF(X_20,1) AND X_26>REF(X_26,1) AND X_26>0,LOW,34);
DRAWICON(CLOSE< X_20 AND REF(CLOSE,1)>=REF(X_20,1) AND X_26< REF(X_26,1),HIGH,35);
驷马难追:EVERY(CLOSE>REF(CLOSE,1),4) OR EVERY(CLOSE>OPEN,4),NODRAW,COLORYELLOW;
STICKLINE(FILTER(驷马难追,3),CLOSE,(CLOSE+OPEN)/2,3,0),COLOR000099;
STICKLINE(FILTER(驷马难追,3),CLOSE,(CLOSE+OPEN)/2,2.2,0),COLOR0000CC;
STICKLINE(FILTER(驷马难追,3),CLOSE,(CLOSE+OPEN)/2,1.5,0),COLORRED;
STICKLINE(FILTER(驷马难追,3),CLOSE,(CLOSE+OPEN)/2,0.5,0),COLORCC66FF;
STICKLINE(FILTER(驷马难追,3),(CLOSE+OPEN)/2,CLOSE,0.5,0),COLORYELLOW;
X_57:=REF(X_18,2) AND REF(OPEN>CLOSE,1) AND CLOSE>OPEN;
X_58:=X_26>=25;{公式网WWW.GPXIAZAI.COM}
X_59:=SMA(CLOSE,21,1)-SMA(CLOSE,89,1);
X_60:=SMA(CLOSE,10,1)-SMA(CLOSE,50,1);
X_61:=X_60*2.75;
X_62:=X_61>0;
X_63:=EMA(WINNER(CLOSE)*70,3);
X_64:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
X_65:=X_64/(X_63+X_64)*100;
X_66:=X_63/(X_63+X_64)*100;
X_67:=X_66>X_65;
涨停反包:X_57 AND X_58 AND X_67 AND X_62,NODRAW,COLORRED;
DRAWICON(涨停反包,(CLOSE+OPEN)/2,33);
X_68:=VOL>=REF(VOL,1)*1.91 AND CLOSE>REF(CLOSE,1)*1.01;
X_69:=FILTER(X_68,3);
X_70:=IF(BARSLAST(X_69)=1 AND CLOSE>REF(LOW,3),1,0);
X_71:=X_70=1;
X_72:=FILTER(X_71,3);
STICKLINE(CLOSE,REF(LOW,BARSLAST(X_72)),REF(LOW,BARSLAST(X_72)),2,0),COLORGREEN;
STICKLINE(CLOSE,REF(LOW,BARSLAST(X_69)),REF(LOW,BARSLAST(X_69)),2,0),COLORMAGENTA;
X_73:=EMA(WINNER(CLOSE)*70,3);
X_74:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
X_75:=X_73/(X_73+X_74)*100;
控盘系数:INTPART(X_75),NODRAW,COLORMAGENTA;
DRAWTEXT_FIX(1,0,0,0,HYBLOCK),COLORLIBLUE;
DRAWTEXT_FIX(1,0.07,0,0,GNBLOCK),COLORLICYAN;
DRAWTEXT_FIX(1,0,0.05,0,DYBLOCK),COLORLIMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.07,0.05,0,FGBLOCK),COLORLIMAGENTA;
上:X_1+2*STD(CLOSE,20),NODRAW;
下:X_1-2*STD(CLOSE,20),NODRAW;
DRAWBAND(X_1,RGB(0,60,5),下,RGB(0,60,5));
牵牛线:EMA(COST(81),10),COLORYELLOW,LINETHICK2;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
X_3:=MA(CLOSE,5);
X_4:=MA(CLOSE,10);
X_5:=MA(CLOSE,20);
X_6:=MA(CLOSE,60);
X_7:=(HIGH*18+REF(HIGH,1)*17+REF(HIGH,2)*16+REF(HIGH,3)*15+REF(HIGH,4)*14+REF(HIGH,5)*13+REF(HIGH,6)*12+REF(HIGH,7)*11+REF(HIGH,8)*10+REF(HIGH,9)*9+REF(HIGH,10)*8+REF(HIGH,11)*7+REF(HIGH,12)*6+REF(HIGH,13)*5+REF(HIGH,14)*4+REF(HIGH,15)*3+REF(HIGH,16)*2+REF(HIGH,17)*1)/171;
X_8:=(LOW*18+REF(LOW,1)*17+REF(LOW,2)*16+REF(LOW,3)*15+REF(LOW,4)*14+REF(LOW,5)*13+REF(LOW,6)*12+REF(LOW,7)*11+REF(LOW,8)*10+REF(LOW,9)*9+REF(LOW,10)*8+REF(LOW,11)*7+REF(LOW,12)*6+REF(LOW,13)*5+REF(LOW,14)*4+REF(LOW,15)*3+REF(LOW,16)*2+REF(LOW,17)*1)/171;
X_9:=(CLOSE>=X_7 OR (CLOSE>X_3 AND CLOSE>X_4 AND CLOSE>X_5 AND CLOSE>X_6));
X_10:=(X_8>CLOSE OR (CLOSE< X_3 AND CLOSE< X_4 AND CLOSE< X_5 AND CLOSE< X_6));
X_11:=BARSLAST(X_9);
X_12:=BARSLAST(X_10);
X_13:=BARSLAST(CROSS(X_12,X_11));
X_14:=BARSLAST(CROSS(X_11,X_12));
X_15:=X_13< X_14;
X_16:=X_14< X_13;
X_17:=(X_7+X_8)/2;
趋势上升:IF(X_15 AND X_17< X_3,X_17,DRAWNULL),COLORRED,LINETHICK5;
趋势下降:IF(X_16 AND X_17>X_3,X_17,DRAWNULL),COLORBLUE,LINETHICK5;
DRAWICON(X_15 AND X_17< X_3 AND X_17>MA(CLOSE,20),X_17,1);
指引:MA(CLOSE,5),COLORMAGENTA,LINETHICK2;
判势:IF(指引< REF(指引,1),指引,DRAWNULL),COLORWHITE,LINETHICK2;
辅助:MA(CLOSE,8),COLORGREEN;
X_18:=CLOSE/REF(CLOSE,1)>=1.094;
STICKLINE(X_18,OPEN,CLOSE,0.1,0),COLORMAGENTA;
STICKLINE(REF(X_18,1) AND FILTER(REF(X_18,1),1) AND X_18,OPEN,CLOSE,3,0),COLORMAGENTA;
X_19:=VOL*(OPEN+CLOSE+HIGH+LOW)/4;
X_20:=EMA(X_19,21)/EMA(VOL,21);
X_21:=6*HHV(X_20,2)-5*X_20;
X_22:=2*X_20-X_21;
X_23:=(HIGH+LOW+CLOSE)/3;
X_24:=(X_23-MA(X_23,21))/(0.015*AVEDEV(X_23,21));
X_25:=MA(X_24,7);
X_26:=MA(X_25,3)/4;
DRAWICON(CLOSE>=X_20 AND REF(CLOSE,1)< REF(X_20,1) AND X_26>REF(X_26,1) AND X_26>0,LOW,34);
DRAWICON(CLOSE< X_20 AND REF(CLOSE,1)>=REF(X_20,1) AND X_26< REF(X_26,1),HIGH,35);
驷马难追:EVERY(CLOSE>REF(CLOSE,1),4) OR EVERY(CLOSE>OPEN,4),NODRAW,COLORYELLOW;
STICKLINE(FILTER(驷马难追,3),CLOSE,(CLOSE+OPEN)/2,3,0),COLOR000099;
STICKLINE(FILTER(驷马难追,3),CLOSE,(CLOSE+OPEN)/2,2.2,0),COLOR0000CC;
STICKLINE(FILTER(驷马难追,3),CLOSE,(CLOSE+OPEN)/2,1.5,0),COLORRED;
STICKLINE(FILTER(驷马难追,3),CLOSE,(CLOSE+OPEN)/2,0.5,0),COLORCC66FF;
STICKLINE(FILTER(驷马难追,3),(CLOSE+OPEN)/2,CLOSE,0.5,0),COLORYELLOW;
X_57:=REF(X_18,2) AND REF(OPEN>CLOSE,1) AND CLOSE>OPEN;
X_58:=X_26>=25;{公式网WWW.GPXIAZAI.COM}
X_59:=SMA(CLOSE,21,1)-SMA(CLOSE,89,1);
X_60:=SMA(CLOSE,10,1)-SMA(CLOSE,50,1);
X_61:=X_60*2.75;
X_62:=X_61>0;
X_63:=EMA(WINNER(CLOSE)*70,3);
X_64:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
X_65:=X_64/(X_63+X_64)*100;
X_66:=X_63/(X_63+X_64)*100;
X_67:=X_66>X_65;
涨停反包:X_57 AND X_58 AND X_67 AND X_62,NODRAW,COLORRED;
DRAWICON(涨停反包,(CLOSE+OPEN)/2,33);
X_68:=VOL>=REF(VOL,1)*1.91 AND CLOSE>REF(CLOSE,1)*1.01;
X_69:=FILTER(X_68,3);
X_70:=IF(BARSLAST(X_69)=1 AND CLOSE>REF(LOW,3),1,0);
X_71:=X_70=1;
X_72:=FILTER(X_71,3);
STICKLINE(CLOSE,REF(LOW,BARSLAST(X_72)),REF(LOW,BARSLAST(X_72)),2,0),COLORGREEN;
STICKLINE(CLOSE,REF(LOW,BARSLAST(X_69)),REF(LOW,BARSLAST(X_69)),2,0),COLORMAGENTA;
X_73:=EMA(WINNER(CLOSE)*70,3);
X_74:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
X_75:=X_73/(X_73+X_74)*100;
控盘系数:INTPART(X_75),NODRAW,COLORMAGENTA;
DRAWTEXT_FIX(1,0,0,0,HYBLOCK),COLORLIBLUE;
DRAWTEXT_FIX(1,0.07,0,0,GNBLOCK),COLORLICYAN;
DRAWTEXT_FIX(1,0,0.05,0,DYBLOCK),COLORLIMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.07,0.05,0,FGBLOCK),COLORLIMAGENTA;
- 上一篇公式:通达信启爆触发点主图指标 源码 贴图
- 下一篇公式:通达信游资先锋主图指标 源码 贴图