• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • 通达信指令式买卖指标公式源码及使用介绍

    发布时间: 2019-10-05 08:06 首页:股票一点通>股票公式>通达信公式> 阅读()

    pMA1:=MA(CLOSE,5);

    pMA2:=MA(CLOSE,10);

    pP01:=IF(MA1>MA2,1,IF(MA2>MA1,-1,0));

    pMA3:=MA(CLOSE,3);

    pMA4:=MA(CLOSE,5);

    pP02:=IF(MA3>MA4,1,IF(MA4>MA3,-1,0));

    pMA5:=MA(CLOSE,12);

    pMA6:=MA(CLOSE,50);

    pP03:=IF(MA5>MA6,1,IF(MA6>MA5,-1,0));

    pRSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;

    pK:=EMA(RSV,3);

    pD:=EMA(K,3);

    pP04:=IF(K>D,1,IF(D>K,-1,0));

    pDIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

    pDEA:=EMA(DIF,9);

    pMACD:=(DIF-DEA)*2;

    pP05:=IF(DIF>DEA,1,IF(DEA>DIF,-1,0));

    pTR2:=EMA(EMA(EMA(CLOSE,12),12),12);

    pTRIX:=(TR-REF(TR,1))/REF(TR,1)*100;

    pMATRIX:=MA(TRIX,9) ;

    pP06:=IF(TRIX>MATRIX,1,IF(MATRIX>TRIX,-1,0));

    pTR1:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),7);

    通达信指令式买卖指标公式源码及使用介绍

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

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

    pDMP:=EMA(IF(HD>0 AND HD>LD,HD,0),7);

    pDMM:=EMA(IF(LD>0 AND LD>HD,LD,0),7);

    pPDI:= DMP*100/TR;

    pMDI:= DMM*100/TR;

    pADX:= EMA(ABS(MDI-PDI)/(MDI+PDI)*100,7);

    pADXR:=EMA(ADX,7);

    pP07:=IF(PDI>MDI AND ADX>PDI AND ADX>50,3,

    pIF(PDIMDI AND ADX>50,-3,0));

    pLC:=REF(CLOSE,1);

    pRSI1:=EMA(MAX(CLOSE-LC,0),5)/EMA(ABS(CLOSE-LC),5)*100;

    pP08:=IF(RSI1>80,1,IF(RSI1<20,-1,0));

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

    pCCI:=(TYP-MA(TYP,8))/(0.015*AVEDEV(TYP,8));

    pP09:=IF(CCI>180,2,IF(CCI<-180,-2,0));

    pWR1:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;

    pP10:= IF(WR1>80,1,IF(WR1<20,-1,0));

    pOSC:=100*(CLOSE-MA(CLOSE,20));

    pP11:=IF(OSC>0,1,IF(OSC<0,-1,0));

    pMOM:=CLOSE-REF(CLOSE,7);

    pP12:=IF(MOM>0,1,IF(MOM<0,-1,0));

    pDPO:=CLOSE-REF(MA(CLOSE,11),11/2+1);

    pP13:=IF(DPO>0,1,IF(DPO<0,-1,0));

    pMB:=MA(CLOSE,12);

    pR:=(CLOSE-MB)*(CLOSE-MB);

    pX1:=MA(R,12);

    pX2:=SQRT(X1);

    pD1:=1;

    pUPPER:=MB+(D1*X2);

    pLOWER:=MB-(D1*X2);

    pP14:=IF(CLOSE>UPPER,2,IF(CLOSE

    pBR:=SUM(MAX(0,HIGH-REF(CLOSE,1)),14)/SUM(MAX(0,REF(CLOSE,1)-LOW),14)*100;

    pAR:=SUM(HIGH-OPEN,14)/SUM(OPEN-LOW,14)*100;

    pP15:=IF(BR>350 OR AR>180,3,IF(BR<45 OR AR<45,-3,0));

    pTH:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),14);

    pTL:=SUM(IF(CLOSE

    pTQ:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),14);

    pVR:=0100*(TH*2+TQ)/(TL*2+TQ);

    pP16:=IF(VR>350,3,IF(VR<45,-3,0));

    pWVAD:=SUM((CLOSE-OPEN)/(HIGH-LOW)*VOL,6)/10000;

    pP17:=IF(WVAD>0,1,IF(WVAD<0,-1,0));

    pVOLUME:=MA(VOL,4)/VOL;

    pMID:=100*(HIGH+LOW-REF(HIGH+LOW,1))/(HIGH+LOW);

    pEMV:=MA(MID*VOLUME*(HIGH-LOW)/MA(HIGH-LOW,4),4);

    pP18:=IF(EMV>0,1,IF(EMV<0,-1,0));

    pVA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);

    pOBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);

    pMAOBV:=EMA(OBV,24);

    pP19:=IF(OBV>MAOBV,1,IF(OBV

    pPVI:= PVI,COLORWHITE;

    pMPVI:=EMA(PVI,24),COLORYELLOW;

    pP20:=IF(PVI>MPVI,1,IF(PVI

    pNVI:=NVI,COLORWHITE;

    pMNVI:=EMA(NVI,24),COLORYELLOW;

    pP21:=IF(NVI>MNVI,2,IF(NVI

    pMASS:=SUM(MA(HIGH-LOW,9)/MA(MA(HIGH-LOW,9),9),25);

    pMA7:=MA(CLOSE,9);

    pP22:=IF(MA7>REF(MA7,1) AND MASS>26.5,2,IF(MA7

    pAND MASS<26.5,-2,0));

    pNUM:=ABS(HHV(HIGH,15)-LLV(LOW,15));

    pDEN:=SUM(ABS(CLOSE-REF(CLOSE,1)),15);

    pVHF:=IF(DEN=0,0,NUM/DEN);

    pVHF1:=EMA(VHF,240);

    pP23:=IF(VHF>VHF1,1,IF(VHF

    pPU:=MA(CLOSE,13);

    pCU:=MA(VOL,13);

    pPU1:=(PU-REF(PU,1))/REF(PU,1)*100;

    pCU1:=(CU-REF(CU,1))/REF(CU,1)*100;

    p逆时针曲线:=PU1+CU1;

    pP24:=IF(逆时针曲线>REF(逆时针曲线,1),1,IF(逆时针曲线

    pLC2:=REF(CLOSE,1);

    pAA:=ABS(HIGH-LC2);

    pBB:=ABS(LOW-LC2);

    pCC:=ABS(HIGH-REF(LOW,1));

    pDD:=ABS(LC2-REF(OPEN,1));

    pR2:=IF(AA>BB AND AA>CC,AA+BB/2+DD/4,IF(BB>CC AND BB>AA,BB+AA/2+DD/4,CC+DD/4));

    pX01:=(CLOSE-LC2+(CLOSE-OPEN)/2+LC2-REF(OPEN,1));

    pSI:=16*X01/R2*MAX(AA,BB);

    pASI:=SUM(SI,0),COLORWHITE;

    pMASI:=MA(ASI,6),COLORYELLOW;

    pP25:=IF(CLOSELLV(CLOSE,13) AND ASI=LLV(ASI,13),-1,0));

    pBIAS1 :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;

    pP26:=IF(BIAS1>10,1,IF(BIAS1<-10,-1,0));

    p决策曲线: (36+P01+P02+P03+P04+P05+P06+P07+P08+P09+P10+P11+P12+P13+P14+P15+P16+

    pP17+P18+P19+P20+P21+P22+P23+P24+P25+P26)*1.36,COLORMAGENTA;

    pMAJCQX:MA(决策曲线,3),COLORWHITE;

    pDRAWTEXT(CROSS(82.5, 决策曲线),80,'↖清仓'),COLORYELLOW;

    pDRAWTEXT(CROSS(75, 决策曲线),74,'减点'),COLORGREEN;

    pDRAWTEXT(CROSS( 决策曲线,18),16,'↖买点'),COLORRED;

    p回调持币:IF(决策曲线<=REF(决策曲线,1),决策曲线,DRAWNULL),COLORGREEN,LINETHICK2;

    p持股:IF(决策曲线>REF(决策曲线,1),决策曲线,DRAWNULL),COLORRED,LINETHICK2;

    特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。

    网站首页-股票知识--股票公式-散户炒股-问答百科--缠中说禅-概念股

    未经本站书面特别授权,请勿转载或建立镜像

    Copyright @ 2020 All Rights Reserved.版权所有 XMl地图
    Baidu
    map