david 發表於 12-9-20 14:18

使用TS2000i 當使用insert strategy後一直出現如附圖

使用TS2000i 當使用insert strategy後一直出現如附圖
不知如何解?
感謝.感謝.

tony4885 發表於 12-9-20 16:12

試試看insert內建的indicator

liuchinlang 發表於 12-9-20 19:02

重新安裝看能否解決!

kennychen65 發表於 12-9-24 15:07


我想樓主應該有裝了Microsoft Access,所以ODBC和TS有所相衝突。試試看先移除Access,如果沒有Access,可以去新增移除那裡看看,有沒有和ODBC相關的程式。

david 發表於 12-9-27 13:45

謝謝大家的回復
1.重灌ts2000i可以解決.
2.之前會發生的原因是Alerts11.mdb檔案大小達1000MB.會出現如附上圖.
3.新問題為什麼才跑1天的實際測試Alerts11.mdb檔案大小達400MB.以下為strategy的程式請問那理有寫錯
為什麼Alerts11.mdb檔案大小達400MB? 謝謝

inputs: bs(10), moveEarn(10);

vars: tempHigh(0), tempLow(0), tempOpen(0), mc(0), loseCount(0);

if date <> date then begin
        tempHigh = 0;
        tempLow = 99999;
        tempOpen = opend(0);
        if PositionProfit(1) < 0 then loseCount = -1;
        if PositionProfit(1) >= 0 then loseCount = 0;
end;

mc = marketposition * currentcontracts;

if mc <> mc then begin
        tempHigh = 0;
        tempLow = 99999;
end;

if mc <> mc and PositionProfit(1) < 0 then loseCount = loseCount + 1;

if mc > 0 and high > tempHigh then tempHigh = high;
if mc < 0 and low < tempLow then tempLow = low;

if losecount < 2 and mc = 0 and time < 1329 then begin
        buy ("b1") next bar at tempOpen + bs stop;
        sell("s1") next bar at tempOpen - bs stop;
end;

if loseCount < 2 and mc > 0 and time < 1329 then begin
        sell("s2") next bar at tempHigh - 10 stop;
end;
if loseCount < 2 and mc < 0 and time < 1329 then begin
        buy ("b2") next bar at tempLow + 10 stop;
end;

if loseCount = 2 and mc > 0 and time < 1329 and tempHigh - 19 < entryprice(0) then begin
        exitlong ("ex-b") next bar at tempHigh - 10 stop;
end;
if loseCount = 2 and mc > 0 and time < 1329 and tempHigh - 19 >= entryprice(0) then begin
        sell("s3") next bar at tempHigh - 10 stop;
end;

if loseCount = 2 and mc < 0 and time < 1329 and tempLow + 19 > entryprice(0) then begin
        exitshort ("ex-s") next bar at tempLow + 10 stop;
end;
if loseCount = 2 and mc < 0 and time < 1329 and tempLow + 19 <= entryprice(0) then begin
        buy ("b3") next bar at tempLow + 10 stop;
end;


if time = 1329 and mc <> 0 then begin
        exitlong ("b-end") next bar at market;
        exitshort("s-end") next bar at market;
end;
頁: [1]
查看完整版本: 使用TS2000i 當使用insert strategy後一直出現如附圖