通达信伏击风险主图指标公式

通达信快马加鞭指标公式

通达信伏击风险主图指标公式:

DRAWGBK(C>O,RGB(60,0,0),RGB(0,0,0),1,2,1);

Z1:=stRCAT(HYBLOCK,' ');

Z2:=STRCAT(Z1,DYBLOCK);

Z3:=STRCAT(Z2,' ');

DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED;

DRAWKLINE(H,O,L,C);

VAR23:=100*EMA(EMA((C-REF(C,1)),6),6)/EMA(EMA(Abs((C-REF(C,1))),6),6);

买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND crOSS(VAR23,MA(VAR23,2));

DRAWTEXT(买,L, '▲买入'),COLORGREEN;

N:=5;

MA5:=MA(C,5);

JJ:=(HIGH+LOW+CLOSE)/3;

QJ0:=vol/IF(HIGH=LOW,4,HIGH-LOW);

QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));

QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));

QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));

QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));

ddx:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK;

V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);

伏击:=REF(V2*1.01,1)-REF(V2,1)<0 AND C<O AND REF(MA5,1)<MA5;

今日:=V2-REF(V2,1)*0.99;

昨日:=REF(V2,1)-REF(V2,2) ;

风险:=今日<0 AND 昨日>0 AND 今日<=昨日*0.8 AND C>O AND REF(MA5,1)<MA5;

CCC:=FILTER(风险,1);

DRAWTEXT(伏击,L*0.99,'伏击'),COLOR00FF00;

DRAWICON(伏击,L*0.9995,1);

DRAWTEXT(CCC,H*1.01,'风险'),COLOR00FF00;

DRAWICON(CCC,H*0.9995,2);

通达信神奇逃顶指标公式