顺势而为47 发表于 2024-4-16 06:35:00

通达信主图指标(飞龙在天)

<p>这个指标要么收费,要么是PDF版,抱着一定要搞掂的心态,昨晚花了差不多一个小时弄了出来。</p><p>公式源码(无未来)</p><p>MA5:MA(CLOSE,5);</p><p>短趋势线:MA(CLOSE,13),COLORRED,LINETHICK2;MA20:MA(CLOSE,20);</p><p>MA30:MA(CLOSE,30);</p><p>MA60:MA(CLOSE,60);</p><p>MA120:MA(CLOSE,120);</p><p>MA250:MA(CLOSE,250);</p><p>MAP:=MA(CLOSE,8);</p><p>AA5:=MA(CLOSE,21);</p><p>AA10:=MA(CLOSE,8),COLORFF0000;</p><p>AA12:=MA(CLOSE,12),COLORFF0000;BB10:=((ATAN((AA10-REF(AA10,1)))*</p><p>3.1416)*10);</p><p>BB12:=((ATAN((AA12-REF(AA12,1)))*3.1416)*10);</p><p>VAR01:=((((OPEN+LOW)+HIGH)+CLOSE)/4);</p><p>中期大底:=LLV(LOW,30),COLORCDFFBB;</p><p>短底:=EMA(VAR01,5);</p><p>支撑:=HHV(短底,60);</p><p>压力1:=HHV(LOW,20),COLORFAABEC;</p><p>中线:=MA(CLOSE,3);</p><p>DRAWTEXT(FILTER(((((HIGH&gt;支撑)AND(CLOSE&lt;支撑))AND((CLOSE/OPEN)&gt;(0-1.06)))AND(CLOSE&lt;OPEN)),5),(HIGH+0.02),'逃'),COLORFFFF00;</p><p>天:=(MA(LOW,15)*0.985);</p><p>人:=(MA(LOW,15)*0.96);</p><p>地:=(((HIGH+LOW)+CLOSE)/3);</p><p>B1:=HHV(地,(4*15));</p><p>B6:=LLV(地,(4*15));</p><p>B7:=(B1-B6);</p><p>B8:=(MA(((地-B6)/B7),2)*80);</p><p>VAR1:=(((CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)))*200);</p><p>飞龙顶底线1:=SMA(VAR1,3,1);</p><p>VAR2:=SMA(飞龙顶底线1,3,1);</p><p>VAR3:=((3*飞龙顶底线1)-(2*VAR2));</p><p>VAR4:=LLV(LOW,5);</p><p>VAR5:=HHV(HIGH,5);</p><p>VAR6:=(EMA((((CLOSE-VAR4)/(VAR5-VAR4))*100),4)*2);</p><p>VAR7:=EMA(((0.667*REF(VAR6,1))+(0.333*VAR6)),2);</p><p>VAR8:=((3*VAR6)-(2*VAR7));</p><p>VAR9:=(POW(MA(CLOSE,5),2)+MA(CLOSE,5));</p><p>VARA:=(POW(MA(LOW,5),2)+</p><p>MA(LOW,5));VARB:=(POW(MA(HIGH,5),2)+MA(HIGH,5));</p><p>VARC:=(((((VAR9-LLV(VARA,64))/(HHV(VARB,64)-LLV(VARA,64)))*150)+65)-10);</p><p>VARD:=((SMA(VARC,3,1)*1.5)-100);</p><p>VARE:=SMA(VARD,3,1);</p><p>VARF:=((3*VARD)-(2*VARE));</p><p>VAR10:=(((HIGH+LOW)+(CLOSE*2))/4);</p><p>VAR11:=EMA(VAR10,13);</p><p>VAR12:=STD(VAR10,13);</p><p>VAR13:=(((VAR10-VAR11)*100)/VAR12);VAR14:=EMA(VAR13,5);</p><p>VAR15:=EMA(VAR14,13);</p><p>VAR16:=((EMA(VAR14,13)+200)-100);</p><p>VAR17:=EMA(VAR16,10);</p><p>VAR18:=((3*VAR16)-(2*VAR17));</p><p>VAR19:=(((飞龙顶底线1+VAR6)+VARD)+VAR16);</p><p>VAR1A:=(((VAR2+VAR7)+VARE)+VAR17);</p><p>VAR1B:=(((VAR3+VAR8)+VARF)+VAR18);</p><p>VAR1C:=(((HIGH+LOW)+CLOSE)/3);VAR1D:=((AMOUNT/VOL)/100);</p><p>VAR1E:=((SUM(AMOUNT,5)/SUM(VOL,5))/100);</p><p>VAR1F:=((VAR1C-MA(VAR1C,34))/(0.015*AVEDEV(VAR1C,34)));</p><p>VAR21:=((((HIGH+LOW)+CLOSE)+VAR1C)/4);VAR22:=EMA(VAR21,24);</p><p>VAR23:=STD(VAR21,24);</p><p>VAR24:=(((VAR21-VAR22)/VAR23)*100);</p><p>VAR25:=((VAR1C-MA(VAR1C,24))/(0.015*AVEDEV(VAR1C,24)));</p><p>VAR26:=EMA(VAR24,5);</p><p>VAR27:=((VAR1D-MA(VAR1D,21))/(0.015*AVEDEV(VAR1D,21)));</p><p>VAR28:=((VAR1E-MA(VAR1E,90))/(0.015*AVEDEV(VAR1E,90)));</p><p>VAR29:=(((((((VAR28+VAR27)+VAR26)+VAR25)+VAR1F)/5)+165)/4);</p><p>VAR2A:=(((((VAR19+VAR1A)+(VAR1B*30))/32)/5)-15);</p><p>VAR2B:=(((VAR29+VAR2A)/2)/1.1);</p><p>VAR2C:=VAR2B;</p><p>短线:=MA(VAR2C,26);</p><p>MID:=(短线+(2*STD(VAR2C,26)));</p><p>UPPER:=(短线-(2*STD(VAR2C,26)));</p><p>LOWER:=IF((VAR2C&gt;短线),短线,VAR2C);</p><p>XY:=MA(CLOSE,5);</p><p>M80:=MA(CLOSE,80);</p><p>短期底部:=(LLV(HIGH,30)*0.93),COLOR0000FF;</p><p>MA80:=LLV(HIGH,30);</p><p>短期底部2:=SMA(CLOSE,2,1);</p><p>趋势:=(MA(LOW,10)*0.96);</p><p>趋:=(EMA(OPEN,107)*0.897);</p><p>超跌位2:=MA(CLOSE,15);</p><p>GF:=MA(CLOSE,10);</p><p>MAN:=(SMA(HIGH,21,2)*1.05);</p><p>上1:=(HHV(短底,60)*0.92);</p><p>压力2:=(SMA(HIGH,21,2)*1.035);</p><p>阻挡线:=(SMA(LOW,21,2)*0.96);</p><p>下档线:=(((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13)))*100);</p><p>RSV:=SMA(下档线,3,1);</p><p>K:=SMA(RSV,3,1);</p><p>D:=((3*RSV)-(2*K));</p><p>J:=(((CLOSE-MA(CLOSE,6))/MA(CLOSE,6))*100);</p><p>VAR2P:=(((CLOSE-MA(CLOSE,12))/MA(CLOSE,12))*100);</p><p>VAR3P:=(((CLOSE-MA(CLOSE,24))/MA(CLOSE,24))*100);</p><p>VAR4P:=(((J+(2*VAR2P))+(3*VAR3P))/6);</p><p>VAR5P:=MA(VAR4P,3);</p><p>VAR6P:=(((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*100);</p><p>RSV12:=SMA(VAR6P,3,1);</p><p>K12:=SMA(RSV12,3,1);</p><p>D12:=((3*RSV12)-(2*K12));</p><p>J12:=(((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)))*100);</p><p>RSV24:=SMA(J12,3,1);</p><p>K24:=SMA(RSV24,3,1);</p><p>D24:=((3*RSV24)-(2*K24));</p><p>J24:=IF(CROSS(D,D24),LOW,REF(LOW,BARSLAST(CROSS(D,D24))));</p><p>压力位:=IF(CROSS(D24,D),HIGH,REF(HIGH,BARSLAST(CROSS(D24,D)))),COLORFFFFFF;</p><p>支撑位:=IF((CLOSE&gt;=MA(CLOSE,20)),80,50);</p><p>U2L:=IF((CLOSE&gt;=MA(CLOSE,20)),50,20);</p><p>L2L:=IF(((D&lt;支撑位)AND(REF(D,1)&gt;=支撑位)),HHV(REF(HIGH,1),(BARSLAST(((D&gt;=支撑位)AND(REF(D,1)&lt;支撑位)))-1)),REF(HHV(REF(HIGH,1),(BARSLAST(((D&gt;=支撑位) AND (REF(D,1)&lt;支撑位)))-1)),BARSLAST(((D&lt;支撑位) AND REF(D,1)))));</p><p>RH1:=IF((HIGH&gt;L2L),LOW,REF(LOW,BARSLAST((HIGH&gt;L2L))));</p><p>RH4:=IF((HIGH&gt;L2L),D,REF(D,BARSLAST((HIGH&gt;L2L))));</p><p>RH42:=IF((((HIGH&gt;RH1)AND(D&lt;RH4))AND(D&lt;D24)),HIGH,REF(HIGH,BARSLAST((((HIGH&gt;RH1)AND(D&lt;RH4))AND(D&lt;D24)))));</p><p>RH5:=IF(((D&gt;U2L) AND (REF(D,1)&lt;=U2L)),LLV(REF(LOW,1),(BARSLAST(((D&lt;=U2L) AND (REF(D,1)&gt;U2L)))-1)),REF(LLV(REF(LOW,1),(BARSLAST(((D&lt;=U2L) AND (REF(D,1)&gt;U2L)))-1)),BARSLAST(((D&gt;U2L) AND REF(D,1)))));</p><p>RL1:=IF((LOW&lt;RH5),HIGH,REF(HIGH,BARSLAST((LOW&lt;RH5))));</p><p>RL4:=IF((LOW&lt;RH5),D,REF(D,BARSLAST((LOW&lt;RH5))));</p><p>RL42:=IF((((LOW&lt;RL1) AND (D&gt;RL4)) AND (D&gt;D24)),LOW,REF(LOW,BARSLAST((((LOW&lt;RL1) AND (D&gt;RL4)) AND (D&gt;D24)))));</p><p>长期底部:=LLV(HIGH,30),COLORFF0000;</p><p>DRAWTEXT(FILTER(((((RL42=J24) AND (CLOSE&gt;OPEN)) AND (CLOSE&gt;长期底部)) AND (LOW&lt;=J24)),20),(LOW-0.12),'底成'),COLOR0EABFF;</p><p>RL5:=(SMA(HIGH,5,2)*1.05);</p><p>上:=(SMA(LOW,5,2)*0.96);</p><p>下:=SMA(LOW,2,1);</p><p>中:=(((((3*CLOSE)+HIGH)+LOW)+OPEN)/6);</p><p>X1:=EMA(中,10);</p><p>X2:=REF(X1,1);</p><p>X3:=((REF(HIGH,1)+REF(LOW,1))/2);</p><p>X4:=(MA(CLOSE,21)+(2*STD(CLOSE,21)));</p><p>X5:=REF(CLOSE,1);</p><p>X6:=((SMA(MAX((CLOSE-X5),0),7,1)/SMA(ABS((CLOSE-X5)),7,1))*100);</p><p>X7:=CROSS(79,X6);</p><p>X8:=FILTER(X7,4);</p><p>X9:=MA(CLOSE,115);</p><p>VAR001:=EMA(CLOSE,8);</p><p>飞龙顶底线:=EMA(VAR001,20);</p><p>VAR002:=CROSS(VAR001,飞龙顶底线);</p><p>VAR003:=(VAR001&lt;MA(CLOSE,20));</p><p>VAR004:=(((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36)))*100);</p><p>VAR005:=SMA(VAR004,5,1);</p><p>VAR006:=SMA(VAR005,8,1);</p><p>VAR007:=(CROSS(VAR005,VAR006)AND(VAR006&lt;5));</p><p>VAR008:=((CLOSE&gt;(LLV(CLOSE,60)+(0.3*LLV(CLOSE,60)))) AND VAR007);</p><p>VAR009:=IF((CLOSE&gt;1000),VAR007,VAR008);</p><p>VAR00F:=CROSS(X1,X2);</p><p>MA115:=VAR00F;</p><p>低买:=(VAR002 AND VAR003);</p><p>黑马起步:=VAR009;</p><p>DRAWTEXT(X8,(HIGH*1.03),'出货'),COLOR9000F5;</p><p>DRAWTEXT((黑马起步&gt;0),(HIGH*1.04),'逃命'),COLORFF0000;</p><p>逃遁:=(SMA(HIGH,21,2)*1.05);</p><p>阻挡:=(SMA(LOW,21,2)*0.94);</p><p>DRAWTEXT(FILTER(((((((((CLOSE/OPEN)&gt;1.03) AND ((超跌位2-REF(超跌位2,1))&gt;0)) AND ((CLOSE-REF(CLOSE,1))&gt;0)) AND (HIGH&lt;压力1)) AND (CLOSE&lt;压力1)) AND ((压力2-REF(压力2,1))&gt;0)) AND (CLOSE&lt;MAN)),3),LOW,'出击'),COLORYELLOW;</p><p>DRAWTEXT((((((低买&gt;0)AND((X1-REF(X1,1))&gt;0))AND(HIGH&lt;压力位))AND(HIGH&lt;X9))AND((X2-REF(X2,1))&gt;0)),LOW,'黑马'),COLORRED;</p><p>DRAWTEXT((((((CROSS(VAR2C,短线)AND((CLOSE-REF(HIGH,1))&gt;0))AND((中线-REF(中线,1))&gt;0))AND(HIGH&lt;=压力1))AND(CLOSE&lt;MA20))AND(LOW&lt;=中线)),(LOW-0.06),'关注'),COLOR00FF00;</p><p>DRAWTEXT((((CROSS(VAR2C,UPPER)AND(HIGH&lt;压力1))AND((XY-REF(XY,1))&gt;0))AND(HIGH&lt;支撑)),LOW,'买'),COLORFFFFFF;</p><p>DRAWTEXT(FILTER(((((((LOW&lt;=天)AND(CLOSE&gt;=MA20))AND(HIGH&lt;压力1))AND((天-REF(天,1))&gt;0))AND(CLOSE&lt;压力1))AND((MA20-REF(MA20,1))&gt;0)),6),(LOW-0.12),'全仓'),COLOR00FFFF;</p><p>DRAWTEXT(FILTER((((((MA115 AND (CLOSE&lt;压力位))AND((人-REF(人,1))&gt;0))AND((X1-REF(X1,1))&gt;0))AND(HIGH&lt;上1))AND((CLOSE/OPEN)&gt;1.03)),5),LOW,'?买'),COLOR93EE7D;</p><p>DRAWTEXT(((((LOW&lt;=上)AND(HIGH&gt;=短期底部))AND(CLOSE&gt;=长期底部)) AND ((CLOSE/OPEN)&gt;1.03)),(LOW-0.08),'?抄底'),COLOR0000FF;</p><p>DRAWTEXT(FILTER((((((B8&lt;=1)AND(LOW&lt;=阻挡))AND(CLOSE&gt;OPEN))AND (LOW&lt;=中期大底))AND(CLOSE&gt;=长期底部)),3),(LOW-0.08),'短抄E'),COLORA100FF;</p><p>DRAWTEXT((((CROSS(D,0)AND(HIGH&lt;压力位))AND(VAR5P&lt;=(0-7)))AND(CLOSE&lt;XY)),(LOW-0.11),'半仓'),COLORFFFF00;</p><p>DRAWTEXT(FILTER((((CROSS(趋势,趋)AND(HIGH&lt;M80))AND(HIGH&lt;压力1))AND LLV(LOW,0)),10),LOW,'果断买'),COLOR668800;</p><p>DRAWTEXT(FILTER(((CROSS(中线,人)AND(LOW&lt;=人))AND(CLOSE&gt;=人)),4),(LOW-0.06),'买'),COLOR00FF00;</p><p>DRAWTEXT(((CROSS(阻挡,长期底部)AND(BB10&gt;1))AND(HIGH&lt;支撑)),LOW,'出击'),COLORRED;</p><p>DRAWTEXT(FILTER((((((((MA20-REF(MA20,1))&gt;0) AND (HIGH&lt;支撑)) AND ((AA10-REF(AA10,1))&gt;0)) AND (HIGH&lt;压力1))AND(VOL&gt;=REF(VOL,1))) AND CROSS(CLOSE,MA20)),57),LOW,'突破生命线'),COLOR0000FF;</p><p>DRAWTEXT(FILTER(((((LOW&lt;=MA80)AND(CLOSE&gt;MA80))AND (CLOSE&gt;OPEN)) AND (短期底部2&lt;=MA80)),8),LOW,'底'),COLORFFFF00;</p><p>DRAWTEXT(((CROSS(MA20,压力位)AND(LOW&lt;=MA20))AND((MA20-REF(MA20,1))&gt;0.02)),(LOW-0.03),'?绝佳买点'),COLORAFA0AF;</p><p>DRAWTEXT((((((((CROSS(CLOSE,MA20)AND(HIGH&lt;压力位))AND(OPEN&lt;MA20))AND(HIGH&lt;支撑))AND((MAN-REF(MAN,1))&gt;0))AND((X1-REF(X1,1))&gt;0))AND(D&lt;63))AND((MA20-REF(MA20,1))&gt;0)),(LOW-0.05),'?大牛浮水'),COLORBLUE;</p><p>STICKLINE(CROSS(MA(CLOSE,13),C) AND MA(CLOSE,13)&gt;REF(MA(CLOSE,13),1) AND V&lt;REF(V,1)AND MA(CLOSE,13)&gt;MA(CLOSE,55),L,L*0.98,3,0),COLORYELLOW;</p><p>DRAWTEXT(CROSS(MA(CLOSE,13),C)AND INDEXC&gt;MA(INDEXC,13)AND MA(CLOSE,13)&gt;REF(MA(CLOSE,13),1)AND V&lt;REF(V,1)AND MA(CLOSE,13)&gt;MA(CLOSE,55),L*0.9,'买'),COLORRED,LINETHICK2;</p><p>STICKLINE(CROSS(CLOSE,(((C-REF(MA(CLOSE,20),1))/20+MA(CLOSE,13))*1.20))AND MA(CLOSE,13)&gt;REF(MA(CLOSE,13),1),H,H*1.02,3,0),COLORYELLOW,LINETHICK2;</p><p>VAR011:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;</p><p>VAR012:=HHV(VAR011&gt;20,10);</p><p>DRAWTEXT(FILTER(VAR011&lt;-9 AND VAR011&gt;REF(VAR011,1),18),L*0.9,'反弹'),COLORRED,LINETHICK2;</p><p>DRAWTEXT(VAR011&lt;-20 AND INDEXC&lt;MA(INDEXC,13)AND FILTER(VAR011&gt;REF(VAR011,1),5),L*0.93,'抄底'),COLORYELLOW,LINETHICK2;</p><p>DRAWTEXT(VAR012 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),H*1.1,'危险'),COLORYELLOW;</p><p>VAR013:=IF(MA(CLOSE,13)&gt;REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL);</p><p>DRAWTEXT((IF(CLOSE&gt;MA(CLOSE,13)AND OPEN&lt;CLOSE,-0.1,0))AND((C-REF(C,1))/(REF(C,1))&gt;0.061)AND (MA(CLOSE,13)=VAR013)AND(MA(CLOSE,1),MA(CLOSE,13))AND (VOL&gt;REF(HHV(VOL,3),1)*2),L*0.9,'主力介入'),COLORMAGENTA;</p><p>N:=5;</p><p>B36:=MA(CLOSE,3)-MA(CLOSE,6);</p><p>B612:=MA(CLOSE,6)-MA(CLOSE,12);</p><p>W:=((B36)/(CLOSE))*(10);</p><p>J1:=((B612)/(CLOSE))*(10);</p><p>DRAWTEXT((W&lt;(-0.2)) AND (J1&lt;(-0.2)) AND CROSS(W,J1),(LOW)*0.93,'庄'),COLORRED;</p><p>庄家:=(W&lt;(-0.2))AND(J1&lt;(-0.2))AND CROSS(W,J1);</p><p>M1:=SUM((EMA((CLOSE+LOW)/(2),2))/(2.98),3),POINTDOT,COLORFFFFFF;</p><p>M2:=EMA(M1,21),COLORFF00FF;</p><p>VARP1:=(2)*(MA((LLV((CLOSE+LOW)/(2),8))*(1.1),13))-EMA((CLOSE+LOW)/(2),3)-((CLOSE+LOW)/(2))*(0.1);VARP2:=IF(((EMA((CLOSE+LOW)/(2),3)-VARP1)*(5)&gt;0),(POW((EMA((CLOSE+LOW)/(2),3)-VAR1)*(5),2))/(10),(((-1))*(POW((EMA((CLOSE+LOW)/(2),3)-VAR1)*(5),2)))/(10));VARP3:=IF((VARP2&gt;0),VARP2-0,(-1));工作线:=MA(CLOSE,1);</p><p>M3:=MA(CLOSE,3);</p><p>M13:=MA(CLOSE,13);</p><p>EMA13:=EMA(C,13);</p><p>EMA34:=EMA(C,34);</p><p>EMA55:=EMA(C,55);</p><p>EMA120:=EMA(C,120);</p><p>AR1:=EMA55&gt;EMA34 AND EMA34&gt;EMA13;</p><p>AR2:=BARSLAST((C-EMA13)/EMA13*100&lt;-6);</p><p>AR3:=EMA13&gt;=REF(EMA13,2);</p><p>AR4:=COUNT(CROSS(C,EMA13),AR2)=1;</p><p>AR5:=AR1 AND AR2 AND AR3 AND AR4;</p><p>AR6:=AR5 AND FILTER(AR5,10);</p><p>V1:=EMA(CLOSE,5);</p><p>V2:=EMA(EMA(CLOSE,90)*1.01,10);</p><p>DRAWTEXT(CROSS(V1,V2),L-0.09,'起'),COLOR00FF00;</p><p>AA1:=AMOUNT/V;</p><p>BB1:=L&lt;AA1*0.9;</p><p>CC1:=(C-REF(C,1))/REF(C,1)*100&gt;1.2;</p><p>DD1:=L&lt;MA(C,5)*0.921;</p><p>EE1:=V&lt;MA(V,5)*1.5;</p><p>FF1:=BB1 AND CC1 AND DD1 AND EE1;</p><p>A1AA:=9;</p><p>A2AA:=(REF(CLOSE,A1AA+1)&lt;CLOSE);</p><p>DRAWTEXT(FILTER((A2AA&gt;-0.5),84),(HIGH)*(1.04),'变'),COLORFFFFFF;</p><p>TT2:=DMA((((HIGH+LOW)+(CLOSE*2))/4.15),0.9);</p><p>TT1:=REF(EMA(TT2,3),1);</p><p>RSVP:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;</p><p>KP:=SMA(RSVP,3,1);</p><p>DP:=SMA(KP,3,1);</p><p>JP:=3*K-2*DP;</p><p>EMA1:=EMA(C,1);</p><p>LOCK:=1;</p><p>M8:=EMA(CLOSE,8);</p><p>VARP21:=EMA(M13,62);</p><p>VARP22:=(CLOSE+HIGH+LOW)/3;</p><p>VARP23:=EMA(VARP22,10)*LOCK;</p><p>VARP24:=REF(VAR23,1)*LOCK;</p><p>DRAWTEXT(AR6,L-0.25,'杏'),COLOR00CCFF;</p><p>BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5),5)=5;</p><p>BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C&lt;0.2;</p><p>BR3:=C&gt;EMA55 AND (REF(C,1)&lt;REF(EMA55,1) OR REF(C,2)&lt;REF(EMA55,2) OR REF(C,3)&lt;REF(EMA55,3)OR REF(C,4)&lt;REF(EMA55,4)OR REF(C,5)&lt;REF(EMA55,5));</p><p>BR4:=BR1 AND BR2 AND BR3;</p><p>DRAWTEXT(BR4 AND FILTER(BR4,10),H*1.08,'蚁'),COLOR00C5FF;</p><p>DRAWTEXT(CROSS(EMA34,EMA55),L-0.5,'重'),COLORYELLOW;</p><p>DRAWTEXT(CROSS(88,RSI),(HIGH*1.02),'顶'),COLOR1880FF;</p><p>VARP11:=IF(C&gt;=O,H,0);</p><p>VARP12:=IF(C&lt;=O,REF(H,1),VARP11);</p><p>VARP13:=IF(C&gt;=O,V,0);</p><p>VARP14:=IF(C&lt;=O,REF(V,1),VAR3);</p><p>VARP15:=COUNT(VARP12&gt;REF(VARP12,1)AND VARP14&lt;REF(VARP14,1),3)&gt;=2 AND C&gt;O;</p><p>量价背离:=VAR15*40,STICK,COLORF5CCEB,LINETHICK2;</p><p>DRAWTEXT(量价背离,HIGH*1.02,'离'),COLORYELLOW;</p><p>VAREP:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;</p><p>VARFP:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);</p><p>VAR60:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);</p><p>VAR61:=VARF&lt;REF(VAR60,1)AND VOL&gt;REF(VOL,1) AND CLOSE&gt;REF(CLOSE,1);</p><p>大资金:=(VAR61 AND COUNT(VAR61,30)=1);</p><p>DRAWTEXT(大资金,LOW*0.9,'?');</p><p>DRAWTEXT(大资金,LOW*0.8,'大资金');</p><p>RSV11:=(C-LLV(LOW,27))/(HHV(HIGH,3)-LLV(LOW,27))*100;</p><p>F:=SMA(RSV11,3,1);</p><p>K11:=SMA(F,3,1);</p><p>D11:=SMA(K11,3,1);</p><p>WAV:=3*K11-2*D11;</p><p>A41:=IF(1,C,IF(C&lt;REF(O,1)AND L&lt;REF(L,1),L,C));</p><p>A42:=IF(C&lt;REF(L,1),L,A41);</p><p>A43:=IF(H&lt;REF(O,1),L,A42);</p><p>A44:=IF(O&lt;=REF(C,1)AND C&lt;REF(O,1),L,A43);</p><p>A:=IF(C&lt;O AND O&lt;REF(O,1) AND L&lt;REF(L,1),L,A44);</p><p>AJ1:=ATAN((A/REF(A,1)-1)*100)*180/3.1416;</p><p>LJIAO:=ATAN((VOL/REF(VOL,1)-1)*100)*180/3.1416;</p><p>DSLJ:=LJIAO&gt;0 AND ABS(LJIAO-AJ1)&lt;30;</p><p>JIA5:=WAV-REF(WAV,4)&gt;50;</p><p>DSALE:=DSLJ AND (JIA5 OR WAV&gt;90);</p><p>DILJ:=LJIAO&lt;0 AND ABS(LJIAO-AJ1)&lt;30;</p><p>JIA6:=WAV-REF(WAV,4)&lt;-50;</p><p>DBUY:=DILJ AND (JIA6 OR WAV&lt;10);</p><p>PLX:=((C-MA(C,10))/MA(C,10)+(C-MA(C,5))/MA(C,5))*100;</p><p>DING1:=PLX&gt;25;</p><p>DI1:=PLX&lt;-25;</p><p>跌幅:=(C-HHV(C,10))/HHV(C,10)*100;</p><p>DI2:=跌幅&lt;-20;</p><p>涨幅:=(C-LLV(C,10))/LLV(C,10)*100;</p><p>DING2:=涨幅&gt;20;</p><p>DING:=DSALE OR DING2;</p><p>DI:=DBUY OR DI1 OR DI2;</p><p>QSA:=(MA(C,60)-REF(MA(C,60),10))/REF(MA(C,60),10)*100;</p><p>QS:=SMA(QSA,10,1);</p><p>DS:=QS&lt;-3 OR MA(C,60)&lt;REF(MA(C,60),1);</p><p>QC:=DS AND DING AND DING!=REF(DING,1);</p><p>DRAWTEXT(QC,H*1.05,'?'),COLORRED;</p><p>DRAWTEXT(QC,H*1.15,'做空'),COLORRED;</p><p>VARAP:=LLV(LOW,36);</p><p>VARBP:=HHV(HIGH,30);</p><p>VARCP:=EMA((CLOSE-VARAP)/(VARBP-VARAP)*4,4)*25;</p><p>VAR71:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);</p><p>VAR72:=8;</p><p>CC3:=CROSS(VAR71,VAR72);</p><p>DRAWTEXT(CC3,L*0.98,'买~'),COLOR0099FF;</p><p>TT:=240/FROMOPEN;</p><p>比:=TT;</p><p>JP12:=(HIGH-((HIGH-LOW)/3));</p><p>J23:=(LOW+((HIGH-LOW)/3));</p><p>AAA:=CONST(HHV(H,90));</p><p>BBB:=CONST(LLV(L,100));</p><p>DRAWKLINE(H,O,L,C);</p><p>大盘:=EMA(INDEXC,500)/EMA(C,500);</p><p>大盘线:=INDEXC/大盘,LINETHICK1,COLOR0066FF;</p><p>大盘线1:=MA((INDEXC/大盘),5),COLORGREEN;</p><p>T1{早晨之星}:=CONST(IF((大盘线&gt;=REF(大盘线,1) AND CROSS(大盘线,大盘线1)),1,0));</p><p>T3{长十字}:=CONST(IF((大盘线&lt;=REF(大盘线,1) AND CROSS(大盘线1,大盘线)),1,0));</p><p>TS1:=IF(T1=1,0+0.03,0);</p><p>TS3:=IF(T3=1,TS1+0.03,TS1);DRAWTEXT(T1=1 AND CURRBARSCOUNT=38,AAA-(AAA*TS1),'大盘多头攻击,机会出现,买股'),COLORFF00FF;</p><p>DRAWTEXT(T3=1 AND CURRBARSCOUNT=38,AAA-(AAA*TS3),'大盘空头攻击,无机会,出局'),COLOR00FFFF;</p><p>好不好用,见仁见智 我个人喜欢简单的。</p>
页: [1]
查看完整版本: 通达信主图指标(飞龙在天)