【股票指标公式下载】-【通达信】拐点买卖(区域、正确买卖、趋势操盘、拐点)

合集下载

通达信指标公式源码连续拐点选股

通达信指标公式源码连续拐点选股

本公式设计的思路如下:1、首先选择个股形态是多头排列的;2、然后选择具有完好上升通道的个股;3、下一步选择上升形态和均线系统好的;4、用周期较小的均线,排除上升盘整阶段的个股;5、选出个股当天是调整后的首次走强;6、限制涨幅和换手率,保证量能适中,不太低也不过高;7、对流通盘进行限制,流通盘不能太大。

由以上条件选出的股票胜率非常高,而且是上涨形态中的买点,不担心被套,并且该指标属于短中线,非长线持股。

必杀1:=MA(CLOSE,N)>MA(CLOSE,N1) AND MA(CLOSE,N1)>MA(CLOSE,N2) AND MA(CLOSE,N2)>MA(CLOSE,N3) AND MA(CLOSE,N3)>MA(CLOSE,N4) AND MA(CLOSE,N4)>MA(CLOSE,N5);必杀2:=REF(MA(C,10),3)>REF(MA(C,20),3) AND REF(MA(C,20),3)>REF(MA(C,30),3) AND REF(MA(C,30),3)>REF(MA(C,60),3) AND REF(MA(C,60),3)>REF(MA(C,120),3);必杀3:=REF(MA(C,10),6)>REF(MA(C,20),6) AND REF(MA(C,20),6)>REF(MA(C,30),6)AND REF(MA(C,30),6)>REF(MA(C,60),6) AND REF(MA(C,60),6)>REF(MA(C,120),6);必杀4:=MA(C,10)>REF(MA(C,10),2) AND REF(MA(C,10),2)>REF(MA(C,10),4) AND REF(MA(C,10),4)>REF(MA(C,10),6);必杀5:=C>REF(C,4) OR V>MA(V,5) OR L<=MA(C,20);必杀6:=(C-REF(C,1))/REF(C,1)*100>=2 AND (C-REF(C,1))/REF(C,1)*100<=9.9 AND V*100/FINANCE(7)*100>=2 AND V*100/FINANCE(7)*100<30;必杀7:=V>REF(V,1) AND V<2.5*REF(V,1) AND MA(C,5)>=REF(MA(C,5),1)+0.01 AND (C-O)>=1.2*(REF(O,1)-REF(C,1));必杀8:=(MA(C,5)-MA(C,10))/(C-O)>0.1 AND (MA(C,5)-MA(C,10))/(C-O)<0.6 AND (C-MA(C,5))/(C-O)>=0.05 AND (C-MA(C,5))/(C-O)<0.66 AND (MA(C,10)-O)/(C-O)>=0.08 AND (REF(C,1)-REF(C,2))/REF(C,2)*100<1;必杀9:=FINANCE(7)<10000000000;买点:必杀1 AND 必杀2 AND 必杀3 AND 必杀4 AND 必杀5 AND 必杀6 AND 必杀7 AND 必杀8 AND 必杀9;。

通达信买卖趋势主图指标公式

通达信买卖趋势主图指标公式

通达信买卖趋势主图指标公式通达信买卖趋势主图指标是一种用于分析股票走势的技术指标,可以帮助投资者判断市场的买卖趋势和进行买卖决策。

其主要由以下几个指标组成:1.均线指标:均线是股价的平均值,主要用于观察股价的长期和短期走势。

常见的均线有5日均线、10日均线、20日均线和60日均线等,可以通过画线将这些均线在股票图上表现出来。

2.成交量指标:成交量指标是衡量股票交易活跃度的指标。

通常用柱状图显示,柱状图的高度表示交易量的大小。

成交量指标可以帮助判断市场的买卖力量和价格趋势的可靠性。

3.相对力度指标(RSI):RSI是衡量买卖力量的相对强度指标。

它的计算公式为RSI=(14日上升总幅度/14日上升总幅度+14日下降总幅度)×100。

通常以30和70作为RSI的超买和超卖线,RSI超过70表示超买,RSI低于30表示超卖,投资者可以根据RSI指标来判断股票的买卖时机。

4.MACD指标:MACD指标是一种趋势追踪的指标,用于衡量股票的短期和长期走势的变化。

MACD由两条线组成,即快速线(DIF)和慢速线(DEA),当快速线上穿慢速线时,表示买入信号,当快速线下穿慢速线时,表示卖出信号。

5.布林带指标:布林带是一种通过计算标准差来界定股价波动区间的指标。

布林带由中轨、上轨和下轨组成,中轨是股价的中期均线,上轨和下轨是中轨加减一个标准差。

当股价突破上轨时,表示买入信号,当股价跌破下轨时,表示卖出信号。

以上是通达信买卖趋势主图指标的一些常见指标和公式,投资者在使用这些指标时,应结合其他技术分析指标和相关的市场消息,综合判断股票的买卖时机,避免盲目跟从指标信号进行交易。

【股票指标公式下载】-【通达信】如影随形线(买线、卖线、黑马交叉、长期趋势)

【股票指标公式下载】-【通达信】如影随形线(买线、卖线、黑马交叉、长期趋势)

【通达信】如影随形线(买线、卖线、黑马交叉、长期趋势)-指标公式源码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),1)COLORWHITE,LINETHICK3;卖线A:=IF(MC1>MAX(MC2,MA4),MC1,IF(MC1<MIN(MC2,MA4),MC2,MA4)),COLORFF00CC, LINETHICK3;高1:=REF(HHV(H,150),3);低1:=REF(LLV(L,150),3);STICKLINE(买线A>=卖线A,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,6,0)COLOR001050;STICKLINE(买线A<卖线A,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,6,0)COLOR404050;买线B:=EMA(CLOSE,9)-EMA(CLOSE,18);卖线B:=EMA(买线B,7),LINETHICK1;STICKLINE(买线B>卖线B,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORRED;STICKLINE(买线B<=卖线B,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORGREEN;黑马买线:=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(FCA1<REF(K2A1,1));JRA1:=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(C<O,HIGH,LOW,0,0),COLORCYAN;STICKLINE(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),V AR2XG,1);VAR4XG:=VAR2XG=VAR3XG;VAR5XG:=VAR2XG<REF(VAR2XG,1);变粉:=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,COLORR ED;慢线:=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),2),5)=5 ANDEMA(C,3)>REF(EMA(C,3),1);DRAWICON(下注万元 OR CROSS(VAR52,VAR51),L,9);DRAWTEXT(下注万元 OR CROSS(VAR52,VAR51),L-0.2,'投注'),COLORCYAN; 【通达信】如影随形线(买线、卖线、黑马交叉、长期趋势)-指标公式效果图(文档来源:若水财经社区)。

