资源描述:
《长线趋势空转多、守价跌破、守价突破】》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、飞狐大机构实战MACD指标公式【空头注意压力、长线趋势空转多、守价跌破、守价突破】LONG:=26;SHORT:=12;M:=9;DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIFF,M);MACD2:=2*(DIFF-DEA);VERTLINE(CLOSE<0ANDCROSS(DIFF,0)),color80;VERTLINE(CLOSE<0ANDCROSS(MACD2,0)),color80;VERTLINE(CLOSE<0ANDCROSS(0,DIFF)),color808080;V
2、ERTLINE(CLOSE<0ANDCROSS(0,MACD2)),color808080;DU0:=CROSS(DIFF,0);UD0:=CROSS(0,DIFF);TDU0:=BARSLAST(DU0);TUD0:=BARSLAST(UD0);DU3:=REF(DU0,1);UD3:=REF(UD0,1);TDU3:=BARSLAST(DU3);TUD3:=BARSLAST(UD3);UDGLINE:=IF(TDU33、LOSE,1)<=REF(UDGLINE,1)ANDCLOSE>UDGLINEANDTDU0=REF(UDGLINE,1)ANDCLOSERE
4、F(BARSLAST(JDU1),1);JDU3:=JDU1ANDREF(BARSLAST(JUD1),1)>REF(BARSLAST(JDU1),1);JUD3:=JUD1ANDREF(BARSLAST(JUD1),1)5、MACD2,0),1),HHV(HIGH,2),REF(HHV(HIGH,2),BARSLAST(REF(CROSS(MACD2,0),1)))));STICKLINE(MACD2>=0,0,MACD2,6,1),colorFF;STICKLINE(MACD2>=0ANDMACD2[REF(MACD2,1),0,MACD2,6,1),co]
6、lorFFFF00;DIF:DIFF,LINETHICK2,colorFF;MACD:DEA,colorFF0000;DEF:MACD2,LINETHICK0,colorFFFF00;STICKLINE(CLOSE>0,0,0,10,0),color808080;DEFUT:=BARSLAST(CROSS(MACD2,0));DEFDT:=BARSLAST(CROSS(0,MACD2));DEFUL:=IF(MACD2>=0,HHV(MACD2,DEFUT+1),REF(HHV(MACD2,DEFUT+1),DEFDT+1));DEFDL:
7、=IF(MACD2<0,LLV(MACD2,DEFDT+1),REF(LLV(MACD2,DEFDT+1),DEFUT+1));DEFU2L:=REF(DEFUL,DEFUT+1);DEFD2L:=REF(DEFDL,DEFDT+1);DRAWICON(LLV(MACD2,4)>0ANDMACD2[REF(MACD2,2)ANDREF(MACD2,2)>REF(MACD2,3),MACD2,5);DRAWICON(HHV(MACD2,4)<0ANDMACD2>REF(MACD2,1)A]
8、NDREF(MACD2,1)[ ]