{[用技術(shù)結(jié)交有緣人]
送你技術(shù),讓你掙錢不憂郁:還有自用絕密指標(biāo),信號(hào)無(wú)未來(lái)、不漂移,只給有緣人...QQ:836393036 } 【通達(dá)信】趨勢(shì)啟動(dòng)(DMI啟動(dòng)、趨勢(shì)線、逃頂、主力進(jìn)場(chǎng))-指標(biāo)公式源碼
{DMI啟動(dòng)N=9 M=15} 趨勢(shì):3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA (SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),POINTDOT,COLORRED; 啟動(dòng)在即: IF(CROSS(趨勢(shì),3),100,0),COLORFF00FF; 機(jī)構(gòu)建倉(cāng): IF(趨勢(shì)<5,-100,0),COLORFF0080,LINETHICK2; 98; {趨勢(shì)指標(biāo)} 趨勢(shì)線: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100; {JMTW} VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100; VAR2:=SMA(VAR1,3,1); VAR3:=SMA(VAR2,3,1); VAR4:=SMA(VAR3,3,1); 波: VAR3; 段: VAR4; VAR7:=CROSS(VAR3,趨勢(shì)線) AND VAR3>60; STICKLINE(FILTER(VAR7,5)=1,100,120,1,0),COLORYELLOW ; DRAWTEXT(FILTER(VAR7,5)=1,110,'逃頂'),LINETHICK3 ,COLORYELLOW; VAR8:=CROSS(VAR2,VAR3) AND VAR3>80 AND VAR3>VAR4; VAR11:=(HHV(HIGH,5)-LLV(LOW,5)); VAR12:=(HHV(HIGH,9)-CLOSE); VAR13:=(CLOSE-LLV(LOW,9)); VAR14:=VAR12/VAR11*100-70 ; VAR15:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; VAR16:=(2*C+H+L)/4; VAR17:=SMA((VAR13/VAR11*100),3,1); VAR18:=LLV(LOW,34); VAR19:=SMA(VAR17,3,1)-SMA(VAR14,9,1); VAR10:= IF(VAR19>100,VAR19-100,0); VARA:=HHV(HIGH,34); AO:SMA(VAR1,5,1)-SMA(VAR1,34,1),COLOR6699CC; AC:SMA((AO-SMA(AO,5,1)),5,1),COLOR6699CC; VAR1B:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100; VAR1C:=SMA((SMA(VAR1B,4,1)-50)*2,3,1); STICKLINE(AO>REF(AO,1) AND AC>REF(AC,1) AND VAR1C>REF(VAR1C,1) OR VAR1C=REF(VAR1C,1),0,VAR1C,1,1),COLORRED; ZZ:=AO>REF(AO,1) AND AC>REF(AC,1) AND VAR1C>REF(VAR1C,1) OR VAR1C=REF(VAR1C,1) ; STICKLINE(VAR1C<REF(VAR1C,1),0,VAR1C,1,1),COLORGREEN; DD:=VAR1C<REF(VAR1C,1); VAR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5); VAR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5); VAR03:=CROSS(VAR02,VAR01); VAR04:=REF(VAR02,2)<REF(VAR02,1) AND VAR02<REF(VAR02,1); VAR05:=COUNT(VAR03,7)>0 AND VAR04; VAR06:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); VAR07:=SMA(ABS(LOW-VAR06),13,1)/SMA(MAX(LOW-VAR06,0),10,1); VAR08:=EMA(VAR07,10); VAR09:=EMA(C,5); VAR110:=LLV(LOW,33); VAR111:=EMA(IF(LOW<=VAR110,VAR09,0),3)*40; VAR112:=IF(VAR111>100,VAR111*0.312,VAR111); 主力進(jìn)場(chǎng):IF(VAR111>100,VAR111*0.312,VAR111),COLOR00C7FF; |
|