通达信起暴点拐点指标公式

通达信起暴点拐点指标公式

DRAWGBK(O>C,RGB(48,41,124),RGB(0,0,0),0,'1',0);VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);XG:=(FILTER((VAR4AA>90),45)),COLORYELLOW;STICKLINE(XG,150,0,4,0),COLOR000099;STICKLINE(XG,150,0,2,0),COLOR0000BB;STICKLINE(XG,150,0,1,0),COLOR0000DD;STICKLINE(XG,150,0,0.9,0),COLOR0000FF;DRAWTEXT(XG>0,130,'SI起暴点'),COLOR00C5FF;DIFF :=( EMA(CLOSE,12) - EMA(CLOSE,26))*100;DEA :=EMA(DIFF,9);MACD :=2*(DIFF-DEA);抄底1:=ABS((CROSS("MACD.DIF","MACD.DEA")&&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.09,COLORLIMAGENTA,LINETHICK2; STICKLINE(抄底1,0,50,4,0),COLOR770077;STICKLINE(抄底1,0,50,3,0),COLOR990099;STICKLINE(抄底1,0,50,2,0),COLORBB00BB;STICKLINE(抄底1,0,50,1,0),COLORDD00DD;STICKLINE(抄底1,0,50,0.3,0),COLORFF00FF;DRAWTEXT(抄底1>0,38,'超级拐点'),COLOR00C5FF;反向钟摆线:=MA((LLV(LOW,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45))*100,20);DK:=CROSS(-5,反向钟摆线);STICKLINE(DK,0,50,4,0),COLOR770077;STICKLINE(DK,0,50,3,0),COLOR990099;STICKLINE(DK,0,50,2,0),COLORBB00BB;STICKLINE(DK,0,50,1,0),COLORDD00DD;STICKLINE(DK,0,50,0.3,0),COLORFF00FF;DRAWTEXT(DK>0,48,'终极低点'),COLOR00C5FF;VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);VAR6:=MA(VAR5,3);VAR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5) / 3) / CAPITAL));VAR8:=(((CLOSE - VAR7) / VAR7) * 100);VAR9:=((((REF(VAR8,1) < (0 - 40)) AND (VAR8 > REF(VAR8,1))) AND (REF(VAR8,1) < REF(VAR8,2))) AND ((VAR8 - REF(VAR8,1)) > 2.5));VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),5,1) / SMA(ABS((CLOSE - VARD)),5,1)) * 100); VARF:=(((HIGH + LOW) + CLOSE) / 3);VAR10:=((VARF - MA(VARF,14)) / (0.015 * AVEDEV(VARF,14)));VAR11:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));VAR12:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR13:=(VAR11 AND VAR12);VAR14:=((((VAR2 >= (0 - 45)) AND (VAR2 <= (0 - 10))) AND (VAR3 <= (0 - 15))) AND (VAR4 <= (0 - 20)));VAR15:=(COUNT(VAR14,1) >= 1);VAR16:=(VAR13 AND VAR15);VAR17:=1;VAR18:=(CLOSE * VOL);VAR19:=EMA((((((MA(VAR18,4) / MA(VOL,4)) + (MA(VAR18,6) / MA(VOL,6))) + (MA(VAR18,13) / MA(VOL,13))) + (MA(VAR18,24) / MA(VOL,24))) / 4),1);VAR1A:=(1 * VAR19);VAR1B:=(VAR19 * 0.92);VAR1C:=EMA(CLOSE,34);VAR1D:=MA((VAR1C * 1.12),5);VAR1E:=MA((VAR1C * 0.82),5);VAR1F:=(CLOSE < VAR1E);VAR20:=((((((MA(AMOUNT,5) * VAR17) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < ((0 - 0.4) * VAR17)); VAR21:=HHV(HIGH,500);VAR22:=LLV(LOW,500);VAR23:=HHV(HIGH,250);VAR24:=LLV(LOW,250);VAR25:=HHV(HIGH,125);VAR26:=LLV(LOW,125);VAR27:=MA(((((((VAR21 * 0.45) + (VAR23 * 0.5)) + VAR22) + VAR24) + VAR26) / 5),35); VAR28:=MA((((VAR23 * 0.62) + VAR26) / 2),35);VAR29:=MA((((VAR23 * 0.75) + VAR26) / 2),18);VAR2A:=MA((((((VAR23 * 0.93) + (VAR27 * 2)) + (VAR28 * 1.8)) + (VAR29 * 1.5)) / 4),18); VAR2B:=MA(((((VAR21 * 0.95) + (VAR27 * 3)) + (VAR28 * 2)) / 3),35);VAR2C:=VAR27;VAR2D:=VAR28;VAR2E:=VAR29;VAR2F:=VAR2A;VAR30:=VAR2B;VAR31:=((CLOSE - REF(MA(CLOSE,20),11)) < (0 - 2));VAR35:=((VAR18 / (VAR18 + VAR19)) * VAR17);VAR36:=((VAR19 / (VAR18 + VAR19)) * VAR17);VAR37:=EMA(VAR35,10);VAR38:=EMA(VAR36,10);VAR39:=EMA(VAR37,10);VAR3A:=EMA(VAR38,20);VAR3B:=EMA(VAR37,3);VAR3C:=EMA(VAR39,6);VAR3D:=EMA(VAR3A,2);VAR3E:=(VAR3C - VAR3D);VAR3F:=(((VAR3C - REF(VAR3C,1)) > 0) AND ((REF(VAR3C,1) - REF(VAR3C,2)) < 0)); VAR40:=IF((CROSS(VAR3B,VAR3C) AND (VAR3C <= 20)),30,0);VAR41:=VAR40;VAR42:=(SMA(((AMOUNT / VOL) / 100),13,1) * 1.15);VAR43:=(SMA(((AMOUNT / VOL) / 100),13,1) * 0.85);VAR44:=(CLOSE - REF(MA(CLOSE,20),11));VAR45:=(((((((((((((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43)) OR (((CLOSE < VAR1E) AND VAR31) AND VAR20)) OR ((CLOSE < VAR1E) AND (CLOSE < VAR43))) OR (((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43))) OR (VAR20 AND (CLOSE < VAR2C))) OR ((VAR20 AND VAR31) AND (VAR44 < (0 - 1.5)))) OR (VAR20 AND (CLOSE < VAR1E))) OR (VAR20 AND (VAR44 < (0 - 1.5)))) OR (VAR31 AND (CLOSE < VAR43))) OR ((CLOSE < VAR2C) AND (VAR44 < (0 - 1.5)))) OR ((CLOSE < VAR1E) AND VAR31));VAR4B:=(((HIGH + LOW) + CLOSE) / 3);VAR4C:=((VAR4B - MA(VAR4B,14)) / (0.015 * AVEDEV(VAR4B,14)));VAR4D:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));VAR4E:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR4F:=(VAR11 AND VAR12);VAR50:=((((VAR2 >= (0 - 45)) AND (VAR2 <= (0 - 7))) AND (VAR3 <= (0 - 11))) AND (VAR4 <= (0 - 14)));VAR51:=(COUNT(VAR50,1) >= 1);VAR52:=(VAR4F AND VAR51);VAR53:=(((((VAR20 AND (CLOSE < VAR1E)) AND VAR31) AND (CLOSE < VAR2C)) AND VAR45) AND VAR52);VAR5B:=((((((VAR2 >= (0 - 15.8)) AND (VAR2 <= (0 - 12.2))) AND (VAR3 <= (0 - 20.8))) AND (VAR4 <= (0 - 27.5))) AND (VARE <= 11.7)) AND (VAR4C <= (0 - 145)));VAR5C:=9.999999884842E+0.26;VAR5D:=(COST(10) * 0);VAR5E:=((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100));VAR5F:=MA((((LLV(LOW,45) - CLOSE) / (HHV(HIGH,45) - LLV(LOW,45))) * 100),5); VAR60:=((CROSS((0 - 5),VAR5F) AND (VAR5E < (0 - 0.4))) AND (((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.19)));VAR61:=MA(CLOSE,3);VAR62:=(REF(CLOSE,2) * 0.865);VAR63:=(REF(CLOSE,13) * 0.772);VAR64:=MIN(VAR62,VAR63);VAR65:=((100 * VOL) / CAPITAL);抄底:IF(((((VAR9 OR VAR16) OR VAR53) OR VAR5B) OR ((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8))),80,0),LINETHICK4,COLORRED; DRAWTEXT(抄底>0,抄底,'宁波游资买点'),COLOR00C5FF;小V逆转:=REF(C,1)<REF(O,1) AND O>REF(C,1) AND C>=REF(C,1)*1.08; STICKLINE(小V逆转,20,0,4,0),COLOR000099;STICKLINE(小V逆转,30,0,2,0),COLOR0000BB;STICKLINE(小V逆转,40,0,1,0),COLOR0000DD;STICKLINE(小V逆转,60,0,0.9,0),COLOR0000FF;DRAWICON(小V逆转,60,34);DRAWTEXT(小V逆转>0,30,'小V逆转'),COLOR00C5FF;。

通达信绝佳买卖点副图指标公式

通达信绝佳买卖点副图指标公式

通达信绝佳买卖点副图指标公式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,2)*VAR1,COLORYELLOW;VAR5:=EMA(CLOSE,12)-EMA(CLOSE,26);VAR6:=EMA(VAR5,9);VAR7:=VAR1*CLOSE*1.236<MA(CLOSE,60);VAR8:=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);买: VAR1*VAR7 AND VAR8 AND VAR9 AND VARC<25 AND CLOSE<8 AND VARA<114 AND VARB<=0.23*40,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:=VAR1*STD(CLOSE,63)*10;VAR12:=VAR1*(MA(CLOSE,76)-MA(CLOSE,13)/3);VAR13:=VAR1*MA((CLOSE-VAR12)/VAR12,1);买1:=VAR1*IF(CROSS(VAR13,-0.008) AND VARE>-0.618 AND VAR10<114 AND VAR11<23.6 AND VARF<8 AND LOW/REF(HIGH,1)<1.145 OR REF(VAR13,2)=LLV(VAR13,20) AND REF(VAR13,2)<0.042 AND VARF<8 AND REF(VAR13,2)<REF(VAR13,1) AND NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND VAR13>-0.368 AND CLOSE>REF(CLOSE,1),68,0);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:=VAR1*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 AND CLOSE<18.5,76,0), COLORMAGENTA;VAR20:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(C LOSE,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,4 8)+MA(CLOSE,96))/4;VAR23:=VAR1*MA(CLOSE,250);VAR24:=MA(CLOSE,125);牛1:=IF(SD>18 AND SK<75 AND CROSS(VAR20,VAR21) AND (VAR22-VAR23)/VAR23<0.161 AND REF(SK,3)<SK AND REF(VAR22,1)<VAR22,95,0);VAR25:=CLOSE/MA(CLOSE,3)>=1.05 AND CLOSE=HHV(CLOSE,3) AND MA(VOL,2)/MA(VOL,40)>=3 AND MA(VOL,2)=HHV(MA(VOL,2),3) AND VOL>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 AND REF(VAR2A,1)<REF(LLV(VAR2A,6),1)*1.02 AND LLV(VAR2A,29)=LLV(VAR2A,6);VAR2C:=VAR1*LLV(LOW,6)=LLV(LOW,41) AND LLV(LOW,6)<HHV(LOW,41)*71/100;VAR2D:=HIGH>LOW*1.033;涨势确立: VAR1*(VAR2C>0 AND VAR2D*16+81.5)*VAR1,COLOR80FFFF ;买入: IF(CROSS(趋势线,21),50,18.5);卖出: IF(CROSS(87,趋势线),50,81.5),COLORFFAA00;DRAWTEXT(VAR2C>0 AND VAR2D,88,'↑');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), COLORYELLOW;。

