通达信高低多空资金趋势主图公式
短高H:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210,COLORBLUE,LINETHICK1;
短低L:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210;
多空线B:=(短高H+短低L)/2;
D60H:=EMA(短高H,90);
D60L:=EMA(短低L,90);
D60:=EMA(多空线B,90);
D6010:=EMA(D60,10);
D60差:=D60H-D60L;
D60顶:=D60H+D60差*2;
D60底:=D60L-D60差*2;
波段高:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*2.5+XMA(XMA(H,60),60);
波段低:=XMA(XMA(L,60),60)-(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*2.5;
高:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25);
低:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1;
多头定位:=低>=D60底 AND 高>=D60顶;
空头定位:=高<=D60顶 AND 低<=D60底;
震荡定位:=低>=D60底 AND 高<=D60顶;
抄底定位:=高<=D60顶 AND 低<=D60底 AND 低<波段低;
多头趋势:=低>=D60底 AND 高>=D60顶;
震荡趋势:=低>=D60底 AND 高<=D60顶;
空头趋势:=高<=D60顶 AND 低<=D60底;
多头破位:=多头定位=1 AND L<低;
震荡破位:=震荡定位=1 AND L<低;
空头破位:=空头定位=1 AND L<低;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
今D2:=EMA(D,2);
昨D2:=REF(今D2,1);
今D3:=EMA(D,3);
昨D3:=REF(今D3,1);
今D4:=EMA(D,4);
昨D4:=REF(今D4,1);
今D5:=EMA(D,5);
昨D5:=REF(今D5,1);
MB1:=EMA(WINNER(C)*100,5);
VAR2:=MB1;
VAR3:=DRAWLINE(VAR2>=HHV(VAR2,5)=1,VAR2,VAR2<=LLV(VAR2,5)=1,VAR2,1);
宝剑:=REF(VAR2,1)=REF(VAR3,1) AND VAR2>REF(VAR2,1);
买点定位:=CROSS(今D2,昨D2) OR CROSS(今D3,昨D3) OR CROSS(今D4,昨D4) OR CROSS(今D5,昨D5) OR 宝剑=1,COLORWHITE,LINETHICK1;
大单动向:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7);
涨跌动因:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);
大单差分:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0);
DDZ1:=大单差分*7;
DDZ2:=大单差分*3;
主力活跃度:=LARGEINTRDVOL-LARGEOUTTRDVOL;
主力净流入:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*AMO/V/10000;
买入力度:=LARGEINTRDVOL*100/VOL;
卖出力度:=LARGEOUTTRDVOL*100/VOL;
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
资金流向:=(超B+大B+中B+小B)-(超S+大S+中S+小S);
资金选股:=资金流向>0 AND 大单动向>0 AND 涨跌动因>0 AND DDZ1>0 AND DDZ2>0 AND 主力活跃度>0 AND 主力净流入>0 AND 买入力度>卖出力度;
量:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
轨道振幅:=(高-低)/低*100;
轨道振幅半:=轨道振幅/2;
获利率:=(高-(H+C)/2)/((H+C)/2)*100;
DEA102:=EMA((EMA(EMA(CLOSE,4) - EMA(CLOSE,12),102) - EMA(EMA(CLOSE,4) - EMA(CLOSE,12),204)),9);
DEA51:=EMA((EMA(EMA(CLOSE,4) - EMA(CLOSE,12),51) - EMA(EMA(CLOSE,4) - EMA(CLOSE,12),102)),9);
DEA1818:=EMA((EMA(EMA(CLOSE,4) - EMA(CLOSE,12),18) - EMA(EMA(CLOSE,4) - EMA(CLOSE,12),36)),9);
DEA66:=EMA((EMA(EMA(CLOSE,4) - EMA(CLOSE,12),6) - EMA(EMA(CLOSE,4) - EMA(CLOSE,12),12)),9);
DEA33:=EMA((EMA(EMA(CLOSE,4) - EMA(CLOSE,12),3) - EMA(EMA(CLOSE,4) - EMA(CLOSE,12),9)),9);
DEA333:=REF(DEA33,1),COLORWHITE,LINETHICK0;
DEA1212:=EMA((EMA(EMA(CLOSE,4) - EMA(CLOSE,12),12) - EMA(EMA(CLOSE,4) - EMA(CLOSE,12),24)),9),COLORRED,LINETHICK1;
多头1:=DEA102>0 AND DEA51>0;
多头2:=DEA102>0 AND DEA66>DEA1212 AND DEA1212>DEA1818;
多头3:=DEA1818>DEA51 AND DEA1818>DEA102 AND DEA1818>0;
多头:=多头1=1 OR 多头2=1 OR 多头3=1;
空头1:=DEA1818>DEA51 OR DEA1818>DEA102;
空头2:=DEA51>DEA102;
空头:=空头1=1 OR 空头2=1;
多头金:=DEA51>DEA102;
空头金:=DEA1818>DEA51 AND DEA51>DEA102;
抄底1:=DEA66>DEA1212 AND DEA1212>DEA1818;
抄底:=抄底1=1 OR 多头=1 OR 空头=1;
股池:=买点定位=1 AND 资金选股=1 AND (H-C)<(C-L) AND 量>0 AND (C+H+L)/3<(高+低)/2;
多头行情:=多头定位=1 OR 震荡定位=1;
空头行情:=空头定位=1 OR 震荡定位=1;
多头选股:股池=1 AND 多头行情=1 AND 多头=1,COLORRED,LINETHICK1;
空头选股:股池=1 AND 空头行情=1 AND 空头=1,COLORGREEN,LINETHICK1;
抄底选股:股池=1 AND 抄底定位=1 AND L<低 AND 抄底=1,COLORMAGENTA,LINETHICK1;
多头金股:股池=1 AND 多头定位=1 AND 多头=1 AND 多头金=1,COLORRED,LINETHICK3;
空头金股:股池=1 AND 空头行情=1 AND 空头=1 AND 空头金=1,COLORGREEN,LINETHICK3;
抄底金股:股池=1 AND 抄底定位=1 AND L<低 AND 抄底=1,COLORMAGENTA,LINETHICK3;