通达信机构灯塔主图指标公式
通达信买牛卖牛指标公式
通达信机构灯塔主图指标公式:
弈神:=(HIGH+LOW+CLOSE)/3.00;
运动趋势:=xma(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(弈神,3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3),3);
风险①:运动趋势*1.1,COLORBROWN,NODRAW;
风险②:运动趋势*1.125,COLORWHITE,NODRAW;
风险③:运动趋势*1.15,COLORYELLOW,NODRAW;
安全①:运动趋势*0.9,COLORWHITE,NODRAW;
安全②:运动趋势*0.875,COLORRED,NODRAW;
安全③:运动趋势*0.85,COLORGREEN,NODRAW;
DRAWBAND(风险①,RGB(250,249,8),风险②,RGB(250,249,8));
DRAWBAND(风险②,RGB(114,2,4), 风险③,RGB(114,2,4));
DRAWBAND(安全①,RGB(248,242,242),安全②,RGB(248,242,242));
DRAWBAND(安全②,RGB(70,177,63),安全③,RGB(70,177,63));
stICKLINE(C>=O,C,O,3,0),COLOR0000AA;
STICKLINE(C>=O,C,O,2.5,0),COLOR0000BB ;
STICKLINE(C>=O,C,O,1.5,0),COLOR0000CC ;
STICKLINE(C>=O,C,O,1,0),COLOR0000EE;
STICKLINE(C>=O,H,L,0,0),COLOR0000FF;
STICKLINE(C<=O,C,O,3,0),COLOR7B7B00;
STICKLINE(C<=O,C,O,2.5,0),COLOR909000;
STICKLINE(C<=O,C,O,1.5,0),COLORA8A800;
STICKLINE(C<=O,C,O,1,0),COLORCECE00;
STICKLINE(C<=O,H,L,0,0),COLORFFFF00;
低吸线:=XMA((L+H+C+O)/4,32)*0.9;
标准B:=XMA((L+H+C+O)/4,32)*0.995+(XMA((L+H+C+O)/4,20)*1.08-XMA((L+H+C+O)/4,32)*0.995)*2/3;
标准A:=低吸线+(XMA((L+H+C+O)/4,20)*1.08-低吸线)*2/3;
标准C:=低吸线+(XMA((L+H+C+O)/4,20)*1.08-低吸线)*1/3;
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:=AA*102/100;
通道2:=AA*(200-102)/100;
CC:=Abs((2.00*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
通道4:=(1-7/100)*DD;
KA0:=(HHV(C,45)-LLV(C,45))/45;
KA1:=SMA(C,3,1);
KA2:=SMA(C-KA0*3,3,1);
KA3:=SMA(KA1-KA0*3,3,1);
短期策略:=KA2>=KA3,NODRAW,COLORMAGENTA;
短期拐点:=REF(短期策略,1)=0 AND 短期策略=1,NODRAW;
赢在龙头:=(L+H+C*4)/6;
趋势轨:=EMA(赢在龙头,12),NODRAW;
赢在:=(趋势轨-REF(趋势轨,1))/REF(趋势轨,1)*100;
趋势拐点:=crOSS(赢在,0);
G:=BArslAST(CROSS(赢在,0))+1;
风险控制:REF(L,G),NODRAW,COLORRED;
止损线A:=REF(L,G);
止损线B:=REF(止损线A,BARSLAST(止损线A>REF(止损线A,1) OR 止损线A<REF(止损线A,1))+1);
超跌轨:=MA(CLOSE,14)*0.900;
操盘线:KA2,NODRAW,COLORMAGENTA;
标准:=运动趋势>REF(运动趋势,1);
IF(赢在>0,REF(L,G),DRAWNULL),COLORRED,POINTDOT,LINETHICK4;
IF(赢在<0,REF(L,G),DRAWNULL),COLORBLUE,POINTDOT,LINETHICK4;
IF(KA2>=KA3 AND 低吸线>0,KA2,DRAWNULL),COLORMAGENTA,LINETHICK4;
IF(KA2>=KA3 AND KA2>=标准B AND 低吸线>0,KA2,DRAWNULL),COLORLIGREEN,LINETHICK4;
IF(KA2>=KA3 AND KA2>=标准A AND 低吸线>0,KA2,DRAWNULL),COLORBLUE,LINETHICK4;
IF(KA2<KA3 AND 低吸线>0,KA2,DRAWNULL),LINETHICK1,COLORBLUE;
IF(运动趋势>REF(运动趋势,1),安全②,DRAWNULL),CIRCLEDOT,COLORRED;
IF(运动趋势<REF(运动趋势,1),安全②,DRAWNULL),CIRCLEDOT,COLORCYAN;
上趋势:=MA(LOW,20)*1.2;
次上趋势:=MA(LOW,20)*1.1;
次下趋势:=MA(HIGH,20)*0.9;
下趋势:=MA(HIGH,20)*0.8,COLORGREEN;
ZD:=(C-REF(C,1))/REF(C,1)*100;
HDZF:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));
趋势强度:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势 AND C<次上趋势,2,IF(C<下趋势,0,1)));
超短:=CROSS(超跌轨*1.01,L);{ AND H>=REF(L,1);}
狙击手:=超短 AND 趋势强度=3 OR (超短 AND COUNT(超短,BARSLAST(趋势强度=3))=1 AND C>MIN(止损线A,止损线B)) AND L<标准C,NODRAW;
DRAWTEXT(狙击手,H*1.02,'狙击');
良机:=((C-运动趋势)/运动趋势*100<-10 AND C<通道4) OR ((O-运动趋势)/运动趋势*100<-10 AND O<通道4 ) OR((L-运动趋势)/运动趋势*100<-10 AND L<通道4);
次机:=L<安全① AND NOT(良机);
QW1:=运动趋势>REF(运动趋势,1);
DRAWTEXT(良机 AND QW1 AND FILTER(良机,3),L*0.94,'震仓'),COLORYELLOW;
DRAWTEXT(次机 AND QW1 AND FILTER(次机,3),L*0.98,'夯实'),COLORRED;
QW2:=O<安全③;
DRAWTEXT(QW2 AND FILTER(QW2,3),L*0.94,'短升'),COLORGREEN;
DRAWICON(CROSS(运动趋势,REF(运动趋势,1)),安全②,1);
DRAWICON(CROSS(REF(运动趋势,1),运动趋势),安全②,2);
通达信买卖进出指标公式