通达信精准组合买卖指标公式

通达信精准组合买卖指标公式

通达信精准组合买卖指标公式VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3);VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;VARA:=BARSCOUNT(CLOSE);VARB:=VAR8<20 AND VAR9<23 AND VARA>35;VARC:=VARB AND COUNT(VARB,1)=1;VARD:=EMA(CLOSE,21)-EMA(CLOSE,8);VARE:=EMA(VARD,5);VARF:=TROUGHBARS(3,6,1)<4 AND CROSS(VARD,VARE);VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=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);VAR12:=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);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR1A:=EMA(VAR19,100);VAR1B:=2*(VAR19-VAR1A);VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VAR1E:=EMA(VAR1D*0.97,3);VAR1F:=(HIGH+LOW+CLOSE)/3;VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1F,14));VAR21:=CROSS(VAR1E,LOW);组合买: (VAR11+VAR13+VAR15+VAR17), COLORWHITE;VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;VAR2:=EMA(EMA(EMA(VAR1,4),4),4);VAR03:=CROSS(MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1), MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,2)) AND MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1)<0;VAR04:=CROSS(MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1),0);VAR05:=CROSS(MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1), MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,2)) AND MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1)>0;买一: VAR03, STICK,COLORRED;买二: VAR04 OR VAR05, STICK,COLORWHITE;AA1:=IF((BARSCOUNT(C) > 7),(100)*((MA(C,7))/(LLV(MA(C,7),7)) - 1),1);N:=IF((AA1 > 0.35),6,65);B:=((-((100)*(HHV(H,N) - C))/(HHV(HIGH,N) - LLV(L,N))));YCZT:=CROSS(B,-2); LX1:=(EMA((AMOUNT/10000000),1) /3);LX2:=(WINNER(C)/0.3); LX3:=IF(C<0,LX1,V); LX4:=IF(C<0,LX2,V);LX5:=IF((BARSCOUNT(C)>100),LX3,LX4);量:=LX5/1000;动量:=(EMA(量,13)*1.5);A01:=IF((量>动量),量,0);A02:=BARSLAST((A01>0)); A03:=REF(量,A02);趋势:=IF((量<=A01),量,A03);突破:=IF(((((量=趋势) AND (C>REF(C,1))) AND (量>REF(量,1))) AND (REF(A02,2)>0)),888,0);涨停:YCZT AND FILTER(突破 ,5 ),COLORRED;DRAWTEXT(涨停>0,4.5,'★涨停'),COLORYELLOW;MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA60:=MA(C,60);MA120:=MA(C,120);MA250:=MA(C,250);角度5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;角度10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;角度20:=ATAN((MA20/REF(MA20,1)-1)*100)*180/3.1416;起爆:角度5>角度10 AND 角度10>角度20 AND 角度20>30,COLORWHITE;黑龙: IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.5,100,0),LINETHICK3,COLORRED;组合卖: (VAR12+VAR14+VAR16+VAR18), COLORYELLOW;DRAWTEXT(VAR13,0.6,'●'), COLORRED;DRAWICON(组合买,组合买,5);DRAWICON(组合卖,组合卖,9);DRAWICON(VAR10>0,4.2,3);DRAWTEXT(VAR10 AND VARF AND VARC,2.8,' 30%下单莫错过!'), COLORMAGENTA;DRAWTEXT(VAR18,3,'空仓'), COLORGREEN;备买: IF(DRAWICON(VAR10>0,4.2,3)<=3,1,0),COLORWHITE,LINETHICK 1;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;RSV0:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;{黑马狂奔}A2:=((EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5))-REF((EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),1))/REF((EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),1)*100;A3:=EMA(C,5);A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;DRAWTEXT(FILTER(REF((EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),1)>90 AND A2<0,7),(EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),'跑'),COLOR00FF00;DRAWTEXT(CROSS((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),(EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)))AND (EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5))<A5,(EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),'黑马');DRAWTEXT(CROSS((EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),A5)AND ((MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)))<80,(EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),'追涨');DRAWTEXT(CROSS(((MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2))),0)AND (EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5))<40,5,'大黑马');机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0,LINETHICK2;DEA :=EMA( EMA(CLOSE,12) - EMA(CLOSE,26),9);基础:=( EMA(CLOSE,12) - EMA(CLOSE,26)<-0.1 AND EMA(CLOSE,12) - EMA(CLOSE,26)>DEA);开仓区: IF(STICKLINE( 基础,LLV(L,30),LLV(L,30)*1.1,4,0)<=3,1,0),COLORWHITE,LINETHICK1;LCA:=REF(CLOSE,1);RSII:=((SMA(MAX((CLOSE - LCA),0),3,1) / SMA(ABS((CLOSE - LCA)),3,1)) * 100);MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);准备:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);DRAWTEXT(FILTER(准备=1,5),LOW-1.97,'★拉升'),COLORLIMAGENTA;拉升: IF(DRAWTEXT(FILTER(准备=1,5),LOW-1.17,'★拉升')<=3,1,0),COLORLIMAGENTA;下单: IF(CROSS(3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1),3,1),10),38,0),STICK ,COLORYELLOW, LINETHICK4;DRAWTEXT(下单,38,'下单!'),COLORGREEN;K:SMA(RSV0,M1,1),COLORYELLOW,LINETHICK1;D:SMA(K,M2,1),COLORWHITE,LINETHICK1;J:3*K-2*D,COLORFF00FF,LINETHICK1;IF(J<0,J,DRAWNULL),COLORGREEN,LINETHICK2;IF(K>90,K,DRAWNULL),COLOR0000FF,LINETHICK2;IF(D>85,D,DRAWNULL),COLORFFFF11,LINETHICK2;DRAWICON(CROSS(J,1),J,1);DRAWICON(K>80 AND D>80 AND CROSS(D,K),D,2);金叉股: IF(DRAWICON(CROSS(J,1),J,1)<=3,1,0),COLORYELLOW;IF((VARO7<10),85,100) ,COLORBLACK,LINETHICK2;ZKK:="KD.K#WEEK"(9,3,3);ZKD:="KD.D#WEEK"(9,3,3);KCD:=FILTER(CROSS(ZKK,ZKD) AND REF(ZKD,1)<30,13);KCD1:=FILTER(CROSS(ZKK,ZKD) AND REF(ZKD,1)>30,13);XG1:=KCD;DIFW:="MACD.DIF#WEEK"(12,26,9);DEAW:="MACD.DEA#WEEK"(12,26,9);P:=10;A:=5;FCA:=FILTER(CROSS(DIFW,DEAW) AND REF(DEAW,1)<0,13);XG2:=FCA;建仓区: IF((VARO7<10),80,100) ,COLORYELLOW,LINETHICK1;。

