var: i(0); array: _switch1[](false); if symbolType=2 then settotalBar(270) else if symbolType=3 then settotalBar(1140); if symbolType=2 then begin if date<>date[1] then begin array_SetMaxIndex(_switch1,5); for i=1 to 5 begin _switch1[i]=false; end; end; _switch1[1]=true; end;
指標腳本如上,用在股票的1分K上都會顯示存取陣列超過範圍
else if symbolType=3 then settotalBar(1140);
但如果把上面這行刪掉就不會報錯,想請問是什麼原因
4 評論