[原創(chuàng)] [金字塔]
- 咨詢內(nèi)容:
用2分鐘的周期、當(dāng)某根K線的波動(dòng)大于10個(gè)點(diǎn)時(shí)開倉(cāng),比如:1、某根K線的最新價(jià)大于開盤價(jià)10個(gè)跳、開多,設(shè)置10個(gè)點(diǎn)的止損、盈利3個(gè)點(diǎn)止盈。 2、某根K線的最新價(jià)小于開盤價(jià)10個(gè)跳、開空,設(shè)置10個(gè)點(diǎn)的止損、盈利3個(gè)點(diǎn)止盈。 謝謝
- 金字塔客服:
1、某根K線的最新價(jià)大于開盤價(jià)10個(gè)跳、開多,設(shè)置10個(gè)點(diǎn)的止損、盈利3個(gè)點(diǎn)止盈。
2、某根K線的最新價(jià)小于開盤價(jià)10個(gè)跳、開空,設(shè)置10個(gè)點(diǎn)的止損、盈利3個(gè)點(diǎn)止盈。
if c>o+10*mindiff then buy(holding=0,1,marketr);
if holding>0 and c<enterprice-10 then sell(1,0,marketr);
if holding>0 and c>enterprice+3 then sell(1,0,marketr);
if c<o-10*mindiff then buyshort(holding=0,1,marketr);
if holding<0 and c>enterprice+10 then sellshort(1,0,marketr);
if holding<0 and c<enterprice-3 then sellshort(1,0,marketr);
- 用戶回復(fù):
把收盤價(jià)改成最新價(jià)DYNAINFO(7),這樣可以嗎?
if DYNAINFO(7)>o+10*mindiff then buy(holding=0,1,MARKET);
if holding>0 and DYNAINFO(7)<enterprice-10 then sell(1,0,MARKET);if holding>0 and DYNAINFO(7)>enterprice+3 then sell(1,0,MARKET); if DYNAINFO(7)<o-10*mindiff then buyshort(holding=0,1,MARKET);if holding<0 and DYNAINFO(7)>enterprice+10 then sellshort(1,0,MARKET);if holding<0 and DYNAINFO(7)<enterprice-3 then sellshort(1,0,MARKET); - 網(wǎng)友回復(fù):
不行,動(dòng)態(tài)行情函數(shù)不能用在圖表交易上
- 網(wǎng)友回復(fù):
那這樣表的只能用收盤價(jià)來(lái)寫嗎?是否還有其他表達(dá)方式?
還是要把他改成后臺(tái)的?改后臺(tái)的又應(yīng)該怎么改呢?
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容