以下是通达信今买明卖公式源码和截图
通达信今买明卖选股公式源码:
A1:=MA(C,5) MA(C,10)ANDMA(C,10) MA(C,20)ANDMA(C,20) MA(C,60);
A2:=C/REF(C,1) =HHV(C/REF(C,1),10);
A3:=MA(C,5) REF(MA(C,5),1)ANDMA(C,10) REF(MA(C,10),1);
A4:=MA(C,20) REF(MA(C,20),1)ANDMA(C,60) REF(MA(C,60),1);
A5:=V REF(V,1)ANDREF(V,1) REF(V,2)ANDH/C 1.01ANDREF(C O,1);
A6:=(3*CLOSE+OPEN+LOW+HIGH)/6;
A7:=(20*A6+19*REF(A6,1)+18*REF(A6,2)+17*REF(A6,3)+16*REF(A6,4)
+15*REF(A6,5)+14*REF(A6,6)+13*REF(A6,7)+12*REF(A6,8)+11*REF(A6,9)
+10*REF(A6,10)+9*REF(A6,11)+8*REF(A6,12)+7*REF(A6,13)+6*REF(A6,14)
+5*REF(A6,15)+4*REF(A6,16)+3*REF(A6,17)+2*REF(A6,18)+REF(A6,20))/210;
A8:=BARSLAST(CROSS(A7,MA(A7,5)))
A9:A1ANDA2ANDA3ANDA4ANDA5ANDA8,COLORYELLOW;
MA2:=EMA(C,2);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
MA34:=EMA(C,34);
MA55:=EMA(C,55);
MA120:=EMA(C,89);
YCXN:=MA5 =REF(MA5,1);
H1:=MAX(MAX(MA5,MA13),MA34);
L1:=MIN(MIN(MA5,MA13),MA34);
HHV(HIGH,10)/LLV(LOW,10) 1.25
ANDREF(CLOSE,1) (LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85)
ANDCLOSE OPENANDDYNAINFO(4) 0
ANDCLOSE =HHV(HIGH,10)
ANDH1 CANDREF(C,1) L1ANDYCXNANDMA2 REF(MA2,1),COLORMAGENTA;
a:=SUMBARS(v,CAPITAL*1);{累计换手=100%的周期}
a1:=sum(COst(2),a)/a;
a2:=sum(COST(4),a)/a;
a3:=sum(COST(6),a)/a;
a4:=sum(COST(8),a)/a;
a5:=sum(COST(10),a)/a;
a6:=sum(COST(12),a)/a;
a7:=sum(COST(14),a)/a;
a8:=sum(COST(16),a)/a;
a9:=sum(COST(18),a)/a;
a10:=sum(COST(20),a)/a;
a11:=sum(COST(22),a)/a;
a12:=sum(COST(24),a)/a;
a13:=sum(COST(26),a)/a;
a14:=sum(COST(28),a)/a;
a15:=sum(COST(30),a)/a;
a16:=sum(COST(32),a)/a;
a17:=sum(COST(34),a)/a;
a18:=sum(COST(36),a)/a;
a19:=sum(COST(38),a)/a;
a20:=sum(COST(40),a)/a;
a21:=sum(COST(42),a)/a;
a22:=sum(COST(44),a)/a;
a23:=sum(COST(46),a)/a;
a24:=sum(COST(48),a)/a;
a25:=sum(COST(50),a)/a;
e:=llv(l,250)=l;{一年中最低价的位置}
e1:=BArslAST(e);{求得一年中最低价的位置到现在的周期}
启庄价:=(1.676*a1+1.666*a2+1.666*a3+1.666*a4+1.666*a5+1.333*a6+1.333*a7+1.333*a8+1.333*a9
+1.333*a10+1*a11+1*a12+1*a13+1*a14+1*a15+0.666*a16+0.666*a17+0.666*a18+0.666*a19+0.666*a20
+0.333*a21+0.333*a22+0.333*a23+0.333*a24+0.333*a25)/25;{求的启动点的价位}
e:=llv(l,250)=l;{一年中最低价的位置}
e1:=BARSLAST(e);{求得一年中最低价的位置到现在的周期}
ok1:=cross(c,启庄价)ande1 {得到启动点};
sum(ok1,5) 0andc 启庄价andv 1.8*ma(v,10)andSUM(V/CAPITAL*100,5)
通达信今买明卖选股公式截图