通达信黄金精准买卖拐点主图指标公式副图源码

通达信黄金精准买卖拐点主图指标公式副图源码

通达信黄金精准买卖拐点主图指标公式副图源码SHORT:=12;LONG:=26;M:=12;DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIF,M);MACD:=2*(DIF-DEA);KK:=IF(DIF>DEA,5,-5);JCSC:=(M-1)/(M+1)*DEA/(1-2/(M+1));{计算出金叉死叉时的DIFF 值}DD:=(MACD/2+(DEA*(M-1)/(M+1)))/(1-2/(M+1));{计算出明日MACD=MACD时的DIFF值}DIF拐头价:=(DIF*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,S HORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(S HORT+1)))COLORGREEN,POINTDOT;金死叉价:=(JCSC*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C, SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(S HORT+1))),NODRAW;柱变向价:=(DD*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,S HORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(S HORT+1))),COLORYELLOW,POINTDOT;黄铢消失见顶:=IF(柱变向价>=DIF拐头价,柱变向价,DRAWNULL),COLORYELLOW,CIRCLEDOT,LINETHICK1;上拐:IF(DIF拐头价<柱变向价,DIF拐头价,DRAWNULL),COLORRED,LINETHICK4;下拐:IF(DIF拐头价>=柱变向价,DIF拐头价,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;ZJ:=上拐,COLOR0000FF;HY:=金死叉价,COLORFF00FF;IF(ZJ>REF(ZJ,1),ZJ,DRAWNULL),COLORRED,LINETHICK2;IF(HY>REF(HY,1),HY,DRAWNULL),COLORMAGENTA,LINETHICK2, NODRAW;IF(HY<REF(HY,1),HY,DRAWNULL),COLORBLUE,LINETHICK2,NOD RAW;STICKLINE(C>ZJ AND C>O,H,C,0,0 ),COLORRED;STICKLINE(C>ZJ AND C>O,L,O,0,0 ),COLORRED;STICKLINE(C>ZJ AND C>O,O,C,2.8,1),COLORRED;STICKLINE(C>ZJ AND C<=O,H,L,0,0 ),COLORRED;STICKLINE(C>ZJ AND C<=O,O,C,2.8,0),COLORRED;STICKLINE(CLOSE=ZJ,H,L,3,0),COLORWHITE;STICKLINE(CLOSE<ZJ,H,L,0,0),COLORYELLOW;STICKLINE(CLOSE<ZJ,O,C,2.5,0),COLORYELLOW;STICKLINE(C<HY AND C>O,H,C,0,0),COLORCYAN;STICKLINE(C<HY AND C>O,O,L,0,0),COLORCYAN;STICKLINE(C<HY AND C>O,O,C,2.8,1),COLORCYAN;STICKLINE(C<HY AND C<=O,H,L,0,0),COLORCYAN;STICKLINE(C<HY AND C<=O,O,C,2.8,0),COLORCYAN;HD0:=CROSS(DIF,DEA);DRAWTEXT_FIX(C>O,0.005,0.92,0,' 众'),COLORWHITE;DRAWTEXT_FIX(C>O,0.01,0.92,0,' 号:代码部徵'),COLORWHITE;DRAWTEXT_FIX(C>O,0.09,0.92,0,'信:CXH99CXH99'),COLORWHITE;DRAWTEXT_FIX(C>O,0.01,0.75,0,'代编写或想要好指标选股公式模型'),COLORWHITE;DRAWTEXT_FIX(C>O,0.005,0.92,0,'公'),COLORWHITE;金收:REF(L,BARSLAST(HD0)),COLORYELLOW,DOTLINE;LD0:=CROSS(DEA,DIF);死收:REF(H,BARSLAST(LD0)),COLOR00FF00,DOTLINE;买入准备:DRAWICON(CROSS(柱变向价,DIF拐头价),上拐,34);卖出准备:DRAWICON(CROSS(DIF拐头价,柱变向价),下拐,35);SBL:=STRCAT(STRCAT(STRCAT(STRCAT(DYBLOCK,HYBLOCK),FG BLOCK),GNBLOCK),ZDBLOCK);DRAWTEXT_FIX(ISLASTBAR,0.01,0.005,0,SBL),COLORCYAN;。

通达信指标公式源码 精准买卖点主图指标

通达信指标公式源码 精准买卖点主图指标

高J:IF(CURRBARSCOUNT<=20,REFDATE(HHV(H,30),DATE),DRAWNULL),COLO RWHITE,DOTLINE;低J:IF(CURRBARSCOUNT<=20,REFDATE(LLV(L,30),DATE),DRAWNULL),COLOR WHITE;分割点1:IF(CURRBARSCOUNT<=10,高J-(高J-低J)*0.382,DRAWNULL),COLORWHITE,DOTLINE;分割点2:IF(CURRBARSCOUNT<=10,高J-(高J-低J)*0.618,DRAWNULL),COLORWHITE,DOTLINE;P1:=IF(BARSLAST(CURRBARSCOUNT=2),1,0);DRAWTEXT(P1,分割点1,' 0.382'),COLORYELLOW;DRAWTEXT(P1,分割点2,' 0.618'),COLORYELLOW;DRAWTEXT(P1,低J,' XO'),COLORYELLOW;G:=YEAR AND MONTH AND DAY;G1:=STRCAT(CON2STR(YEAR,0),'年');G2:=STRCAT(CON2STR(MONTH,0),'月');G3:=STRCAT(CON2STR(DAY,0),'日');G4:=STRCAT(' 【',IF(WEEKDAY=1,'星期一',IF(WEEKDAY=2,'星期二',IF(WEEKDAY=3,'星期三',IF(WEEKDAY=4,'星期四',IF(WEEKDAY=5,'星期五',IF(WEEKDAY=6,'星期六','星期日')))))));GA:=STRCAT(STRCAT(STRCAT(G1,G2),STRCAT(G3,G4)),' 】');日期:DRAWTEXT_FIX(G,0.04,0.03,0,GA)COLORGREEN;TRR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1 )-LOW));ATRR:=MA(TRR1,13);VARR1:=REF(CLOSE,1)-REF(ATRR,1);LSX:HHV(VARR1,13),LINETHICK2,COLORWHITE;LSX1:IF(C>=LSX,LSX,DRAWNULL),COLORRED,DOTLINE,LINETHICK2;VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB ORVARC,CLOSE,REF(CLOSE,1),2,1),COLORRED;VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 ORVAR18,CLOSE,REF(CLOSE,1),2,0),COLORFFCC66;VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,1),COLORYELLOW;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,1.8),COLOR00FF00; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2.6,0),COLOR00FFFF; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR00C8FF; STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR10ECFF; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.6,0),COLOR00D900; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR93FFD1; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR93FF22; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR24FF22;基础值:=IF(C<REF(C,1) AND REF(C,1)<REF(C,2) AND L<REF(L,1) ANDL>REF(L,2),REF(C,2),IF(C>REF(C,1),C,REF(C,1)));TOWER:=IF(VAR1A,REF(基础值,1),基础值);DRAWICON(VAR19=1,L*1.005,13);DRAWICON(VAR1A=1,H*1.01,39);DRAWNUMBER(VAR19,L*0.995,TOWER),COLORFFFFFF; DRAWNUMBER(VAR1A,H*1.01,TOWER),COLORGREEN;。

