這是ts的easylanguage
vars: dayLoss(50);
vars: mc(0), entryCount(1);
if date <> date[1] then begin
dayLoss = 50;
entryCount = 1;
end;
mc = marketposition * currentcontracts;
if mc[1] = 1 and mc = 0 then
dayLoss = dayLoss + exitprice(0) - entryprice(0);
if mc[1] = -1 and mc = 0 then
dayLoss = dayLoss + entryprice(0) - exitprice(0);
if dayLoss <= 0 then
entryCount = 0;
請問這樣寫哪裡有錯嗎??
--
All Comments