variable : x(0) , y(9999);
variable : str("");
array : sl_array[](0) , sl_array_sum[](0);
array_SetMaxIndex(sl_array , 1);
array_SetMaxIndex(sl_array_sum , 1);
for x = 1 to y
begin
str = text(numtoStr(sl_array[x] , 0) , ".TW" );
sl_array_sum[x] = ema(getsymbolField("str" , "close" , "D") , 5);
end;
======================================================
編譯後顯示(不合法的商品ID"str")
測試時,直接將"str"改成"2330.TW"即可以編譯.
1 評論