您好,欢迎访问三七文档
股票公式资金博弈VAR2:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,13)-LLV(LOW,13))*100;做多资金:SMA(VAR2,8,1)-2,LINETHICK2,COLORRED;VAR1:=(HHV(HIGH,8)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20))*100;做空资金:SMA(VAR1,6,1)-7,LINETHICK2,COLORGREEN;80,POINTDOT,COLORWHITE;40,POINTDOT,COLORWHITE;20,POINTDOT,COLORWHITE;5,POINTDOT,COLORWHITE;{今日资金搏弈根据通达信自带系统指标编制的}超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),COLORFFFFFF,NODRAW;超大单:(超B)+(超S),COLOR00FFFF,NODRAW;大单:(大B)+(大S),COLORFF00FF,NODRAW;大宗流入:(超大单+大单),COLOR00FF00,NODRAW;中单:(中B)+(中S),COLOR0085FF,NODRAW;小单:(小B)+(小S),COLOR0000FF,NODRAW;成交金额X10万元:AMOUNT/100000,COLOR00FFFF,NODRAW;DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,65,60),CONST(净流入额),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,55,50),CONST(超大单),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,45,40),CONST(大单),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,35,30),CONST(大宗流入),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,25,20),CONST(中单),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,15,10),CONST(小单),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,5,0),CONST(成交金额X10万元),DRAWNULL),RGB(238,250,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,65,60),CONST(-净流入额),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,55,50),CONST(-超大单),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,45,40),CONST(-大单),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,35,30),CONST(-大宗流入),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,25,20),CONST(-中单),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,15,10),CONST(-小单),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWTEXT(CURRBARSCOUNT=110,20,'绿柱流出。大宗流入=超大单+单'),COLOR00FF00;DRAWTEXT(CURRBARSCOUNT=110,20,'说明:红柱流入,'),COLOR0000FF;DRAWTEXT(CURRBARSCOUNT=65,-40,'净流入额'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=54,-40,'超大单'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=44,-40,'大单'),COLORFF00FF;DRAWTEXT(CURRBARSCOUNT=35,-40,'大宗流入'),COLOR00FF00;DRAWTEXT(CURRBARSCOUNT=24,-40,'中单'),COLOR0085FF;DRAWTEXT(CURRBARSCOUNT=14,-40,'小单'),COLOR0000FF;DRAWTEXT(CURRBARSCOUNT=7,-20,'总成交金额'),COLORFFFFFF;上角度:=70;下角度:=70;HDAY:=600;LDAY:=600;调点:=3;角度:=100;CURR:=CURRBARSCOUNT;TCH:=CONST(FINDHIGH(H,0,HDAY*10,1));GTT:=CONST(BARSLAST(TCH=H))+1;SX跌H:=CONST(IF(GTT=1,H,REF(H,GTT-1)));BCL:=CONST(FINDLOW(L,0,LDAY*10,1));DTT:=CONST(BARSLAST(BCL=L))+1;SX涨L:=CONST(IF(DTT=1,L,REF(L,DTT-1)));涨点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=SX涨L)+1));跌点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=SX跌H)+1));最低:=IF(调点=1,跌点,IF(调点=2,涨点,IF(调点=3,涨点,跌点)));L斜率:=下角度/IF(C300,1000,10);最高:=IF(调点=1,跌点,IF(调点=2,涨点,IF(调点=3,跌点,涨点)));H斜率:=上角度/IF(C300,1000,10);天线:=SX跌H;地线:=SX涨L;K:=(天线-地线)/(IF(跌点=涨点,跌点,涨点)-IF(跌点=涨点,涨点,跌点));上斜线:=IF(地线+CONST(L斜率*4.00)*最低=地线,地线+CONST(L斜率*4.00)*最低,DRAWNULL);上斜线0:=IF(地线+CONST(L斜率*2.00)*最低=地线,地线+CONST(L斜率*2.00)*最低,DRAWNULL);上斜线1:=IF(地线+CONST(L斜率*1.5)*最低=地线,地线+CONST(L斜率*1.5)*最低,DRAWNULL);上斜线2:=IF(地线+CONST(L斜率*1.00)*最低=地线,地线+CONST(L斜率*1.000)*最低,DRAWNULL);上斜线3:=IF(地线+CONST(L斜率*0.70)*最低=地线,地线+CONST(L斜率*0.70)*最低,DRAWNULL);上斜线4:=IF(地线+CONST(L斜率*0.50)*最低=地线,地线+CONST(L斜率*0.50)*最低,DRAWNULL);上斜线5:=IF(地线+CONST(L斜率*0.365)*最低=地线,地线+CONST(L斜率*0.365)*最低,DRAWNULL);上斜线6:=IF(地线+CONST(L斜率*0.250)*最低=地线,地线+CONST(L斜率*0.250)*最低,DRAWNULL);上斜线7:=IF(地线+CONST(L斜率*0.165)*最低=地线,地线+CONST(L斜率*0.165)*最低,DRAWNULL);上斜线8:=IF(地线+CONST(L斜率*0.123)*最低=地线,地线+CONST(L斜率*0.123)*最低,DRAWNULL);上斜线9:=IF(地线+CONST(L斜率*0.06)*最低=地线,地线+CONST(L斜率*0.06)*最低,DRAWNULL);上9:IF(上斜线9=天线*1.05,上斜线9,DRAWNULL),COLORAA00AA,COLORRED;上8:IF(上斜线8=天线*1.05,上斜线8,DRAWNULL),COLORAA00AA,COLORRED;上7:IF(上斜线7=天线*1.05,上斜线7,DRAWNULL),COLORAA00AA,COLORRED;上6:IF(上斜线6=天线*1.05,上斜线6,DRAWNULL),COLORAA00AA,COLORRED;上5:IF(上斜线5=天线*1.05,上斜线5,DRAWNULL),COLORAA00AA,COLORRED;上4:IF(上斜线4=天线*1.05,上斜线4,DRAWNULL),COLOR0000FF,COLORYELLOW;上3:IF(上斜线3=天线*1.05,上斜线3,DRAWNULL),COLORAA00AA,COLORRED;上2:IF(上斜线2=天线*1.05,上斜线2,DRAWNULL),COLORAA00AA,COLORRED;上1:IF(上斜线1=天线*1.05,上斜线1,DRAWNULL),COLORAA00AA,COLORRED;上0:IF(上斜线0=天线*1.05,上斜线0,DRAWNULL),COLORAA00AA,COLORRED;上:IF(上斜线=天线*1.05,上斜线,DRAWNULL),COLORAA00AA,COLORRED;下斜线:=IF(天线-CONST(H斜率*4.00)*最高=天线,天线-CONST(H斜率*4.00)*最高,DRAWNULL);下斜线0:=IF(天线-CONST(H斜率*2.00)*最高=天线,天线-CONST(H斜率*2.00)*最高,DRAWNULL);下斜线1:=IF(天线-CONST(H斜率*1.500)*最高=天线,天线-CONST(H斜率*1.500)*最高,DRAWNULL);下斜线2:=IF(天线-CONST(H斜率*1.000)*最高=天线,天线-CONST(H斜率*1.000)*最高,DRAWNULL);下斜线3:=IF(天线-CONST(H斜率*0.70)*最高=天线,天线-CONST(H斜率*0.70)*最高,DRAWNULL);下斜线4:=IF(天线-CONST(H斜率*0.50)*最高=天线,天线-CONST(H斜率*0.50)*最高,DRAWNULL);下斜线5:=IF(天线-CONST(H斜率*0.365)*最高=天线,天线-CONST(H斜率*0.365)*最高,DRAWNULL);下斜线6:=IF(天线-CONST(H斜率*0.250)*最高=天线,天线-CONST(H斜率*0.250)*最高,DRAWNULL);下斜线7:=IF(天线-CONST(H斜率*0.165)*最高=天线,天线-CONST(H斜率*0.165)*最高,DRAWNULL);下斜线8:=IF(天线-CONST(H斜率*0.123)*最高=天线,天线-CONST(H斜率*0.1
本文标题:股票公式资金博弈
链接地址:https://www.777doc.com/doc-2047956 .html