-- 作者:FireScript
-- 发布时间:2020/11/17 15:41:44
--
1h:(CALLSTOCK(\'\',vtCLOSE,5,0)-CALLSTOCK(\'\',vtOPEN,5,0))/(CALLSTOCK(\'\',vtHIGH,5,0)-CALLSTOCK(\'\',vtLOW,5,0));//一小时K的趋势度,下面几个是其他几个小时K的趋势度 2h:(CALLSTOCK(\'\',vtCLOSE,24,2)-CALLSTOCK(\'\',vtOPEN,24,2))/(CALLSTOCK(\'\',vtHIGH,24,2)-CALLSTOCK(\'\',vtLOW,24,2)); 4h:(CALLSTOCK(\'\',vtCLOSE,24,4)-CALLSTOCK(\'\',vtOPEN,24,4))/(CALLSTOCK(\'\',vtHIGH,24,4)-CALLSTOCK(\'\',vtLOW,24,4)); 6h:(CALLSTOCK(\'\',vtCLOSE,24,6)-CALLSTOCK(\'\',vtOPEN,24,6))/(CALLSTOCK(\'\',vtHIGH,24,6)-CALLSTOCK(\'\',vtLOW,24,6));
VARIABLE:X[4]:=0;//排序要用数组 X[1]:=1h; X[2]:=2h; X[3]:=4h; X[4]:=6h;
1h排名:HOD2(X,4,X[1]),LINETHICK0;//排名结果 2h排名:HOD2(X,4,X[2]),LINETHICK0; 4h排名:HOD2(X,4,X[3]),LINETHICK0; 6h排名:HOD2(X,4,X[4]),LINETHICK0;
|