關於限制一日虧損的語法 - 財經
By Mia
at 2010-02-22T14:50
at 2010-02-22T14:50
Table of Contents
這是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;
請問這樣寫哪裡有錯嗎??
--
Tags:
財經
All Comments
By Elvira
at 2010-02-26T04:49
at 2010-02-26T04:49
Related Posts
請問各位的家人對交易這件事支持嗎?
By Gilbert
at 2010-02-20T14:08
at 2010-02-20T14:08
請問各位的家人對交易這件事支持嗎?
By Kumar
at 2010-02-20T14:04
at 2010-02-20T14:04
感謝各位大大的意見
By Una
at 2010-02-19T22:14
at 2010-02-19T22:14
請問各位的家人對交易這件事支持嗎?
By Edith
at 2010-02-19T19:31
at 2010-02-19T19:31
請問各位的家人對交易這件事支持嗎?
By Ethan
at 2010-02-19T14:46
at 2010-02-19T14:46