通达信公式编辑器4.17版本可用
一、超赢资金代码
净额:(LARGEINTRDVOL-LARGEOUTTRDVOL)*DYNAINFO(11)/100,NODRAW;
超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),NODRAW;
五净:SUM(净额,5),NODRAW;
连红:BARSLASTCOUNT(净额>0),COLORRED,NODRAW;
十红:COUNT(净额>0,10),NODRAW;
STICKLINE(净额>0,0,净额,2.8,0) ,COLORFF00FF;
STICKLINE(净额>0,0,净额,2.3,0) ,COLORFF22FF;
STICKLINE(净额>0,0,净额,1.8,0) ,COLORFF44FF;
STICKLINE(净额>0,0,净额,1.3,0) ,COLORFF66FF;
STICKLINE(净额>0,0,净额,0.8,0) ,COLORFF88FF;
STICKLINE(净额>0,0,净额,0.3,0) ,COLORFF99FF;
STICKLINE(净额<0,净额,0,2.8,0 ),COLOR008800;
STICKLINE(净额<0,净额,0,2.3,0 ),COLOR009900;
STICKLINE(净额<0,净额,0,1.8,0 ),COLOR00AA00;
STICKLINE(净额<0,净额,0,1.3,0 ),COLOR00BB00;
STICKLINE(净额<0,净额,0,0.8,0 ),COLOR00CC00;
STICKLINE(净额<0,净额,0,0.3,0 ),COLOR00DD00;
二、决策资金(大宗资金)代码
超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)+(超S+大S),NODRAW;
五净:SUM(净额,5),NODRAW;
连红:BARSLASTCOUNT(净额>0),COLORRED,NODRAW;
十红:COUNT(净额>0,10),NODRAW;
STICKLINE(净额>0,0,净额,2.8,0) ,COLORFF00FF;
STICKLINE(净额>0,0,净额,2.3,0) ,COLORFF22FF;
STICKLINE(净额>0,0,净额,1.8,0) ,COLORFF44FF;
STICKLINE(净额>0,0,净额,1.3,0) ,COLORFF66FF;
STICKLINE(净额>0,0,净额,0.8,0) ,COLORFF88FF;
STICKLINE(净额>0,0,净额,0.3,0) ,COLORFF99FF;
STICKLINE(净额<0,净额,0,2.8,0 ),COLOR008800;
STICKLINE(净额<0,净额,0,2.3,0 ),COLOR009900;
STICKLINE(净额<0,净额,0,1.8,0 ),COLOR00AA00;
STICKLINE(净额<0,净额,0,1.3,0 ),COLOR00BB00;
STICKLINE(净额<0,净额,0,0.8,0 ),COLOR00CC00;
STICKLINE(净额<0,净额,0,0.3,0 ),COLOR00DD00;
三、特大资金{决策之特大}
超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+超S,NODRAW;
五净:SUM(净额,5),NODRAW;
连红:BARSLASTCOUNT(净额>0),COLORRED,NODRAW;
十红:COUNT(净额>0,10),NODRAW;
STICKLINE(净额>0,0,净额,2.8,0) ,COLORFF00FF;
STICKLINE(净额>0,0,净额,2.3,0) ,COLORFF22FF;
STICKLINE(净额>0,0,净额,1.8,0) ,COLORFF44FF;
STICKLINE(净额>0,0,净额,1.3,0) ,COLORFF66FF;
STICKLINE(净额>0,0,净额,0.8,0) ,COLORFF88FF;
STICKLINE(净额>0,0,净额,0.3,0) ,COLORFF99FF;
STICKLINE(净额<0,净额,0,2.8,0 ),COLOR008800;
STICKLINE(净额<0,净额,0,2.3,0 ),COLOR009900;
STICKLINE(净额<0,净额,0,1.8,0 ),COLOR00AA00;
STICKLINE(净额<0,净额,0,1.3,0 ),COLOR00BB00;
STICKLINE(净额<0,净额,0,0.8,0 ),COLOR00CC00;
STICKLINE(净额<0,净额,0,0.3,0 ),COLOR00DD00;
四、决策资金之大资金
超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+大S,NODRAW;
五净:SUM(净额,5),NODRAW;
连红:BARSLASTCOUNT(净额>0),COLORRED,NODRAW;
十红:COUNT(净额>0,10),NODRAW;
STICKLINE(净额>0,0,净额,2.8,0) ,COLORFF00FF;
STICKLINE(净额>0,0,净额,2.3,0) ,COLORFF22FF;
STICKLINE(净额>0,0,净额,1.8,0) ,COLORFF44FF;
STICKLINE(净额>0,0,净额,1.3,0) ,COLORFF66FF;
STICKLINE(净额>0,0,净额,0.8,0) ,COLORFF88FF;
STICKLINE(净额>0,0,净额,0.3,0) ,COLORFF99FF;
STICKLINE(净额<0,净额,0,2.8,0 ),COLOR008800;
STICKLINE(净额<0,净额,0,2.3,0 ),COLOR009900;
STICKLINE(净额<0,净额,0,1.8,0 ),COLOR00AA00;
STICKLINE(净额<0,净额,0,1.3,0 ),COLOR00BB00;
STICKLINE(净额<0,净额,0,0.8,0 ),COLOR00CC00;
STICKLINE(净额<0,净额,0,0.3,0 ),COLOR00DD00;
五、决策资金之中单资金
超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+中S,NODRAW;
五净:SUM(净额,5),NODRAW;
连红:BARSLASTCOUNT(净额>0),COLORRED,NODRAW;
十红:COUNT(净额>0,10),NODRAW;
STICKLINE(净额>0,0,净额,2.8,0) ,COLORFF00FF;
STICKLINE(净额>0,0,净额,2.3,0) ,COLORFF22FF;
STICKLINE(净额>0,0,净额,1.8,0) ,COLORFF44FF;
STICKLINE(净额>0,0,净额,1.3,0) ,COLORFF66FF;
STICKLINE(净额>0,0,净额,0.8,0) ,COLORFF88FF;
STICKLINE(净额>0,0,净额,0.3,0) ,COLORFF99FF;
STICKLINE(净额<0,净额,0,2.8,0 ),COLOR008800;
STICKLINE(净额<0,净额,0,2.3,0 ),COLOR009900;
STICKLINE(净额<0,净额,0,1.8,0 ),COLOR00AA00;
STICKLINE(净额<0,净额,0,1.3,0 ),COLOR00BB00;
STICKLINE(净额<0,净额,0,0.8,0 ),COLOR00CC00;
STICKLINE(净额<0,净额,0,0.3,0 ),COLOR00DD00;
六、决策资金之小单资金
超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+小S,NODRAW;
五净:SUM(净额,5),NODRAW;
连红:BARSLASTCOUNT(净额>0),COLORRED,NODRAW;
十红:COUNT(净额>0,10),NODRAW;
STICKLINE(净额>0,0,净额,2.8,0) ,COLORFF00FF;
STICKLINE(净额>0,0,净额,2.3,0) ,COLORFF22FF;
STICKLINE(净额>0,0,净额,1.8,0) ,COLORFF44FF;
STICKLINE(净额>0,0,净额,1.3,0) ,COLORFF66FF;
STICKLINE(净额>0,0,净额,0.8,0) ,COLORFF88FF;
STICKLINE(净额>0,0,净额,0.3,0) ,COLORFF99FF;
STICKLINE(净额<0,净额,0,2.8,0 ),COLOR008800;
STICKLINE(净额<0,净额,0,2.3,0 ),COLOR009900;
STICKLINE(净额<0,净额,0,1.8,0 ),COLOR00AA00;
STICKLINE(净额<0,净额,0,1.3,0 ),COLOR00BB00;
STICKLINE(净额<0,净额,0,0.8,0 ),COLOR00CC00;
STICKLINE(净额<0,净额,0,0.3,0 ),COLOR00DD00;
|