幫寫兩行代碼 [金字塔]
- 咨詢內(nèi)容:
請幫寫兩行代碼:
統(tǒng)計圖表上開多倉一共有多少次,統(tǒng)計圖表上開空倉一共有多少次
統(tǒng)計圖片上平多倉一共有多少次,統(tǒng)計圖表上平空倉一共有多少次
- 金字塔客服:
variable:n=0,m=0,j=0,k=0;
if holding=0 and 開多條件 then begin
buy;
n:=n+1;
end
if holding=0 and 開空條件 then begin
buyshort;
m:=m+1;
end
if holding>0 and 平多條件 then begin
sell;
j:=j+1;
end
if holding<0 and 平空條件 then begin
sellshort;
k:=k+1;
end
n是開多次數(shù),m是開空次數(shù),j是平多次數(shù),k是平空次數(shù)
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容