九毛八公式指标
公式模块:
a0:=BARSCOUNT(c);
a1:=SYSPARAM(1);
a2:=SYSPARAM(2);
a3:=SYSPARAM(3);
a4:=SYSPARAM(4);
a5:=SYSPARAM(5);
nn0:=a3-a2;
nn:=a0-a2;
WXS:=ABS(LOG(MINDIFF)),LINETHICK;
hh1:=(a4-a5)/8;
M:=IF(A1=A3,60,A3-A1);
p:=a3;
np:=IF(p>a1,p-a1,p-a2);
ws:=BARPOS;
ws1:=IF(ws<m,ws,m);
FGX:=BARPOS=a3;
FGS:=BARPOS=a1;
h1:=HHV(HIGH,ws1);l1:=LLV(LOW,ws1);
hp:=h1[p];
lp:=l1[p];
hlpx:=(hp-lp);
分割上限:=hp,COLORCC8C33,LINETHICK;
drawsl(FGX,lp,0,np-1,1),Color5D7766;
DRAWNUMBER(FGS,lp,lp,WXS),SHIFT13,ALIGN1,color6633cc;
drawsl(FGX,lp+hlpx*0.382,0,np-1,1),POINTDOT,Color5D7766;
DRAWNUMBER(FGS,lp+hlpx*0.382,lp+hlpx*0.382,WXS),SHIFT13,ALIGN1,color6677cc;
drawsl(FGX,lp+hlpx*0.500,0,np-1,1),POINTDOT,,Color5D7766;
DRAWNUMBER(FGS,lp+hlpx*0.500,lp+hlpx*0.500,WXS),SHIFT13,ALIGN1,color6655cc;
drawsl(FGX,lp+hlpx*0.618,0,np-1,1),POINTDOT,,Color5D7766;
DRAWNUMBER(FGS,lp+hlpx*0.618,lp+hlpx*0.618,WXS),SHIFT13,ALIGN1,color6633cc;
drawsl(FGX,hp,0,np-1,1),,Color5D7766;
DRAWNUMBER(FGS,hp,hp,WXS),SHIFT13,ALIGN1,color6622cc;
即在此基本上,使光标移到哪里,便可测得HP至LP两点,即最高点至最低点的时间周期.谢谢.
hhp:=hhvbars(h,ws1);hhp:=hhp[p];
llp:=llvbars(l,ws1);llp:=llp[p];
高低周期:abs(hhp-llp) linethick;