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;{求的启动点的价位}
DRAWTEXTAbs(5,5,' '),linethick1,COLOR00EEff;
e:=llv(l,250)=l;{一年中最低价的位置}
e1:=BARSLAST(e);{求得一年中最低价的位置到现在的周期}
ok1:=cross(c,启庄价) and e1>=40 ;{得到启动点};
sum(ok1,5)>0 and c>启庄价 and v>1.8*ma(v,10) and SUM(V/CAPITAL*100,5)>8;