龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2018-12-24 14:51

大智慧0分时组合T指标源码 (很实用公式源码)[大智慧公式]

[code]
MA4:MA(CLOSE,4),PRECIS2;
MA4:="MAB.MA4#day";
MA4P:=(MA4-DYNAINFO(3))/DYNAINFO(3)*100;
zt:=1.1*DYNAINFO(3);
dt:=0.9*DYNAINFO(3);
MA4S:=MA4>dt and MA4<zt;
if(MA4S,MA4,DYNAINFO(7)),DOTLINE,colorwhite;
DRAWTEXT(barstatus=2 and DATATYPE=1 ,DYNAINFO(7),'
'+NUMTOSTRN(100*DYNAINFO(14),1)+'%' ),LINETHICK1,ALIGN0,VALIGN1,colorwhite;
DRAWTEXT(barstatus=2,MA4,'4日: '),LINETHICK2,ALIGN0,VALIGN0,colorwhite;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,DOTLINE,COLOR00DD00;
支撑:L1+P1*0.5/8,DOTLINE,COLOR00DD00;
zz:=filter(count(longcross(支撑,c,1),0)>=2,300) ;
ff:=filter(count(longcross(c,阻力,1),0)>=2,300) ;
DRAWTEXT(ff,c,'卖'),Color0000FF;
DRAWTEXT(zz,c,'买'),Color00FFFF;
[/code]

龙听 发表于 2018-12-24 14:51

分时大单公式源码:[code]
variable:DDX=0;
DDX:(ordervol(1,2)-ordervol(2,2))/capital*100,colorstICK,LINETHICK2;
DDX累积:SUM(DDX,0);
DRAWTEXTabs(0,0,'大单动向');
[/code]

龙听 发表于 2018-12-24 14:51

分时小单公式源码:[code]
variable:DDXx=0;
DDXx:(ordervol(1,0)-(ordervol(1,3)+ordervol(1,2)+ordervol(1,1))-(ordervol(2,0)-(ordervol(2,3)+ordervol(2,2)+ordervol(2,1))))/capital*100,colorstICK,LINETHICK1;
DDXx累积:SUM(DDXx,0);
DRAWTEXTabs(0,0,'小单动向');
[/code]

页: [1]