一下源码得到:胡晓卿 网友的热情帮助,提供以下更正:
统计板块热点出现次数,结合个股,提前布局--芝麻要开门!
有不完善处请大家提出。
由于大智慧证券软件的函数公式比较弱,许多想法。。。。。不说了。
我在三年后公布源码,是愿引出一种编写的思考方法,也希望有人改进或优化!
原码如下:
原码如下:
■ 引用公式一:
{转向周期}
A:=PEAKBARS(3,10,1);
B:=TROUGHBARS(3,10,1);
C1:=if(A>B,B,0);
C2:=if(A<=B,A,0);
涨期:if(c1=0 and ref(c1,1),ref(c1,1)+1,0)+c1;
降期:if(c2=0 and ref(c2,1),ref(c2,1)+1,0)+c2;
■ ■ 引用公式二
{净流入}
STICKLINE(V>0,0,V/CAPITAL*3000,8,1),Color666666;
ss1:=ORDER(1);
ss2:=ORDER(2);
dt:=((ss2-ss1)/V*1000);
STICKLINE(dt>0,0,dt,8,0),COLORRED;
STICKLINE(dt<0,0,dt,8,0),COLOR00ff00;
流入:BIGORDER(1,2)*100,PRECIS6,LINETHICK0;
流出:BIGORDER(2,2)*100,PRECIS6,LINETHICK0;
净额:(流入-流出)*1000,LINETHICK0;
STICKLINE(净额>0,0,净额,4,0),Color00FFFF,ALIGN1;
STICKLINE(净额<0,0,净额,4,0),COLORBLUE,ALIGN1;
DRAWICON(净额>0 and dt<0,12*2,12),ALIGN1;
0,Color666666;
{净额}
净额_万元:(流入-流出)*V/CAPITAL*100000,LINETHICK0;
A:=STKINDI('SH000001','转向周期.降期');
大盘跌净额:if(A>=0,sum(净额,A),0),LINETHICK0;
PARTLINE(大盘跌净额,大盘跌净额<>0,RGB(255,255,255),大盘跌净额=0,RGB(0,0,0));
B:=STKINDI('SH000001','转向周期.涨期');
大盘涨净额:if(B>0,sum(净额,B),0);
PARTLINE(大盘涨净额,大盘涨净额<>0,RGB(254,216,188),大盘涨净额=0,RGB(0,0,0));
■ 引用公式三:
{日涨幅}
A:sum((C-ref(C,1)),N)/ref(C,N)*100;
B:(BIGORDER(1,2)-BIGORDER(2,2))*100;
主代码:
variable:R[62]=0;
variable:RR[62]=0;
variable:M[30]=0;
variable:S[62]=0;
REFLINE: -51, 0,150;
{*********************************************************}
S[1]:=STKINDI('991002','日涨幅.A')*100;
S[2]:=STKINDI('991003','日涨幅.A')*100;
S[3]:=STKINDI('991004','日涨幅.A')*100;
S[4]:=STKINDI('991006','日涨幅.A')*100;
S[5]:=STKINDI('991007','日涨幅.A')*100;
S[6]:=STKINDI('991008','日涨幅.A')*100;
S[7]:=STKINDI('991009','日涨幅.A')*100;
S[8]:=STKINDI('991010','日涨幅.A')*100;
S[9]:=STKINDI('991011','日涨幅.A')*100;
S[10]:=STKINDI('991014','日涨幅.A')*100;
S[11]:=STKINDI('991016','日涨幅.A')*100;
S[12]:=STKINDI('991017','日涨幅.A')*100;
S[13]:=STKINDI('991018','日涨幅.A')*100;
S[14]:=STKINDI('991019','日涨幅.A')*100;
S[15]:=STKINDI('991020','日涨幅.A')*100;
S[16]:=STKINDI('991021','日涨幅.A')*100;
S[17]:=STKINDI('991023','日涨幅.A')*100;
S[18]:=STKINDI('991024','日涨幅.A')*100;
S[19]:=STKINDI('991025','日涨幅.A')*100;
S[20]:=STKINDI('991026','日涨幅.A')*100;
S[21]:=STKINDI('991027','日涨幅.A')*100;
S[22]:=STKINDI('991028','日涨幅.A')*100;
S[23]:=STKINDI('991031','日涨幅.A')*100;
S[24]:=STKINDI('991032','日涨幅.A')*100;
S[25]:=STKINDI('991033','日涨幅.A')*100;
S[26]:=STKINDI('991034','日涨幅.A')*100;
S[27]:=STKINDI('991035','日涨幅.A')*100;
S[28]:=STKINDI('991036','日涨幅.A')*100;
S[29]:=STKINDI('991037','日涨幅.A')*100;
S[30]:=STKINDI('991135','日涨幅.A')*100;
S[31]:=STKINDI('991136','日涨幅.A')*100;
S[32]:=STKINDI('991255','日涨幅.A')*100;
S[33]:=STKINDI('993072','日涨幅.A')*100;
S[34]:=STKINDI('993075','日涨幅.A')*100;
S[35]:=STKINDI('993091','日涨幅.A')*100;
S[36]:=STKINDI('993120','日涨幅.A')*100;
S[37]:=STKINDI('993128','日涨幅.A')*100;
S[38]:=STKINDI('993129','日涨幅.A')*100;
S[39]:=STKINDI('993130','日涨幅.A')*100;
S[40]:=STKINDI('993305','日涨幅.A')*100;
S[41]:=STKINDI('993385','日涨幅.A')*100;
S[42]:=STKINDI('993386','日涨幅.A')*100;
S[43]:=STKINDI('993405','日涨幅.A')*100;
S[44]:=STKINDI('993445','日涨幅.A')*100;
S[45]:=STKINDI('993450','日涨幅.A')*100;
S[46]:=STKINDI('993585','日涨幅.A')*100;
S[47]:=STKINDI('993586','日涨幅.A')*100;
S[48]:=STKINDI('993596','日涨幅.A')*100;
S[49]:=STKINDI('993597','日涨幅.A')*100;
S[50]:=STKINDI('993645','日涨幅.A')*100;
S[51]:=STKINDI('993646','日涨幅.A')*100;
S[52]:=STKINDI('993665','日涨幅.A')*100;
S[53]:=STKINDI('993685','日涨幅.A')*100;
S[54]:=STKINDI('993695','日涨幅.A')*100;
S[55]:=STKINDI('993710','日涨幅.A')*100;
S[56]:=STKINDI('993730','日涨幅.A')*100;
S[57]:=STKINDI('993745','日涨幅.A')*100;
S[58]:=STKINDI('993798','日涨幅.A')*100;
S[59]:=STKINDI('993801','日涨幅.A')*100;
S[60]:=STKINDI('993825','日涨幅.A')*100;
{------------------------------------------------------------------------}
R[1]:=INTPART(STKINDI('991002','净流入.净额_万元'))*100+1;
R[2]:=INTPART(STKINDI('991003','净流入.净额_万元'))*100+2;
R[3]:=INTPART(STKINDI('991004','净流入.净额_万元'))*100+3;
R[4]:=INTPART(STKINDI('991006','净流入.净额_万元'))*100+4;
R[5]:=INTPART(STKINDI('991007','净流入.净额_万元'))*100+5;
R[6]:=INTPART(STKINDI('991008','净流入.净额_万元'))*100+6;
R[7]:=INTPART(STKINDI('991009','净流入.净额_万元'))*100+7;
R[8]:=INTPART(STKINDI('991010','净流入.净额_万元'))*100+8;
R[9]:=INTPART(STKINDI('991011','净流入.净额_万元'))*100+9;
R[10]:=INTPART(STKINDI('991014','净流入.净额_万元'))*100+10;
R[11]:=INTPART(STKINDI('991016','净流入.净额_万元'))*100+11;
R[12]:=INTPART(STKINDI('991017','净流入.净额_万元'))*100+12;
R[13]:=INTPART(STKINDI('991018','净流入.净额_万元'))*100+13;
R[14]:=INTPART(STKINDI('991019','净流入.净额_万元'))*100+14;
R[15]:=INTPART(STKINDI('991020','净流入.净额_万元'))*100+15;
R[16]:=INTPART(STKINDI('991021','净流入.净额_万元'))*100+16;
R[17]:=INTPART(STKINDI('991023','净流入.净额_万元'))*100+17;
R[18]:=INTPART(STKINDI('991024','净流入.净额_万元'))*100+18;
R[19]:=INTPART(STKINDI('991025','净流入.净额_万元'))*100+19;
R[20]:=INTPART(STKINDI('991026','净流入.净额_万元'))*100+20;
R[21]:=INTPART(STKINDI('991027','净流入.净额_万元'))*100+21;
R[22]:=INTPART(STKINDI('991028','净流入.净额_万元'))*100+22;
R[23]:=INTPART(STKINDI('991031','净流入.净额_万元'))*100+23;
R[24]:=INTPART(STKINDI('991032','净流入.净额_万元'))*100+24;
R[25]:=INTPART(STKINDI('991033','净流入.净额_万元'))*100+25;
R[26]:=INTPART(STKINDI('991034','净流入.净额_万元'))*100+26;
R[27]:=INTPART(STKINDI('991035','净流入.净额_万元'))*100+27;
R[28]:=INTPART(STKINDI('991036','净流入.净额_万元'))*100+28;
R[29]:=INTPART(STKINDI('991037','净流入.净额_万元'))*100+29;
R[30]:=INTPART(STKINDI('991135','净流入.净额_万元'))*100+30;
R[31]:=INTPART(STKINDI('991136','净流入.净额_万元'))*100+31;
R[32]:=INTPART(STKINDI('991255','净流入.净额_万元'))*100+32;
R[33]:=INTPART(STKINDI('993072','净流入.净额_万元'))*100+33;
R[34]:=INTPART(STKINDI('993075','净流入.净额_万元'))*100+34;
R[35]:=INTPART(STKINDI('993091','净流入.净额_万元'))*100+35;
R[37]:=INTPART(STKINDI('993120','净流入.净额_万元'))*100 |