想請問如果下列語法是在看過去十年來當月上漲大於1%的次數多寡有哪些個股。那如果現在我想把下列的語法更改為"當季"有哪些個股上漲>1%,m1[x]=(close[12*x-1]-close[12*x])/close[12*x] 這個語法不知道怎麼做更動才能變為當季呢?
先謝謝了
array:m1[10](0);
variable:x(0),count(0);
for x=1 to 10
begin
m1[x]=(close[12*x-1]-close[12*x])/close[12*x];
end;
count=0;
for x=1 to 10
begin
if m1[x]>0.01
then count=count+1;
end;
if count>=1 and close>5
and average(volume,20)>10000
then ret=1;
outputfield(1,count,0,"符合的次數");
12 評論