我想寫一個指標看目前權值股100檔中收盤高於季線的家數
array:lead[100](0);
lead[1]=GetSymbolField("2330.tw","收盤價","D");//中間略
variable:i(0),count(0);
count=0;
for i=1 to 100 begin
if lead[i]>average(lead[i],60)
then
count=count+1;
end;
plot1(count);
不過最後畫出來指標只到2021/3就畫不下去了,設定更改指標計算範圍結果還是一樣,請問問題出在哪裡呢?

3 評論