請(qǐng)問怎么判斷此刻之前已經(jīng)出現(xiàn)多少筆連虧(連盈)? [金字塔]
- 咨詢內(nèi)容:
請(qǐng)問怎么此刻判斷之前已經(jīng)出現(xiàn)多少筆連虧(連贏)?
非常感謝
- 金字塔客服:
交易策略是多空反手還是其他的不限定反手的?
- 用戶回復(fù):
不是來回反手的
- 網(wǎng)友回復(fù):
variable:n=0,m=0;
中間寫上自己的交易代碼
if numprofit(1)<0 and numprofit(2)<0 then n:=n+1;
if numprofit(1)>0 and numprofit(2)>0 then m:=m+1;
if numprofit(1)>0 and numprofit(2)<0 or numprofit(1)<0 and numprofit(2)>0 then begin
n:=0;
m:=0;
end
n是連虧次數(shù),m是連贏次數(shù)
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容