通達信【反包斬妖進場】主圖指標(biāo),結(jié)合前輩的思路,自編抓妖主圖,精品源碼! VAR8:=C; VAR1:=REF(VAR8,1)<REF(O,1); 趨勢線:MA(VAR8,10)DOTLINE; VAR2:=REF(vol,1)>REF(VOL,2); VAR3:=VAR8>REF(HIGH,1); AA:=C>MA(C,10); DC:=VAR1 AND VAR2 AND VAR3 AND AA; STICKLINE(DC,O,C,2,0),COLORRED; DRAWICON(DC,L,9); DRAWTEXT(DC,L*0.98,'★反包'),COLORYELLOW; VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5; VAR2:=VAR1+HIGH-LOW; VAR3:=2*VAR1-LOW; VAR4:=VAR1-HIGH+LOW; VAR5:=2*VAR1-HIGH; VAR6:=HIGH<REF(LOW,1) OR LOW>REF(HIGH,1); VAR7:=CLOSE=HHV(CLOSE,13); VAR8:=BARSLAST(FILTER(crOSS(0.8,VAR7),2))+1; VAR9:=REF(CLOSE,VAR8); VAR10:=CROSS(CLOSE,REF(VAR9,1)); VAR11:=(HIGH+LOW+3*CLOSE+OPEN)/6; VAR12:=MA(VAR11,7); VAR13:=MA(VAR11,14); VAR14:=MA(VAR11,21); VAR15:=MA(VAR11,28); VAR16:=MA(VAR11,35); VAR17:=MA(VAR11,42); VAR18:=MA(VAR11,49); VAR19:=MA(VAR11,56); VAR20:=(7*VAR12+14*VAR13+21*VAR14+28*VAR15+35*VAR16+42*VAR17+49*VAR18+56*VAR19)/252; VAR21:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2); VAR22:=REF(VAR21,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR23:=REF(VAR22,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR24:=REF(VAR23,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR25:=REF(VAR24,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR26:=REF(VAR25,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR27:=REF(VAR26,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR28:=REF(VAR27,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR29:=REF(VAR28,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR30:=REF(VAR29,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR31:=REF(VAR30,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR32:=REF(VAR31,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR33:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2); VAR34:=REF(VAR21 OR VAR22 OR VAR23 OR VAR24 OR VAR25 OR VAR26 OR VAR27 OR VAR28 OR VAR29 OR VAR30 OR VAR31 OR VAR32,1) AND VAR33; VAR35:=0.01*expma(AMOUNT,13)/EXPMA(vol,13); VAR36:=(VAR35/REF(VAR35,1)-1)*10; VAR37:=MA(VAR36,5)/10; VAR66:=MA(C,18); VAR68:=(VAR66>REF(VAR66,1)); 明日心理價:(VAR1+VAR2+VAR3+VAR5+VAR4)/5,NODRAW,COLORWHITE; DRAWTEXT(VAR6,LOW,'WWW.CJM99.COM缺'),COLOR00FFFF; STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW; STICKLINE(VAR8<=6,VAR9,VAR9,3,0),COLORFF00FF; DRAWTEXT(VAR10,LOW,'T'),COLOR00FFFF; 滄海行操盤線:EMA(CLOSE,3),COLORWHITE,LINETHICK1; 滄海行操盤線2:MA(CLOSE,5)COLORYELLOW,LINETHICK1; 滄海行操盤線3:MA(CLOSE,8),COLORRED,LINETHICK1; 滄海行安全線:MA(CLOSE,25),COLORGRAY,LINESTICK,LINETHICK1; DRAWICON(CROSS(滄海行操盤線,VAR20),L*0.98,1); STICKLINE(C/REF(C,1)>1.095,C,O,1,0),COLORYELLOW; IF(滄海行操盤線3<=REF(滄海行操盤線3,1),滄海行操盤線3,DRAWNULL),COLORBLUE,LINETHICK2; IF(滄海行操盤線3>REF(滄海行操盤線3,1),滄海行操盤線3,DRAWNULL),COLORFF00FF,LINETHICK2; DRAWICON(FILTER(VAR34=1,5),HIGH*1.03,12); 生變:IF(VAR37<VAR36,VAR20,DRAWNULL),COLORYELLOW,CIRCLEDOT,LINETHICK2; 空倉:IF(VAR36<VAR37,VAR20,DRAWNULL),COLORGREEN,CIRCLEDOT,LINETHICK2; 持倉:IF(VAR36>VAR37 AND VAR68,VAR20,DRAWNULL),CIRCLEDOT,COLORRED,LINETHICK2; IF(VAR20<=REF(VAR20,1),VAR20,DRAWNULL),COLORGREEN,CIRCLEDOT,LINETHICK2; VAR1:=EMA(CLOSE,2); VAR2:=EMA(SLOPE(CLOSE,9)*20+CLOSE,37); VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; VAR4:=SMA(VAR3,3,1); VAR5:=SMA(VAR4,3,1); VAR6:=3*VAR4-2*VAR5; VAR7:=EMA(CLOSE,12)-EMA(CLOSE,26); VAR8:=EMA(VAR7,9); VAR9:=(VAR7-VAR8)*2,COLORSTICK; VAR10:=VAR6-REF(VAR6,1)>30 AND CLOSE/REF(CLOSE,1)>1.043 AND VAR9>0 AND VAR9>0; VAR11:=REF(CLOSE,1); VAR12:=SMA(MAX(CLOSE-VAR11,0),5,1)/SMA(Abs(CLOSE-VAR11),5,1)*100; VAR13:=crOSS(80,VAR12); VAR14:=(HIGH+LOW+CLOSE)/3; VAR15:=(VAR14-MA(VAR14,14))*1000/(15*AVEDEV(VAR14,14)); VAR16:=REF(VAR15,1)>90 AND VAR15<REF(VAR15,1); VAR17:=REF(VAR6,1)>90 AND VAR6<REF(VAR6,1); VAR18:=SMA(MAX(CLOSE-VAR11,0),6,1)/SMA(ABS(CLOSE-VAR11),6,1)*100; VAR19:=REF(VAR18,1)>70 AND VAR18<REF(VAR18,1); VAR28:=COUNT(VAR16,5) AND COUNT(VAR17,5) AND COUNT(VAR19,5); VAR29:=CROSS(VAR28,0.5); MA5:MA(CLOSE,5),LINETHICK1,COLORGREEN; MA10:MA(CLOSE,10),LINETHICK1,COLORRED; 現(xiàn)價:CLOSE,COLORWHITE,NODRAW; _10日漲跌%:(C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORGREEN,NODRAW; DRAWICON(VAR10,LOW*0.97,1); DRAWTEXT(VAR10,LOW*0.95,'進'),COLORYELLOW; DRAWICON(VAR13,HIGH*1.005,15); DRAWICON(VAR29,H*1.005,2); STICKLINE(VAR10,OPEN,CLOSE,2.5,0),COLORYELLOW; |
|