請(qǐng)教編寫(xiě),平倉(cāng)問(wèn)題
作者:金字塔 來(lái)源:cxh99.com 發(fā)布時(shí)間:2017年01月08日
- 咨詢內(nèi)容:
如何編寫(xiě),平倉(cāng):5日線上穿10日,并且5日線小于20 日線 或40 日線 請(qǐng)教源碼
- 金字塔客服:
IF HOLDING<0 and CROSS(MA5,MA10) THEN
SELLSHORT(1,HOLDING,LIMITR,CLOSE);
這個(gè)再加上什么?或者用其它什么代碼比較好
- 用戶回復(fù):
5日線上穿10日,并且5日線小于20 日線 或40 日線
if cross(ma(c,5),ma(c,10)) and ((ma(c,5)<ma(c,20) ) or (ma(c,5)<ma(c,40))) then sell(1,0,,thisclose);
- 網(wǎng)友回復(fù):
用thisclose 和close區(qū)別不大吧
- 網(wǎng)友回復(fù):
信號(hào)上來(lái)說(shuō)是同一個(gè)價(jià)格,實(shí)際交易時(shí)thisclose為對(duì)手價(jià),limitr, close為限價(jià)