連虧次數(shù) [金字塔]
- 咨詢內(nèi)容:
老師好,如果 求的連虧次數(shù)的次數(shù),,就是連虧5次,,一共出現(xiàn)了幾次,連虧3次,一共出現(xiàn) 幾次,測試報告里沒有呀
- 金字塔客服:
沒有這樣的數(shù)據(jù)的
- 用戶回復(fù):
是軟件里沒有函數(shù),還是寫不出來 ,,,在3年內(nèi),,連續(xù)虧損3次,4次,5次,,,一共出現(xiàn)了幾次,
- 網(wǎng)友回復(fù):
沒有這樣的函數(shù)的,
寫法參考:
variable:n=0;
variable:ss3=0,ss4=0,ss5=0;
if 平多條件 and holding>0 then begin
sell.......;
if numprofit(1)>=0 then n:=0;
if numprofit(1)<0 then n:=n+1;
if n=3 then ss3:=ss3+1;
if n=4 then ss4:=ss4+1;
if n=5 then ss5:=ss5+1
end
if 平空條件 and holding<0 then begin
seshortll.......;
if numprofit(1)>=0 then n:=0;
if numprofit(1)<0 then n:=n+1;
if n=3 then ss3:=ss3+1;
if n=4 then ss4:=ss4+1;
if n=5 then ss5:=ss5+1
end
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容