价格中枢日内多空认同-精品通达信指标公式源码分享

通达信免费指标 11-01 阅读:86 评论:0

image.png

AS:=(C*3+O+H+L)/6;

XJ:=(AS+0.618*REF(AS,1)+0.382*REF(AS,2)+0.236*REF(AS,3)+0.146*REF(AS,4))/2.382;    

{回调认同}   

HLX:=EMA(HHV(XJ,3),15);   

LLX:=EMA(LLV(XJ,3),15);   

CH:=CROSS(XJ,HLX);CL:=CROSS(LLX,XJ);   

CHH:=BARSLAST(CH);CLL:=BARSLAST(CL);   

YF1:=(CHH<CLL OR CH) AND NOT(CL);   

YF2:=(CHH>CLL OR CL) AND NOT(CH);   

TF:=IF(YF1,LLX,HLX);   

TFB:=(HLX+LLX)/2;    

XJK:=SMA(EMA(XJ,3),3,1);   

ZWSH:=(HHV(XJ,2)+HHV(XJ,3)+HHV(XJ,4)+HHV(XJ,5))/4;   

SH:=EMA(ZWSH,21);   

ZWSL:=(LLV(XJ,2)+LLV(XJ,3)+LLV(XJ,4)+LLV(XJ,5))/4;   

SL:=EMA(ZWSL,21);   

SCH:=CROSS(XJ,SH);SCL:=CROSS(SL,XJ);   

SHH:=BARSLAST(SCH);SLL:=BARSLAST(SCL);   

SF1:=(SHH<SLL OR SCH) AND NOT(SCL);   

SF2:=(SHH>SLL OR SCL) AND NOT(SCH);   

TFS:=IF(SF1,SL,SH);   

TFBS:=(SL+SH)/2;   

{K线}   

KX1:=(CLOSE>=OPEN) AND XJ>=TFS;   

KX2:=(CLOSE<OPEN) AND XJ>=TFS;   

KX3:=(CLOSE>=OPEN) AND XJ<TFS;   

KX4:=(CLOSE<OPEN) AND XJ<TFS;   

KX5:=((XJ>=TFS AND XJ<TF)OR (XJ<TFS AND XJ>=TF)) AND CLOSE>=OPEN;   

KX6:=((XJ>=TFS AND XJ<TF)OR (XJ<TFS AND XJ>=TF)) AND CLOSE<OPEN;   

{回调认同}   

DRAWBAND(TFB,RGB(40,00,40),TFS,RGB(00,00,80));   

DRAWBAND(TFB,RGB(90,00,00),TF,RGB(00,55,00));   

{K线}   

STICKLINE(KX1,C,O,2,1),COLOR4440FF;   

STICKLINE(KX1,C,H,0,1),COLOR4440FF;   

STICKLINE(KX1,O,L,0,1),COLOR4440FF;   

STICKLINE(KX2,C,O,2,0),COLOR4440FF;   

STICKLINE(KX2,O,H,0,0),COLOR4440FF;   

STICKLINE(KX2,C,L,0,0),COLOR4440FF;   

STICKLINE(KX3,C,O,2,1),COLORFFFF33;   

STICKLINE(KX3,C,H,0,1),COLORFFFF33;   

STICKLINE(KX3,O,L,0,1),COLORFFFF33;   

STICKLINE(KX4,C,O,2,0),COLORFFFF33;   

STICKLINE(KX4,O,H,0,0),COLORFFFF33;   

STICKLINE(KX4,C,L,0,0),COLORFFFF33;   


版权声明

本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!

服务热线

18020657357

微信客服

微信客服