INPUT:最近天(30,1,360);当前月:=FRACPART(ROUND(当前日期/100)/100)*100;
月:=MONTH;日:=DAY;
N:=if(sysparam(1)=datacount,最近天,datacount-sysparam(1)+1);
HH:=HHV(HIGH,N);
LL:=LLV(LOW,N);
VN:=N;
IF VN>DATACOUNT THEN
VN=DATACOUNT+1
hh:=v*100/capital;
aa:=(c-ref(c,1))*100/ref(c,1);
jj:=amount/100*v;
tt:=count(hh>=2.6 and aa>0 and c>=jj,91);
tt1:=count(hh>=2.6 and aa>0 and c>=jj,34);
tt2:=count(hh>=2.6 and aa>0 and c>=jj or aa
INPUT:N(5,1,100);
fc:=c;fo:=o;cc:0*c,PRECISION4,LINETHICK0;oo:0*c,PRECISION4,LINETHICK0;t1:=0*c;t2:=0*c;
for i=1 to datacount do begin
if i=1 and fc[i]>fo[i] then
cc[i]:=fc[i];
oo[i]:=fc[i];
if i=1 and fc[i]<fo[i]