【股票指标公式下载】-【通达信】趋势买卖(卖出、买入、幅度)
【股票指标公式下载】-【通达信】交易系统(买入价格、止盈价格、止损价格)
【通达信】交易系统(买入价格、止盈价格、止损价格)-指标公式源码买入价格:IF(CROSS((MACD.DIF),(MACD.DEA)),C,DRAWNULL),NODRAW;AA:STICKLINE(买入价格,0,C,2,0),COLORRED;AC:=BARSLAST(AA);止盈价格【盈】:IF(C>=REF(C,AC)*1.1,REF(C,AC)*1.1,DRAWNULL),COLORMAGENTA,NODRA W;止损价格【亏】:IF(C<=REF(C,AC)*0.95,REF(C,AC)*0.95,DRAWNULL),COLORGREEN,NODRA W;STICKLINE(止损价格【亏】,0,C,3,0),COLOR009900;STICKLINE(止损价格【亏】,0,C,2,0),COLOR00BB00;STICKLINE(止损价格【亏】,0,C,1,0),COLOR00DD00;STICKLINE(止损价格【亏】,0,C,0.5,0),COLOR00FF00;STICKLINE(止盈价格【盈】,0,C,3,0),COLOR990099;STICKLINE(止盈价格【盈】,0,C,2,0),COLORBB00BB;STICKLINE(止盈价格【盈】,0,C,1,0),COLORDD00DD;STICKLINE(止盈价格【盈】,0,C,0.5,0),COLORFF00FF;STICKLINE(买入价格,0,C,3,0),COLOR000099;STICKLINE(买入价格,0,C,2,0),COLOR0000BB;STICKLINE(买入价格,0,C,1,0),COLOR0000DD;STICKLINE(买入价格,0,C,0.5,0),COLOR0000FF;DRAWLINE(CROSS((MACD.DIF),(MACD.DEA)),C*1.1,ISLASTBAR,REF(C,AC)*1.1,1 ),COLORRED;DRAWLINE(CROSS((MACD.DIF),(MACD.DEA)),C*0.95,ISLASTBAR,REF(C,AC)*0.95 ,1),COLORGREEN;【通达信】交易系统(买入价格、止盈价格、止损价格)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】波浪指标(时间窗口、买、卖、注意)
【股票指标公式下载】-【通达信】波浪指标(时间窗⼝、买、卖、注意)【通达信】波浪指标(时间窗⼝、买、卖、注意)-指标公式源码N1:6;A1:DRAWLINE(HIGH>=HHV(HIGH,5),HIGH,LOW<=LLV(LOW,5),LOW,0);B1:DRAWLINE(LOW<=LLV(LOW,5),LOW,HIGH>=HHV(HIGH,5),HIGH,0);A2:DRAWLINE(HIGH>=HHV(HIGH,13),HIGH,LOW<=LLV(LOW,13),LOW,0);B2:DRAWLINE(LOW<=LLV(LOW,13),LOW,HIGH>=HHV(HIGH,13),HIGH,0);A3:DRAWLINE(HIGH>=HHV(HIGH,34),HIGH,LOW<=LLV(LOW,34),LOW,0);B3:DRAWLINE(LOW<=LLV(LOW,34),LOW,HIGH>=HHV(HIGH,34),HIGH,0);A4:DRAWLINE(HIGH>=HHV(HIGH,55),HIGH,LOW<=LLV(LOW,55),LOW,0);B4:DRAWLINE(LOW<=LLV(LOW,55),LOW,HIGH>=HHV(HIGH,55),HIGH,0); MTM:=C-REF(C,1);ZLGJ:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);买1:=IF(LLV(ZLGJ,2)=LLV(ZLGJ,7) AND COUNT(ZLGJ<0,2) AND CROSS(ZLGJ,MA(ZLGJ,2)),1,0);卖1:=IF(HHV(ZLGJ,2)=HHV(ZLGJ,7) AND COUNT(ZLGJ>50,2) AND CROSS(MA(ZLGJ,2),ZLGJ),1,0);DRAWICON(FILTER(买1=1,5),LOW*0.99,7),COLORRED;STICKLINE(FILTER(买1=1,5),C,O,1,0),COLORRED;DRAWICON(FILTER(卖1=1,1),H*1.01,8),COLOR00FF00;STICKLINE(FILTER(卖1=1,1),C,O,1,0),COLOR00FF00;RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;BDGD:=HHV(J,2)=HHV(J,8) AND J>80;注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0); DRAWTEXT(注意 AND 卖1<1,HIGH*1.01,'J'),COLOR00FF00,LINETHICK3; STICKLINE(注意 AND 卖1<1,O,CLOSE,1,0),COLORYELLOW,LINETHICK2; 时间窗⼝01:=FILTER(IF(HHVBARS(HIGH,5),0,H),5),COLORFFFF00; DRAWTEXT(时间窗⼝01,HIGH*0.99,'5');时间窗⼝02:=FILTER(IF(LLVBARS(LOW,5),0,L),5),COLOR00FFFF; DRAWTEXT(时间窗⼝02,LOW*0.99,'5');时间窗⼝1:=FILTER(IF(HHVBARS(HIGH,13),0,1),13),COLOR00FF00;DRAWTEXT(时间窗⼝1,HIGH*0.99,'13');时间窗⼝2:=FILTER(IF(LLVBARS(LOW,13),0,1),13),COLOR0000FF; DRAWTEXT(时间窗⼝2,LOW*0.99,'13');时间窗⼝3:=FILTER(IF(HHVBARS(HIGH,34),0,2),34),COLOR55FF55; DRAWTEXT(时间窗⼝3,HIGH*0.99,'34');时间窗⼝4:=FILTER(IF(LLVBARS(LOW,34),0,2),34),COLOR5555FF; DRAWTEXT(时间窗⼝4,LOW*0.99,'34');时间窗⼝5:=FILTER(IF(HHVBARS(HIGH,55),0,30),55),COLOR99FF99; DRAWTEXT(时间窗⼝5,HIGH*0.99,'55');时间窗⼝6:=FILTER(IF(LLVBARS(LOW,55),0,30),55),COLORDD00FF; DRAWTEXT(时间窗⼝6,LOW*0.99,'55');时间窗⼝7:=FILTER(IF(HHVBARS(HIGH,89),0,40),89),COLORDDFFDD; DRAWTEXT(时间窗⼝7,HIGH*0.99,'89');时间窗⼝8:=FILTER(IF(LLVBARS(LOW,89),0,40),89),COLOR0055FF; DRAWTEXT(时间窗⼝8,LOW*0.99,'89');时间窗⼝9:=FILTER(IF(HHVBARS(HIGH,144),0,50),144),COLORDDFF00; DRAWTEXT(时间窗⼝9,HIGH*0.99,'144');时间窗⼝10:=FILTER(IF(LLVBARS(LOW,144),0,50),144),COLOR9955FF; DRAWTEXT(时间窗⼝10,LOW*0.99,'144');时间窗⼝11:=FILTER(IF(HHVBARS(HIGH,233),0,60),233),COLORDDFFFF; DRAWTEXT(时间窗⼝11,HIGH*0.99,'233');时间窗⼝12:=FILTER(IF(LLVBARS(LOW,233),0,60),233),COLORFF55FF; DRAWTEXT(时间窗⼝12,LOW*0.99,'233');【通达信】波浪指标(时间窗⼝、买、卖、注意)-指标公式效果图(⽂档来源:若⽔财经社区)。
通达信指标公式源码 卖出 买入 长期趋势
VAR1:=(C+H+O+L)/4;卖出:XMA(VAR1,20)*(1+80/1000),POINTDOT,COLORGREEN,LINETHICK5;买入:XMA(VAR1,32)*(1-100/1000),POINTDOT,COLORMAGENTA,LINETHICK5; 幅度:=100*(卖出-买入)/买入,NODRAW;菩提:=买入+(卖出-买入)*2/3;{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底};般:=XMA(CLOSE,7);若:=MEMA(CLOSE,3);DRAWICON(LONGCROSS(若,般,3) AND H>菩提,H*1.02,15);DRAWICON(BARSLAST(LONGCROSS(若,般,3) AND H>菩提)=1,H*1.02,14); 全绿K:=LONGCROSS(若,般,3) AND H>菩提;{主力雷达白金}DF:=3;N1:=12;RSVL:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;KL:=SMA(RSVL,DF,1);DL:=SMA(KL,DF,1);KKL:=SMA(RSVL,DF,1);DD:=SMA(KL,DF,1);NL:=KKL+DD;买入L:=DRAWICON(CROSS(NL,50),50,1),COLORRED;卖出L:=DRAWICON(CROSS(160,NL),160,2),COLORGREEN;卖出K:=CROSS(160,NL);{股市狂升指标}TM:=(CLOSE*1.0+LOW*0.0+HIGH*0.0);T1M:=V;SL1M:=(TM/REF(TM,1)-1)*1000;趋势5:=XMA(XMA(XMA(SL1M,20),20),20),COLORYELLOW;趋势6:=XMA(XMA(XMA(SL1M,10),10),10),COLORMAGENTA;QA9:=趋势6-趋势5;QA10:=EMA(QA9,89);买入M:=(QA9-QA10)*2,COLORSTICK;{DRAWICON(买入M>=0,L,1);}{牛熊区间背景}M5:EMA(C,5);M13:EMA(C,13),LINETHICK1;M34:EMA(C,34),LINETHICK1; MC1:=EMA(C,55);MC2:=EMA(C,89);MA4:=EMA(C,144);VAR1A1H:=(REF(CLOSE,1)-REF(ATR,1));{买线BJ:=EMA(C,3);}卖线A:=REF(EMA(C,14),1)COLORWHITE,LINETHICK3;买线1:=REF(EMA(C,14),1)COLORWHITE,LINETHICK3;卖线1:=IF(MC1>MAX(MC2,MA4),MC1,IF(MC1<MIN(MC2,MA4),MC2,MA4)),COLOR FF00CC,LINETHICK3;高1:=REF(HHV(H,150),3);低1:=REF(LLV(L,150),3);STICKLINE(买线1>=卖线1,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,6,0)COLOR001050;STICKLINE(买线1<卖线1,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,6,0)COLOR404050;STICKLINE(买入M>=0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORRED;STICKLINE(买入M<0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORGREEN;STICKLINE(买入L,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,2,0)COLORYELLOW;STICKLINE(卖出K AND 买入M<0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,2,0)COLORCYAN;多空趋势彩带:=DRAWBAND(SMA(C,6.5,1),RGB(255,97,0),SMA(C,13.5,1),RGB(0,128,0)); 中线:=(卖出+买入)/2,POINTDOT,COLORWHITE,LINETHICK4;MA5:=MA(C,5),COLOR000099;MA10:=MA(C,10),COLOR006600;MA20:=MA(C,20),COLOR005555;ZB1:=EMA(C,34);{ 原为55或65 }长期趋势:EMA(ZB1,13),COLORRED,LINETHICK3;{原为34或55}STICKLINE(C>=REF(C,1),O,C,3,1),COLOR000000;STICKLINE(C<REF(C,1),O,C,3,1),COLOR000000;AA3:=EMA(CLOSE,5)>EMA(CLOSE,6) AND EMA(CLOSE,6)>EMA(CLOSE,7) AND EMA(CLOSE,7)>EMA(CLOSE,8) AND EMA(CLOSE,8)>EMA(CLOSE,9) AND EMA(CLOSE,9)>EMA(CLOSE,10) AND EMA(CLOSE,10)>EMA(CLOSE,11) AND EMA(CLOSE,11)>EMA(CLOSE,12)AND EMA(CLOSE,12)>EMA(CLOSE,13) AND EMA(CLOSE,13)>EMA(CLOSE,14); AA2:= EMA(CLOSE,14)>EMA(CLOSE,15)AND EMA(CLOSE,15)>EMA(CLOSE,20) AND EMA(CLOSE,20)>EMA(CLOSE,30) AND EMA(CLOSE,30)>EMA(CLOSE,60) AND EMA(CLOSE,60)>EMA(CLOSE,90) AND EMA(CLOSE,90)>EMA(CLOSE,120) ANDEMA(CLOSE,120)>EMA(CLOSE,250);A1:= AA2 AND AA3;A2:=EMA(CLOSE,5)>EMA(CLOSE,6) AND EMA(CLOSE,6)>EMA(CLOSE,7) AND EMA(CLOSE,7)>EMA(CLOSE,8) AND EMA(CLOSE,8)>EMA(CLOSE,9)AND EMA(CLOSE,9)>EMA(CLOSE,10) AND EMA(CLOSE,10)>EMA(CLOSE,11) AND EMA(CLOSE,11)>EMA(CLOSE,12)AND EMA(CLOSE,12)>EMA(CLOSE,13) AND EMA(CLOSE,13)>EMA(CLOSE,14); B1:=IF(A1,1,2);VAR1MZ:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));VAR2MZ:=((REF(VAR1MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR3MZ:=((REF(VAR2MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR4MZ:=((REF(VAR3MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR5MZ:=((REF(VAR4MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR6MZ:=((REF(VAR5MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR7MZ:=((REF(VAR6MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR8MZ:=((REF(VAR7MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR9MZ:=((REF(VAR8MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VARAMZ:=((REF(VAR9MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VARBMZ:=((REF(VARAMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VARCMZ:=((REF(VARBMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));{红K}STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) ORVAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),L,H,0,0),COLOR0000DD;STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),C,REF(C,1),3,0),COLOR000099;STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),C,REF(C,1),2,0),COLOR0000BB;STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),C,REF(C,1),1,0),COLOR0000DD;VARDMZ:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2))); VAREMZ:=((REF(VARDMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VARFMZ:=((REF(VAREMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR10MZ:=((REF(VARFMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR11MZ:=((REF(VAR10MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR12MZ:=((REF(VAR11MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR13MZ:=((REF(VAR12MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR14MZ:=((REF(VAR13MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR15MZ:=((REF(VAR14MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR16MZ:=((REF(VAR15MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR17MZ:=((REF(VAR16MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR18MZ:=((REF(VAR17MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));{绿K}STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),C,REF(C,1),3 ,0 ),COLOR00BB00; STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),C,REF(C,1),2 ,0 ),COLOR00DD00; STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),C,REF(C,1),1 ,0 ),COLOR00FF00;STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),H,L,0,0 ),COLOR00DD00;VAR19MZ:=(REF((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),1) AND VAR1MZ);VAR1AMZ:=(REF((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),1) AND VARDMZ);{粉红}STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),3 ,0 ),COLORFF11FF; STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),2 ,0 ),COLORFF44FF; STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),1 ,0 ),COLORFF66FF; {黄色}STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00AAFF; STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR00CCFF; STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR00EEFF;{双信号"全仓"选股原码}FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);TTJ:=CROSS(FF,MA15);上:=EMA(C,3),COLORBLUE,LINETHICK1;中:=EMA(C,5),COLORWHITE,LINETHICK1;下:=EMA(中,5),COLOR00FF00,LINETHICK1;QQ:= C<中;MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);MA1Q:=MEMA(CLOSE,5);MA2Q:=ATAN((MA1Q/REF(MA1Q,1)-1)*100)*180/3.1416;MA3Q:=IF(MA2Q>0,MA2Q,MA2Q);MA5Q:=MA(CLOSE,5),COLOR888899;MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) ORREF(C,1)>=REF(C,3))OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) ANDC>=REF(C,1) AND C>=REF(C,2);{收盘价=4日内收盘价的最高值AND 昨收>=2日前的收盘价}VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);{收盘价=4日内收盘价的最高值AND 昨收=4日内收盘价的最低值}VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3))ORREF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) ANDC<REF(C,1) AND C<REF(C,2);{收盘价=4日内收盘价的最低值AND (昨收<2日前的收盘价}VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);{昨收=4日内收盘价的最低值AND 收盘价>=2日前的收盘价}VAR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);{昨收=4日内收盘价的最高值AND 收盘价<2日前的收盘价}VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);{今日V5向上形成拐点}VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;VAR08:=VAR07 AND COUNT(VAR06,2);VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6); VAR10:=EMA(MA(C,13),13);VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) ANDCROSS(VAR09,MA(VAR09,2)))=1,5);VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) ANDCROSS(MA(VAR09,2),VAR09))=1,1);VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3); VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));VAR16:=VAR08 AND NOT(REF(VAR08,1));RSVQ:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSVQ,3,1);D:=SMA(K,3,1);J:=3*K-2*D;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(VAR14 OR VAR15) AND VAR11;买2:=(VAR14 OR VAR15) AND VAR04;买3:=(VAR14 OR VAR15) AND VAR02;买4:=(VAR02 AND VAR11) OR (VAR04 AND VAR11);买5:=(金叉AND VAR04) OR (金叉AND VAR02) OR (金叉AND VAR11); TTJ0:=VAR16;TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;XG0:=TTJ AND TTJ0;XG1:=TTJ AND TTJ1;XG11:=XG0 OR XG1;{以下波浪理论浪底重叠"买底"选股原码}PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);TJ11:=EN2 AND ZTJZ5=1;TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;TJ33:=EN2 AND DTJZ10=1;TJ44:=EN3 AND ZTJZ10=1;TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;{以下二者结合共同选股}XGQ:=XG11 OR XG22;W18:=EXIST(XGQ,1);DRAWTEXT(XGQ,L-0.1,'●放心买'),COLORRED;{㊣MACD超准㊣}SQX:=(C-MA(CLOSE,13))*100;DIFF:=EMA(MA(SQX,7),1),COLORWHITE;DEA:=EMA(DIFF,7),COLORYELLOW;MACD:=(DIFF-DEA)*2,COLORSTICK;奉献理想专用:=IF((CROSS(DIFF,DEA) ANDDIFF<-0.1) ,L-0.2,DRAWNULL),COLORMAGENTA,LINETHICK9,CROSSDOT;低位金叉:=IF(CROSS(DIFF,DEA) ANDDIFF<-0.1,15,DRAWNULL),COLORMAGENTA,LINETHICK9,CROSSDOT;IF(CROSS(DIFF,DEA) ANDDIFF<-0.1,L-0.2,DRAWNULL),COLORYELLOW,LINETHICK4,POINTDOT;{再上N均线N 10 1 100 1}MA1:=MA(C,5);MA2:=MA(C,10);MA3:=MA(C,21);破N:=REF(MA1,1)<REF(MA2,1)AND MA2>REF(MA2,1);试摸N:=C>MA(C,10) OR H>=MA2;再上N:=C>O AND REF(C,1)< MA(C,10) AND 试摸N AND 破N ANDMA(C,21)<MA(C,10);有行情:=再上N AND (CROSS(C,长期趋势) OR CROSS(L,长期趋势) OR CROSS(H,长期趋势));DRAWTEXT(有行情,LOW-0.2,'●有行情'),COLORGREEN;{操盘线雷达买入点}VAR10B:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11B:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12B:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13B:=ZIG(3,22)>REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14B:=ZIG(3,22)<REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15B:=ZIG(3,51)>REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)<=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16B:=ZIG(3,51)<REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17B:=ZIG(3,72)>REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)<=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18B:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19B:=EMA(CLOSE,2)-EMA(CLOSE,150);买1B:=VAR10B;买2B:=(VAR11B+VAR13B+VAR15B+VAR17B);BB:=IF(买1B>0 OR 买2B>0 ,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW; {DRAWTEXT(CROSS(BB,买1B),L,'←买'),COLORRED,LINETHICK1;}红买绿卖:IF(CROSS(BB,买1B),LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK5,COLORWHITE;牛节点:=CROSS(EMA(C,5),EMA(C,30))AND CROSS(EMA(C,10),EMA(C,20)); DRAWICON(牛节点,L-0.1,13);{天下第一买}CSAR:=SAR(10,2,20);持币:=IF(CSAR>=H,CSAR,0),CIRCLEDOT,COLORGREEN{持币};持股:=IF(CSAR<=L,CSAR,0),CIRCLEDOT,COLORRED{持股};生命线2:=EMA(SLOPE(C,21)*20+C,42),LINETHICK2,COLORYELLOW;{股价在上持,在下空仓}止损:=EMA(C,5),COLORYELLOW,LINETHICK1;{红持股绿持币黄观望}菩提B:=XMA(H,20);{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底};参买:=IF(止损>=REF(止损,1),止损,DRAWNULL),LINETHICK2,COLORRED;{持股前提}DRAWICON(CROSS(L,CSAR) AND 参买>0 AND H<菩提B AND 持股>0 AND H>长期趋势,(LOW- 0.1),5);{趋势底};{大牛浮水}VVAR1D:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);短底:=EMA(VVAR1D,5);支撑:=HHV(短底,60);MAN:=(SMA(HIGH,21,2) * 1.05);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); 中D:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X1D:=EMA(中D,10);RSVD:=SMA(下档线,3,1);K大:=SMA(RSVD,3,1);D大:=((3 * RSVD) - (2 * K大));J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(J12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力位:=IF(CROSS(D24,D大),HIGH,REF(HIGH,BARSLAST(CROSS(D24,D 大)))),COLORFFFFFF;大牛浮水:=CROSS(CLOSE,MA20) AND HIGH < 压力位AND OPEN < MA20 AND HIGH < 支撑AND MAN - REF(MAN,1) > 0 AND X1D - REF(X1D,1)>0ANDD大< 63 AND MA20 - REF(MA20,1) > 0,COLORWHITE;DRAWTEXT(大牛浮水,L,'●牛浮面'),COLORWHITE;CO:=(C-O);绿K:=(卖出>LOW AND 卖出<HIGH) OR (卖出>MIN(C,O) AND 卖出<MAX(C,O))OR 卖出<LOW;{全绿K}全绿K2:=C>卖出OR (H>卖出AND O>C);STICKLINE(全绿K2,C,O,3,0),COLOR00BB00;STICKLINE(全绿K2,C,O,2,0),COLOR00DD00;STICKLINE(全绿K2,C,O,1,0),COLOR00FF00;TY:=DYNAINFO(8)>0;GG:=V=LLV(V,100) AND TY;DRAWICON(GG,LOW*0.96,1);DRAWICON(GG,LOW*0.95,17);NN1:=5;N2:=7;PP:=(HIGH+LOW+OPEN+2*CLOSE)/5;PE:=(PP-MA(PP,2*N2))*100/(1.5*AVEDEV(PP,2*N2));E1:=100*SLOPE(EMA(CLOSE,NN1),2),COLORWHITE;E2:=100*SLOPE(CLOSE,N2),COLORFFFF00;PN:=E1-E2;KK2:=0;DRAWTEXT(CROSS(PN,KK2) AND PE<-100,REF(L,1)-0.5,'◣' ),COLOR0000FF; DRAWTEXT(CROSS(KK2,PN) AND PE>100,REF(H,1)+0.5,'▼' ),COLORFF0000;。
通达信趋势MACD买卖和选股指标公式
通达信趋势MACD买卖和选股指标公式通达信趋势MACD买卖和选股指标公式2010-05-24 股旁网分类:通达信公式标签: 选股趋势 macd 买卖(趋势MACD买卖)副图源码DIF1:=EMA(CLOSE,6) - EMA(CLOSE,13);DEA1:=EMA(DIF1,5);MACD1:=2*(DIF1-DEA1),STICK;MACD2:EMA(MACD1,5)COLORWHITE;蓝:STICKLINE(MACD1<MACD2 AND MACD1<0,0,MACD1,1,0),COLORBLUE;粉:STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1,1),COLORMAGENTA;红:STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1,1),COLORRED;绿:STICKLINE(MACD1<MACD2 AND MACD1>0,0,MACD1,1,0),COLORGREEN;A:DRAWTEXT(CROSS(粉,蓝),MACD1 -0.1,'买')COLORGREEN;B:DRAWTEXT(CROSS(绿,红),MACD2 -0.01,'卖')COLORYELLOW;(趋势MACD买卖)选股公式去除ST股:=EXIST((C-REF(C,1))/REF(C,1)*100>5.6,100);{最近100日存在涨幅大于5.6}去除停牌:=DYNAINFO(17)!=0;{量比不为0}去除高低价:=DYNAINFO(7)>1 AND DYNAINFO(7)<10;{股价取1至10元}去除大小盘股:=CAPITAL/1000000>1 AND CAPITAL/1000000<9; {流通盘取1至9亿}净选:=去除ST股 AND 去除停牌 AND 去除高低价 AND 去除大小盘股;DIF1:=EMA(CLOSE,6) - EMA(CLOSE,13);DEA1:=EMA(DIF1,5);MACD1:=2*(DIF1-DEA1);MACD2:=EMA(MACD1,5)COLORWHITE;蓝:=STICKLINE(MACD1<MACD2 AND MACD1<0,0,MACD1,1,0),COLORBLUE;粉:=STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1,1),COLORMAGENTA;红:=STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1,1),COLORRED;绿:=STICKLINE(MACD1<MACD2 AND MACD1>0,0,MACD1,1,0),COLORGREEN;买:=CROSS(粉,蓝);选股:买 AND 净选;与通达信趋势MACD。
【股票指标公式下载】-【通达信】主力趋势(信号、走势)
【通达信】主力趋势(信号、走势)-指标公式源码VAR2:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR3:=SMA(VAR2,5,1);VAR4:=REF(VAR3,1);VAR5:=SMA(VAR3,10,1);VAR6:=(HHV(HIGH,52)-CLOSE)/(HHV(HIGH,52)-LLV(LOW,52))*100;VAR7:=MA(VAR6,5);VAR8:=LLV(LOW,5)=LLV(LOW,120);VAR9:=REF(CLOSE,1);VARA:=SMA(MAX(CLOSE-VAR9,0),6,1)/SMA(ABS(CLOSE-VAR9),6,1)*100; VARB:=SMA(MAX(CLOSE-VAR9,0),12,1)/SMA(ABS(CLOSE-VAR9),12,1)*100; VARC:=(CLOSE+LOW+HIGH)/3;VARD:=SUM((VARC-REF(LOW,1)-(HIGH-VARC))*VOL/100000/(HIGH-LOW),0); VARE:=EMA(VARD,1);VARF:=VARE; VAR10:=MA(VARE,12);VAR11:=MA(VARE,26); VAR12:=(VARF-VAR10)*60;VAR13:=IF(VAR12>0.05,VAR12,0);VAR14:=IF(VAR13>50,50,VAR13);VAR15:=CAPITAL/EMA(VOL,5)/30*1.1;VAR16:=VAR15; VAR17:=EMA(COST(85),10);VAR18:=EMA(COST(1),10);VAR19:=EMA(CLOSE,10);VAR1A:=(VAR19-VAR18)*100/(VAR17-VAR18);VAR1B:=REF(VAR1A,1);VAR1C:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;VAR1D:=(INDEXC-REF(INDEXC,12))/REF(INDEXC,12)*100;VAR1E:=EMA(VAR1C-VAR1D,4);VAR1F:=EMA(VAR1D-VAR1C,4);STICKLINE(VAR1E>0,0,-5,6,0),COLORBLUE;STICKLINE(VAR8,-5,-10,6,0),COLORYELLOW;VAR20:=MA(VAR1C,4);VAR21:=MA(VAR1C,8);VAR22:=REF(VAR20,1);VAR23:=MA((VAR1A-REF(VAR1A,12))/REF(VAR1A,12)*100,4);VAR24:=IF(VAR23<=-20,-20,VAR23);VAR25:=IF(VAR24>=20,20,VAR24);VAR26:=VAR25;VAR27:=REF(VAR26,1);VAR28:=REF(VAR26,5);VAR29:=IF(CROSS(VAR14,VAR16),1,0);VAR2A:=IF(VAR14<VAR16,-10,10);VAR2B:=IF(VAR1E>VAR1F,5,-5);VAR2C:=IF(VAR3>VAR5,5,-5);VAR2D:=IF(VAR20>VAR21,6,-6);VAR2E:=IF(VAR20>0 AND VAR20>VAR21,8,-8);VAR2F:=IF(VAR26<0,-10,10);VAR30:=IF(VAR20>VAR22,10,-10);VAR31:=IF(VAR26>VAR27,5,0);VAR32:=IF(VAR26<VAR27,-5,0);VAR33:=IF(CLOSE>OPEN,3,-3);走势:(VAR2A+VAR2B+VAR2C+VAR2D+VAR2E+VAR2F+VAR30+VAR31+VAR32+VAR33); VAR34:=REF(CLOSE,2)*0.865;VAR35:=REF(CLOSE,13)*0.772;VAR36:=MIN(VAR34,VAR35);VAR37:=100*VOL/CAPITAL;VAR38:=MA(CLOSE,13);VAR39:=CLOSE>0.899*REF(CLOSE,1) AND CLOSE<0.901*REF(CLOSE,1);VAR3A:=EMA(WINNER(CLOSE)*100,5);VAR3B:=EMA(WINNER(CLOSE)*100,30)-CAPITAL/EMA(VOL,30)/5;VAR3C:=CAPITAL/EMA(VOL,5)/5;VAR3D:=VAR3A;VAR3E:=IF(VAR3D>0,0-VAR3D,0-VAR3D); VAR3F:=REF(VAR3D,1);主力趋势: (VAR3B+50);VAR40:=VAR3B+50; VAR41:=REF(VAR40,1); VAR42:=MA(CLOSE,5);VAR43:=MA(CLOSE,10); VAR44:=MA(CLOSE,30);VAR45:=MA(CLOSE,12);VAR46:=MA(CLOSE,26); VAR47:=REF(VAR45,1); VAR48:=REF(VAR46,1);VAR49:=(VAR45-VAR46)/VAR45*100; VAR4A:=ABS(VAR45-VAR47)/VAR45*100; VAR4B:=REF(VAR46,1); VAR4C:=REF(VAR4A,1);VAR4D:=REF(VAR42,1); VAR4E:=REF(VAR43,1);VAR4F:=COUNT(CLOSE>REF(CLOSE,1),5)/5*100;VAR50:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR51:=SMA(VAR50,5,1);VAR52:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;VAR53:=SMA(VAR52,2,1);VAR54:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30)*8;VAR55:=REF(VAR51,1); VAR56:=REF(VAR53,1);VAR57:=REF(VAR54,1); VAR58:=MA(VAR53,5);VAR59:=MA(VAR53,12); VAR5A:=MA(VAR53,26);VAR5B:=REF(VAR4F,1); VAR5C:=(VAR54-VAR57)/VAR54*100;VAR5D:=SMA(VAR50,5,1); VAR5E:=REF(VAR5D,1); VAR5F:=SMA(VAR52,2,1); VAR60:=REF(VAR5F,1); VAR61:=IF(CLOSE>OPEN,1,0);VAR62:=IF(VAR42>VAR4D,1,0); VAR63:=IF(VAR43>VAR4E,1,0);VAR64:=IF(VAR4A>VAR4C,1,0); VAR65:=IF(VAR53>VAR56,5,0);VAR66:=IF(VAR55>VAR51,5,0); VAR67:=IF(VAR54>VAR57,2,0);VAR68:=IF(VAR49>2.25,10,0); VAR69:=IF(VAR53>60,6,0);VAR6A:=IF(VAR53>80,8,0); VAR6B:=IF(VAR53>VAR51,10,0);VAR6C:=IF(VAR53>VAR51,VAR59-VAR5A,0); VAR6D:=IF(VAR53>VAR51 ANDVAR51<20,5,0); VAR6E:=IF(CLOSE>VAR45 AND VAR45>VAR46,5,0);VAR6F:=IF(VAR45>VAR46,5,0); VAR70:=IF(VAR46>VAR4B,5,0);VAR71:=IF(VAR51<18,VAR58-VAR51,0);VAR72:=IF(VAR51>VAR53 AND VAR51>50,8,0);VAR73:=(VAR61+VAR62+VAR63+VAR64+VAR65+VAR66+VAR67+VAR68+VAR69+VAR6A+V AR6B+VAR6C+VAR6D+VAR6E+VAR6F+VAR70+VAR71-VAR72);VAR74:=REF(VAR73,1); 多头: MA(VAR73,5); VAR75:=MA(VAR73,8);VAR76:=MA(VAR73,12); VAR77:=MA(VAR73,26); VAR78:=MA(VAR73,13);VAR79:=REF(VAR76,1); VAR7A:=REF(VAR76,2);VAR7B:=IF(CROSS(VAR3,VAR5) AND VAR4<35 AND VAR7>50 AND VAR1A<25 AND VAR1A>VAR1B AND VAR41<VAR40 AND (VARA>VARB AND VARB>VAR3 OR VARA>VAR3 AND VAR8),100,0);VAR7C:=IF((CLOSE-VAR36)/CLOSE<0.1 AND VAR41<VAR40 ANDSUM(VAR37,5)/5<1.8,100,0);VAR7D:=IF(CROSS(VAR3,VAR5) AND VAR8 AND VAR3<25 AND VAR1A<20 OR CROSS(VAR3,VAR5) AND VAR8 AND VAR3<40 AND VAR1A<10,100,0);信号: IF(VAR7B=100 OR VAR7C=100 OR VAR7D=100,20,-50),COLORYELLOW; STICKLINE(走势<0,0,走势,1,0),COLORGREEN;STICKLINE(走势>0,走势,0,1,0),COLORRED;【通达信】主力趋势(信号、走势)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】绝佳买卖点(强弱分界、趋势、价位线)
【通达信】绝佳买卖点(强弱分界、趋势、价位线)-指标公式源码VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;VAR2:=SMA(VAR1,9,1)+100;VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4:=SMA(VAR3,3,1); VAR5:=SMA(VAR4,3,1)+100; VAR6:=VAR5-VAR2; 趋势: IF(VAR6>45,VAR6-45,0); STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),5,0),colorff00ff; STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),5,0),color00ff00; 强弱分界:50,POINTDOT,Colorffffcc;0,Color00Ffff; 20,POINTDOT,COlORFFAA66,linethick1;80,POINTDOT,COlORFFAA66,linethick1; 100,Colorffff33; v1:=llv(low,10); v2:=hhv(h,25); 价位线:=ema((c-v1)/(v2-v1)*4,4); DRAWTEXT(CROSS(价位线,0.3),7,'●'),ColorFFFfff; DRAWTEXT(CROSS(3.5,价位线),102,'●'),ColorFFFfff; Var2q:=REF(LOW,1);Var3q:=SMA(ABS(LOW-Var2q),3,1)/SMA(MAX(LOW-Var2q,0),3,1)*100;Var4q:=EMA(IF(CLOSE*1.3,Var3q*10,Var3q/10),3); Var5q:=LLV(LOW,30); Var6q:=HHV(Var4q,30); Var7q:=IF(MA(CLOSE,58),1,0);Var8q:=EMA(IF(LOW<=Var5q,(Var4q+Var6q*2)/2,0),3)/618*Var7q; Var9q:=IF(Var8q>100,100,Var8q); 吸筹:STICKLINE(Var9q>-120,0,Var9q,6,1),coloryellow;AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8); 走势:=CEILING(SMA(AA5,13,8)); AA6:=SMA(AA3,21,8); 卖临界:STICKLINE(走势-AA6>85,103,100,15,1),Color0000ff,linethick2;【通达信】绝佳买卖点(强弱分界、趋势、价位线)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】杀跌买卖(箱顶、箱底、趋势力度)
【通达信】杀跌买卖(箱顶、箱底、趋势力度)-指标公式源码箱顶: HHV(MA((LOW+HIGH+CLOSE+OPEN)/4,5),58),color00aaff;箱底: LLV(MA((LOW+HIGH+CLOSE+OPEN)/4,6),58),color00ff00;Var1:=EMA((HIGH+LOW+CLOSE)/3*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(L OW,10))*20/10+箱底,2);Var2:=(3*Var1-2*SMA(Var1,5,1))*0.3;Var3:=(HHV(INDEXH,13)-INDEXC)/(HHV(INDEXH,13)-LLV(INDEXL,13));Var4:=EMA(3*Var3-2*SMA(Var3,18,1),5);Var5:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8));Var6:=3*SMA(Var5,3,1)-2*SMA(SMA(Var5,3,1),5,1);Var7:=(INDEXC*2+INDEXH+INDEXL)/4;Var8:=EMA(Var7,13)-EMA(Var7,34);Var9:=EMA(Var8,5);VarA:=(Var8-Var9+箱底)*1;VarB:=1.86*EMA(CLOSE,12)-EMA(CLOSE,34);趋势力度: VarB,colorffaa99;VarC:=箱底;STICKLINE(C>=O,C,O,7,0),colorred;STICKLINE(C>=O,C,O,4,0),COLOR7070ff;STICKLINE(C>=O,C,O,2,0),coloryellow;STICKLINE(C>=O,H,L,0,0),coloryellow;STICKLINE(C<=O,C,O,7,0),COLORFF2020;STICKLINE(C<=O,C,O,4,0),COLORFF6600;STICKLINE(C<=O,C,O,2,0),colorffcc66;STICKLINE(C<=O,H,L,0,0),colorffcc66;牛气冲天: STICKLINE(趋势力度>=VarC,VarC,趋势力度,4,0),colorred; STICKLINE(趋势力度<=REF(趋势力度,1) AND 趋势力度>VarC,VarC,趋势力度,4,1),colorwhite;趁机派发: STICKLINE(REF(趋势力度,2)<REF(趋势力度,1) AND 趋势力度<=REF(趋势力度,1) AND 趋势力度>VarC,VarC,趋势力度,4,0),colorgreen; DRAWICON(REF(趋势力度,2)<REF(趋势力度,1) AND 趋势力度<=REF(趋势力度,1) AND 趋势力度>VarC,趋势力度,2);熊气盖天: STICKLINE(趋势力度<VarC-0.5,VarC-0.5,趋势力度,8,1),coloryellow;转强信号:STICKLINE(趋势力度>REF(趋势力度,1) AND 趋势力度<Varc-0.5,Varc-0.5,趋势力度,2,0),colorred;MA3: MA(CLOSE,3),coloryellow;MA34: MA(CLOSE,34),colorwhite;DRAWTEXT(CROSS(MA3,箱底),LOW*0.95,'试'),colorffcc66;STICKLINE(CROSS(MA3,箱底),LOW*0.99,L*0.95,4,0),colorffcc66; DRAWTEXT(CROSS(MA3,MA34),LOW*0.95,'买'),colorff00ff;STICKLINE(CROSS(MA3,MA34),LOW*0.99,L*0.95,4,0),colorff00ff; DRAWTEXT(CROSS(MA3,箱顶) AND CLOSE>箱顶,箱顶*0.95,'追'),coloryellow; STICKLINE(CROSS(MA3,箱顶) AND CLOSE>箱顶,箱顶*0.99,箱顶*0.95,4,0),coloryellow;DRAWTEXT(CROSS(箱顶,MA3) AND CLOSE<箱顶,HIGH*1.05,'卖'),color00ff00; STICKLINE(CROSS(箱顶,MA3) AND CLOSE<箱顶,HIGH*1.03,H*1.0,4,0),color00ff00;DRAWTEXT(REF(VarA,2)<REF(VarA,1) AND REF(VarA,1)>VarA AND VarA>箱顶 AND CLOSE>箱顶,HIGH*1.05,'顶'),colorwhite;STICKLINE(REF(VarA,2)<REF(VarA,1) AND REF(VarA,1)>VarA AND VarA>箱顶AND CLOSE>箱顶,HIGH*1.005,H*1.03,4,0),colorwhite【通达信】杀跌买卖(箱顶、箱底、趋势力度)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】买卖趋势(买入、卖出)
STICKLINE(BB,CLOSE,OPEN,0.2,0),COLOR00FF00;
STICKLINE(买入,O,(C-O)/2+O,3,0),COLOR335555;
STICKLINE(买入,O,(C-O)/2+O,2.2,0),COLOR338888;
STICKLINE(买入,O,(C-O)/2+O,1.5,0),COLOR33AAAA;
STICKLINE(买入,O,(CINE(买入,O,(C-O)/2+O,0,0),COLOR33EEEE;
STICKLINE(卖出,O,(C-O)/2+O,3,0),COLOR550055;
VAR1:=EMA(CLOSE,4)-EMA(CLOSE,13);
AA:=VAR1>=REF(VAR1,1);
BB:=VAR1<REF(VAR1,1);
买入:DRAWICON(CROSS(AA,BB),L,1);
卖出:DRAWICON(CROSS(BB,AA),H,2);
STICKLINE(AA,C,O,3,0),COLORFFBBFF;
STICKLINE(BB,CLOSE,OPEN,2.2,0),COLOR00AA00;
STICKLINE(BB,CLOSE,OPEN,1.8,0),COLOR00BB00;
STICKLINE(BB,CLOSE,OPEN,1.4,0),COLOR00CC00;
STICKLINE(BB,CLOSE,OPEN,1,0),COLOR00DD00;
【通达信】买卖趋势(买入、卖出)-指标公式效果图
下载次数: 0
【股票指标公式下载】-【通达信】均价买卖线(买线、卖线、快趋势、均价差、牛熊线)
【通达信】均价买卖线(买线、卖线、快趋势、均价差、牛熊线)-指标公式源码买线:=EMA(C,1);卖线:=EMA(SLOPE(C,13)*13+C,31);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWICON(BU,L-0.1,0);DRAWICON(SEL,H+0.1,0);DRAWTEXT(BU,L*0.99,'变'),COLORWHITE;STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),COLORRED;STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLORRED;STICKLINE(买线<卖线,LOW,HIGH,0.0,1),COLORGREEN;STICKLINE(买线<卖线,CLOSE,OPEN,2,1),COLORGREEN;STICKLINE(BU,OPEN,CLOSE,1,0),COLORYELLOW;STICKLINE(SEL,OPEN,CLOSE,2,0),COLORBLUE;快趋势:EMA(CLOSE,3),COLORCYAN;常态:EMA(CLOSE,5),COLORYELLOW,LINETHICK1;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);XX:=MA(CLOSE,9);YY:=MA(CLOSE,20);均价:=(HIGH+4*LOW+OPEN+CLOSE)/7;均价差:= EMA(均价,13) - EMA(均价,34);移动均价:= EMA(均价差,5);差:=(均价差-移动均价)*5;A:=IF(差>=1000 ,1000 ,IF(差<=均价,均价,差) );持股线:FORCAST(FORCAST(A,30),8),COLORFF00FF,LINETHICK2{COLORYELLOW}; 希望门:FORCAST(FORCAST(A,30),69),COLORWHITE{COLORYELLOW};牛熊线:EMA(CLOSE,420),LINETHICK2,COLORRED;DRAWICON (CROSS(常态,希望门), L-0.20,5);DRAWICON (CROSS(希望门,快趋势),H-0.20,6);【通达信】均价买卖线(买线、卖线、快趋势、均价差、牛熊线)-指标公式效果图(文档来源:若水财经社区)。
通达信指标公式精选
通达信指标公式精选通达信指标公式精选1、趋势买卖(主图叠加)一、公式编写1、第一种VAR1:=(C+H+O+L)/4;卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;买入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;幅度:100*(卖出-买入)/买入,NODRAW;MA1:=MA(VAR1,3);STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN;STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA;STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORMAGENTA;STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;DRAWTEXT(CROSS(LOW,买入),LOW*0.95,'B'),COLORRED,LINETHICK2;DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'S'),COLORGREEN;2、第二种(添加老鼠仓提示)VAR1:=(C+H+O+L)/4;卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;买入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;幅度:100*(卖出-买入)/买入,NODRAW;MA1:=MA(VAR1,3);STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN;STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA;STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORMAGENTA;STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;DRAWTEXT(CROSS(LOW,买入),LOW*0.95,'B'),COLORMAGENTA,LINETHICK2;DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'S'),COLORGREEN;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF1,(LOW* 0.97),'老鼠仓'),COLOR4080FF;参数设置n 1 100 20m 1 100 32p1 1 200 80p2 1 200 100二、使用说明:趋势买卖股票技术分析指标,其主要内容是趋势买卖有2条通道线和S点B点(B点买进S点卖出)组成,他可以帮助我们有效把握个股的压力和支持,能够很好的把握住个股波段的高点卖出和低点买进,当股价在上升时遇到上方通道线表示有压力,这时可以考虑减仓,当股价调整到下方支撑线,这时可以考虑买进。
【股票指标公式下载】-【通达信】如影随形线(买线、卖线、黑马.
【通达信】如影随形线(买线、卖线、黑马交叉、长期趋势)-指标公式源码M1:=EMA(C,5;M2:=EMA(C,13;M3:=EMA(C,34,COLORBLUE,LINETHICK2;MC1:=EMA(C,55;MC2:=EMA(C,89;MA4:=EMA(C,144;VAR1A1H:=(REF(CLOSE,1-REF(ATR,1;买线A:=REF(EMA(C,14,1COLORWHITE,LINETHICK3;卖线A:=IF(MC1>MAX(MC2,MA4,MC1,IF(MC1高1:=REF(HHV(H,150,3;低1:=REF(LLV(L,150,3;STICKLINE(买线A>=卖线A,REFDATE(低1,DATE,REFDATE(低1,DATE*0.96,6,0COLOR001050;STICKLINE(买线A<卖线A,REFDATE(低1,DATE,REFDATE(低1,DATE*0.96,6,0COLOR404050;买线B:=EMA(CLOSE,9-EMA(CLOSE,18;卖线B:=EMA(买线B,7,LINETHICK1;STICKLINE(买线B>卖线B,REFDATE(低1,DATE,REFDATE(低1,DATE*0.98,2,1COLORRED;STICKLINE(买线B<=卖线B,REFDATE(低1,DATE,REFDATE(低1,DATE*0.98,2,1COLORGREEN;黑马买线:=EMA(C,4;黑马卖线:=EMA(SLOPE(C,20*10+C,35;黑马趋势彩带:DRAWBAND(黑马买线,RGB(176,48,96,黑马卖线,RGB(0,0,255;黑马买:=SMA(C,6.5,1;黑马卖:=SMA(C,13.5,1;黑马交叉:=CROSS(黑马买线,黑马卖线;黑马交叉A:=CROSS(黑马买,黑马卖;{VAR1:=(C+H+O+L/4;卖出:XMA(VAR1,20*(1+80/1000,POINTDOT,COLORGREEN,LINETHICK3;买入:XMA(VAR1,32*(1-100/1000,POINTDOT,COLORMAGENTA,LINETHICK3;}ZB1:=EMA(C,34;{ 原为55或65 }长期趋势:EMA(ZB1,13,COLORRED,LINETHICK3;{原为34或55};NA1:=2;K1A1:=HHV(H,NA1;K2A1:=LLV(L,NA1;FCA1:=CLOSE;AD1:=BARSLAST(FCA1>REF(K1A1,1;BA1:=BARSLAST(FCA1JRA1:=IF(AD1>BA1,K1A1,K2A1;如影随形:IF(C>JRA1,JRA1*0.998,JRA1*1.002,COLORYELLOW,LINETHICK2; STICKLINE(C>O,HIGH,LOW,0,0,COLOR0000FF;STICKLINE(CSTICKLINE(C>如影随形,CLOSE,OPEN,3,0,COLOR000099;STICKLINE(C>如影随形,CLOSE,OPEN,0.5,0,COLOR0000DD;STICKLINE(C<如影随形,CLOSE,OPEN,3,0,COLOR00BB00;STICKLINE(C<如影随形,CLOSE,OPEN,0.5,0,COLOR00FF00;VAR1XG:=REF(C,1;VAR2XG:=SMA(MAX(C-VAR1XG,0,7,1/SMA(ABS(C-VAR1XG,7,1*1000;VAR3XG:=DRAWLINE(VAR2XG>=HHV(VAR2XG,7,VAR2XG,VAR2XG<=LLV(VAR2XG,7,VAR2XG ,1;VAR4XG:=VAR2XG=VAR3XG;VAR5XG:=VAR2XG变粉:=VAR4XG AND VAR5XG;STICKLINE(变粉,C,(O+C/2,3,0,COLORFF11FF;STICKLINE(变粉,C,(O+C/2,0.5,0,COLORFFDDFF;E1:=EMA(C,5,COLOR00FF00;E2:=EMA(C,10,COLORWHITE;E3:=EMA(C,21,COLORYELLOW;E4:=EMA(C,35,COLORFF00FF;E5:=EMA(C,70,COLORFFCCCC;E6:=EMA(C,170,COLORFFCCCC;E7:=EMA(C,250,COLORFFCCCC;重要线穿:=(CROSS(E1,E2 AND CROSS(E1,E3 OR (CROSS(E1,E3 AND CROSS(E1,E4;穿趋:=CROSS(C,E4 AND CROSS(C,E5;穿趋2:=COUNT(穿趋,2;重要价穿:=CROSS(C,E2 AND CROSS(C,E3 AND CROSS(C,E4 AND CROSS(C,E5 AND CROSS(C,E6 AND CROSS(C,E7;第一买:=(CROSS(E3,E4 AND 重要线穿 AND 穿趋2 OR 重要价穿; DRAWTEXT(第一买 OR 重要线穿 AND 穿趋2,L,'●第一买',COLORWHITE; DRAWTEXT((黑马交叉 AND 黑马交叉A OR(CROSS(C,长期趋势 AND 黑马交叉,L,'●第一买',COLORWHITE;快线:=(CLOSE-LLV(LOW,9/(HHV(HIGH,9-LLV(LOW,9*100,LINETHICK2,COLORRED; 慢线:=SMA(快线,3,1,;BDX:=ZIG(3,50/6*100,COLORRED;GDX:=MA(BDX,4,COLORYELLOW;DXB:=CROSS(BDX,GDX*1000,COLORRED;WXB:=CROSS(GDX,BDX*1000,COLORBLUE;DRAWICON(WXB=1000 AND 快线<=慢线,H+0.2,15;DRAWICON(WXB=1000,H+0.05,2;DRAWICON(DXB=1000,L+0.1,11;VAR51:=3;VAR52:=(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;下注万元:=COUNT(REF(EMA(C,3,1 REF(EMA(C,3,1;DRAWICON(下注万元 OR CROSS(VAR52,VAR51,L,9;DRAWTEXT(下注万元 OR CROSS(VAR52,VAR51,L-0.2,'投注',COLORCYAN;【通达信】如影随形线(买线、卖线、黑马交叉、长期趋势)-指标公式效果图(文档来源:若水财经社区。
【股票指标公式下载】-【通达信】指导买卖(买线、卖线、指导线)
【通达信】指导买卖(买线、卖线、指导线)-指标公式源码买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);STICKLINE(买线>=卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),COLOR600020;STICKLINE(买线<卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),COLOR404050; DRAWKLINE(H,O,L,C);指导线:EMA((EMA(CLOSE,5)+EMA(CLOSE,10)+EMA(CLOSE,15)+EMA(CLOSE,24))/4,2), ,COLORCYAN;界:EMA((EMA(CLOSE,15)+EMA(CLOSE,20)+EMA(CLOSE,30)+EMA(CLOSE,45))/4,5) ,,COLORYELLOW;底:EMA((EMA(CLOSE,60)+EMA(CLOSE,90)+EMA(CLOSE,120)+EMA(CLOSE,240))/4, 1),,COLORLIMAGENTA;B买:IF(CROSS(指导线,界) OR CROSS(买线,卖线),C,DRAWNULL),COLORMAGENTA,NODRAW;持仓:IF(买线>=卖线,C,DRAWNULL),COLORRED,NODRAW;S卖:IF(CROSS(界,指导线) OR CROSS(卖线,买线),C,DRAWNULL),COLORLIGRAY,NODRAW;空仓:IF(买线<卖线,C,DRAWNULL),COLORGREEN,NODRAW;DRAWICON(CROSS(买线,卖线),L,1);DRAWICON(CROSS(卖线,买线),H,2);顶: COST(95),COLORBLUE;M55:EMA(CLOSE,55),POINTDOT,LINETHICK3,COLORWHITE;M8:EMA(CLOSE,8),COLORYELLOW;【通达信】指导买卖(买线、卖线、指导线)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】七剑下天山(卖出线、阶段卖、趋势、买入信号、交叉)
【通达信】七剑下天山(卖出线、阶段卖、趋势、买入信号、交叉)-指标公式源码E1:=BARSCOUNT(C);AH:=HHV(H,200);AL:=LLV(L,200);B0:=(AH-AL)/40;KB1:=H+B0;KB2:=L-B0;STICKLINE((E1+0)/34=FLOOR((E1+0)/34),KB2,KB2-3*B0,1,0),COLORYELLOW,LI NETHICK3;DRAWTEXT((E1+0)/34=FLOOR((E1+0)/34),KB2-2*B0,'时间窗'),COLORWHITE; {STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),COLORFF6C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,4,0),COLORFF7B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3,0),COLORFF9C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2,0),COLORFFBE00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2.5,0),COLORFFCC00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.5,0),COLORFFFF00;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6,0),COLOR070084;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),COLOR0000A3;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,4,0),COLOR0000B7;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),COLOR0000CD;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2,0),COLOR0000E9;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2,0),COLOR0754E9;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.5,0),COLOR076EF3;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),COLOR077BF3;STICKLINE((CLOSE > OPEN),OPEN,LOW,1,0),COLOR0726CA;STICKLINE((CLOSE > OPEN),CLOSE,HIGH,1,0),COLOR0726CA;STICKLINE((OPEN > CLOSE),CLOSE,LOW,1,0),COLORDE9100;STICKLINE((OPEN > CLOSE),OPEN,HIGH,1,0),COLORDE9100;}卖出线:=98;阶段卖:=96;趋势4:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SM A(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1); 底部:=10;买入信号:DRAWICON(CROSS(趋势4,底部),LOW,1);卖出:DRAWICON(CROSS(卖出线,趋势4),HIGH,2);顶压:HHV(MA(H,11),50),COLORFF9900,LINETHICK3;短压:HHV(MA(H,11),15),COLOR0066FF,LINETHICK3;XL1:=LLV(MA(H,11),1);趋势3:IF(XL1>=短压,短压,XL1),COLORRED,LINETHICK2;K1:=BACKSET(趋势3<REF(趋势3,1),2);IF(K1,趋势3,DRAWNULL),COLOR00CC33,LINETHICK2;RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;KK1:=REF(RSV,1);KK2:=REF(RSV,2);KA:=RSV;KK3:=REF(RSV,3);KK4:=REF(RSV, 4);KK5:=REF(RSV,5);KK80:=3*80-(POW(2/3,1)*KK1+POW(2/3,2)*KK2+POW(2/3,3)*KK3+POW(2/3,4)*K K4+3*POW(2/3,5)*KK5);KKK80:=SMA((KK80*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1);交叉:=3*SMA(SMA(KA,3,1),3,1)-(POW(2/3,1)*KK1+POW(2/3,2)*KK2+POW(2/3,3)* KK3+POW(2/3,4)*KK4+3*POW(2/3,5)*KK5);K转折:=3*SMA(KA,3,1)-(POW(2/3,1)*KK1+POW(2/3,2)*KK2+POW(2/3,3)*KK3+POW(2 /3,4)*KK4+3*POW(2/3,5)*KK5);K转折价0:=SMA((K转折*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1);日交叉0:=SMA((交叉*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1); DRAWTEXT(K转折价0>=KKK80 AND K转折价0>=日交叉0,日交叉0,'◆'),COLORFF00FF;趋势:= 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),COLORYELLOW,LINETHICK2;警戒:=趋势<=5 ;D1:=C/L>1.05 AND COUNT(警戒,3)>=1 AND C/REF(C,1)>1.01;DRAWTEXT(D1>0,L,'★长生剑'),COLOR00FF00;趋势1:=MA(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SM A(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),5) ;买入1:= C/O>1.04 AND COUNT(趋势1<10,3)>=1;D2:=(买入1);DRAWTEXT(D2>0,L,'☆孔雀翎'),COLORFF00FF;M1:=(CLOSE-MA(CLOSE,30))/STD(CLOSE,15)*100;K:=SMA(M1,3,1);D:=SMA(K,3,1);J:=3*K-2*D;DD:=M1<-300;DA:=C/O>1.04 AND COUNT(M1<-300,3)>=1;D3:=DA;DRAWTEXT(D3>0,L,'★碧玉刀'),COLOR006EFF;个股:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;D4:=COUNT(个股<-8,3)>=1 AND ( C/L>1.05 ) ;DRAWTEXT(D4>0,L,'◎多情环'),COLORRED;LCA:=REF(CLOSE,1);E:=-100*(HHV(HIGH,84)-CLOSE)/(HHV(HIGH,84)-LLV(LOW,84));底:=(( E<-98)*2000);D5:=( C/L>1.04 AND C>REF(C,1)) AND COUNT(底,2)>=1;DRAWTEXT(D5>0,L,'Ψ离别钩'),COLOR0090E0;DIFFA:=(EMA(CLOSE,12) - EMA(CLOSE,26))*100+50;DC:=C/L>1.05 AND DIFFA<40;D6 :=FILTER(DC,5);DRAWTEXT(D6>0,L,'↑霸王枪'),COLOR00FF00;BB1:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.035 ;BB2:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;BB3:=(CLOSE-OPEN)/OPEN*100;BB4:=REF(CLOSE,1);BB5:=SMA(MAX(CLOSE-BB4,0),6,1)/SMA(ABS(CLOSE-BB4),6,1)*100;BB6:=COUNT(BB5<20,20)>=1;BB108:=BB3>9 AND BB6;BB7:=(CLOSE-OPEN)/OPEN*100;BB8:=REF(CLOSE,1);BB9:=SMA(MAX(CLOSE-BB8,0),6,1)/SMA(ABS(CLOSE-BB8),6,1)*100;BB10:=COUNT(BB9<20,20)>=1;BB109:=BB7>9 AND BB10;DRAWTEXT(BB108 OR BB109>0,L,'★拳头'),COLORWHITE;【通达信】七剑下天山(卖出线、阶段卖、趋势、买入信号、交叉)-指标公式效果图(文档来源:若水财经社区)。
通达信超准买进卖出主图指标公式
通达信超准买进卖出主图指标公式O1:(SUM(EMA((CLOSE+LOW)/2,1)/3,3)),COLOR00FFFF,LINET HICK0;O2:EMA(O1,3),COLORFF00FF,LINETHICK0;O3:EMA(O2,3),COLOR00FF00,LINETHICK0;MMM:=MA(CLOSE,20);VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3.2,0),COLORF F3300;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.7,0),COLORF F5500;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.1,0),COLORF F7700;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORF F9900;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.9,0),COLORF FBB00;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.3,0),COLORF FDD00;DRAWTEXT(FILTER(VAR19=1,5),LOW,' 买进'),COLORFF00FF;DRAWICON(FILTER(VAR19=1,5),LOW,9);DRAWTEXT(FILTER(VAR1A=1,5),HIGH,' 逃顶'),COLOR00FF00;。
【股票指标公式下载】-【通达信】能量公式(成交、买盘、卖盘)
【通达信】能量公式(成交、买盘、卖盘)-指标公式源码{N 1.00 100.00 15.0}M1:=5;M2:=10;M3:=20;M4:=60;SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100>100,100,(AMOUNT/C)/(H HV(AMOUNT,N)/HHV(C,N))*100);能量:=SAT,VOLSTICK;DRAWTEXT(FILTER(SAT>=100,100),VOL*1.06,'爆'),COLORRED;DRAWTEXT(SAT=100 AND ISLASTBAR,VOL*1.03,'发'),COLORYELLOW;VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));成交:=VOL;买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) +(OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));买卖差:=(买盘 + 卖盘);STICKLINE((买卖差 < 0),0,买卖差,3,0),LINETHICK3,COLOR339933; STICKLINE((买卖差 < 0),0,买卖差,2,0),LINETHICK3,COLOR33AA33; STICKLINE((买卖差 < 0),0,买卖差,1,0),LINETHICK3,COLOR33DD33; STICKLINE((买卖差 < 0),0,买卖差,0.5,0),LINETHICK3,COLOR33FF33;量比1:=(VOL / MA(VOL,5));VAR10:=买盘;VAR20:=卖盘;JX1:=BARSSINCE(买盘);JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);VAR30:=MA(VOL,JY2);动神:=买盘;鬼力:=VAR20;神比:=(动神 / VAR30);鬼比:=(鬼力 / VAR30);VAR2:=(HIGH - LOW);VAR3:=ABS((OPEN - CLOSE));VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);VAR6:=((VAR3 / VAR2) * VOL);VAR7:=((VAR4 / VAR2) * VOL);VAR8:=((VAR5 / VAR2) * VOL);VAR9:=IF(((VOL / CAPITAL) > 0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60)));VARC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30))); VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),6,1) / SMA(ABS((CLOSE - VARD)),6,1)) * 100);VAR40:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),VAR6,动神) + 动神) / 2);VAR41:=((IF(((VAR7 > VAR6) AND (VAR7 > VAR8)),VAR7,动神) + 动神) / 2); VAR42:=((IF(((VAR8 > VAR6) AND (VAR8 > VAR7)),VAR8,动神) + 动神) / 2); VAR50:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),VAR6,鬼力) + 鬼力) / 2);三日上攻:=MA((((VAR40 + VAR41) + VAR42) / 3),JY2);三日下攻:=MA(VAR50,JY2);多头:STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,3,0),COLOR000088; STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,2,0),COLOR0000AA;STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,1,0),COLOR0000DD;STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,0.5,0),COLOR0000FF;空头:STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,3,0),COLOR008800; STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,2,0),COLOR00AA00;STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,1,0),COLOR00DD00;STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,0.5,0),COLOR00FF00; STICKLINE((鬼力 > 0),鬼力,0,4,0),COLORFF3399;加仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,3,0),COLOR880088;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,2,0),COLORAA00AA;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,1,0),COLORDD00DD;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE > OPEN)),0,VAR6,0.5,0),COLORFF00FF;减仓:STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE < OPEN)),0,VAR6,3,0),COLOR880000;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE < OPEN)),0,VAR6,2,0),COLORBB0000;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE < OPEN)),0,VAR6,1,0),COLORDD0000;STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8))AND (CLOSE < OPEN)),0,VAR6,0.5,0),COLORFF0000;洗盘:STICKLINE(((VAR8 > VAR6) AND (VAR8 >VAR7)),0,VAR8,3,0),COLOR999999;STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,2,0),COLORAAAAAA; STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,1,0),COLORDDDDDD; STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,0.6,0),COLORFFFFFF; 高卖:STICKLINE(((VAR7 > VAR6) AND (VAR7 >VAR8)),0,VAR7,3,0),COLOR008888;STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,2,0),COLOR00AAAA; STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,1,0),COLOR00DDDD; STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,0.5,0),COLOR00FFFF; 相对地量:=STICKLINE(((VAR9 > 2) AND (VOL < (MA(VOL,5) / 2))),0,VOL,3,0); 白进:1,LINETHICK0,COLORWHITE;黄警:1,NODRAW,COLOR00FFFF;粉追:2,NODRAW,COLORFF00FF;兰绿卖:3,NODRAW,COLOR00FF00;MAV1:MA(V,M1),LINETHICK1,COLOR00FFFF;MAV2:=MA(V,M2),LINETHICK1,COLORFF00FF;IF(MA(V,5)>=REF(MA(V,5),1),MA(V,5),DRAWNULL),COLORRED,LINETHICK2;【通达信】能量公式(成交、买盘、卖盘)-指标公式效果图(文档来源:若水财经社区)。
通达信买入止赢卖出止损主图指标公式
通达信买入止赢卖出止损主图指标公式通达信买入止赢卖出止损主图指标公式A0:=(L+H+C*2)/4;A1:=EMA(A0,14)COLORYELLOW,LINETHICK2;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;A2X:=(EMA(A0,20)-REF(EMA(A0,20),1))/REF(EMA(A0,20),1)*100;G1:=BARSLAST(CROSS(A1X,0));买入止损:REF(A0,G1),COLORWHITE,LINETHICK1;脉冲:(A0-A1)/A1*100,NODRAW;斜脉冲:(A0-REF(A0,1))/(A1-REF(A1,1)),NODRAW;买入盈利:(A0-买入止损)/买入止损*100,NODRAW;Y1:=REF(A0,G1)*1.1,COLORGREEN;Y2:=REF(A0,G1)*1.2,COLORGREEN;Y3:=REF(A0,G1)*1.3,COLORGREEN;Y4:=REF(A0,G1)*1.4,COLORGREEN;Y5:=REF(A0,G1)*1.5,COLORGREEN;Y6:=REF(A0,G1)*1.6,COLORGREEN;Y7:=REF(A0,G1)*1.7,COLORGREEN;B1:IF(A1X>=0,买入止损,DRAWNULL),COLORRED,LINETHICK1;B2:IF(A1X>=0,A1,DRAWNULL),COLORFF33FF,LINETHICK2;①:IF(H>=Y1,Y1,DRAWNULL),COLORGREEN,LINETHICK3;②:IF(H>=Y2,Y2,DRAWNULL),COLORGREEN;③:IF(H>=Y3,Y3,DRAWNULL),COLORGREEN,CIRCLEDOT;④:IF(H>=Y4,Y4,DRAWNULL),COLORGREEN;⑤:IF(H>=Y5,Y5,DRAWNULL),COLORGREEN;⑥:IF(H>=Y6,Y6,DRAWNULL),COLORGREEN;⑦:IF(H>=Y7,Y7,DRAWNULL),COLORGREEN;JX1:=MA(C,5);JX2:=MA(C,10);JX3:=MA(C,20);JTTJ1:=BARSLAST(CROSS(JX1,JX2));JTTJ2:=BARSLAST(CROSS(JX1,JX3));JTTJ3:=BARSLAST(CROSS(JX2,JX3));JTTJ4:=JTTJ1>=JTTJ2;JTTJ5:=JTTJ2>=JTTJ3;JTTJ6:=JTTJ3=0;月价托:=JTTJ4 AND JTTJ5 AND JTTJ6;JX4:=MA(C,40);JX5:=MA(C,60);JTTJ7:=BARSLAST(CROSS(JX3,JX4));JTTJ8:=BARSLAST(CROSS(JX3,JX5));JTTJ9:=BARSLAST(CROSS(JX4,JX5));JTTJ10:=JTTJ7>=JTTJ8;JTTJ11:=JTTJ8>=JTTJ9;JTTJ12:=JTTJ9=0;季价托:=JTTJ10 AND JTTJ11 AND JTTJ12;JTTJ13:=BARSLAST(CROSS(JX1,JX2));JTTJ14:=BARSLAST(CROSS(JX1,JX5));JTTJ15:=BARSLAST(CROSS(JX2,JX5));JTTJ16:=JTTJ13>=JTTJ14;JTTJ17:=JTTJ14>=JTTJ15;JTTJ18:=JTTJ15=0;短长托:=JTTJ16 AND JTTJ17 AND JTTJ18;BOLL:=MA(C,20);UPPER:=BOLL+2*STD(C,20);LOWER:=BOLL-2*STD(C,20);大黑马:=CROSS(C,UPPER) AND C/REF(C,1)>1.05,COLORRED; DRAWTEXT(大黑马 AND C>MA(C,60) AND C>MA(C,90) ANDC>MA(C,120) AND C>MA(C,250),H*1.03,敢死队),COLORYELLOW;DRAWTEXT(月价托,L*0.98,月价托),COLORWHITE;DRAWTEXT(季价托,H+0.05,季价托),COLORWHITE;DRAWTEXT(短长托,L-0.1,短长托),COLORWHITE;回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D;MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))) /(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));MAHL2:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));MAHL3:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5)); 回归斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));上线:=SMA(C,6.5,1);一号支撑线:SMA(C,14.5,1);上线1:=SMA(C,3,1);一号支撑线1:=SMA(C,8,1);上线2:=SMA(C,3.5,1);DRAWTEXT(CROSS(一号支撑线1,上线1),H*1.08,洗盘),COLOR00FF00;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLO SE,25))/4;UPR:=BBI+3*STD(BBI,13),LINETHICK2;DWN:=BBI-3*STD(BBI,13);安全:=MA(CLOSE,55),LINETHICK2;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT( CROSS(82,RSI) AND CLOSE<上线1 , HIGH*1.04,减仓) ,COLORFF9966,LINETHICK2;A7:=(2*C+H+L)/4;操作:MA(A7,5),COLORBLUE,LINETHICK2;操作1:=MA(A7,5)*1.03,LINETHICK2;操作2:=MA(A7,5)*0.97,LINETHICK2;DRAWTEXT( CROSS(上线1,上线) AND 上线1>操作,LOW *0.92,买进 ),COLORYELLOW;VAR1:LLV(A7,21);VAR2:HHV(A7,30);DRAWTEXT( CROSS(上线1,操作) AND 上线1<一号支撑线 AND 上线1<一号支撑线1 AND 上线1<上线AND CLOSE>VAR1,LOW *0.98,见底 ),COLORYELLOW;YCX:=操作>=REF(操作,1);H1:=MAX(MAX(上线,一号支撑线1),一号支撑线);L1:=MIN(MIN(上线,一号支撑线1),一号支撑线);DRAWTEXT(CROSS(上线1,一号支撑线1) AND 上线1>操作 ,LOW *0.98,全仓 ),COLORYELLOW;SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);M1:=1000*操作/一号支撑线<=1015 AND 1000*操作/一号支撑线>=975;M2:=1000*一号支撑线1/一号支撑线<=1020 AND 一号支撑线1/一号支撑线>=980;M3:=1000*上线/一号支撑线<=1015 AND 上线/一号支撑线>=985;DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10ANDCOUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) ANDREF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) ANDOPEN>REF(CLOSE,1),1,0),LOW*0.94,买进) ,COLORYELLOW;D:=MA(CLOSE,89)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.88,抄底),COLORBROWN;RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;K:=SMA(RSV,3,1);D1:=SMA(K,3,1);J:=3*K-2*D1;VAR3:=(2*CLOSE+HIGH+LOW)/3;VAR4:=EMA(EMA(EMA(VAR3,4),4),4); E:=(VAR4-REF(VAR4,1))/REF(VAR4,1)*100;F:=MA(E,3)+0.03;G:=MA(E,1);DRAWICON(CROSS(F,G) AND J>65,HIGH*1.02,15),COLORGREEN;DRAWICON(CROSS(G,F),LOW *0.9,9),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND H1<C AND O<L1 AND YCX AND CROSS(上线1,操作) AND LOW>VAR1 AND 上线1>一号支撑线 AND J<90,LOW *0.9,主升 ),COLORRED;DRAWTEXT( CROSS(上线1,操作) AND M1 AND M2 AND M3,LOW *0.94,买进 ),COLORYELLOW;DRAWTEXT(CLOSE>OPEN AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线 AND CLOSE>MA(CLOSE,一号支撑线) AND 操作>=REF(CLOSE,操作) AND CROSS(上线1,操作) AND LOW>VAR1 AND J<90,LOW *0.9,主升 ),COLORRED;DRAWTEXT(CLOSE>OPEN AND 操作>上线 AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线AND CROSS(上线1,操作) AND LOW>VAR1 AND J<90,LOW *0.86,回踩买进 ),COLORRED;DRAWTEXT(CLOSE>OPEN AND CROSS(上线,一号支撑线) AND LOW>VAR1 AND J<90,LOW *0.86,回踩买进 ),COLORRED;STICKLINE(CLOSE>REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED;STICKLINE(C<O AND C>REF(C,1),C,O,3,0),COLORFFCC00;STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,3,0 ),COLOR000055;;STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.7,0 ),COLOR000077;;STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;STICKLINE(CLOSE= REF(CLOSE,1) ,H,L,3,1 ),COLOR999999;STICKLINE(CLOSE=REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;STICKLINE(CLOSE<REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;STICKLINE(C<REF(C,1) AND C>O,C,O,3,0),COLORFFCC00;STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,3,0 ),COLOR990000;STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000;STICKLINE(CLOSE<REF(C,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;STICKLINE(CLOSE<REF(C,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;STICKLINE(CLOSE<REF(C,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,3.2,0),COLORBB00FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.7,0),COLORFF33FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.1,0), COLORFF66FF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,1.5,0),COLORFF99FF;STICKLINE(CROSS(J,D1) ANDJ<70,CLOSE,OPEN,0.9,0),COLORFFBBFF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.3,0),COLORFFDDFF;。
通达信买卖指标公式
通达信买卖指标公式
1. 均线指标:
(1)MA(X,Y)= X日收盘价之和÷Y
(2)MA5=5日收盘价之和÷5
(3)MA10=10日收盘价之和÷10
(4)MA20=20日收盘价之和÷20
(5)MA30=30日收盘价之和÷30
2. MACD指标:
(1)DIF=12日EMA-26日EMA
(2)DEA=9日DIF的EMA
(3)MACD=(DIF-DEA)×2
3. KDJ指标:
(1)K=100×(最近N日收盘价的最高价N日未破前的天数÷N))
(2)D=100×(最近N日K的平均值÷N)
(3)J=3K-2D
4. RSI指标:
(1)RS=N日内收盘价上涨总幅度÷N日内收盘价下跌总幅度
(2)RSI=100-[100÷(1+RS)]
5. BOLL指标:
(1)MA=N日收盘价之和÷N
(2)MD=(N日收盘价-MA)X2之和÷N
(3)UP=MA+K×MD
(4)MB=MA
(5)DN=MA-K×MD
6. SAR指标:
(1)SAR=上一个SAR值+AF×(上一个EP-上一个SAR值)
(2)EP=最高价或最低价
(3)AF=初始值+0.01
7. 威廉%R指标:
(1)%R=(N日内最高价-收盘价)÷(N日内最高价-最低价)×-100
8. 成交量指标:
(1)MAVOL=N日成交量之和÷N。
【股票指标公式下载】-【通达信】无为买卖(趋势线、涨势确立)
【股票指标公式下载】-【通达信】⽆为买卖(趋势线、涨势确⽴)【通达信】⽆为买卖(趋势线、涨势确⽴)-指标公式源码VAR1:=1;趋势线:((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)-50) *1.032+50),COLORRED;VAR2:=(2*CLOSE+HIGH+LOW+OPEN)/5;VAR3:=LLV(LOW,34);VAR4:=HHV(HIGH,34);SK: EMA((VAR2-VAR3)/(VAR4-VAR3)*100,13)*VAR1,COLORWHITE;SD: EMA(SK,3),COLORYELLOW;VAR5:=EMA(CLOSE,12)-EMA(CLOSE,26);VAR6:=EMA(VAR5,9);VAR7:=VAR1*CLOSE*1.236VAR8:=CLOSE/REF(CLOSE,1)>1.021;VAR9:=(HIGH-CLOSE)*1.36<=CLOSE-OPEN;VARA:=(MA(CLOSE,120)-CLOSE)/CLOSE*100;VARB:=ABS(VAR5-VAR6);VARC:=STD(CLOSE,90)*10;VARD:=COUNT((REF(CLOSE,15)-CLOSE)/CLOSE*100>45,5);买:IF( VAR1*VAR7 AND VAR8 AND VAR9 AND VARC<25 AND CLOSE<8 AND VARA<114 ANDVARB<=0.23*40,55,0),COLORRED;VARE:=SLOPE(CLOSE,40);VARF:=COUNT((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<-0.098,90);VAR10:=(MA(CLOSE,120)-CLOSE)/CLOSE*100;VAR11:=STD(CLOSE,63)*10;VAR12:=(MA(CLOSE,76)-MA(CLOSE,13)/3);VAR13:=MA((CLOSE-VAR12)/VAR12,1);VAR14:=MA(CLOSE,5);VAR15:=MA(CLOSE,10);VAR16:=MA(CLOSE,20);VAR17:=MA(CLOSE,30);VAR18:=MA(CLOSE,60);VAR19:=MA(CLOSE,150);VAR1A:=MA(CLOSE,250);VAR1B:=VOL/CAPITAL*100;VAR1C:=(CLOSE-VAR1A)/VAR1A*100;VAR1D:=(CLOSE/REF(CLOSE,1)-1)*100;VAR1E:=PWINNER(1,CLOSE);VAR1F:=IF(VAR1>0.75 AND VAR1<0.901,0.618,1);⽜: IF(VAR14>VAR15 AND VAR15>VAR16 AND VAR16>VAR17 AND VAR16>VAR18 AND VAR19>VAR1A AND (VAR1E>=0.9 OR VAR1E>0.76 AND VAR1E<0.901 AND VAR1D>5 AND VAR1B>5) AND VAR1D>1.8 AND VAR1C<40 AND CLOSE>3 AND(CLOSE-VAR18)/VAR18<0.25 AND VAR1B<=6 AND VAR4*VAR1B>=1 ANDCLOSE<18.5,35,0), COLORF00F00;VAR20:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;VAR21:=(MA(CLOSE,48)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;VAR22:=VAR1*(MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,48)+MA(CLOSE,96))/4; VAR23:=VAR1*MA(CLOSE,250); VAR24:=MA(CLOSE,125);VAR25:=CLOSE/MA(CLOSE,3)>=1.05 AND CLOSE=HHV(CLOSE,3) ANDMA(VOL,2)/MA(VOL,40)>=3 AND MA(VOL,2)=HHV(MA(VOL,2),3) ANDVOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);VAR26:=REF(CLOSE,1);VAR27:=SMA(MAX(CLOSE-VAR26,0),5,1)/SMA(ABS(CLOSE-VAR26),5,1)*100;VAR28:=VAR1*COUNT(VAR27<25,20)>=1;VAR29:=(HIGH-LOW)/HIGH*100+(CLOSE-VAR26)/VAR26*100;VAR2A:=EMA(MA(VAR29,41),6);VAR2B:=VAR2A>LLV(VAR2A,6)*1.02 ANDREF(VAR2A,1)LOW*1.033;涨势确⽴: VAR1*(VAR2C>0 AND VAR2D*16+81.5)*VAR1,COLOR80FFFF ;买⼊:IF(CROSS(趋势线,21),50,18.5),LINETHICK1,COLORAAA0FF;卖出:IF(CROSS(87,趋势线),60,81.5 ),COLORFFAA00;DRAWTEXT(VAR2C>0 AND VAR2D,88,'↑'),COLORWHITE;VAR2E:=IF(CROSS(SK,SD),25,18.5);VAR2F:=IF(CROSS(SD,SK),75,81.5);卖线:=VAR2F, COLORWHITE;买线:=VAR2E,COLORRED;VAR13<0.06*(-10)+81.5,COLORWHITE;VAR30:0-SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5; STICKLINE(VAR30<-2,0,VAR30,1.5,1); DRAWTEXT(买⼊>VAR2E,61,' 短买'),COLORAAAAFF;DRAWTEXT(卖出DRAWTEXT(买>1.0,75,'长买'),COLORRED; DRAWTEXT(⽜>1.0,40,'长⽜'),COLORF00F00;【通达信】⽆为买卖(趋势线、涨势确⽴)-指标公式效果图(⽂档来源:若⽔财经社区)。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【通达信】趋势买卖(卖出、买入、幅度)-指标公式源码
VAR1:=(C+H+O+L)/4;
卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;
买入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;
幅度:100*(卖出-买入)/买入,NODRAW;
MA1:=MA(VAR1,3);
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖
出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;
STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖
出,MAX(OPEN,CLOSE),3,0),COLORGREEN;
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN; STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA;
STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买
入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;
STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORMAGENTA; STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;
STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;
DRAWTEXT(CROSS(LOW,买入),LOW*0.95,'B'),COLORRED,LINETHICK2; DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'S'),COLORGREEN;
【通达信】趋势买卖(卖出、买入、幅度)-指标公式效果图
(文档来源:若水财经社区)。