1、低买指标 VAR2:=REF(LOW,1); VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100; VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3); VAR5:=LLV(LOW,38); VAR6:=HHV(VAR4,38); VAR7:=IF(LLV(LOW,90),1,0); VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7; DD:=VAR8>5; 买入:=IF((COUNT(DD,2)=2),-20,0); VAR1S:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); VAR2S:=SMA(ABS(LOW-VAR1S),13,1)/SMA(MAX(LOW-VAR1S,0),10,1); VAR3S:=EMA(VAR2S,10); VAR4S:=LLV(LOW,33); VAR5S:=EMA(IF(LOW<=VAR4S,VAR3S,0),3); 主力进场:=IF(VAR5S>REF(VAR5S,1),VAR5S,0)*1.1,LINETHICK1,COLOR00FFFF; STICKLINE(VAR5S>REF(VAR5S,1),0,VAR5S,4,1 ),colorred; 洗盘:=IF(VAR5S<REF(VAR5S,1),VAR5S,0),colorgreen; 低买:IF((CROSS(洗盘,主力进场)AND 买入=-20),100,0),STICK,COLORFF9150,LINETHICK3; 2、仓位参考,红买绿卖,根据综合判断直接给出买卖 VXP:=V*(C+L+H)/3; NS:=IF(BARSCOUNT(C)>=8,8,BARSCOUNT(C)); SRT:=SUM(VXP,NS)/SUM(V,NS),colorwhite,NODRAW; //{BS:=IF(C>=SRT,SRT,DRAWNULL),LINETHICK2,coloryellow,NODRAW;} //{SS:=IF(C<SRT,SRT,DRAWNULL),LINETHICK2,colorblue,NODRAW;} NM:=IF(BARSCOUNT(C)>=48,48,BARSCOUNT(C)); MID:=SUM(VXP,NM)/SUM(VOL,NM),colorwhite,NODRAW; //{BM:=IF(C>=MID,MID,DRAWNULL),LINETHICK2,colorred,NODRAW;} //{SM:=IF(C<MID,MID,DRAWNULL),LINETHICK2,colorgreen,NODRAW;} MIDP:=C>=MID,NODRAW; MIDN:=C<MID,NODRAW; SRTP:=C>=SRT,NODRAW; SRTN:=C<SRT,NODRAW; MSRT:=MA(SRT,3),NODRAW; DMSRTP:=MSRT>REF(MSRT,1); DMSRTN:=MSRT<=REF(MSRT,1); LMIDP:=LLV(MIDP,4)>0; SARZ:=SAR(4,2,20),colorwhite,NODRAW; SARP:=C>=SARZ,NODRAW; SARN:=C<SARZ,NODRAW; NJ:=30; AJ:=ABS((2*C+H+L)/4-MA(C,NJ))/MA(C,NJ); JAXZ:=DMA((2*C+L+H)/4,AJ),LINETHICK2,coloryellow,NODRAW; CC:=(C/JAXZ); MAJ:=MA(CC*(2*C+H+L)/4,3); MAAJ:=((MAJ-JAXZ)/JAXZ)/3; JTMP:=(MAJ-MAAJ*MAJ),LINETHICK2,colorred,NODRAW; JAXP:=JTMP>JAXZ,NODRAW; JAXN:=JTMP<=JAXZ,NODRAW; DIF_:=(EMA(C,12)-EMA(C,26)),COLOR666666; DEA_:=EMA(DIF_,9); MACD_:=(DIF_-DEA_)*2,COLORSTICK; MACDP:=MACD_>REF(MACD_,1); MACDN:=MACD_<REF(MACD_,1); MACDSRTN:=(REF(MACDN,1) OR SRTN); MACDNN:=(MACDN AND MACDSRTN); LC:=REF(C,1); RSI2:=SMA(MAX(C-LC,0),12,1)/SMA(ABS(C-LC),12,1)*100; A11:=IF(C>O AND V>REF(V,1),2,0); A12:=IF(C>O AND V<REF(V,1),1,0); A13:=IF(C<O AND V>REF(V,1),-2,0); A14:=IF(C<O AND V<REF(V,1),-1,0); A15:=A11+A12+A13+A14; SUM5:=0.2*HHV(MACD_,240)*SUM(A15,5),COLORFF6666; SUM5Z:=10*SUM(A15,5),COLORFF6666; ASUM5:=SUM(A15,5),COLOR9933CC; LINEN4:=0.2*HHV(MACD_,240)*(-4),COLORFF00AA; N3P5:=ASUM5>REF(ASUM5,1) AND REF(ASUM5,1)<-3.5; ASUM520:=ASUM5>0 AND (ASUM5<REF(ASUM5,1))=0 AND (REF(ASUM5,1)>0)=0; SUM5P:=ASUM5>REF(ASUM5,1); SUM5N:=ASUM5<=REF(ASUM5,1); SL1:=(DMSRTN AND SRTN),LINETHICK2,COLORFFFF00; SL2:=(JAXN AND SARN),LINETHICK2,colorblue; SL3:=(SL1 OR SL2),LINETHICK2,COLORFFFF00; SLL:=(MIDP AND LMIDP AND SL3),LINETHICK2,COLORFFFF00; BY1:=(MIDN AND DMSRTP AND SRTP AND REF(SRTN,1)),LINETHICK2,COLORFF0080; BY2:=(MIDN AND MACDP AND N3P5),LINETHICK2,colorred; BY3:=(BY1 OR BY2); BARC:=BARSCOUNT(C),NODRAW; DTS:=HHVBARS(SUM5N,BARC),NODRAW; DTBY:=HHVBARS(BY3>0,BARC),NODRAW; BY4:=(DTS>=DTBY AND DTBY>0),colorgreen; BY5:=(BY4 OR BY1 OR BY2),LINETHICK2,COLOR4080FF; BYY:=(MIDN AND BY5); BRSI:=(RSI2>=21 AND REF(RSI2,1)<=21),colorred; BRSID:=REF(BRSI,1); DTSR:=HHVBARS(MACDNN,BARC),NODRAW; DTBR:=HHVBARS(BRSID>0,BARC),NODRAW; BYR1:=(DTSR>=DTBR AND DTBR>0),colorgreen; BYR2:=(BYR1 OR BRSI OR BRSID),LINETHICK2,COLOR4080FF; BYBYR:=(MIDN AND BYR2),LINETHICK2,COLOR4080FF; BYBY:=(BYY OR BYBYR),LINETHICK3,COLOR000080; MIDX:100*(MIDP+BYBY-SLL),colorwhite; IF(MIDX=100,100,DRAWNULL),LINETHICK3,colorred; IF(MIDX=0,0,DRAWNULL),LINETHICK3,colorgreen; IF(BYBYR=1,100,DRAWNULL),LINETHICK3,COLORFF00AA; DRAWICON(BRSI=1 AND REF(BYBYR,1)=0,5,38); L25:25,DOTLINE,COLOR63819C; L50:50,DOTLINE,COLOR4E78B1; L75:75,DOTLINE,COLOR2854D7; L100:100,DOTLINE,colorred; BRX:=HHV(BRSI,3),NODRAW; AMT:(AMOUNT/1000000)>3,NODRAW; SERX:(BRX AND AMT),NODRAW; 3、MACD量价指标,量价MACD叠加,抄底专用指标( 顶尖财经 股票学院: http://58188.com ) DIF_:=(EMA(C,12)-EMA(C,26)),COLOR666666; DEA_:=EMA(DIF_,9); MACD_:(DIF_-DEA_)*2,COLORSTICK; A11:=IF(C>O AND V>REF(V,1),2,0); A12:=IF(C>O AND V<REF(V,1),1,0); A13:=IF(C<O AND V>REF(V,1),-2,0); A14:=IF(C<O AND V<REF(V,1),-1,0); A15:=A11+A12+A13+A14; SUM5:0.2*HHV(MACD_,240)*SUM(A15,5),COLORFF6666; LINEN4:0.2*HHV(MACD_,240)*(-4),COLORFF00AA; |
上一篇:同花顺源码:SFGS收费公式THS,多空强弱转换,主动被动买卖单
下一篇:同花顺公式下载:多头空头生命线