公式简介:
通达信趋势控盘主图指标
公式预览:公式源码:
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_1:=MA(CLOSE,20);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]上:X_1+2*STD(CLOSE,20),NODRAW;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]下:X_1-2*STD(CLOSE,20),NODRAW;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]DRAWBAND(X_1,RGB(0,60,5),下,RGB(0,60,5));[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]牵牛线:EMA(COST(81),10),COLORYELLOW,LINETHICK2;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]DRAWKLINE(HIGH,OPEN,LOW,CLOSE);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_3:=MA(CLOSE,5);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_4:=MA(CLOSE,10);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_5:=MA(CLOSE,20);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_6:=MA(CLOSE,60);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]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;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]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;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_9:=(CLOSE>=X_7 OR (CLOSE>X_3 AND CLOSE>X_4 AND CLOSE>X_5 AND CLOSE>X_6));[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_10:=(X_8>CLOSE OR (CLOSE< X_3 AND CLOSE< X_4 AND CLOSE< X_5 AND CLOSE< X_6));[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_11:=BARSLAST(X_9);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_12:=BARSLAST(X_10);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_13:=BARSLAST(CROSS(X_12,X_11));[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_14:=BARSLAST(CROSS(X_11,X_12));[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_15:=X_13< X_14;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_16:=X_14< X_13;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_17:=(X_7+X_8)/2;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]趋势上升:IF(X_15 AND X_17< X_3,X_17,DRAWNULL),COLORRED,LINETHICK5;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]趋势下降:IF(X_16 AND X_17>X_3,X_17,DRAWNULL),COLORBLUE,LINETHICK5;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]DRAWICON(X_15 AND X_17< X_3 AND X_17>MA(CLOSE,20),X_17,1);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]指引:MA(CLOSE,5),COLORMAGENTA,LINETHICK2;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]判势:IF(指引< REF(指引,1),指引,DRAWNULL),COLORWHITE,LINETHICK2;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]辅助:MA(CLOSE,8),COLORGREEN;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_18:=CLOSE/REF(CLOSE,1)>=1.094;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]STICKLINE(X_18,OPEN,CLOSE,0.1,0),COLORMAGENTA;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]STICKLINE(REF(X_18,1) AND FILTER(REF(X_18,1),1) AND X_18,OPEN,CLOSE,3,0),COLORMAGENTA;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_19:=VOL*(OPEN+CLOSE+HIGH+LOW)/4;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_20:=EMA(X_19,21)/EMA(VOL,21);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_21:=6*HHV(X_20,2)-5*X_20;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_22:=2*X_20-X_21;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_23:=(HIGH+LOW+CLOSE)/3;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_24:=(X_23-MA(X_23,21))/(0.015*AVEDEV(X_23,21));[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_25:=MA(X_24,7);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_26:=MA(X_25,3)/4;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]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);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]DRAWICON(CLOSE< X_20 AND REF(CLOSE,1)>=REF(X_20,1) AND X_26< REF(X_26,1),HIGH,35);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]驷马难追:EVERY(CLOSE>REF(CLOSE,1),4) OR EVERY(CLOSE>OPEN,4),NODRAW,COLORYELLOW;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]STICKLINE(FILTER(驷马难追,3),CLOSE,(CLOSE+OPEN)/2,3,0),COLOR000099;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]STICKLINE(FILTER(驷马难追,3),CLOSE,(CLOSE+OPEN)/2,2.2,0),COLOR0000CC;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]STICKLINE(FILTER(驷马难追,3),CLOSE,(CLOSE+OPEN)/2,1.5,0),COLORRED;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]STICKLINE(FILTER(驷马难追,3),CLOSE,(CLOSE+OPEN)/2,0.5,0),COLORCC66FF;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]STICKLINE(FILTER(驷马难追,3),(CLOSE+OPEN)/2,CLOSE,0.5,0),COLORYELLOW;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_57:=REF(X_18,2) AND REF(OPEN>CLOSE,1) AND CLOSE>OPEN;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_58:=X_26>=25;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_59:=SMA(CLOSE,21,1)-SMA(CLOSE,89,1);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_60:=SMA(CLOSE,10,1)-SMA(CLOSE,50,1);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_61:=X_60*2.75;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_62:=X_61>0;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_63:=EMA(WINNER(CLOSE)*70,3);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_64:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_65:=X_64/(X_63+X_64)*100;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_66:=X_63/(X_63+X_64)*100;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_67:=X_66>X_65;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]涨停反包:X_57 AND X_58 AND X_67 AND X_62,NODRAW,COLORRED;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]DRAWICON(涨停反包,(CLOSE+OPEN)/2,33);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_68:=VOL>=REF(VOL,1)*1.91 AND CLOSE>REF(CLOSE,1)*1.01;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_69:=FILTER(X_68,3);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_70:=IF(BARSLAST(X_69)=1 AND CLOSE>REF(LOW,3),1,0);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_71:=X_70=1;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_72:=FILTER(X_71,3);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]STICKLINE(CLOSE,REF(LOW,BARSLAST(X_72)),REF(LOW,BARSLAST(X_72)),2,0),COLORGREEN;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]STICKLINE(CLOSE,REF(LOW,BARSLAST(X_69)),REF(LOW,BARSLAST(X_69)),2,0),COLORMAGENTA;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_73:=EMA(WINNER(CLOSE)*70,3);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_74:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]X_75:=X_73/(X_73+X_74)*100;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]控盘系数:INTPART(X_75),NODRAW,COLORMAGENTA;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]DRAWTEXT_FIX(1,0,0,0,HYBLOCK),COLORLIBLUE;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]DRAWTEXT_FIX(1,0.07,0,0,GNBLOCK),COLORLICYAN;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]DRAWTEXT_FIX(1,0,0.05,0,DYBLOCK),COLORLIMAGENTA;[/size][/font][/backcolor][/color]
- [color=#666666][backcolor=rgb(255, 255, 255)][font=Tahoma, Arial, Helvetica, sans-serif][size=14px]DRAWTEXT_FIX(ISLASTBAR,0.07,0.05,0,FGBLOCK),COLORLIMAGENTA;[/size][/font][/backcolor][/color]
复制代码
|