ajb:=IF(capital>50000000,capital*60/100,IF(capital>20000000,capital*33/100,IF(capital>15000000,capital*20/100,IF(capital<100000,capital*6/100,capital*12/100))));
A:=SUMBARS(V ,(CAPITAL-AJB));{累计换手=100%的周期}
AJ1:=(COST(85)+COST(15))/2;AJ2:=(COST(75)+COST(25))/2;AJ3:=(COST(65)+COST(35))/2;AJ4:=(COST(55)+COST(45))/2;AJ5:=(COST(95)+COST(5))/2;
AJ:=(AJ1+AJ2+AJ3+AJ4+AJ5)/5;
bJ1:=(COST(90)+COST(10))/2;bJ2:=(COST(80)+COST(20))/2;bJ3:=(COST(70)+COST(30))/2;bJ4:=(COST(60)+COST(40))/2;bJ5:=(COST(50));bj6:=(COST(100)+COST(0))/2;
BJ:=(BJ1+BJ2+BJ3+BJ4+BJ5+Bj6)/6;
主力成本:ma((AJ+BJ)/2,A),COLORRED,LINETHICK2;
底仓成本:主力成本*0.809,COLORAAAA00;
运作成本:主力成本*1.191,COLORWHITE;
魔本:主力成本*0.618,COLORGRAY;
成本中枢:(运作成本+魔本)/2;
202108211125.jpg
|