资源描述:
《【股票指标公式下载】-【通达信】买卖警戒(头部、强势线、高抛线、警戒线、指导线)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、【通达信】买卖警戒(头部、强势线、高抛线、警戒线、指导线)-指标公式源码强势线:2,LINETHICK1,COLORF强势线F00FF;准强线:1,LINETHICK1,COLOR00FF00;UP:=(C>OORC>REF(C,1))ANDV>REF(V,1);AA:=COUNT(UP,3)=3;BB:=LLV(L,5)=LLV(L,120);CC:=C>MA(C,3);LLT:=AAANDBBANDCC;{头部}V1:=LLV(LOW,10);V2:=HHV(H,25);警戒线:2.9,LINETHICK1,COLOR00FFFF;高抛线:3.5,LINETHICK1,
2、COLOR0000FF;指导线:EMA((C-V1)/(V2-V1)*4,4);M5:=MA(指导线,5);低吸线:0.415,LINETHICK1,COLORWHITE;VAR2:=IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16)<=0.85ANDCLOSE/REF(CLOSE,1)>0.905ANDCLOSE/REF(CLOSE,1)<1.05ANDVOL/CAPITAL*100<5,50,0);VAR3:=(-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100;VAR4:=(-100
3、)*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100;VAR5:=(-100)*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100;VAR6:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;VAR7:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;VAR8:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;VAR9:=(VAR3+VAR4+V
4、AR5+VAR6+VAR7+VAR8)/6;VARA:=EMA(VAR9,3);VARB:=ABS(VAR6-VAR8);VARC:=(VAR9+VARB)/2;VARD:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;VARE:=VARD+VARC;VARF:=IF(VAR2>0ANDVARE<0,200,0);VAR10:=IF(VARC<0ANDCLOSE=LLV(CLOSE,5)ANDCLOSE/REF(CLOSE,1)>0.905ANDCLOSE/REF(CLOSE,1)<1.05ANDVOL/CAPITAL*100<5,-5
5、0,0);VAR11:=IF(VARE<0ANDVAR10=-50,100,0);VAR12:=MA(CLOSE,3);VAR13:=REF(CLOSE,2)*0.865;VAR14:=REF(CLOSE,13)*0.772;VAR15:=MIN(VAR13,VAR14);VAR16:=100*VOL/CAPITAL;VAR17:=MA(CLOSE,13);VAR18:=IF((CLOSE-VAR15)/CLOSE<0.03ANDSUM(VAR16,5)/5<1.8,1,0);VAR19:=IF(VAR18>0AND(VAR10<0ORVAR2>0),100,0);VAR1
6、A:=VAR19;VAR1B:=IF(VARF>0ANDVAR11>0ANDSUM(VOL/CAPITAL*100,5)/5<1ORVAR18>0ANDREF(CLOSE,1)/REF(CLOSE,2)>0.902OR(VARF>0ANDVAR11>0ANDSUM(VOL/CAPITAL*100,5)/5<1ORVAR18>0)AND(VAR10<0ORVAR2>0)ANDVAR19<10,50,0);VAR1C:=(VARF>0ANDVAR11>0ANDSUM(VOL/CAPITAL*100,5)/5<1ORVAR18>0)AND(VAR10<0ORVAR2>0);VAR
7、1D:=VARF>0ANDVAR11>0ANDSUM(VOL/CAPITAL*100,5)/5<1ORVAR18>0ANDREF(CLOSE,1)/REF(CLOSE,2)>0.902;大底区域:(VAR1CORVAR1D)*3,LINETHICK2,COLORRED;DRAWICON(CROSS(指导线,准强线),准强线,4);DRAWTEXT(CROSS(警戒线,指导线),警戒线,'$卖'),COLORGREEN;DRAWICON(CROSS(强势线,指导线),强势线,5);DRAWICON(CROSS(高抛线