一、通达信阻击龙头主图指标公式
重心:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
趋势线:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK2;
红升:IF(重心>=趋势线,趋势线,DRAWNULL),COLORRED,LINETHICK2;
蓝降:IF(重心<趋势线,趋势线,DRAWNULL),COLORBLUE,LINETHICK2;
ZF0:=MAX(HIGH,REF(HIGH,1))-MIN(LOW,REF(LOW,1));
ZF:=MA(ZF0,3)*0.8;
QSK:=ABS(CLOSE-REF(OPEN,1))/ZF0>0.50;
SZ1:=HIGH>REF(HIGH,2) AND CLOSE>REF(OPEN,1) AND QSK;
XD1:=LOW[
]SZT:=BARSLAST(SZ1);
XDT:=BARSLAST(XD1);
DT:=SZT
KT:=XDT
STICKLINE(DT,OPEN,CLOSE,3,0),COLORRED;
STICKLINE(KT,OPEN,CLOSE,3,0),COLORGREEN;
买买:=EMA(((100 * (CLOSE - LLV(LOW,34))) / (HHV(HIGH,34) - LLV(LOW,34))),3);
卖卖:=SMA((((HHV(HIGH,34) - CLOSE) / (HHV(HIGH,34) - LLV(LOW,34))) * 100),2,1);
大盘:=EMA(((100 * (INDEXC - LLV(INDEXL,34))) / (HHV(INDEXH,34) - LLV(INDEXL,34))),3);
换手:=(((VOL /MA(V,5))) >= 2);
涨:=(((CLOSE / REF(CLOSE,1)) - 1) * 100);
A:=(CROSS(买买,卖卖) AND (买买 >= 45));
B:=(CROSS(买买,大盘) AND (买买 >= 45));
D:=(CROSS(买买,75) AND (涨>= 2));
DD:=(CROSS(买买,20) AND (涨>= 2));
DRAWTEXT((A > 0),(LOW * 0.99),'←阻击龙头'),LINETHICK0,COLORFFFF00;
DRAWTEXT((B > 0),(LOW * 1.02),'←决战龙头'),LINETHICK0,COLOR0055FF; DRAWTEXT((D > 0),(LOW * 1.05),'←绝对龙头'),LINETHICK0,COLORRED;
DRAWTEXT((DD > 0),(LOW ),'←短线金股'),LINETHICK0,COLORRED; TJ:=((CLOSE > OPEN) OR ((CLOSE = OPEN) AND (CLOSE > REF(CLOSE,1))));
二、通达信红马抓涨停防开板指标公式
VARR1:=V;
VARR2:=VARR1>MA(V,89);
VARR3:=EXPMA(C,5);
VARR4:=EXPMA(C,29);
VARR5:=VARR3>VARR4;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),56,1)/SMA(ABS(CLOSE-LC),56,1)*100;
VARR6:=RSI1>RSI2 AND VARR5 AND VARR2;
VASS1:=HHV(H,30);
VASS2:=LLV(L,30);
VASS3:=REF((VASS1/VASS2-1)*100<=30,1);
A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);
金线王:=EMA(A2,200)*1.1;
条件:=(C-REF(C,1))/REF(C,1)*100>5;
RRF:CROSS(C,金线王) AND REF(C*1.05,1)
STICKLINE(IF(RRF,120,0),1.1,0,3,0),COLORRED;
STICKLINE(IF(RRF,120,0),0.5,0,3,0),COLORYELLOW;
DRAWTEXT(RRF,1.05,'红'),COLORGREEN;
DRAWTEXT(RRF,0.75,'马'),COLORGREEN;
DRAWTEXT(RRF,0.45,'突'),COLORRED;
DRAWTEXT(RRF,0.15,'破'),COLORRED;