通达信苍狼建仓指标公式

通达信出击加仓KDJ指标公式

通达信苍狼建仓指标公式:

CC:=REF(CLOSE,1);

rsi5:=((SMA(MAX((CLOSE - CC),0),5,1) / SMA(Abs((CLOSE - CC)),5,1)) * 100);

TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);

HH:=(HIGH - REF(HIGH,1));

DD:=(REF(LOW,1) - LOW);

DMP:=SUM(IF(((HH > 0) AND (HH > DD)),HH,0),10);

DMM:=SUM(IF(((DD > 0) AND (DD > HH)),DD,0),10);

pdi:=((DMP * 100) / TR1);

mdi:=((DMM * 100) / TR1);

ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);

AV:=(RSI5 + ADX);

DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);

wr10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));

NEWvol:=(RSI5 - WR10);

买入点:=(AV + NEWVOL);

最佳买入:=IF(crOSS(买入点,0),50,0),stICK,COLORRED;

AA1:=SMA(最佳买入,3,1);

AA2:=SMA(AA1,3,1),COLOR0000FF;

AA3:=SMA(AA2,3,1),COLOR00FFFF;

苍狼建仓:IF(CROSS(AA2,AA3) AND (AA2<40),5,0*10000),COLORCYAN,NODRAW;

STICKLINE(苍狼建仓,20,50,2,0),COLORCYAN;

通达信金博士趋势指标公式