资源描述:
《极品通达信指标公式源码.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、.公式1(未来函数)代码N1:=5;N2:=10;N3:=20;N4:=30;P:=2;M:=20;N:=250;M1:=55;W:=21;P3:=500;N9:=90;HR:=HHV(HIGH,M1);HRY:=LLV(LOW,M1);HRY11:=HR*HRY;HRY33:SQRT(HRY11),COLORGREEN,LINETHICK2;IF(C>HRY33ANDHRY33>=REF(HRY33,1),HRY33,DRAWNULL),LINETHICK2,COLORRED;MA1:EMA(CLOSE,N1);MA2:EMA(CLOSE,N2);MA3:E
2、MA(CLOSE,N3),COLOR00FFFF;MA4:EMA(CLOSE,N4),LINETHICK2;TJ1:=CROSS(MA1,MA2)ANDC>OANDC>REF(C,1)ANDC/REF(C,1)>=1.018ORCROSS(MA1,MA4)ANDC>OANDC>REF(C,1)ANDC/REF(C,1)>=1.018ORCROSS(MA2,MA3)ANDC>OANDC>REF(C,1)ANDC/REF(C,1)>=1.018ORCROSS(MA1,MA3)ANDC>OANDC>REF(C,1)ANDC/REF(C,1)>=1.018;TJ2:=
3、(MAX(MA1,MAX(MA2,MA3))-MIN(MA1,MIN(MA2,MA3)))/MIN(MA1,MIN(MA2,MA3))*100<=P;XG:=TJ1ANDTJ2;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);做多:=IF(K>DANDMACD>0ANDV>1,2,0),COLORRED;做
4、空:=IF(K1,-2,0),COLOR00FF00;强洗:=IF(MACD>0ANDK1,1,0),COLOR0099FF;弱升:=IF(MACD<0ANDK>DANDV>1,-1,0),COLORFFFF00;STICKLINE(做多ANDC>=O,C,O,3,1),COLORRED;STICKLINE(做多ANDC5、FF00FF;STICKLINE(做多ANDC>=O,C,O,3,1),COLOR0000FF;{STICKLINE(做多ANDC>=O,C,O,1.5,0),COLOR0000DD;STICKLINE(做多ANDC>=O,C,O,0.4,0),COLOR0000FF;}STICKLINE(做空ANDC>=O,L,H,0.1,0),COLOR0000FF;STICKLINE(做空ANDC>=O,C,O,3,1),COLOR00FF00;{STICKLINE(做空ANDC6、,0.3,0),COLOR00FF00;..STICKLINE(做空ANDC=O,L,H,0.1,0),COLOR0000FF;STICKLINE(强洗ANDC>=O,C,O,3,1),COLORFFFFFF;STICKLINE(强洗ANDC7、ANDC>=O,C,O,3,1),COLOR00FFFF;STICKLINE(弱升ANDCREF(ZIG(3,5),1)ANDREF(ZIG(3,5),1)<=REF(
8、ZIG(3,5),2)ANDREF(Z