【股票指标公式下载】-【通达信】拐点选股(均线粘合、均线拐点)

【股票指标公式下载】-【通达信】拐点选股(均线粘合、均线拐点)

【股票指标公式下载】-【通达信】拐点选股(均线粘合、均线拐点)【通达信】拐点选股(均线粘合、均线拐点)-指标公式源码{N;1,30,10,}{N2:5,15,10}{P10:1,30,3}{N10:1,30,10}MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);MA60:=MA(C,60);MA120:=MA(C,120);短线多头:=MA5>MA10 AND MA10>MA20 AND MA20>MA30;中线多头:=MA30>MA120 AND MA60>MA120;均线粘合:=(HHV(MA5,HHV(MA10,MA20))/LLV(MA5,LLV(MA10,MA20))-1)*5<=N; 均线拐点:=COUNT(短线多头,10) AND COUNT(MA5<="" p="">MA5>REF(MA5,1);XG:=中线多头 AND 均线粘合 AND 均线拐点 AND C>REF(C,1);拐点选股:XG AND NOT(REF(XG,1)),COLORYELLOW,LINETHICK2;均线粘合2:=(MAX(MA5,MAX(MA10,MA20))/MIN(MA5,MIN(MA10,M A20))-1)*100<=N;XG2:=中线多头AND 均线粘合 2 AND 均线拐点AND C>REF(C,1);选股2:=(XG2 AND NOT(REF(XG2,1)))*0.5,COLORWHITE,LINETHICK2;MA90:=MA(CLOSE,90);MA250:=MA(CLOSE,250);DTPL:=MA10>MA30 AND MA30>REF(MA30,1);DG:=MAX(MAX(MA5,MA10),MAX(MA20,MA30));ZG:=MAX(MAX(DG,MA60),MAX(MA90,MA120));DD:=MIN(MIN(MA5,MA10),MIN(MA20,MA30));ZD:=MIN(MIN(DD,MA60),MIN(MA90,MA120));粘合:=(ZG/ZD-1)*100<n2,pointdot,linethick0;< p="">高粘:=(ZG/ZD-1)*100MA250,POINTDOT,LINETHICK0;穿5:=(粘合 AND CROSS(C,MA5))*0.5,COLOR000000;穿10:=(粘合 AND CROSS(C,MA10))*1,COLOR000000;穿20:=(粘合 AND CROSS(C,MA20))*2,COLOR000000;穿30:=(粘合 AND CROSS(C,MA30))*3,COLOR000000;FLSZ:=(C/REF(C,1)-1)*100>=2 AND V>REF(V,1);DXTP:=((穿5/0.5)+穿10+(穿20/2)+(穿30/3))>=2;优飞:=(FLSZ AND DXTP AND MA30>REF(MA30,1))*3,COLOR00FFFF,LINETHICK2; 选优:=(FLSZ AND DXTP AND MA30>REF(MA30,1) AND COUNT(高粘,20)>=15)*3,COLOR0000FF,LINETHICK2;JXDT:=MA5>MA10 AND MA10>MA20 AND MA20>MA30;起飞:(NOT(粘合) AND REF(粘合,1) AND COUNT(粘合,20)>=15 ANDDTPL)*3,COLORFF00FF,LINETHICK2;DRAWTEXT(优飞,3,'优飞'),COLOR00FFFF;DRAWTEXT(起飞,3,'起飞'),COLOR00FFFF;BBI:=((((MA(CLOSE,3) + MA(CLOSE,6)) + MA(CLOSE,12)) + MA(CLOSE,24)) / 4); UPR:=(BBI + (P10 * STD(BBI,N10)));DWN:=(BBI - (P10 * STD(BBI,N10)));BLK:=((LLV((UPR - DWN),2) = LLV((UPR - DWN),10)) AND ((UPR / DWN) <= 1.05));布林口:=(BLK * 0.3),COLORFF00FF;KX1:=((((LOW < DWN) OR (LOW < BBI)) AND CROSS(HIGH,UPR)) * 0.5);KX2:=((COUNT(((ABS((CLOSE - OPEN)) / OPEN) <= 0.015),3) = 3) *0.2),POINTDOT,LINETHICK0,COLORFF6600;KXZH:=((KX1 = 0.5) OR (KX2 = 0.2));P:=26;S:=12;M:=9;DIFF:=(EMA(CLOSE,S) - EMA(CLOSE,P));DEA:=EMA(DIFF,M);MACD:=(2 * (DIFF - DEA));MACD0:=(((ABS(MACD) <= 0.1) AND (DIFF > DEA)) *0.2),POINTDOT,LINETHICK3,COLORFFFF00;优布:(BLK AND KXZH)*3,LINETHICK2,COLORBLUE;布林:((BLK AND KXZH) AND (MACD0 = 0.2))*3,LINETHICK2,COLORFFFF00; DRAWTEXT(布林,3,'布林'),COLORFF00FF;DRAWTEXT(优布,3,'优布'),COLORRED;【通达信】拐点选股(均线粘合、均线拐点)-指标公式效果图(文档来源:若水财经社区)</n2,pointdot,linethick0;<>。

通达信买入止赢卖出止损主图指标公式

通达信买入止赢卖出止损主图指标公式

通达信买入止赢卖出止损主图指标公式通达信买入止赢卖出止损主图指标公式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;。

通达信 拐点函数

通达信 拐点函数

通达信拐点函数
在通达信中,可以使用条件语句和函数来创建拐点。

以下是一个示例的拐点函数:
```mathematica
VAR1:=C>1;
A:=EMA(WINNER(CLOSE),10);
B:=EMA(WINNER(CLOSE),34);
D:=EMA(WINNER(CLOSE),120);
VAR2:=EMA(WINNER(CLOSE),259);
VAR3:=MA(VOL,25)>MA(VOL,140);
VAR4:=MA(VOL,5)>MA(VOL,28);
拐点:=IF(VAR1,VAR3 AND CROSS(A,B) AND B< AND
B>VAR2,0),STICK,LINETHICK3,COLOR00FF00;
```
上述代码定义了拐点的条件。

VAR1表示收盘价大于1。

然后定义了几个变量A、B、D和VAR2,分别表示不同周期的加权平均收盘价。

VAR3和VAR4是成交量指标,分别表示短期和长期的成交量变化。

拐点的条件是VAR1为真,并且满足以下条件:VAR3为真,即成交量超过一个较大的长期平均值;A和B交叉,即短期加权平均收盘价从下方穿过长期加权平均收盘价;B小于且B大于VAR2,即短期加权平均收盘价在一个较小的范围内波动。

如果满足拐点条件,则绘制一个带有线宽为3的绿色stick线,表示拐点的位置。

请注意,这只是一个示例函数,实际使用时需要根据具体的需求和数据进行调整和优化。

通达信起暴点拐点指标公式

通达信起暴点拐点指标公式

DRAWGBK(O>C,RGB(48,41,124),RGB(0,0,0),0,'1',0);VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);XG:=(FILTER((VAR4AA>90),45)),COLORYELLOW;STICKLINE(XG,150,0,4,0),COLOR000099;STICKLINE(XG,150,0,2,0),COLOR0000BB;STICKLINE(XG,150,0,1,0),COLOR0000DD;STICKLINE(XG,150,0,0.9,0),COLOR0000FF;DRAWTEXT(XG>0,130,'SI起暴点'),COLOR00C5FF;DIFF :=( EMA(CLOSE,12) - EMA(CLOSE,26))*100;DEA :=EMA(DIFF,9);MACD :=2*(DIFF-DEA);抄底1:=ABS((CROSS("MACD.DIF","MACD.DEA")&&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.09,COLORLIMAGENTA,LINETHICK2; STICKLINE(抄底1,0,50,4,0),COLOR770077;STICKLINE(抄底1,0,50,3,0),COLOR990099;STICKLINE(抄底1,0,50,2,0),COLORBB00BB;STICKLINE(抄底1,0,50,1,0),COLORDD00DD;STICKLINE(抄底1,0,50,0.3,0),COLORFF00FF;DRAWTEXT(抄底1>0,38,'超级拐点'),COLOR00C5FF;反向钟摆线:=MA((LLV(LOW,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45))*100,20);DK:=CROSS(-5,反向钟摆线);STICKLINE(DK,0,50,4,0),COLOR770077;STICKLINE(DK,0,50,3,0),COLOR990099;STICKLINE(DK,0,50,2,0),COLORBB00BB;STICKLINE(DK,0,50,1,0),COLORDD00DD;STICKLINE(DK,0,50,0.3,0),COLORFF00FF;DRAWTEXT(DK>0,48,'终极低点'),COLOR00C5FF;VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);VAR6:=MA(VAR5,3);VAR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5) / 3) / CAPITAL));VAR8:=(((CLOSE - VAR7) / VAR7) * 100);VAR9:=((((REF(VAR8,1) < (0 - 40)) AND (VAR8 > REF(VAR8,1))) AND (REF(VAR8,1) < REF(VAR8,2))) AND ((VAR8 - REF(VAR8,1)) > 2.5));VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),5,1) / SMA(ABS((CLOSE - VARD)),5,1)) * 100); VARF:=(((HIGH + LOW) + CLOSE) / 3);VAR10:=((VARF - MA(VARF,14)) / (0.015 * AVEDEV(VARF,14)));VAR11:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));VAR12:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR13:=(VAR11 AND VAR12);VAR14:=((((VAR2 >= (0 - 45)) AND (VAR2 <= (0 - 10))) AND (VAR3 <= (0 - 15))) AND (VAR4 <= (0 - 20)));VAR15:=(COUNT(VAR14,1) >= 1);VAR16:=(VAR13 AND VAR15);VAR17:=1;VAR18:=(CLOSE * VOL);VAR19:=EMA((((((MA(VAR18,4) / MA(VOL,4)) + (MA(VAR18,6) / MA(VOL,6))) + (MA(VAR18,13) / MA(VOL,13))) + (MA(VAR18,24) / MA(VOL,24))) / 4),1);VAR1A:=(1 * VAR19);VAR1B:=(VAR19 * 0.92);VAR1C:=EMA(CLOSE,34);VAR1D:=MA((VAR1C * 1.12),5);VAR1E:=MA((VAR1C * 0.82),5);VAR1F:=(CLOSE < VAR1E);VAR20:=((((((MA(AMOUNT,5) * VAR17) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < ((0 - 0.4) * VAR17)); VAR21:=HHV(HIGH,500);VAR22:=LLV(LOW,500);VAR23:=HHV(HIGH,250);VAR24:=LLV(LOW,250);VAR25:=HHV(HIGH,125);VAR26:=LLV(LOW,125);VAR27:=MA(((((((VAR21 * 0.45) + (VAR23 * 0.5)) + VAR22) + VAR24) + VAR26) / 5),35); VAR28:=MA((((VAR23 * 0.62) + VAR26) / 2),35);VAR29:=MA((((VAR23 * 0.75) + VAR26) / 2),18);VAR2A:=MA((((((VAR23 * 0.93) + (VAR27 * 2)) + (VAR28 * 1.8)) + (VAR29 * 1.5)) / 4),18); VAR2B:=MA(((((VAR21 * 0.95) + (VAR27 * 3)) + (VAR28 * 2)) / 3),35);VAR2C:=VAR27;VAR2D:=VAR28;VAR2E:=VAR29;VAR2F:=VAR2A;VAR30:=VAR2B;VAR31:=((CLOSE - REF(MA(CLOSE,20),11)) < (0 - 2));VAR35:=((VAR18 / (VAR18 + VAR19)) * VAR17);VAR36:=((VAR19 / (VAR18 + VAR19)) * VAR17);VAR37:=EMA(VAR35,10);VAR38:=EMA(VAR36,10);VAR39:=EMA(VAR37,10);VAR3A:=EMA(VAR38,20);VAR3B:=EMA(VAR37,3);VAR3C:=EMA(VAR39,6);VAR3D:=EMA(VAR3A,2);VAR3E:=(VAR3C - VAR3D);VAR3F:=(((VAR3C - REF(VAR3C,1)) > 0) AND ((REF(VAR3C,1) - REF(VAR3C,2)) < 0)); VAR40:=IF((CROSS(VAR3B,VAR3C) AND (VAR3C <= 20)),30,0);VAR41:=VAR40;VAR42:=(SMA(((AMOUNT / VOL) / 100),13,1) * 1.15);VAR43:=(SMA(((AMOUNT / VOL) / 100),13,1) * 0.85);VAR44:=(CLOSE - REF(MA(CLOSE,20),11));VAR45:=(((((((((((((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43)) OR (((CLOSE < VAR1E) AND VAR31) AND VAR20)) OR ((CLOSE < VAR1E) AND (CLOSE < VAR43))) OR (((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43))) OR (VAR20 AND (CLOSE < VAR2C))) OR ((VAR20 AND VAR31) AND (VAR44 < (0 - 1.5)))) OR (VAR20 AND (CLOSE < VAR1E))) OR (VAR20 AND (VAR44 < (0 - 1.5)))) OR (VAR31 AND (CLOSE < VAR43))) OR ((CLOSE < VAR2C) AND (VAR44 < (0 - 1.5)))) OR ((CLOSE < VAR1E) AND VAR31));VAR4B:=(((HIGH + LOW) + CLOSE) / 3);VAR4C:=((VAR4B - MA(VAR4B,14)) / (0.015 * AVEDEV(VAR4B,14)));VAR4D:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));VAR4E:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR4F:=(VAR11 AND VAR12);VAR50:=((((VAR2 >= (0 - 45)) AND (VAR2 <= (0 - 7))) AND (VAR3 <= (0 - 11))) AND (VAR4 <= (0 - 14)));VAR51:=(COUNT(VAR50,1) >= 1);VAR52:=(VAR4F AND VAR51);VAR53:=(((((VAR20 AND (CLOSE < VAR1E)) AND VAR31) AND (CLOSE < VAR2C)) AND VAR45) AND VAR52);VAR5B:=((((((VAR2 >= (0 - 15.8)) AND (VAR2 <= (0 - 12.2))) AND (VAR3 <= (0 - 20.8))) AND (VAR4 <= (0 - 27.5))) AND (VARE <= 11.7)) AND (VAR4C <= (0 - 145)));VAR5C:=9.999999884842E+0.26;VAR5D:=(COST(10) * 0);VAR5E:=((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100));VAR5F:=MA((((LLV(LOW,45) - CLOSE) / (HHV(HIGH,45) - LLV(LOW,45))) * 100),5); VAR60:=((CROSS((0 - 5),VAR5F) AND (VAR5E < (0 - 0.4))) AND (((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.19)));VAR61:=MA(CLOSE,3);VAR62:=(REF(CLOSE,2) * 0.865);VAR63:=(REF(CLOSE,13) * 0.772);VAR64:=MIN(VAR62,VAR63);VAR65:=((100 * VOL) / CAPITAL);抄底:IF(((((VAR9 OR VAR16) OR VAR53) OR VAR5B) OR ((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8))),80,0),LINETHICK4,COLORRED; DRAWTEXT(抄底>0,抄底,'宁波游资买点'),COLOR00C5FF;小V逆转:=REF(C,1)<REF(O,1) AND O>REF(C,1) AND C>=REF(C,1)*1.08; STICKLINE(小V逆转,20,0,4,0),COLOR000099;STICKLINE(小V逆转,30,0,2,0),COLOR0000BB;STICKLINE(小V逆转,40,0,1,0),COLOR0000DD;STICKLINE(小V逆转,60,0,0.9,0),COLOR0000FF;DRAWICON(小V逆转,60,34);DRAWTEXT(小V逆转>0,30,'小V逆转'),COLOR00C5FF;。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

【通达信】拐点买卖(区域、正确买卖、趋势操盘、拐点)-指标公式源码{区域}买线YGB:=EMA(C,2);卖线YGB:=EMA(SLOPE(C,21)*20+C,42);STICKLINE(买线YGB>=卖线YGB,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),COLOR600020;STICKLINE(买线YGB<卖线YGB,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),COLOR404050; DRAWKLINE(H,O,L,C);指导线:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2); 界:=MA(CLOSE,27);B买:IF(CROSS(指导线,界) OR CROSS(买线YGB,卖线YGB),C,DRAWNULL),COLORMAGENTA,NODRAW;持仓:IF(买线YGB>=卖线YGB,C,DRAWNULL),COLORRED,NODRAW;S卖:IF(CROSS(界,指导线) OR CROSS(卖线YGB,买线YGB),C,DRAWNULL),COLORLIGRAY,NODRAW;空仓:IF(买线YGB<卖线YGB,C,DRAWNULL),COLORGREEN,NODRAW;{正确买卖}N1:=7;LC:=REF(CLOSE,1);X:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORYELLOW, LINETHICK1;魔鬼:=DRAWLINE(X>=HHV(X,N1),X,X<=LLV(X,N1),X,1),COLOR00FF00;魔王:=DRAWLINE(X>=HHV(X,N1),X,X<=LLV(X,N1),1,X),COLOR00FF00;TJ0:=X=魔王;TJ1:=X=魔鬼;TJ2:=X<REF(X,1);TJ3:=X>REF(1,X);JRS1:=DRAWICON(TJ1 AND TJ2,X,1);JRS2:=DRAWICON(TJ0 AND TJ3,X,2);DRAWICON(FILTER(JRS1>0,1),L*0.97,1);DRAWICON(FILTER(JRS2>0,1),H*1.02,2);{趋势操盘}VAR4:=(LOW+HIGH+CLOSE)/3;操作: MA(VAR4,5);拉升: HHV(操作,13);压力: HHV(操作,60);买卖: LLV(操作,13);底部支撑: LLV(LOW,60)*1.02;顶部: HHV(HIGH,60)*0.98,COLORCYAN;{白买黄加}MA6:=MA(C,6),COLORWHITE,LINETHICK2;MA18:=MA(C,18),COLOR0099FF,LINETHICK2;MA55:=MA(C,55),COLORFF00FF;MA125:=MA(C,125),COLORFFCC66;MA250:=MA(C,250),COLORBLUE;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);买进价:=((C-REF(MA6,1))/6+MA6)*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);白K买进:IF(买进条件,L,H),COLORWHITE,POINTDOT;STICKLINE(买进条件,H,L,0,1),COLORWHITE,LINETHICK1;STICKLINE(买进条件,O,C,4,1),COLORWHITE,LINETHICK1;加码价:=((C-REF(MA18,1))/18+MA18)*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);黄K加码:IF(加码条件,L,H),COLORYELLOW,POINTDOT;STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK1;STICKLINE(加码条件,O,C,4,1),COLORYELLOW,LINETHICK1;{拐点}YGB1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);YGB2:=REF(YGB1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); YGB3:=REF(YGB2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); YGB4:=REF(YGB3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); YGB5:=REF(YGB4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); YGB6:=REF(YGB5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); YGB7:=REF(YGB6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); YGB8:=REF(YGB7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); YGB9:=REF(YGB8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); YGBA:=REF(YGB9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); YGBB:=REF(YGBA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); YGBC:=REF(YGBB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); YGBD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);YGBE:=REF(YGBD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); YGBF:=REF(YGBE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); YGB10:=REF(YGBF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); YGB11:=REF(YGB10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); YGB12:=REF(YGB11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); YGB13:=REF(YGB12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); YGB14:=REF(YGB13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); YGB15:=REF(YGB14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); YGB16:=REF(YGB15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); YGB17:=REF(YGB16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); YGB18:=REF(YGB17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); YGB19:=REF(YGBD OR YGBE OR YGBF OR YGB10 OR YGB11 OR YGB12 OR YGB13 OR YGB14 OR YGB15 OR YGB16 OR YGB17 OR YGB18,1) AND YGB1;YGB1A:=REF(YGB1 OR YGB2 OR YGB3 OR YGB4 OR YGB5 OR YGB6 OR YGB7 OR YGB8 OR YGB9 OR YGBA OR YGBB OR YGBC,1) AND YGBD;STICKLINE(YGB1A,O,O+(C-O)/2,2,0),COLORBLUE;【通达信】拐点买卖(区域、正确买卖、趋势操盘、拐点)-指标公式效果图(文档来源:若水财经社区)。

相关文档
最新文档