改模式問(wèn)題 [金字塔]
- 咨詢(xún)內(nèi)容:
hld[n]:=0;for i=n+1 to DATACOUNT do beginIF FpC[i]>mhn[i-1] then hld[i]:=1; else IF FpC[i]<mln[i-1] then hld[i]:=-1;elsehld[i]:=hld[i-1];end;轉(zhuǎn)換為程序化交易,逐K模式。該如何改?
- 金字塔客服:
還有這個(gè)改:fc:=c;fo:=o;cc:0*c,LINETHICK0;oo:0*c,LINETHICK0;t1:=0*c;t2:=0*c;for i=1 to datacount do begin if i=1 and fc[i]>fo[i] then cc[i]:=fc[i]; oo[i]:=fc[i]; if i=1 and fc[i]<fo[i] then cc[i]:=fc[i]; oo[i]:=fc[i]; if i>1 then cc[i]:=cc[i-1]; oo[i]:=oo[i-1]; if i>1 and fc[i]>cc[i]*(1+n/100) then begin cc[i]:=cc[i-1]*(1+n/100); oo[i]:=cc[i-1];end; if i>1 and fc[i]<oo[i]/(1+n/100) then begin oo[i]:=oo[i-1]/(1+n/100); cc[i]:=oo[i-1];end; if oo[i]=oo[i-1] then t1[i]:=t1[i-1]+1; if cc[i]=cc[i-1] then t2[i]:=t2[i-1]+1;end;o1:=ref(oo,t1+1);c1:=ref(cc,t2+1);
- 用戶(hù)回復(fù):
請(qǐng)?zhí)看a
- 網(wǎng)友回復(fù):
第2個(gè)就是全部代碼
- 網(wǎng)友回復(fù):
此主題相關(guān)圖片如下:3.png
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容