拉升线 N:=8; M:=13; P:=60; S:=3; V1:=(C*2+H+L)/4*10; V2:=EMA(V1,13)-EMA(V1,34); V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5; 主力资金流入: IF(V4>=0,V4,0),colorred,LINETHICK3; 主力资金流出: IF(V4<=0,V4,0),COLOR66FF00,LINETHICK2; V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8; V6:=EMA(3*V5-2*SMA(V5,18,1),5); V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10; V8:=(INDEXC*2+INDEXH+INDEXL)/4; V9:=EMA(V8,13)-EMA(V8,34); VA:=EMA(V9,3); VB:=(V9-VA)/2; 冲顶拉升线:8,COLORFF80FF,LINETHICK1,CROSSDOT; 上穿四线,就是强势,源码分享一份穿四线给大家。指标只是辅助,具体交易要结合大盘和个股情况来看。 DRAWGBK(CURRBARSCOUNT=1, RGB(110,108,108),RGB(88,30,0),0,'',0); AA:=(C*2+H+L+O)/5; A0:=MA(C,5); A1:=(EMA(AA,4)+MA(AA,8)+MA(AA,16))/3,COLORWHITE,LINETHICK2; A2:=(EMA(AA,9)+MA(AA,18)+MA(AA,36))/3,COLORFF00FF,LINETHICK2; A3:=(EMA(AA,13)+MA(AA,26)+MA(AA,52))/3,COLOR00FF00,LINETHICK2; A4:=(EMA(AA,24)+MA(AA,48)+MA(AA,96))/3,COLOR0000FF,LINETHICK2; A5:=EMA(100*(C-LLV(L,100))/(HHV(H,100)-LLV(L,100)),5); A6:=A5/4;{分析家公式网} A7:=MAX(MAX(A1,A2),MAX(A3,A4)); A8:=MIN(MIN(A1,A2),MIN(A3,A4)); A9:=MIN(MIN(A1,A2),A3); A10:=MAX(MAX(A1,A2),A3); 穿四线:FILTER(H>A7 AND L<A8 AND A1>REF(A1,1)AND A2>REF(A2,1)AND A4>REF(A4,2)AND (A7-A8)/A8<0.04 AND C>O AND (H-C)/(C-O)<0.4,3); STICKLINE(穿四线>0,3,0,2,0),COLORMAGENTA; 多空转换金叉黑马买点,没未来函数(顶尖财经 股票学院: www.58188.com) N:=20; VAR01:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),15,1); VAR02:=HIGH-REF(HIGH,5); VAR03:=REF(LOW,5)-LOW; JJ:=(HIGH+LOW+CLOSE)/3; VAR04:=SMA(IF(VAR02>0 AND VAR02>VAR03,VAR02,0),15,1); VAR05:=SMA(IF(VAR03>0 AND VAR03>VAR02,VAR03,0),15,1); VAR06:=LLV(LOW,27); VAR07:=HHV(HIGH,34); VAR08:=EMA((CLOSE-VAR06)/(VAR07-VAR06)*4,4)*25; VAR09:=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); 做空:VAR05*100/VAR01,COLORLIBLUE; 提示买入:IF(VAR09<=8,8,0),STICK,COLORWHITE,LINETHICK2; QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW); QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW))); QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN)))); QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE)))); QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ))); VAR10:=MA(C,2)>REF(MA(C,2),1); VAR11:=MA(C,10)>MA(C,20); VAR12:=(CLOSE*2+HIGH+LOW)/4; VAR13:=EMA(VAR12,12)-EMA(VAR12,50); VAR14:=EMA(VAR13,2); VAR15:=(CROSS(VAR13,VAR14) AND VAR13<-0.04 AND (C-REF(C,1))/REF(C, 1)>=0.03) OR (CROSS(VAR13,VAR14) AND VAR13<=-0.14 ) OR (CROSS(VAR13, VAR14) AND VAR13<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) AND VAR10 AND VAR11; STICKLINE(VAR15>0,60,110,2,0),COLORRED; DRAWTEXT(VAR15,90,'←黑马'),COLORYELLOW; DDX:20*((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,100000000,1000000),COLOR00AAAA,LINETHICK; DX:=(MA(DDX,5)*N)*2; 涨跌:=IF(BETWEEN(C,REF(C,1),H),VOL,0); 动因:=IF(BETWEEN(C,REF(C,1),L),VOL,0); VAR16:=REF(LOW,1); VAR17:=(SMA(ABS(LOW-VAR16),13,1))/(SMA(MAX(LOW-VAR16,0),13,1))*100; VAR18:=MA(VAR17,13); VAR19:=LLV(LOW,34); CC2:=IF(涨跌 AND 动因,0,VOL/3); 涨跌动因:3*(涨跌-(动因+CC2))/IF(CAPITAL<1,SUM(INDEXV,71),CAPITAL),LINETHICK0; VAR20:=EMA(IF(LOW<=VAR19,VAR18,0),3); VAR21:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1); VAR22:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR21*10.9; VAR23:=FILTER(IF(VAR22<=VAR21 AND VAR20>REF(VAR20,1),VAR20*8,0),20); STICKLINE(涨跌动因>0,20,20+涨跌动因*18.5,2.5,0 ),COLORYELLOW; STICKLINE(涨跌动因<0,20,20+涨跌动因*18.5,2.5,0 ),COLORBLUE; DRAWTEXT(VAR23,35,'←洗盘'),COLORGREEN; STICKLINE(VAR23=1,35,110,2,0),COLORGREEN; VAR24:=3; VAR25:=(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)); 买点:IF((VAR25<=3),15,0),COLORYELLOW,LINETHICK2; 补仓:IF((VAR25<5),10,0),COLORRED,LINETHICK2; VAR26:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VAR27:=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); VAR28:=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); VAR29:=VAR27<REF(VAR28,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); VAR30:=(HIGH+LOW+CLOSE)/3; MA1:MA(涨跌动因,N)*2; AA:=(WINNER((CLOSE + ((CLOSE * 15) / 100))) * 100); BB:=(WINNER((CLOSE + ((CLOSE * 0) / 100))) * 100); CC:=(AA - BB); VAR31:=(VAR30-MA(VAR30,14))/(0.015*AVEDEV(VAR30,14)); VAR32:=(VAR30-MA(VAR30,70))/(0.015*AVEDEV(VAR30,70)); VAR33:=IF(VAR31>=150 AND VAR31<200 AND VAR32>=150 AND VAR32<200,10,0); VAR34:=IF(VAR31<=-150 AND VAR31>-200 AND VAR32<=-150 AND VAR32>-200,-10,VAR33); VAR35:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100; VAR36:=100-ABS(VAR35); VAR37:=IF(VAR36<90,VAR36,100); VAR38:=IF(VAR26>0,VAR26,0); VAR39:=IF(VAR32>=200 AND VAR31>=150,15,IF(VAR32<=-200 AND VAR31<=-150,-15,VAR34))+60; VAR40:=VAR38>60 AND VAR39>70 AND VAR37<100; VAR41:=((CLOSE-MA(CLOSE,18))/MA(CLOSE,18)*100+(CLOSE-MA(CLOSE, 90))/MA(CLOSE,90)*100+(CLOSE-MA(CLOSE,72))/MA(CLOSE,72)*100)/3; DD:=((WINNER((CLOSE - ((CLOSE * 0.1) / 100))) - WINNER((CLOSE - ((CLOSE * 15) / 100)))) * 100); EE:=(((CC < 3) AND (DD < 0.5)) AND (OPEN > LOW)); DRAWTEXT(VAR29 AND COUNT(VAR29,30)=1,70,'←筹码进入'),COLORMAGENTA; STICKLINE(VAR29 AND COUNT(VAR29,30)=1,60,110,2,0),COLORMAGENTA; DRAWTEXT(VAR40 AND COUNT(VAR40,30)=1,35,'←出逃'),COLORCYAN; STICKLINE(VAR40 AND COUNT(VAR40,30)=1,50,110,2,0),COLORCYAN; A1:=DYNAINFO(6); A22:=IF((LOW > A1),0,IF((HIGH < A1),1,(((A1 - LOW) + 0.01) / ((HIGH - LOW) + 0.01)))); A3:=(VOL / WINNER(LOW)); A4:=REF(HHV(CLOSE,120),1); A5:=REF(LLV(CLOSE,120),1); DRAWTEXT(FILTER(VAR41<-9 AND VAR41>REF(VAR41,1),78),55,'←买票'),COLORWHITE; STICKLINE(FILTER(VAR41<-9 AND VAR41>REF(VAR41,1),78),55,110,2,0),COLORWHITE; WWWCHNMONEYCOM:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; A6:=((100 * (CLOSE - A5)) / (A4 - A5)); A7:=((A22 > 0) OR (A22 = 1)); A8:=((A7 AND ((A3 / REF(A3,3)) >= 3)) AND (A6 < 80)); A9:=(((REF(A8,1) OR REF(A8,2)) OR REF(A8,3)) OR REF(A8,4)); A10:=(A8 AND A9); 快:=COUNT(CLOSE>REF(CLOSE,2),4)/4*100; 慢:=COUNT(CLOSE>REF(CLOSE,2),6)/6*100; 关注:IF(快=0 AND 慢=0,10,0),COLORCYAN,LINETHICK2; 风险:IF(快=100 AND 慢>=80,100,110),COLORLIGREEN; |