通达信真正的波段指标公式

2019-04-24    作者:股匠网整理    来源:本站整理

{吸筹}
A1P:=REF(CLOSE2);
A2P:=SMA(MAX(CLOSE-A1P0)71)/SMA(ABS(CLOSE-A1P)71)*100;
A4P:=REF(LOW1);
A5P:=SMA(ABS(LOW-A4P)31)/SMA(MAX(LOW-A4P0)31)*100;
A6P:=EMA(IF(CLOSE*1.3A5P*10A5P/10)3);
A7P:=LLV(LOW29);
A8P:=HHV(A6P37);
A9P:=IF(MA(CLOSE90)10);
A10P:=EMA(IF(LOW<=A7P(A6P+A8P*2)/20)3)/1688*A9P;
A11P:=IF(A10P>100100A10P);
STICKLINE(A11P0A11P41)COLOR666666;
VAR1:=MA(CLOSE27);
VAR2:=(CLOSE-VAR1)/VAR1*100;
RSV1:=(CLOSE-LLV(LOW21))/(HHV(HIGH21)-LLV(LOW21))*100;
RSV2:=(CLOSE-LLV(LOW37))/(HHV(HIGH37)-LLV(LOW37))*100;
RSV3:=(CLOSE-LLV(LOW55))/(HHV(HIGH55)-LLV(LOW55))*100;
VARA:=MA(VAR22);
VARB:=BARSLAST(CROSS(-10VARA)=1);
VARC:=BARSLAST(CROSS(VARA10)=1);
VARD:=VARA<-10 AND VARB>3;
VARE:=VARA>10 AND VARC>3;
短线:SMA(SMA(RSV131)31)+3*STD(CLOSE21)COLOR009900;
中线:SMA(RSV251)+2*STD(CLOSE37)COLORRED;
中长线:=-100*(HHV(HIGH40)-CLOSE)/(HHV(HIGH40)-LLV(LOW40));
长线:SMA(RSV351)COLORYELLOW;
看底:STICKLINE(中线<15中线1560)COLORF00FF0;
黄金:STICKLINE(短线<20 AND 中线<20 AND 长线<20MAX(长线MAX(短线中线))2030)COLOR00CCFF;
看顶:STICKLINE(中线>8080中线30)COLORFFF000;
DR:=IF(COUNT(CROSS(中长线-90)12)=3305);
KH1:=IF(VARDVARA0);
KH2:=REF(KH11)<0;
DRAWICON(CROSS(长线15)中线1);
DRAWTEXT(LONGCROSS(中线2015)20'反弹');
DRAWTEXT(CROSS(短线长线)AND 长线<18 AND 长线>REF(长线1)OR CROSS(长线5)20'绝佳机会')COLOR00BBBB;
底:DRAWTEXT(CROSS(中长线-90) AND (长线<中线 AND 长线>REF(长线1)OR 短线<20 AND 中线<20 AND 长线 <20)长线'底')COLORFF00FF;
{波段轨道}
TC1:=IF(H=HHV(H48)HDRAWNULL);
TC2:=CONST(BARSLAST(TC1=H))+1;
UPPER:=CONST(IF(TC2=1HREF(HTC2-1)));
BC1:=IF(L=LLV(L48)LDRAWNULL);
BC2:=CONST(BARSLAST(BC1=L))+1;
LOWER:=CONST(IF(BC2=1LREF(LBC2-1)));
LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;{低点定位}
HP:=CURRBARSCOUNT<=TC2 AND H=UPPER;{高点定位}
DRAWTEXT(LP40'I波段底')COLORLIGREEN;{波段底文字提示}
DRAWTEXT(HP89'波段顶')COLORMAGENTA;{波段顶文字提示};

阅读:361    评论:0

联系我们 - 关于我们 - 网站地图

声明:站内所有文章、公式均来自互联网或网友分享提供,如侵犯您的权利请告知,我们会在24小时内及时删除! 


【电脑版】  【回到顶部】