通达信玩转脑指标源码副图
{玩转脑指标}
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
MA4:MA(CLOSE,60);
VAR1:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),LINETHICK2,COLORGREEN;
VAR2:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK2,COLORRED;
VAR3:EMA(VAR2,25),LINETHICK2;
STICKLINE(VAR2>LOW AND VAR2<HIGH,VAR2,MIN(MIN(OPEN,CLOSE),VAR2),4,0),COLORYELLOW;
STICKLINE(VAR2>MIN(C,O) AND VAR2<MAX(C,O),VAR2,MIN(OPEN,CLOSE),4,0),COLORYELLOW;
STICKLINE(VAR2>HIGH,OPEN,CLOSE,4,0),COLORYELLOW;
STICKLINE(VAR2>HIGH,HIGH,LOW,0,0),COLORYELLOW;
VAR23:=100*XMA(XMA((C-REF(C,1)),6),6)/XMA(XMA(ABS((C-REF(C,1))),6),6);
VAR4:=LLV(VAR23,2)==LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2));
XG:=VAR2>HIGH AND VAR4 AND L<=VAR2;
DRAWTEXT(XG,L,'▲介入'),COLORRED;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IFF(HIGH==LOW,4,HIGH-LOW);
QJ1:=IFF(CAPITAL==0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IFF(HIGH==LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IFF(CAPITAL==0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IFF(HIGH==LOW,1,(JJ-MIN(CLOSE,OPEN))));
QJ3:=IFF(CAPITAL==0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IFF(HIGH==LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IFF(CAPITAL==0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IFF(HIGH==LOW,1,(MAX(CLOSE,OPEN)-JJ)));
DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IFF(CAPITAL==0,10000,10000),COLOR00AAAA,LINETHICK1;
V2:=SMA(IFF(C>=REF(C,1),DDX,-DDX/100),2,1);
V5:=SMA(V2*120/FROMOPEN*5,2,1);
V10:=SMA(V5,5,1);
V20:=SMA(V10,5,1);
DY:=ISLASTBAR==1 AND C<REF(C,1);
DY2:=REF(V2,1)-DY;
XG2:=C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02 AND H<VAR1;
DRAWTEXT(XG2 AND L<VAR2,L,'涨'),COLORRED;
黄金坑:IFF(LOW<VAR2,1,0),NODRAW,COLORYELLOW;
介入:IFF(XG,1,0),NODRAW,COLORRED;
涨:IFF(XG2 AND L<VAR2,1,0),NODRAW,COLORRED;
- 上一篇公式:通达信三代波段源码(新)副图
- 下一篇公式:通达信摇钱树指标