在HTS上RUN的指標程式碼。
=============================
Parameter:LENGTH(180);
VARS:I(0),高(0),低(0);
FOR I=0 TO LENGTH-1
IF V[I]=HIGHEST(V,LENGTH) THEN
低 = L[I]
高 = H[I]
END IF
END FOR
DRAW1(低[1],"大量低")
DRAW2(高[1],"大量高")
=============================放在5分鐘線上的效果:
在 MulriCharts 的版本:
Input: Length(180) ;
Vars: step(0), BigvolHigh(0), BigvolLow(0);
FOR step=0 to Length -1 begin
if ticks[step]=Highest(ticks, Length) then begin
BigvolHigh = L[step];
BigvolLow = H[step];
end;
END;
plot1(BigvolHigh,"BigvolHigh");
plot2(BigvolLow,"BigvolLow");