以下是自编的振幅公式源码和截图
自编的振幅公式源码:
A:=(H-L)/((H+L)/2);
B:=ABS((C-O)/((O+C)/2));
D:=A =0.03ANDB =0.02;
E:=COUNT(D,5);
G:=E
AA:=(SUM(H,15)+SUM(C,15))-(SUM(L,15)+SUM(O,15));
BB:=AA/REF(C,15);
M:=BB
GANDM;
TRR:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
TRRR:=TRR/MA(C,10);
MTR:MA(TRRR,5),LINETHICK2,COLORRED;
线:maX(MA(C,60),MA(C,120)),COLORWHITE;
DD:=(趋势线-L)/L;
BB:=(C-趋势线)/趋势线;
stICKLINE(DD =0.3,OPEN,CLOSE,8,0),COLORGREEN;
STICKLINE(DD =0.3,L,H,1,0),COLORGREEN;
DRAWICON(BB =0.3,L,15);
M:=(C+O+L)/3;
操盘线:MA(M,5),COLORMAGENTA;
振幅:(H-L)/L,COLORGREEN,NODRAW;
STICKLINE(振幅*100 =8ANDC O,O,C,8,0),COLORRED;
STICKLINE(振幅*100 =8ANDC O,L,H,1,0),COLORRED;
STICKLINE(振幅*100 =8ANDC O,O,C,8,0),COLORGREEN;
STICKLINE(振幅*100 =8ANDC O,L,H,1,0),COLORGREEN;
:=IF(REF(C,1)*1.1-C 0.01,1,0);
STICKLINE(涨停,OPEN,CLOSE,8,0),COLORMAGENTA;
自编的振幅公式截图