用numprofit來獲取交易的情況
numprofit(1)這個是上一次交易盈利情況
numprofit(2)這是上二次
....
numprofit(20)這個是前第20次
具體代碼如下,把中間省略的自行補充:
n:=0;
if numprofit(1)>0 then n:=n+1;
if numprofit(2)>0 then n:=n+1;
......
if numprofit(20)>0 then n:=n+1;
最后勝率:n/20;
[此貼子已經被作者于2014/8/7 13:47:51編輯過]