[原創] [金字塔]
- 咨詢內容:
用2分鐘的周期、當某根K線的波動大于10個點時開倉,比如:1、某根K線的最新價大于開盤價10個跳、開多,設置10個點的止損、盈利3個點止盈。 2、某根K線的最新價小于開盤價10個跳、開空,設置10個點的止損、盈利3個點止盈。 謝謝
- 金字塔客服:
1、某根K線的最新價大于開盤價10個跳、開多,設置10個點的止損、盈利3個點止盈。
2、某根K線的最新價小于開盤價10個跳、開空,設置10個點的止損、盈利3個點止盈。
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);
- 用戶回復:
把收盤價改成最新價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); - 網友回復:
不行,動態行情函數不能用在圖表交易上
- 網友回復:
那這樣表的只能用收盤價來寫嗎?是否還有其他表達方式?
還是要把他改成后臺的?改后臺的又應該怎么改呢?
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容