 
等级: 超级版主
- 注册:
- 2021-5-18
- 曾用名:
|
ma400:ma(c,400);
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26),NOAXIS;
DEA : EMA(DIFF,9);
MACD1 : 2*(DIFF-DEA);
if c> ma400 and cross(DIFF,DEA) AND DIFF >0 then
begin
sellshort(1,holding,marketr);
buy(holding=0,1,marketr);
end
if c< ma400 and cross(DEA,DIFF) AND DIFF <0 then
begin
sell(1,holding,marketr);
buyshort(holding=0,1,marketr);
END
if (close < hhv(close,enterbars)-30*mindiff ) and holding>0 then sell(1,holding,marketr);
if ( close > hhv(close,enterbars)+30*mindiff ) and holding<0 then sellshort(1,holding,marketr);
这个线无法绘制,仓位平了就没了 |
|