九毛八公式指标
TC1:=IF(H=HHV(H,8*UR),H,DRAWNULL); TC2:=CONST(BARSLAST(TC1=H))+1; UPPER:=CONST(IF(TC2=1,H,REF(H,TC2-1))); BC1:=IF(L=LLV(L,8*LR),L,DRAWNULL); BC2:=CONST(BARSLAST(BC1=L))+1; LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1))); LP:=CURRBARSCOUNT<=BC2 AND L=LOWER; HP:=CURRBARSCOUNT<=TC2 AND H=UPPER; STICKLINE(IF(BC2>TC2,HP,LP),LOWER,UPPER,0,0),COLOR628962; STICKLINE(IF(BC2>TC2,LP,HP),LOWER,UPPER,0,0),COLOR628962; NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2)); LR1:=FORCAST(C,NOD+1); NP:IF(CURRBARSCOUNT<=MAX(BC2,TC2),CONST(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN(TC2,BC2)-1))),DRAWNULL),POINTDOT,COLOR93BDA8;{近点} LR2:=SLOPE(C,NOD+1); LR3:=CONST(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1))); FP:NP-LR3*(NOD),POINTDOT,COLOR93BDA8; EQU:(NP+FP)/2,POINTDOT,COLOR93BDA8; AD:=ABS(NP-FP); DBL:=BARSLAST(BC1!=DRAWNULL)+1; DBH:=BARSLAST(TC1!=DRAWNULL)+1; BSP:=IF(BC2>TC2,DBL,DBH)-1; LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP); AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND H>LRL,H,LRL); AT2:=HHV(AT1-LRL,MAX(BC2,TC2)); AT3:=CONST(BARSLAST(AT1-LRL=AT2)); AT4:=CONST(IF(AT3=0,H,REF(H,AT3))); AT5:=CONST(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3))); ATL:=LRL+AT5; UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND L
公式模块:
ADD:=SUMBARS(V ,CAPITAL*1);
A2:=SUM(COST(20),ADD)/ADD; A1:=SUM(COST(10),ADD)/ADD; A3D:=SUM(COST(30),ADD)/ADD; A4D:=SUM(COST(40),ADD)/ADD; A5D:=SUM(COST(50),ADD)/ADD; E:=LLV(L,250)=L; E1:=BArslAST(E); 庄家成本:=(5*A1+4*A2+3*A3D+2*A4D+A5D)/15; XG:crOSS(C,庄家成本) AND E1>=40,COLOR00FFFF;