求教 [金字塔]
- 咨詢內(nèi)容:
ma4:stkindi('',ma(close,42),0,11);
sell(c<ma4 and holding>0,0,market);
buyshort(close<ma4 and holding=0,1,market);sellshort(c>ma4 and holding<0,0,market);
buy(close>ma4 and holding=0,1,market);以上程序問題出在哪?
- 金字塔客服:
平倉數(shù)量上怎么會(huì)是 0 .
- 用戶回復(fù):
0不就代表全部嗎?
- 網(wǎng)友回復(fù):
ma4:stkindi('','ma.MA1',0,11);//加上一對(duì)單引號(hào),然后在MA公式里面把MA1的參數(shù)改成42
sell(c<ma4 and holding>0,0,market);
buyshort(close<ma4 and holding=0,1,market);sellshort(c>ma4 and holding<0,0,market);
[此貼子已經(jīng)被作者于2011-8-9 10:31:39編輯過]
buy(close>ma4 and holding=0,1,market); - 網(wǎng)友回復(fù): 謝謝
相關(guān)文章
-
沒有相關(guān)內(nèi)容