求編寫
作者:金字塔 來源:cxh99.com 發(fā)布時(shí)間:2021年07月03日
-
咨詢內(nèi)容:
BD:=(CLOSE/MA(CLOSE,28)-1)*100;
STICKLINE (BD>=0, BD,0,1,0),COLORRED;
STICKLINE (BD<=0, 0,BD,1,0),COLORGREEN;
出現(xiàn)紅柱且收盤價(jià)創(chuàng)出20周期新高 開多
出現(xiàn)綠色平空?
出現(xiàn)綠色且收盤創(chuàng)20周期新低 ?開空?
出現(xiàn)紅色平空
?
-
金字塔客服:
?
BD:=(CLOSE/MA(CLOSE,28)-1)*100;
STICKLINE (BD>=0, BD,0,1,0),COLORRED;
STICKLINE (BD<=0, 0,BD,1,0),COLORGREEN;
kd:bd>0 and c=hhv(c,20);//開多條件
kk:bd<0 and c=llv(l,20);//平多條件
pd:bd<0;
pk:bd>0;
sell(pd and holding>0,holding,market);
buy(holding=0 and kd,1,market);
sellshort(holding<0 and pk,holding,market);
buyshort(holding=0 and kk,1,market);