通达信雨中舟超级大博弈指标公式 源码[通达信公式]
TDXSTEP148:DRAWRECTREL(0,0,999,1020,IF(120,RGB(75,95,20),0));
TDXSTEP149:DRAWRECTREL(0,0,400,380,IF(120,RGB(20,80,50),0));
超B:=L2_AMO(0,2)/10000;
大B:=L2_AMO(1,2)/10000;
中B:=L2_AMO(2,2)/10000;
小B:=L2_AMO(3,2)/10000;
超S:=L2_AMO(0,3)/10000;
大S:=L2_AMO(1,3)/10000;
中S:=L2_AMO(2,3)/10000;
小S:=L2_AMO(3,3)/10000;
主买A:=ACTINV;
主卖A:=ACTOUTV;
主买:=主买A*100/(主买A+主卖A);
主卖:=主卖A*100/(主买A+主卖A);
SAT:=AMOUNT/C/(HHV(AMOUNT,20)/HHV(C,20));
【量能饱和】:IF(SAT>1,1,SAT)*100,NODRAW,COLORYELLOW;
主力净买量:=LARGEINTRDV-LARGEOUTTRDV;
大宗净流入:=超B+大B-(超S+大S);
主动买卖差:=ACTINV-ACTOUTV;
主力资金差:=(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/10000;
TDXSTEP150:DRAWRECTREL(100,0,390,40,RGB(95,95,0));
TDXSTEP151:DRAWRECTREL(100,0,90+CONST(主买*300/100),40,RGB(250,85,0));
TDXSTEP152:DRAWRECTREL(100,60,390,100,RGB(50,50,0));
TDXSTEP153:DRAWRECTREL(100,60,90+CONST(主卖*300/100),100,RGB(55,165,0));
TDXSTEP154:DRAWRECTREL(100,120,390,160,RGB(30,99,20));
TDXSTEP155:DRAWRECTREL(100,120,90+CONST(【量能饱和】*300/100),160,RGB(250,0,0));
大单动向:=(LARGEINTRDV-LARGEOUTTRDV)*10000/FINANCE(7);
T1:=IF(大单动向>0 AND REF(大单动向,1)< 0,1,0);
T2:=IF(大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)< 0,2,T1);
T3:=IF(大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)< 0,3,T2);
T4:=IF(大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)< 0,4,T3);
T5:=IF(大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)< 0,5,T4);
T6:=IF(大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)< 0,6,T5);
T7:=IF(大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)< 0,7,T6);
T8:=IF(大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)< 0,8,T7);
T9:=IF(大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)>0 AND REF(大单动向,9)< 0,9,T8);
T:=IF(大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)>0 AND REF(大单动向,9)>0,10,T9);
D:=COUNT(大单动向>0,10);
TDXSTEP156:DRAWTEXT_FIX(1,0.005,0.01,0,STRCAT(STRCAT(11,CON2STR(主买,2)),12)),COLORYELLOW;
TDXSTEP157:DRAWTEXT_FIX(1,0.005,0.07,0,STRCAT(STRCAT(13,CON2STR(主卖,2)),12)),COLORGREEN;
TDXSTEP158:DRAWTEXT_FIX(1,0.005,0.13,0,STRCAT(STRCAT(14,CON2STR(【量能饱和】,2)),12)),COLORYELLOW;
TDXSTEP159:DRAWTEXT_FIX(1,0.005,0.19,0,STRCAT(STRCAT(15,CON2STR(主力资金差,2)),16)),COLORYELLOW;
TDXSTEP160:DRAWTEXT_FIX(1,0.2,0.19,0,STRCAT(STRCAT(17,CON2STR(大宗净流入,2)),16)),COLORYELLOW;
TDXSTEP161:DRAWTEXT_FIX(1,0.005,0.25,0,STRCAT(STRCAT(18,CON2STR(主力净买量,2)),19)),COLORYELLOW;
TDXSTEP162:DRAWTEXT_FIX(1,0.2,0.25,0,STRCAT(STRCAT(20,CON2STR(主动买卖差,2)),19)),COLORYELLOW;
TDXSTEP163:DRAWTEXT_FIX(1,0.005,0.31,0,STRCAT(STRCAT(21,CON2STR(T,0)),22)),COLORYELLOW;
TDXSTEP164:DRAWTEXT_FIX(1,0.2,0.31,0,STRCAT(STRCAT(23,CON2STR(D,0)),22)),COLORYELLOW;
PJJ:=DMA((H+L+C*2)/4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=V/((H-L)*2-ABS(C-O));
XVL:=IF(C>O,QJJ*(H-L),IF(C< O,QJJ*(H-O+(C-L)),V/2))+IF(C>O,0-QJJ*(H-C+(O-L)),IF(C< O,0-QJJ*(H-L),0-V/2));
ZLL:=V/CAPITAL;
HSL1:=IF(ZLL>10,10,ZLL);
HSL:=XVL/20/1.15;
攻击流量:=HSL*0.55+REF(HSL,1)*0.33+REF(HSL,2)*0.22;
GJJ:=EMA(攻击流量,8);
LLJX:=EMA(攻击流量,3);
TDXSTEP165:STICKLINE(HSL*0.4>=0,HSL*0.4+LLJX,0,3,0),COLORYELLOW;
TDXSTEP166:STICKLINE(HSL*0.4< 0,HSL*0.4+LLJX,0,3,0),COLORGREEN;
资金流入:=IF(HSL*0.4+LLJX>0,HSL*0.4+LLJX,DRAWNULL);
资金流出:=IF(HSL*0.4+LLJX< 0,HSL*0.4+LLJX,DRAWNULL);
资金进出:=HSL*0.4+LLJX;
万元:=AMOUNT/10000;
资金净进出:IF(HSL*0.4+LLJX>0,资金流入,资金流出),POINTDOT,COLORWHITE;
进出比例%:IF(HSL*0.4+LLJX>0,资金流入/万元*100,资金流出/万元*100),COLORYELLOW;
连红天1:=BARSLASTCOUNT(资金净进出>0);
连红天2:=IF(连红天1=0,REF(连红天1,1),连红天1);
连红天3:=IF(连红天2=0,REF(连红天1,2),连红天2);
连红天4:=IF(连红天3=0,REF(连红天1,3),连红天3);
近期连红天:IF(连红天4=0,REF(连红天1,4),连红天4),NODRAW,COLORYELLOW;
最多连红天1:=MAX(REF(近期连红天,1),近期连红天);
最多连红天2:=MAX(最多连红天1,REF(近期连红天,2));
最多连红天3:=MAX(最多连红天2,REF(近期连红天,3));
最多连红天4:=MAX(最多连红天3,REF(近期连红天,4));
最多连红天5:=MAX(最多连红天4,REF(近期连红天,5));
最多连红天:MAX(最多连红天5,REF(近期连红天,6)),NODRAW,COLORYELLOW;
三日资金:SUM(资金进出,3),NODRAW,COLORWHITE;
五日资金:SUM(资金进出,5),NODRAW,COLORMAGENTA;
十日资金:SUM(资金进出,10),NODRAW,COLORRED;
资金流量:=LLJX;
TDXSTEP167:STICKLINE(资金流量>0,资金流量,0,3,0),COLORRED;
TDXSTEP168:STICKLINE(资金流量< 0,资金流量,0,3,0),COLORFF3300;
黄柱初出蓝:=REF(资金流出,1)< 0 AND 资金流入>30 AND C>O AND C>REF(C,1) AND C>MA(C,3);
X:=(3*C+2*L+O+H)/7;
多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+REF(X,20))/210;
长黄柱:=资金流入>300 AND CROSS(C,多空线);
TDXSTEP169:DRAWTEXT(黄柱初出蓝,(-30),24),COLORMAGENTA;
TDXSTEP170:DRAWTEXT(长黄柱,HSL*0.4*1.5*1.4,24),COLORRED;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容