ihzx 发表于 2021-8-28 00:48:39

通达信决策曲线简洁版副图指标公式源码决策曲线简洁版


         <p>以下是通达信决策曲线简洁版副图指标公式源码决策曲线简洁版(无源码的请下载附件导入)</p>
<div class="con" id="rjsmad1"></div>
<p>通达信决策曲线简洁版副图指标公式源码</p>
<p>MA1:=MA(CLOSE,5);</p>
<p>MA2:=MA(CLOSE,10);</p>
<p>P01:=IF(MA1&gt;MA2,2,IF(MA2&gt;MA1,(-2),0));</p>
<p>MA3:=MA(CLOSE,3);</p>
<p>MA4:=MA(CLOSE,5);</p>
<p>P02:=IF(MA3&gt;MA4,2,IF(MA4&gt;MA3,(-2),0));</p>
<p>MA5:=MA(CLOSE,12);</p>
<p>MA6:=MA(CLOSE,50);</p>
<p>P03:=IF(MA5&gt;MA6,2,IF(MA6&gt;MA5,(-2),0));</p>
<p>RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;</p>
<p>K:=EMA(RSV,3);</p>
<p>D:=EMA(K,3);</p>
<p>P04:=IF(K&gt;D,2,IF(D&gt;K,(-2),0));</p>
<p>DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);</p>
<p>DEA:=EMA(DIF,9);</p>
<p>MACD:=(DIF-DEA)*2;</p>
<p>P05:=IF(DIF&gt;DEA,2,IF(DEA&gt;DIF,(-2),0));</p>
<p>TR2:=EMA(EMA(EMA(CLOSE,12),12),12);</p>
<p>TRIX:=(TR2-REF(TR2,1))/REF(TR2,1)*100;</p>
<p>MATRIX:=MA(TRIX,9);</p>
<p>P06:=IF(TRIX&gt;MATRIX,2,IF(MATRIX&gt;TRIX,(-2),0));</p>
<p>TR1:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),7);</p>
<p>HD:=HIGH-REF(HIGH,1);</p>
<p>LD:=REF(LOW,1)-LOW;</p>
<p>DMP:=EMA(IF(HD&gt;0 AND HD&gt;LD,HD,0),7);</p>
<p>DMM:=EMA(IF(LD&gt;0 AND LD&gt;HD,LD,0),7);</p>
<p>PDI:=DMP*100/TR1;</p>
<p>MDI:=DMM*100/TR1;</p>
<p>ADX:=EMA(ABS(MDI-PDI)/(MDI+PDI)*100,7);</p>
<p>ADXR:=EMA(ADX,7);</p>
<p>P07:=IF(PDI&gt;MDI AND ADX&gt;PDI AND ADX&gt;50,3,IF(PDI&lt;MDI AND ADX&gt;MDI AND ADX&gt;50,(-3),0));</p>
<p>LC:=REF(CLOSE,1);</p>
<p>RSI1:=EMA(MAX(CLOSE-LC,0),5)/EMA(ABS(CLOSE-LC),5)*100;</p>
<p>P08:=IF(RSI1&gt;80,2,IF(RSI1&lt;20,(-2),0));</p>
<p>TYP:=(HIGH+LOW+CLOSE)/3;</p>
<p>CCI:=(TYP-MA(TYP,8))/(0.015*AVEDEV(TYP,8));</p>
<p>P09:=IF(CCI&gt;180,2,IF(CCI&lt;(-180),(-2),0));</p>
<p>WR1:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;</p>
<p>P10:=IF(WR1&gt;80,2,IF(WR1&lt;20,(-2),0));</p>
<p>OSC:=100*(CLOSE-MA(CLOSE,20));</p>
<p>P11:=IF(OSC&gt;0,2,IF(OSC&lt;0,(-2),0));</p>
<p>MOM:=CLOSE-REF(CLOSE,7);</p>
<p>P12:=IF(MOM&gt;0,2,IF(MOM&lt;0,(-2),0));</p>
<p>DPO:=CLOSE-REF(MA(CLOSE,11),11/2+1);</p>
<p>P13:=IF(DPO&gt;0,1,IF(DPO&lt;0,(-1),0));</p>
<p>MB:=MA(CLOSE,12);</p>
<p>R:=(CLOSE-MB)*(CLOSE-MB);</p>
<p>X1:=MA(R,12);</p>
<p>X2:=SQRT(X1);</p>
<p>D1:=1;</p>
<p>UPPERB:=MB+D1*X2;</p>
<p>LOWERB:=MB-D1*X2;</p>
<p>P14:=IF(CLOSE&gt;UPPERB,2,IF(CLOSE&lt;LOWERB,(-2),0));</p>
<p>BR:=SUM(MAX(0,HIGH-REF(CLOSE,1)),14)/SUM(MAX(0,REF(CLOSE,1)-LOW),14)*100;</p>
<p>AR:=SUM(HIGH-OPEN,14)/SUM(OPEN-LOW,14)*100;</p>
<p>P15:=IF(BR&gt;350 OR AR&gt;180,3,IF(BR&lt;45 OR AR&lt;45,(-3),0));</p>
<p>TH:=SUM(IF(CLOSE&gt;REF(CLOSE,1),VOL,0),14);</p>
<p>TL:=SUM(IF(CLOSE&lt;REF(CLOSE,1),VOL,0),14);</p>
<p>TQ:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),14);</p>
<p>VR:=100*(TH*2+TQ)/(TL*2+TQ);</p>
<p>P16:=IF(VR&gt;350,3,IF(VR&lt;45,(-3),0));</p>
<p>WVAD:=SUM((CLOSE-OPEN)/(HIGH-LOW)*VOL,6)/10000;</p>
<p>P17:=IF(WVAD&gt;0,1,IF(WVAD&lt;0,(-1),0));</p>
<p>VOLUME:=MA(VOL,4)/VOL;</p>
<p>MID:=100*(HIGH+LOW-REF(HIGH+LOW,1))/(HIGH+LOW);</p>
<p>EMV:=MA(MID*VOLUME*(HIGH-LOW)/MA(HIGH-LOW,4),4);</p>
<p>P18:=IF(EMV&gt;0,1,IF(EMV&lt;0,(-1),0));</p>
<p>VA:=IF(CLOSE&gt;REF(CLOSE,1),VOL,-VOL);</p>
<p>OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);</p>
<p>MAOBV:=EMA(OBV,24);</p>
<p>P19:=IF(OBV&gt;MAOBV,1,IF(OBV&lt;MAOBV,(-1),0));</p>
<p>PVI:=AMV.AMV1;</p>
<p>MPVI:=EMA(PVI,24);</p>
<p>P20:=IF(PVI&gt;MPVI,1,IF(PVI&lt;MPVI,(-1),0));</p>
<p>NVI:=ZX.AV;</p>
<p>MNVI:=EMA(NVI,24);</p>
<p>P21:=IF(NVI&gt;MNVI,2,IF(NVI&lt;MNVI,(-2),0));</p>
<p>MASS:=SUM(MA(HIGH-LOW,9)/MA(MA(HIGH-LOW,9),9),25);</p>
<p>MA7:=MA(CLOSE,9);</p>
<p>P22:=IF(MA7&gt;REF(MA7,1) AND MASS&gt;26.5,2,IF(MA7&lt;REF(MA7,1) AND MASS&lt;26.5,(-2),0));</p>
<p>NUM:=ABS(HHV(HIGH,15)-LLV(LOW,15));</p>
<p>DEN:=SUM(ABS(CLOSE-REF(CLOSE,1)),15);</p>
<p>VHF:=IF(DEN=0,0,NUM/DEN);</p>
<p>VHF1:=EMA(VHF,240);</p>
<p>P23:=IF(VHF&gt;VHF1,1,IF(VHF&lt;VHF1,(-1),0));</p>
<p>PU:=MA(CLOSE,13);</p>
<p>CU:=MA(VOL,13);</p>
<p>PU1:=(PU-REF(PU,1))/REF(PU,1)*100;</p>
<p>CU1:=(CU-REF(CU,1))/REF(CU,1)*100;</p>
<p>逆时针曲线:=PU1+CU1;</p>
<p>P24:=IF(逆时针曲线&gt;REF(逆时针曲线,1),1,IF(逆时针曲线&lt;REF(逆时针曲线,1),(-1),0));</p>
<p>LC2:=REF(CLOSE,1);</p>
<p>AA:=ABS(HIGH-LC2);</p>
<p>BB:=ABS(LOW-LC2);</p>
<p>CC:=ABS(HIGH-REF(LOW,1));</p>
<p>DD:=ABS(LC2-REF(OPEN,1));</p>
<p>R2:=IF(AA&gt;BB AND AA&gt;CC,AA+BB/2+DD/4,IF(BB&gt;CC AND BB&gt;AA,BB+AA/2+DD/4,CC+DD/4));</p>
<p>X01:=CLOSE-LC2+(CLOSE-OPEN)/2+LC2-REF(OPEN,1);</p>
<p>SI:=16*X01/R2*MAX(AA,BB);</p>
<p>ASI:=SUM(SI,0);</p>
<p>MASI:=MA(ASI,6);</p>
<p>P25:=IF(CLOSE&lt;HHV(CLOSE,13) AND ASI=HHV(ASI,13),1,IF(CLOSE&gt;LLV(CLOSE,13) AND ASI=LLV(ASI,13),(-1),0));</p>
<p>BIAS1:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;</p>
<p>P26:=IF(BIAS1&gt;10,1,IF(BIAS1&lt;(-10),(-1),0));</p>
<p>A:=VOL*CLOSE/10000;</p>
<p>IUV:=EXPMEMA(A,30);</p>
<p>MA6C:=EMA(IUV,6);</p>
<p>P27:=IF(IUV&gt;MA6C,1,IF(IUV&lt;MA6C,(-1),0));</p>
<p>N1:=30;</p>
<p>N2:=30;</p>
<p>MMM:=6;</p>
<p>RES1:=MA(CLOSE,N1);</p>
<p>RES2:=MA(AMOUNT,N2);</p>
<p>SOURCE1:=(AMOUNT/RES2-1)*100-(CLOSE/RES1-1)*100;</p>
<p>SOURCE2:=MA(SOURCE1,N2);</p>
<p>REF1:=REF(SOURCE2,1);</p>
<p>REF2:=REF(SOURCE1,N2);</p>
<p>IUSV:=(REF1*N2-REF2+SOURCE1)/N2;</p>
<p>EMA6B:=EMA(IUSV,MMM);</p>
<p>P28:=IF(IUSV&gt;EMA6B,1,IF(IUSV&lt;EMA6B,(-1),0));</p>
<p>决策曲线:=ROUND((P01+P02+P03+P04+P05+P06+P07+P08+P09+P10+P11+P12+P13+P14+P15+P16+P17+P18+P19+P20+P21+P22+P23+P24+P25+P26+P27+P28)/1.5+50);</p>
<p><br>
&nbsp;TDXSTEP286:STICKLINE(CLOSE&gt;0,36,36,10,0),COLORLICYAN;</p>
<p>TDXSTEP287:STICKLINE(CLOSE&gt;0,44,44,10,0),COLORLICYAN;</p>
<p>TDXSTEP288:STICKLINE(CLOSE&gt;0,56,56,10,0),COLORLICYAN;</p>
<p>TDXSTEP289:STICKLINE(CLOSE&gt;0,71,71,10,0),COLORLICYAN;</p>
<p>ER:=EXPMA(决策曲线,20);</p>
<p><br>
决策曲线JC:决策曲线,COLORWHITE;</p>
<p><br>
决策曲线JC强:IF(决策曲线&gt;56,决策曲线,DRAWNULL),COLORRED;</p>
<p></p>
<p></p>
页: [1]
查看完整版本: 通达信决策曲线简洁版副图指标公式源码决策曲线简洁版