不含未来函数,严格按照指示操作,选出后逢低介入,剩下的只有赚钱,仅供参考 盈亏自负
GP66:=C-REF(C,1);
GP77:=100*EMA(EMA(GP66,6),6)/EMA(EMA(ABS(GP66),6),6);
SHORT:=7; LONG:=19;
RMA:=EMA(CLOSE,SHORT);
NMA:=EMA(CLOSE,LONG);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),0);
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),0);
买进:(LLV(GP77,2)=LLV(GP77,7) AND COUNT(GP77<0,2) AND CROSS(GP77,MA(GP77,2))) AND REF(DOWN,1),REF(DOWN,1);
|