【股票指标公式下载】-【通达信】地球引力(趋势线、捞钱手、能量线、智能黄金线)
通达信12345结构指标公式
通达信12345结构指标公式通达信12345结构指标公式是一种用于技术分析的指标体系。
该指标体系主要包括五种子指标,分别为:波动指标、能量指标、趋势指标、成本指标和量价指标。
1. 波动指标:通达信中的波动指标主要用于衡量市场的波动性水平。
其中,常用的指标包括平均真实波幅(ATR)和标准差通道(BOLL)等。
平均真实波幅可以帮助确定市场的波动范围,而标准差通道则可以在价格波动超过一定范围时给出买入或卖出信号。
2. 能量指标:能量指标主要用于衡量市场的买卖力量。
常见的能量指标包括成交量指标(VOL)和相对强弱指标(RSI)等。
成交量指标可以帮助判断市场的买卖气势,而相对强弱指标可以用于判断股票的超买或超卖情况。
3. 趋势指标:趋势指标可以用于判断市场的趋势方向。
通达信中常用的趋势指标包括移动平均线(MA)和平滑异同移动平均线(MACD)等。
移动平均线可以帮助捕捉市场的长期趋势,而MACD指标则可以用于判断短期趋势的转折点。
4. 成本指标:成本指标可以用于衡量买入或卖出的成本情况。
常用的成本指标包括加权移动平均线(WMA)和价格指标(PSY)等。
加权移动平均线可以帮助确定投资者的持股成本,而价格指标可以用于判断市场情绪的波动。
5. 量价指标:量价指标主要用于衡量交易量和价格之间的关系。
通达信中常见的量价指标包括成交量的变异率(VROC)和动力指标(VR)等。
成交量的变异率可以帮助判断市场的趋势是否具备可持续性,而动力指标可以辅助判断市场的多空力量对比。
通过利用通达信12345结构指标公式,投资者可以更好地理解市场的走势和力量变化。
但需要注意的是,这些指标仅作为辅助工具,并不能单独作为决策的依据,投资者还需要结合其他因素进行综合分析和判断。
【股票指标公式下载】-【通达信】时空上下限制(天线、地线、上涨、下跌)
【通达信】时空上下限制(天线、地线、上涨、下跌)-指标公式源码HH:=HHV(H,200);LL:=LLV(L,200);上涨:BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=LL)+1)),COLOR0000FF,NODRAW; ↑空间%:(C/REF(L,上涨)-1)*100,COLOR00FFFF,NODRAW;最高%:(HH/REF(L,上涨)-1)*100,COLORFF00FF,NODRAW;下跌:BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=HH)+1)),COLOR00FF00,NODRAW; ↓空间%:(C/REF(H,下跌)-1)*100,COLOR888899,NODRAW;最低%:(LL/REF(H,下跌)-1)*100,COLORFF0000,NODRAW;天线:REFDATE(REF(H,下跌),DATE),POINTDOT,LINETHICK3,COLORYELLOW;地线:REFDATE(REF(L,上涨),DATE),POINTDOT,LINETHICK3,COLOR00FF00;中线:REFDATE((天线-地线)*0.5+地线,DATE),POINTDOT,LINETHICK3,COLOR00FF00;STICKLINE(上涨=0,天线,地线,0,-1),COLORYELLOW;STICKLINE(下跌=0,天线,地线,0,-1),COLORGREEN;DRAWTEXT(下跌=0,地线*1.01,'-最低'),COLOR00FF00;DRAWTEXT(上涨=0,天线*0.99,'-最高'),COLOR0000FF;{2}高:=天线;低:=地线;H1:=高-(高-低)*0.191;H2:=高-(高-低)*0.382;H3:=高-(高-低)*0.5;H4:=高-(高-低)*0.618;H5:=高-(高-低)*0.809;DRAWTEXT(下跌=0,高,'高'),COLORGREEN;DRAWTEXT(下跌=0,H1,'809'),COLORCYAN;DRAWTEXT(下跌=0,H2,'618'),COLORGRAY;DRAWTEXT(下跌=0,H3,'中'),COLORYELLOW;DRAWTEXT(下跌=0,H4,'382'),COLORLIRED;DRAWTEXT(下跌=0,H5,'191'),COLORMAGENTA;DRAWTEXT(上涨=0,H1,'风险'),COLORCYAN; DRAWTEXT(上涨=0,H2,'高位'),COLORGRAY; DRAWTEXT(上涨=0,H3,'中'),COLORYELLOW; DRAWTEXT(上涨=0,H4,'低吸'),COLORLIRED; DRAWTEXT(上涨=0 ,H5,'盘整'),COLORMAGENTA; DRAWTEXT(上涨=0,低,'低'),COLORRED; DRAWTEXT(上涨=5,H*1.02,'5'),COLOR00FFFF; DRAWTEXT(上涨=8,H*1.02,'8'),COLOR00FFFF; DRAWTEXT(上涨=13,H*1.02,'13'),COLOR00FFFF; DRAWTEXT(上涨=21,H*1.02,'21'),COLOR00FFFF; DRAWTEXT(上涨=34,H*1.02,'34'),COLOR00FFFF; DRAWTEXT(上涨=55,H*1.02,'55'),COLOR00FFFF; DRAWTEXT(上涨=89,H*1.02,'89'),COLOR00FFFF; DRAWTEXT(上涨=144,H*1.02,'144'),COLOR00FFFF; DRAWTEXT(上涨=180,H*1.02,'180'),COLOR00FFFF; DRAWTEXT(上涨=250,H*1.02,'250'),COLOR00FFFF; DRAWTEXT(下跌=5,L*0.98,'-5'),COLOR00FF00; DRAWTEXT(下跌=8,L*0.98,'-8'),COLOR00FF00; DRAWTEXT(下跌=13,L*0.98,'-13'),COLOR00FF00; DRAWTEXT(下跌=21,L*0.98,'-21'),COLOR00FF00; DRAWTEXT(下跌=34,L*0.98,'-34'),COLOR00FF00; DRAWTEXT(下跌=55,L*0.98,'-55'),COLOR00FF00; DRAWTEXT(下跌=89,L*0.98,'-89'),COLOR00FF00; DRAWTEXT(下跌=144,L*0.98,'-144'),COLOR00FF00; DRAWTEXT(下跌=180,L*0.98,'-180'),COLOR00FF00; DRAWTEXT(下跌=250,L*0.98,'-250'),COLOR00FF00; {3}C2:=REF(C,1);跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0); 涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0); STICKLINE(跌停,C,O,3.3,0),COLORBLUE; STICKLINE(跌停,H,L,0,0),COLORBLUE;STICKLINE(涨停,C,O,3.3,0),COLOR0077FF; STICKLINE(涨停,C,O,2.8,0),COLOR0099FF; STICKLINE(涨停,H,L,0,0),COLOR00FFFF;【通达信】时空上下限制(天线、地线、上涨、下跌)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】智能黄金线(捞钱手、趋势线)
【通达信】智能黄金线(捞钱手、趋势线)-指标公式源码MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-R EF((L+H+2*C)/4,1)),5,1)*100,1)+50;G1:=IF(-MMS>95,0,20);UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND G1)+1);{明日均线:=REF(C,2)*2-REF(C,5),LINETHICK0,COLOR550055 ;后日均线:=REF(C,1)*2-REF(C,4),LINETHICK0,COLOR008800;大后天均线:=C*2-REF(C,3),LINETHICK0,COLOR008888;}KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);AA:= - 100 * (趋势线 - CLOSE) / 趋势线;AC:=(EMA(AA,5) );SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MMV;{STICKLINE(((SSL > MM) ),SSL,MM,0.1,0),COLORRED;}SA:=(MM * 0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));捞钱手:IF(((SSL > MM)),MM,SA),LINETHICK2,COLORWHITE;VAR2Y:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);VAR3Y:=(((CLOSE - REF(OPEN,29)) / REF(OPEN,29)) * 100);VAR4Y:=REF(CLOSE,1);VAR5Y:=((SMA(MAX((CLOSE - VAR4Y),0),6,1) / SMA(ABS((CLOSE - VAR4Y)),6,1)) * 100);VAR6Y:=((SMA(MAX((CLOSE - VAR4Y),0),12,1) / SMA(ABS((CLOSE -VAR4Y)),12,1)) * 100);VAR7Y:=((SMA(MAX((CLOSE - VAR4Y),0),24,1) / SMA(ABS((CLOSE -VAR4Y)),24,1)) * 100);VAR8Y:=(((CLOSE - LLV(LOW,45)) / (HHV(HIGH,45) - LLV(LOW,45))) * 100); VAR9Y:=SMA(VAR8Y,3,1);VARAY:=SMA(VAR9Y,3,1);VARBY:=((3 * VAR9Y) - (2 * VARAY));VARCY:=(CROSS(VAR5Y,10) AND (VAR3Y < (0 - (28 * 20))));VARDY:=((100 - CROSS(76,VAR5Y)) AND (VAR3Y > (5 * 20)));DRAWICON(((CROSS(76,VAR5Y) AND (VAR3Y > 5)) ),(HIGH *1.01),5),COLORFFFFFF;VAREY:=((((CROSS(VAR9Y,VARAY) AND (VARAY < 10)) AND (VAR3Y < (0 - 30))) AND (VAR2Y > 3)) * 30);VARFY:= - ((((VARAY < 11) AND (VAR5Y < 15)) AND (VAR3Y < (0 - 26))) * 10); DRAWICON((CROSS(VARFY,(0 - 9))),(LOW * 0.998),4);能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) * 4)));上开:=O;上收:=C;上高:=H;上低:=L;JJ:=(上开+上高+上低)/3;A:=EMA(JJ,4);B:REF(A,1),POINTDOT,COLORYELLOW;智能黄金线:A,COLORYELLOW,LINETHICK1;VA1:=EMA(上收,8);VA2:=EMA(上收,20);DRAWTEXT(CROSS(VA2,VA1),VA1*1.10,'止损'),COLORYELLOW;DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND 智能黄金线>REF(智能黄金线,1),VA1*0.96,'买入'),COLOR00FF00;选手A:=MA(上收,3);箱顶A:=MA(REF(HHV(上收,6),1),3);箱底A:=MA(REF(LLV(上收,3),1),3);T1:=MA(上收,20)>=REF(MA(上收,20),1);T2:=CROSS(选手A,箱底A) AND 箱顶A/箱底A>100/100 AND T1;T3:=CROSS(箱顶A,选手A) AND 箱顶A/箱底A>100/100;选手:=MA(上收,2);箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;T4:=CROSS(选手,箱底) AND 箱顶/箱底>110/100;T5:=CROSS(箱顶,选手) AND 箱顶/箱底>110/100;VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);DRAWTEXT(CROSS(VAR3,VAR4)AND(C>=O)AND VAR3<40 AND UOO>0,箱底,'★'),COLORF00FF0;DRAWTEXT(CROSS(VAR4,VAR3) AND VAR4>75 ,箱顶*1.03,'减磅'),COLORF0F000; VAR111:=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 OR VAR14 OR VAR15 ORVAR16 OR VAR17 OR VAR18,1) AND VAR1;趋势线1:=FORCAST(CLOSE,7);FK:=100*(C-REF(C,1))/REF(C,1);PK1:=IF(C<REF(O,1) AND FK<0,1,0);PK2:=IF(C<REF(O,2) AND FK<0,1,0);STICKLINE((PK1=0 AND REF(PK1,1)=1 AND PK2=0 AND REF(PK2,1)=1)AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),OPEN,CLOSE,3,0),COLORRED;STICKLINE((PK1=0 AND REF(PK1,1)=1 AND PK2=0 AND REF(PK2,1)=1)AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;PK3:=(((CLOSE / OPEN) > 1.04) AND (CLOSE <(SMA(HIGH,21,2) * 1.05))) AND ((CLOSE - REF(CLOSE,1)) > 0);STICKLINE(PK3 AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),CLOSE,OPEN,3,0),COLORRED;STICKLINE(PK3 AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;STICKLINE(VAR19 AND(趋势线>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),CLOSE,OPEN,3,0),COLORRED;STICKLINE(VAR19 AND(趋势线>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);STICKLINE(买进条件 AND 捞钱手>智能黄金线 AND 智能黄金线>REF(智能黄金线,1),L,L*0.998,7,0),COLORWHITE;买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);DRAWTEXT(CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1),箱底,'★'),COLOR00FFFF;STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00FFFF;STICKLINE(CROSS(买线,卖线),H,L,0.5,0),COLOR00FFFF;【通达信】智能黄金线(捞钱手、趋势线)-指标公式效果图(文档来源:若水财经社区)。
【指标公式源码下载】通达信睡觉买也赚主图指标公式【趋势线捞钱手上开+上高+上低智能黄金线买线卖线】
通达信睡觉买也赚主图指标公式【趋势线捞钱手上开+上高+上低智能黄金线买线卖线】MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+ H+2*C)/4,1)),5,1)*100,1)+50;G1:=IF(-MMS>95,0,20);UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND G1)+1);KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);AA:=-100*(趋势线-CLOSE)/趋势线;AC:=(EMA(AA,5) );SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MA(MMV,1);STICKLINE(((SSL>MM)),SSL,MM,0.01,0),COLORRED;SA:=(MM*0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));捞钱手:IF(((SSL>MM)),MM,SA),LINETHICK2,COLORFF00FF;{IF(SSL<MM,捞钱手,DRAWNULL),LINETHICK2,COLORFFFFFF;}能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) *4)));上开:=O;上收:=C;上高:=H;上低:=L;JJ:=(上开+上高+上低)/3;A:=EMA(JJ,4);智能黄金线:A,COLORYELLOW,LINETHICK1;B:=REF(A,1);STICKLINE(((SSL<MM)),捞钱手,智能黄金线,0.01,0),COLORFFFF00;VA1:=EMA(上收,8);VA2:=EMA(上收,20);DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,'★绝佳') ,LINETHICK1,COLORRED;DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,'★卖');DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND 智能黄金线>REF(智能黄金线,1),VA1*0.97,'★买'),COLOR00FF00;选手A:=MA(上收,3);箱顶A:=MA(REF(HHV(上收,6),1),3);箱底A:=MA(REF(LLV(上收,3),1),3);T1:=MA(上收,20)>=REF(MA(上收,20),1);T2:=CROSS(选手A,箱底A) AND 箱顶A/箱底A>100/100 AND T1;T3:=CROSS(箱顶A,选手A) AND 箱顶A/箱底A>100/100;选手:=MA(上收,2);箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;T4:=CROSS(选手,箱底) AND 箱顶/箱底>110/100;T5:=CROSS(箱顶,选手) AND 箱顶/箱底>110/100;VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);{DRAWTEXT(VAR3 >=VAR4 ,箱顶,'--中期好'),COLOR00FFFF;DRAWTEXT(VAR3<VAR4 ,箱顶,'--中期坏'),COLORF0F000;DRAWTEXT(A>B ,箱底,'--短期好'),COLOR00FFFF;DRAWTEXT(A<B ,箱底,'--短期坏'),COLORF0F000;}DRAWTEXT(CROSS(VAR3,VAR4)AND(C>=O)AND VAR3<40 AND UOO>0,LOW*0.96,'★'),COLORF00FF0;STICKLINE(C>=O,C,O,5,0),COLORRED;STICKLINE(C>=O,H,L,0,0),COLORYELLOW;STICKLINE(C<=O,C,O,5,0),COLORGREEN;STICKLINE(C<=O,H,L,0,0),COLORFFFF00;买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);DRAWTEXT(CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1),LOW*0.95,'★跟'),COLOR00FFFF;STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00FFFF;。
【股票指标公式下载】-【通达信】中枢缠绵(黄金线、涨停)
【通达信】中枢缠绵(黄金线、涨停)-指标公式源码{N1:1,100,10;N2:1,100,10;DISP:=1,3,2};MA5:EMA(C,5),POINTDOT;MA10:MA(C,10),COLORYELLOW,LINETHICK2,POINTDOT;黄金线:(EMA(C,18)),COLORYELLOW;黄金线1:(EMA(C,15)),COLOR0000FF;MA60:MA(C,60),COLORRED,POINTDOT;MA90:MA(CLOSE,90),COLORD89837,POINTDOT;N1:=10;N2:=10;DISP:=2;K:=IF(PERIOD=5,1,{日}IF(PERIOD=6,1,{周}IF(PERIOD=7,1,{月}IF(PERIOD=8,1,{多分钟}IF(PERIOD=9,1,{多日}IF(PERIOD=10,1,{季}IF(PERIOD=11,2,{年}IF(PERIOD=4,1,{60F}IF(PERIOD=3,1,{30F}IF(PERIOD=2,1,{15F}IF(PERIOD=1,1{5F},1{1F})))))))))))/10;P1:=PEAK(1,K*N1,1);P2:=PEAK(1,K*N1,2);WP1:=PEAKBARS(1,K*N1,1);WP2:=PEAKBARS(1,K*N1,2);T1:=TROUGH(2,K*N2,1);T2:=TROUGH(2,K*N2,2);WT1:=TROUGHBARS(2,K*N2,1);WT2:=TROUGHBARS(2,K*N2,2);TJ1:=P1>T1 AND P2>T2 ;ZD:=MAX(T1,T2);ZG:=MIN(P1,P2);LL:=MIN(T1,T2);HH:=MAX(P1,P2);TJ2:=FILTER(ZG>ZD,2);TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));TJ4:=TJ1&&TJ2&&NOT(TJ3);TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4) ,1)));TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4) ,1)));TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD<REF(ZD,REF(BARSLAST(TJ4),1)) ;TJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7);ZSD:=IF(TJ8,ZD,DRAWNULL);ZSG:=IF(TJ8,ZG,DRAWNULL);ZSH:=IF(TJ8,HH,DRAWNULL);ZSL:=IF(TJ8,LL,DRAWNULL);STICKLINE(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),COLORMAGENTA;DRAWTEXT(DISP=2,ZSH,'中枢'),COLORRED;中枢高:PLOYLINE(DISP=2,REF(ZSD,BARSLAST(TJ8))),CROSSDOT,COLORLIRED;中枢低:PLOYLINE(DISP=2,REF(ZSG,BARSLAST(TJ8))),CROSSDOT,COLORLIGREEN; 中枢最高:PLOYLINE(DISP=2,REF(ZSH,BARSLAST(TJ8))),POINTDOT,COLORRED; 中枢最低:PLOYLINE(DISP=2,REF(ZSL,BARSLAST(TJ8))),POINTDOT,COLORGREEN; 局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2); 局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0); 局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2); 局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0); 缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LOWRANGE(L);大值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0); 距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0);高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0);低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0); 低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) AND H>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) OR REF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND 小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0);AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)) CIRCLEDOT COLORYELLOW;DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0)COLORLIRED; DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0)COLORYELLOW;DD1:=BARSLAST(ABS(极点保留)!=1);DRAWTEXT(极点保留=1,局部极点,'*'),COLORGREEN;DRAWTEXT(极点保留=-1,局部极点,'*'),COLORRED;倍量:=VOL>=REF(V,1)*1.91 AND C>O;缩量:=REF(V,1)>=VOL*1.91 AND C<O;STICKLINE(倍量,OPEN,CLOSE,2,0),COLORRED;STICKLINE(缩量,OPEN,CLOSE,2,0),COLORGREEN;C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;高:=REFDATE(HHV(H,180),DATE);低:=REFDATE(LLV(L,180),DATE);H1:=高-(高-低)*0.191;H2:=高-(高-低)*0.382,COLORFF6198;H3:=高-(高-低)*0.5,COLORFFFFFF;H4:=高-(高-低)*0.618;H5:=高-(高-低)*0.809;STICKLINE(CURRBARSCOUNT=13,高,高,100,-1),COLORGREEN;STICKLINE(CURRBARSCOUNT=13,H1,H1,100,-1),COLORCYAN;STICKLINE(CURRBARSCOUNT=13,H2,H2,100,-1),COLORCCCCCC;DRAWTEXT(CURRBARSCOUNT=1,高,' 高'),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=1,H1,' 809'),COLORCYAN;DRAWTEXT(CURRBARSCOUNT=1,H2,' 618'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=1,H3,' 中'),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=1,H4,' 382'),COLORLIRED;DRAWTEXT(CURRBARSCOUNT=1,H5,' 191'),COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=1,低,' 低'),COLORRED;STICKLINE(CURRBARSCOUNT=13,H3,H3,100,-1),COLORYELLOW;STICKLINE(CURRBARSCOUNT=13,H4,H4,100,-1),COLORLIRED;STICKLINE(CURRBARSCOUNT=13,H5,H5,100,-1),COLORMAGENTA;STICKLINE(CURRBARSCOUNT=13,低,低,100,-1),COLORRED;距今:BARSSINCE(C)+1,NODRAW;ZZ:=距今<100;条件:=TESTSKIP(ZZ=0);首日中枢:(REF(H,距今-1)+REF(L,距今-1))/2,NODRAW;首日中枢支撑:(首日中枢/1.5) ,COLORFFAAFF;【通达信】中枢缠绵(黄金线、涨停)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】五线布林(上轨、趋势、金叉)
【通达信】五线布林(上轨、趋势、金叉)-指标公式源码趋势: MA(CLOSE,N1),COLORRED,LINETHICK2;上轨:趋势+STD(CLOSE,N1),COLORGRAY;下轨:趋势-STD(CLOSE,N1),COLORGRAY;上极:趋势+2*STD(CLOSE,N1),COLORGRAY;下极:趋势-2*STD(CLOSE,N1),COLORGRAY;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);MA1:=MEMA(CLOSE,5);MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;MA3:=IF(MA2>0,MA2,MA2);MA5:MA(CLOSE,N),COLORGREEN;MA13:MA(CLOSE,M),COLORYELLOW;VAR1:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) ANDREF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2);VAR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);VAR3:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(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) AND C<REF(C,1) AND C<REF(C,2);VAR4:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);VAR5:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) ANDREF(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);VAR6:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);VAR7:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;VAR8:=VAR7 AND COUNT(VAR6,2);VAR9:=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(VAR9,2)=LLV(VAR9,7) AND COUNT(VAR9<0,2) AND CROSS(VAR9,MA(VAR9,2)))=1,5);VAR12:=FILTER((HHV(VAR9,2)=HHV(VAR9,7) AND COUNT(VAR9>50,2) AND CROSS(MA(VAR9,2),VAR9))=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:=VAR8 AND NOT(REF(VAR8,1));{KDJ}RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,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 VAR4;买3:=(VAR14 OR VAR15) AND VAR2;买4:=(VAR2 AND VAR11) OR (VAR4 AND VAR11);买5:=(金叉 AND VAR4) OR (金叉 AND VAR2) OR (金叉 AND VAR11); DRAWICON(VAR16,LOW-0.02,7);DRAWICON(买1 OR 买2 OR 买3 OR 买4 OR 买5,LOW-0.01,1);DRAWICON(死叉 OR VAR12 OR CROSS(40,VAR9),HIGH+0.01,2);DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)>C AND REF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1) <"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA")>0,L-0.02,'★M'),COLORFF00FF;{MACD底背离}DRAWTEXT(REF(C,BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1))+1)>C ANDREF("KDJ.K",BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1))+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D"),L-0.10,'◎K'),COLORFF00FF;{KDJ底背离} DRAWTEXT(REF(C,BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1))+1)>C AND REF("RSI.RSI1",BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1))+1) <"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2")>0,L-0.18,'◆R'),COLORFF00FF;{RSI底背离};DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1)<C AND REF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1) >"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF")>0,H+0.16,'★M'),COLORGREEN;{MACD顶背离};DRAWTEXT(REF(C,BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1))+1)<CAND REF("KDJ.K",BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1))+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K")>0,H+0.08,'◎K'),COLORGREEN;{KDJ顶背离}DRAWTEXT(REF(C,BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1))+1)<C AND REF("RSI.RSI1",BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1))+1)>"RSI. RSI1"AND CROSS("RSI.RSI2","RSI.RSI1")>0,H+0.04,'◆R'),COLORGREEN;【通达信】五线布林(上轨、趋势、金叉)-指标公式效果图(文档来源:若水财经社区)。
通达信地心引力通道主图指标公式
通达信地心引力通道主图指标公式通达信地心引力通道主图指标公式N:=5;EMA13:=EMA(C,13);MA30:=MA(C,30);MA72:=MA(C,72);地心引力:(MA30+MA72)/2,POINTDOT,COLORYELLOW,LINETHICK5;上引力:(MA30+MA72)/2*0.9,POINTDOT,COLORGREEN,LINETHICK5;下引力:(MA30+MA72)/2*1.1,POINTDOT,COLORRED,LINETHICK5;DRAWBAND(EMA13,RGB(95,95,95),MA30,RGB(0,0,0));EMA17:=EMA(C,17);主筹估算:=EMA(WINNER(C)*70,3);散筹估算:=EMA((WINNER((C)*1.1)-WINNER((C)*0.9))*70,3);筹码锁定:=散筹估算-主筹估算 ;动态底部:=EMA(IF(L<= LLV(L,60),SMA(ABS(L-REF(L,1)),60,1)/SMA(MAX(L-REF(L,1),0),99,1),0)*5,3);涨:=CROSS(主筹估算,筹码锁定);强:=CROSS(主筹估算,散筹估算);STICKLINE(涨,O,C,8,0),COLORYELLOW;STICKLINE(涨,O,H,0,0),COLORYELLOW;STICKLINE(涨,L,C,0,0),COLORYELLOW;STICKLINE(强, O,C,8,0),COLORMAGENTA;STICKLINE(强,O,H,0,0),COLORMAGENTA;STICKLINE(强,L,C,0,0),COLORMAGENTA;LHNH:=BARSLAST(REFX(CLOSE,1))+1;NNL:=BARSLAST(REFX(CLOSE,1))=2;AL:=BACKSET(NNL,HHVBARS(H,LHNH)+1);BL:=AL>REF(AL,1);AL2:=BACKSET(NNL,LLVBARS(L,LHNH)+1);BL2:=AL2>REF(AL2,1);前高:REF(H,BARSLAST(BL)),POINTDOT,COLORFF00FF,LINETHICK3;DRAWTEXT(NNL,前高,前高:+前高),COLORGREEN;前低:REF(L,BARSLAST(BL2)),POINTDOT,COLORGREEN,LINETHICK3;DRAWTEXT(NNL,前低*1.009,前低: +前低),COLORGREEN;FL1:((前高-前低)*0.191)+前低,POINTDOT,COLORFF7F93,LINETHICK3;DRAWTEXT(BARSLAST(BL)>BARSLAST(BL2) AND NNL,FL1,0.236: +FL1),COLOR938C93;FL2:((前高-前低)*0.382)+前低,POINTDOT,COLOR5E8C93,LINETHICK3;DRAWTEXT(BARSLAST(BL)>BARSLAST(BL2) AND NNL,FL2,0.382: +FL2),COLORGREEN;FL3:((前高-前低)*0.5)+前低,POINTDOT,COLOR00FFFF,LINETHICK4;DRAWTEXT(NNL,FL3,0.5:+FL3),COLOR918C93;FL4:((前高-前低)*0.618)+前低,POINTDOT,COLOR918C93,LINETHICK3;DRAWTEXT(BARSLAST(BL)>BARSLAST(BL2)ANDNNL,FL4,0.618: +FL4),COLORGREEN;FL5:((前高-前低)*0.809)+前低,POINTDOT,COLOR918C67,LINETHICK3;DRAWTEXT(BARSLAST(BL)>BARSLAST(BL2) AND NNL,FL5,0.764: +FL5),COLORGREEN;PP:=MAX( BARSLAST(BL),BARSLAST(BL2))+1;K1:=PP-1;K2:=PP-3;K3:=PP-5;K4:=PP-8;K5:=PP-13;K6:=PP-21;K7:=PP-34;K8:=PP-55;K9:=PP-89;K10:=PP-144;K11:=PP-233;K12:=PP-377;STICKLINE(FILTER(C=REF(C,K1),1) ,1 ,0,1,0);STICKLINE(FILTER(C=REF(C,K2),1) ,1 ,0,1,0);STICKLINE(FILTER(C=REF(C,K3),1) ,1 ,0,1,0);STICKLINE(FILTER(C=REF(C,K4),1) ,1 ,0,1,0);STICKLINE(FILTER(C=REF(C,K5),1) ,1 ,0,1,0);STICKLINE(FILTER( C=REF(C,K6),1) ,1 ,0,1,0);STICKLINE(FILTER( C=REF(C,K7),1) ,1 ,0,1,0);STICKLINE(FILTER(C=REF(C,K8),1) ,1 ,0,1,0);STICKLINE(FILTER(C=REF(C,K9),1) ,1 ,0,1,0);STICKLINE(FILTER(C=REF(C,K10),1) ,1 ,0,1,0);STICKLINE(FILTER(C=REF(C,K11),1) ,1 ,0,1,0);DRAWTEXT(FILTER(C=REF(C,K1),0),(HHV( H,80 )+LLV(L ,80 )) /2,1),COLORRED,LINETHICK1;DRAWTEXT(FILTER( C=REF(C,K2),0),(HHV( H,80 )+LLV(L ,80 )) /2,3),COLORRED,LINETHICK1;DRAWTEXT(FILTER(C=REF(C,K3),0),(HHV( H,80 )+LLV(L ,80 )) /2,5),COLORGREEN,LINETHICK1;DRAWTEXT(FILTER(C=REF(C,K4),0),(HHV( H,80 )+LLV(L ,80 ))/2,8),COLORRED,LINETHICK1;DRAWTEXT(FILTER(C=REF(C,K5),0),(HHV( H,80 )+LLV(L ,80 )) /2,13),COLORRED,LINETHICK1;DRAWTEXT(FILTER(C=REF(C,K6),0),(HHV( H,80 )+LLV(L ,80 )) /2,21转),COLORGREEN,LINETHICK1;DRAWTEXT(FILTER(C=REF(C,K7),0),(HHV( H,80 )+LLV(L ,80 )) /2,34),COLORRED,LINETHICK1;DRAWTEXT(FILTER(C=REF(C,K8),0),(HHV( H,80 )+LLV(L ,80 )) /2,55),COLORRED,LINETHICK1;DRAWTEXT(FILTER(C=REF(C,K9),0),(HHV( H,80 )+LLV(L ,80 )) /2,89),COLORGREEN,LINETHICK1;DRAWTEXT(FILTER(C=REF(C,K10),0),(HHV( H,80 )+LLV(L ,80 ) )/2,144),COLORRED,LINETHICK1;DRAWTEXT(FILTER(C=REF(C,K11),0),(HHV( H,80 )+LLV(L ,80 ) )/2,233),COLORGREEN,LINETHICK1;A1:=REF(H,N)=HHV(H,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);D1:=FILTER(C1,N) OR BARSTATUS=2; A2:=REF(L,N)=LLV(L,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);D2:=FILTER(C2,N);E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2; E2:=(H+L)/2; H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 OR BARSCOUNT(C)=1;L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1); L2:=LD OR BARSTATUS=2 OR BARSCOUNT(C)=1;X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1); R1:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1);S1:=R1>REF(R1,1);T1:=BACKSET(BARSTATUS=2,BARSLAST(LD)+1);U1:=T1>REF(T1,1); R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2); S2:=R2>REF(R2,1); T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2); U2:=T2>REF(T2,1); T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2); U3:=T3>REF(T3,1); T4:=BACKSET(U3,REF(BARSLAST(LD),1)+2); U4:=T4>REF(T4,1); R3:=BACKSET(S2,REF(BARSLAST(HD),1)+2); S3:=R3>REF(R3,1); R4:=BACKSET(S3,REF(BARSLAST(HD),1)+2); S4:=R4>REF(R4,1); 短期压力:DRAWLINE(S2,H,S1,H,1),COLORRED,LINETHICK2;短期支撑:DRAWLINE(U2,L,U1,L,1),COLORGREEN,LINETHICK2;中期压力:DRAWLINE(S3,H,S2,H,1),COLORYELLOW,LINETHICK2;中期支撑:DRAWLINE(U3,L,U2,L,0),COLORGREEN,LINETHICK2;长期压力:DRAWLINE(S4,H,S3,H,1),COLORWHITE,LINETHICK2;长期支撑:DRAWLINE(U4,L,U3,L,0),COLORGREEN,LINETHICK2;DRAWICON(S1,H,10);DRAWICON(S2,H,10);DRAWICON(S3,H,10);DRAWICON(S4,H,10);。
通达信天地线副图指标通达信指标公式源码
通达信天地线副图指标看捞钱手,智能黄金线,箱顶,箱底指示操作。
MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L +H+2*C)/4,1)),5,1)*100,1)+50;G1:=IF(-MMS>95,0,20);UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 ANDG1)+1);KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);AA:=-100*(趋势线-CLOSE)/趋势线;AC:=(EMA(AA,5) );SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MA(MMV,1);STICKLINE(((SSL>MM)),SSL,MM,0.01,0),COLORRED;SA:=(MM*0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));捞钱手:IF(((SSL>MM)),MM,SA),LINETHICK2,COLORFF00FF;{IF(SSL<MM,捞钱手,DRAWNULL),LINETHICK2,COLORFFFFFF;}能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) *4)));上开:=O;上收:=C;上高:=H;上低:=L;JJ:=(上开+上高+上低)/3;A:=EMA(JJ,4);智能黄金线:A,COLORYELLOW,LINETHICK1;B:=REF(A,1);STICKLINE(((SSL<MM)),捞钱手,智能黄金线,0.01,0),COLORFFFF00;VA1:=EMA(上收,8);VA2:=EMA(上收,20);DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,'★绝佳') ,LINETHICK2,COLORRED;DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,'★卖');DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND 智能黄金线>REF(智能黄金线,1),VA1*0.97,'★买'),COLOR00FF00;{}选手A:=MA(上收,3);箱顶A:=MA(REF(HHV(上收,6),1),3);箱底A:=MA(REF(LLV(上收,3),1),3);T1:=MA(上收,20)>=REF(MA(上收,20),1);T2:=CROSS(选手A,箱底A) AND 箱顶A/箱底A>100/100 AND T1;T3:=CROSS(箱顶A,选手A) AND 箱顶A/箱底A>100/100;选手:=MA(上收,2);箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;T4:=CROSS(选手,箱底) AND 箱顶/箱底>110/100;T5:=CROSS(箱顶,选手) AND 箱顶/箱底>110/100;VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);{DRAWTEXT(VAR3 >=VAR4 ,箱顶,'--中期好'),COLOR00FFFF;DRAWTEXT(VAR3<VAR4 ,箱顶,'--中期坏'),COLORF0F000;DRAWTEXT(A>B ,箱底,'--短期好'),COLOR00FFFF;DRAWTEXT(A<B ,箱底,'--短期坏'),COLORF0F000;}DRAWTEXT(CROSS(VAR3,VAR4)AND(C>=O)AND VAR3<40 AND UOO>0,LOW*0.96,'★'),COLORF00FF0;STICKLINE(C>=O,C,O,5,0),COLORRED;STICKLINE(C>=O,H,L,0,0),COLORYELLOW;STICKLINE(C<=O,C,O,5,0),COLORGREEN;STICKLINE(C<=O,H,L,0,0),COLORFFFF00;买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);DRAWTEXT(CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1),LOW*0.95,'★跟'),COLOR00FFFF; STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00FFFF;。
【股票指标公式下载】-【通达信】黄金量(顶、底、成交量、换手)
【通达信】黄金量(顶、底、成交量、换手)-指标公式源码VOLUME:VOL,VOLSTICK;顶:=HHV(V,90);底:=LLV(V,90);地:=底+(顶-底)*0.06;下:=底+(顶-底)*0.28;中:=底+(顶-底)*0.50;上:=底+(顶-底)*0.75;【金】:REFDATE(地,DATE),COLOR00FFFF;【银】:REFDATE(下,DATE),COLORFFFFFF;【铜】:REFDATE(中,DATE),COLORLIRED;【铁】:REFDATE(上,DATE),COLORRED;【顶】:REFDATE(HHV(V,90),DATE),COLORCYAN;MA1:=MA(VOL,5),COLORYELLOW;MA2:=MA(VOL,10),COLORWHITE;MA3:=MA(VOL,20),COLORWHITE;MA4:=MA(VOL,40),COLORMAGENTA;换手:=V*100/CAPITAL;{---------------------------------------------------}新股成交量:IF(BARSCOUNT(CLOSE)<40,VOL,DRAWNULL),VOLSTICK;AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));成交量(手):VOL,COLORWHITE,LINETHICK0;调整周期:IF(MA1<MA4,BARSLAST(CROSS(MA4,MA1))+1,BARSLAST(CROSS(MA4,MA1))-BAR SLAST(CROSS(MA1,MA4))),NODRAW;调整总换手:IF(MA1<MA4,SUM(换手,BARSLAST(CROSS(MA4,MA1))+1),SUM(换手,BARSLAST(CROSS(MA4,MA1))+1)-SUM(换手,BARSLAST(CROSS(MA1,MA4))+1)),NODRAW;调整均换手:调整总换手/调整周期,NODRAW;虚拟成交量:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;放量上涨:C/REF(C,1)>=1.01 AND V/REF(V,1)>=1.5 AND V>MA(V,5) ANDREF(V,1)/REF(MA(V,5),1)<=1.8,NODRAW;{-------------------------------------------------------------} STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚拟成交量,0,4,-1),COLOR00C0C0; 主动买盘:=IF(C>OPEN,AA*(HIGH-LOW),IF(C<OPEN,AA*((HIGH-OPEN)+(C-LOW)),VOL/2) );主动卖盘:=IF(C>OPEN,0-AA*((HIGH-C)+(OPEN-LOW)),IF(C<OPEN,0-AA*(HIGH-LOW),0-VOL/2));STICKLINE(主动买盘>主动卖盘 AND MA1>=MA4,VOL,0,3,0),COLOR0000AA; STICKLINE(主动买盘>主动卖盘 AND MA1>=MA4,主动买盘,0,2.5,0),COLOR0000BB ;STICKLINE(主动买盘>主动卖盘 AND MA1>=MA4,主动买盘,0,1.5,0),COLOR0000CC ;STICKLINE(主动买盘>主动卖盘 AND MA1>=MA4,主动买盘,0,1,0),COLOR0000EE; STICKLINE(主动卖盘<主动买盘 AND MA1>=MA4,主动买盘,主动买盘+ABS(主动卖盘),3,0),COLOR7B7B00;STICKLINE(主动卖盘<主动买盘 AND MA1>=MA4,主动买盘,主动买盘+ABS(主动卖盘),2.5,0),COLOR909000;STICKLINE(主动卖盘<主动买盘 AND MA1>=MA4,主动买盘,主动买盘+ABS(主动卖盘),1.5,0),COLORA8A800;STICKLINE(主动卖盘<主动买盘 AND MA1>=MA4,主动买盘,主动买盘+ABS(主动卖盘),1,0),COLORCECE00;STICKLINE(主动买盘>主动卖盘 AND MA1<MA4,0,主动买盘,3,0),COLORRED; STICKLINE(主动买盘>主动卖盘 AND MA1<MA4,0,主动买盘,2.5,0),COLOR0066FF;STICKLINE(主动买盘>主动卖盘 AND MA1<MA4,0,主动买盘,1.5,0),COLOR0099FF;STICKLINE(主动买盘>主动卖盘 AND MA1<MA4,0,主动买盘,1,0),COLORYELLOW; STICKLINE(主动卖盘<主动买盘 AND MA1<MA4,主动买盘,主动买盘+ABS(主动卖盘),3,0),COLOR007B00;STICKLINE(主动卖盘<主动买盘 AND MA1<MA4,主动买盘,主动买盘+ABS(主动卖盘),2.5,0),COLOR009000;STICKLINE(主动卖盘<主动买盘 AND MA1<MA4,主动买盘,主动买盘+ABS(主动卖盘),1.5,0),COLOR00A800;STICKLINE(主动卖盘<主动买盘 AND MA1<MA4,主动买盘,主动买盘+ABS(主动卖盘),1,0),COLOR00FF00;DRAWICON(放量上涨,0,23);【通达信】黄金量(顶、底、成交量、换手)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】主力轨迹线(中期大底、压力、支撑、顶线、底线)
【通达信】主力轨迹线(中期大底、压力、支撑、顶线、底线)-指标公式源码N:=3;N2:=6;N3:=-23;N4:=75;VAR2:=(C-REF(C,1))/REF(C,1)*100;VAR3:=(C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100;VAR4:=SMA(VAR3,9,1);VAR5:=SMA(VAR4,3,1);J:3*VAR4-2*VAR5,COLOR00FFFF;VAR6:=J>1*REF(J,1);VAR7:=LLVBARS(L,50);VAR8:=SUM(V,VAR7);VAR9:=HHVBARS(H,50);VAR10:=SUM(V,VAR9);VAR11:=(C-REF(O,VAR9))/REF(O,VAR9)*100;VAR12:=VAR10/CAPITAL*100;VAR13:=(C-REF(O,VAR7))/REF(O,VAR7)*100;VAR14:=VAR8/CAPITAL*100;VAR15:=MA(WINNER(C),N)*100;VAR16:=EMA(VAR4,N);A2:EMA(VAR4,N),COLORFFDDCC;A3:=EMA(A2,N);A4:=EMA(A3,N);A5:=EMA(A4,N);A6:=EMA(A5,N);A7:=EMA(A6,N);VAR17:=EMA(A7,N);VAR18:=EMA(VAR17,N);VAR19:=EMA(VAR18,N);AA:=EMA(A5,N2);中期大底:LLV(J,AA),LINETHICK2,COLOR0000FF;上:=IF(MA(H,3)*1.05,30,0)*10-AA;下:=IF(MA(L,3)*0.96,30,0)*2/中期大底;中:=IF(MA(H,3)*1.05,30,0);电:=J;DRAWTEXT(CROSS(A4,AA) AND VAR11<N3,AA,'底'),COLORFFFF00; DRAWTEXT(CROSS(A2,J) AND A2>N4,A2+4.22,'●峰'),COLOR00FFFF; STICKLINE(J>=A2,A2,J,6,0),COLOR0000FF;STICKLINE(J<=A2,J,A2,6,0),COLOR00FF00;压力:HHV(J,60),COLOR00FFFF;支撑:=LLV(AA,13);STICKLINE(J<=中期大底 AND 中-REF(中,1)>0 ANDC>=O*0.99,1,88,3,0),COLOR0000FF;DRAWICON(J<=中期大底 AND 中-REF(中,1)>0 ANDC>=O*0.99,88,1),COLOR00FF00;STICKLINE(FILTER(CROSS(上,中期大底) AND 中-REF(中,1)>=0,3),中期大底,70,3,0),COLOR00FF00;DRAWICON(FILTER(CROSS(上,中期大底) AND 中-REF(中,1)>=0,3),70,1); STICKLINE(CROSS(上,下) AND C>=O,中期大底,60,2,0),COLORFF0000;B0:=MA(C,3);B01:=MA(C,4);B1:=(H+L+C)/3;B2:=HHV(B1,15);B3:=LLV(B1,15);B4:=B2-B3;B5:MA((B1-B3)/B4,2)*100,COLOR000080;B6:=HHV(B1,4*15);B7:=LLV(B1,4*15);B8:=B6-B7;B9:=MA((B1-B7)/B8,2)*100;BA:=HHV(B1,16*15);BB:=LLV(B1,16*15);BC:=BA-BB;BD:=MA((B1-BB)/BC,2)*100;顶线:=98;底线:=1;【通达信】主力轨迹线(中期大底、压力、支撑、顶线、底线)-指标公式效果图(文档来源:若水财经社区)。
指标公式--捞钱手--主图--通达信
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
DRAWTEXT(CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1),LOW*0.95,'跟'),COLOR00FFFF;
MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;
G1:=IF(-MMS>95,0,20);
UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND G1)+1);
SA:=(MM*0.985);
SS:=(MA(CLOSE,5));
DD:=(MA(CLOSE,13));
GG:=(MA(CLOSE,21));
捞钱手:IF(((SSL>MM)),MM,SA),COLOR0000FF,LINETHICK1;
{IF(SSL<MM,捞钱手,DRAWNULL),C
DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,4);
DRAWICON(CROSS(VA1,VA2)AND(C>=O)AND 智能黄金线>REF(智能黄金线,1),VA1*0.97,5),COLOR00FF00;
选手A:=MA(上收,3);
通达信智能黄金线主图指标公式【未来三日均线、趋势线、捞钱手、能量线、上开+上高+上低、智能黄金线】
通达信智能黄金线主图指标公式【未来三日均线、趋势线、捞钱手、能量线、上开+上高+上低、智能黄金线】MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF ((L+H+2*C)/4,1)),5,1)*100,1)+50;G1:=IF(-MMS>95,0,20);UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND G1)+1);{明日均线:=REF(C,2)*2-REF(C,5),LINETHICK0,COLOR550055 ;后日均线:=REF(C,1)*2-REF(C,4),LINETHICK0,COLOR008800;大后天均线:=C*2-REF(C,3),LINETHICK0,COLOR008888;}KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);AA:= - 100 * (趋势线- CLOSE) / 趋势线;AC:=(EMA(AA,5) );SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MMV;{STICKLINE(((SSL > MM) ),SSL,MM,0.1,0),COLORRED;}SA:=(MM * 0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));捞钱手:IF(((SSL > MM)),MM,SA),LINETHICK2,COLORWHITE;V AR2Y:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);V AR3Y:=(((CLOSE - REF(OPEN,29)) / REF(OPEN,29)) * 100);V AR4Y:=REF(CLOSE,1);V AR5Y:=((SMA(MAX((CLOSE - V AR4Y),0),6,1) / SMA(ABS((CLOSE - V AR4Y)),6,1)) * 100); V AR6Y:=((SMA(MAX((CLOSE - V AR4Y),0),12,1) / SMA(ABS((CLOSE - V AR4Y)),12,1)) * 100);V AR7Y:=((SMA(MAX((CLOSE - V AR4Y),0),24,1) / SMA(ABS((CLOSE - V AR4Y)),24,1)) * 100);V AR8Y:=(((CLOSE - LLV(LOW,45)) / (HHV(HIGH,45) - LLV(LOW,45))) * 100);V AR9Y:=SMA(V AR8Y,3,1);V ARAY:=SMA(V AR9Y,3,1);V ARBY:=((3 * VAR9Y) - (2 * V ARAY));V ARCY:=(CROSS(V AR5Y,10) AND (V AR3Y < (0 - (28 * 20))));V ARDY:=((100 - CROSS(76,V AR5Y)) AND (V AR3Y > (5 * 20)));DRAWICON(((CROSS(76,V AR5Y) AND (V AR3Y > 5)) ),(HIGH * 1.01),5),COLORFFFFFF;V AREY:=((((CROSS(V AR9Y,V ARAY) AND (V ARAY < 10)) AND (V AR3Y < (0 - 30))) AND (V AR2Y > 3)) * 30);V ARFY:= - ((((VARAY < 11) AND (V AR5Y < 15)) AND (V AR3Y < (0 - 26))) * 10);DRAWICON((CROSS(V ARFY,(0 - 9))),(LOW * 0.998),4);能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) * 4)));上开:=O;上收:=C;上高:=H;上低:=L;JJ:=(上开+上高+上低)/3;A:=EMA(JJ,4);B:REF(A,1),POINTDOT,COLORYELLOW;智能黄金线:A,COLORYELLOW,LINETHICK1;V A1:=EMA(上收,8);V A2:=EMA(上收,20);DRAWTEXT(CROSS(V A2,V A1),V A1*1.10,'止损'),COLORYELLOW;DRAWTEXT(CROSS(V A1,V A2)AND(C>=O)AND 智能黄金线>REF(智能黄金线,1),V A1*0.96,'买入'),COLOR00FF00;选手A:=MA(上收,3);箱顶A:=MA(REF(HHV(上收,6),1),3);箱底A:=MA(REF(LLV(上收,3),1),3);T1:=MA(上收,20)>=REF(MA(上收,20),1);T2:=CROSS(选手A,箱底A) AND 箱顶A/箱底A>100/100 AND T1;T3:=CROSS(箱顶A,选手A) AND 箱顶A/箱底A>100/100;选手:=MA(上收,2);箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;T4:=CROSS(选手,箱底) AND 箱顶/箱底>110/100;T5:=CROSS(箱顶,选手) AND 箱顶/箱底>110/100;V AR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;V AR2:=SMA(V AR1,3,1);V AR3:=SMA(V AR2,3,1);V AR4:=SMA(V AR3,3,1);DRAWTEXT(CROSS(V AR3,V AR4)AND(C>=O)AND V AR3<40 AND UOO>0,箱底,'★'),COLORF00FF0;DRAWTEXT(CROSS(V AR4,V AR3) AND V AR4>75 ,箱顶*1.03,'减磅'),COLORF0F000;V AR111:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);V ARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);V ARE :=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);V ARF :=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);V AR10 :=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);V AR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);V AR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);V AR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);V AR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);V AR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);V AR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);V AR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);V AR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);V AR19:=REF(VARD OR V ARE OR V ARF OR V AR10 OR V AR11 OR V AR12 OR V AR13 OR V AR14 OR V AR15 ORV AR16 OR V AR17 OR VAR18,1) AND V AR1;趋势线1:=FORCAST(CLOSE,7);FK:=100*(C-REF(C,1))/REF(C,1);PK1:=IF(C<REF(O,1) AND FK<0,1,0);PK2:=IF(C<REF(O,2) AND FK<0,1,0);STICKLINE((PK1=0 AND REF(PK1,1)=1 AND PK2=0 AND REF(PK2,1)=1)AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),OPEN,CLOSE,3,0),COLORRED; STICKLINE((PK1=0 AND REF(PK1,1)=1 AND PK2=0 AND REF(PK2,1)=1)AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;PK3:=(((CLOSE / OPEN) > 1.04) AND (CLOSE <(SMA(HIGH,21,2) * 1.05))) AND ((CLOSE - REF(CLOSE,1)) > 0);STICKLINE(PK3 AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),CLOSE,OPEN,3,0),COLORRED;STICKLINE(PK3 AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;STICKLINE(V AR19 AND(趋势线>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),CLOSE,OPEN,3,0),COLORRED;STICKLINE(V AR19 AND(趋势线>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);STICKLINE(买进条件AND 捞钱手>智能黄金线AND 智能黄金线>REF(智能黄金线,1),L,L*0.998,7,0),COLORWHITE;买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);DRAWTEXT(CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1),箱底,'★'),COLOR00FFFF; STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00FFFF;STICKLINE(CROSS(买线,卖线),H,L,0.5,0),COLOR00FFFF;。
【股票指标公式下载】-【通达信】非常精准(拉升力、做空、多头、空头)
【通达信】非常精准(拉升力、做空、多头、空头)-指标公式源码拉升力:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE; 拉升力A:=SMA(拉升力,6.3,1);波峰波谷:SMA(拉升力A,3,1),COLORFF00FF;拉升力B:=3*拉升力A-2.1*波峰波谷;空方:=3*波峰波谷-1* 拉升力A;做空:IF(空方>拉升力B,拉升力B,空方),LINETHICK2,COLOR00FF00;做空周期:HHV(做空,21),COLORBLUE,LINETHICK2;多头:IF(做空>=REF(做空,1) ,做空,DRAWNULL),COLORRED,LINETHICK3; DRAWICON(做空>=REF(做空,1) AND REF(做空,1)<REF(做空,2),做空,23); 空头:IF(做空<REF(做空,1),做空,DRAWNULL),COLORGREEN,LINETHICK3; {DRAWICON(做空<=REF(做空,1) AND REF(做空,1)>REF(做空,2),做空,19);} 短线:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE; 中线:(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW;红柱:SMA(短线,3,1),LINETHICK0,COLOR0000FF;蓝柱:SMA(中线,3,1),COLORSTICK,COLORFFFF00;{红柱}STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,2,0),COLOR888800; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,1.5,0),COLORAAAA00; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,0.8,0),COLORDDDD00; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,0.3,0),COLORFFFF00; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,2,0),COLOR000088; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,1.5,0),COLOR0000AA; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,0.8,0),COLOR0000DD; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,0.3,0),COLOR0000FF; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,2,0),COLOR008800; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,1,0),COLOR00AA00; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,0.8,0),COLOR00DD00; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,0.3,0),COLOR00FF00; {蓝柱}STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,2,0),COLOR880088; STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,1.5,0),COLORAA00AA; STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,0.8,0),COLORDD00DD;STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,0.3,0),COLORFF00FF; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,2,0),COLOR888800; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,1.5,0),COLORAAAA00; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,0.8,0),COLORDDDD00; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,0.3,0),COLORFFFF00; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,2,0),COLOR009999; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,1.5,0),COLOR00BBBB; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,0.8,0),COLOR00DDDD; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,0.3,0),COLOR00FFFF; VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,5,0,4,0),COLOR770077;STICKLINE(A1,5,0,3,0),COLOR990099;STICKLINE(A1,5,0,2,0),COLORBB00BB;STICKLINE(A1,5,0,1,0),COLORDD00DD;STICKLINE(A1,5,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,5.2,'全仓'),COLORRED;【通达信】非常精准(拉升力、做空、多头、空头)-指标公式效果图(文档来源:若水财经社区)。
趋势线大底大顶通达信指标公式源码
趋势线大底大顶通达信指标公式源码(一)趋势线大底大顶通达信指标公式
{趋势线大底大顶通达信指标公式,源码}
A1:=EMA(C,7);
A4:EMA(EMA(EMA(EMA(C,13),13),13),13);
HIGHV:=HHV(A4,160);
LOWV:=LLV(A4,160);
A2:=(A4-LOWV)/(HIGHV-LOWV)*100;
A3:=(A4-LOWV)/(HIGHV-LOWV)*100;
A5:=EMA(A3,2);
A6:=(A2-A3)/A3*100;
A7:=SMA(A6,2,1);
A8:=A6-A7;
{趋势线大底大顶}通达信指标公式:A8,COLORRED,LINETHICK3;
(二)趋势线大底大顶通达信指标公式解析
1、趋势线大底大顶通达信指标公式是一种以趋势底部和顶部的价格趋势计算当前价格趋势的技术指标,以有效区分趋势走势的高低。
2、该指标常用于衡量趋势的强弱,能够为投资者提供有效的信息,以便做长期投资。
3、该指标由两部分组成:趋势线和大底大顶线。
趋势线是一条考虑
过去13根K线的指数平滑移动平均线(EMA),而趋势大底大顶线是一条
衡量当前价格与上一周期趋势的百分比指标,用以衡量一段时间内趋势的
变化。
4、当趋势线出现双底、双顶或拐点时,表明趋势的转变,如果当前
价格与上一周期趋势比值非常高,即市场走势较强,可以考虑买入;反之,如果当前价格与上一周期趋势比值较低,即市场走势较弱,可以考虑卖出。
(三)趋势线大底大顶通达信指标公式的使用方法。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【通达信】地球引力(趋势线、捞钱手、能量线、智能黄金线)-指标公式源码TS:=550;N:=95;R:=14;MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-R EF((L+H+2*C)/4,1)),5,1)*100,1)+50;G1:=IF(-MMS>95,0,20);UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND G1)+1);KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);AA1:=-100*(趋势线-CLOSE)/趋势线;AC:=(EMA(AA1,5) );SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);M1M:=MA(MMV,1);{STICKLINE(((SSL>MM)),SSL,MM,0.01,0),COLORRED;}SA:=(M1M*0.985);SS1:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));捞钱手:=IF(((SSL>M1M)),M1M,SA),LINETHICK2,COLORRED;{IF(SSL<MM,捞钱手,DRAWNULL),LINETHICK2,COLORFFFFFF;}能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) *4)));上开:=O;上收:=C;上高:=H;上低:=L;JJ:=(上开+上高+上低)/3;A:=EMA(JJ,4);智能黄金线:A,COLORYELLOW,LINETHICK2;MA3:=EMA(CLOSE,3);SLOPE1:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);VV1:=IF(((MA3>SLOPE1)),SLOPE1,SLOPE1*0.985),LINETHICK2,COLORYELLOW;箱顶:=MA(REF(HHV(C,30),1),2),COLOR0000FF,LINETHICK2;箱底:=MA(REF(LLV(C,30),1),2),COLOR00FF00,LINETHICK2;箱中:=(箱顶+箱底)/2,COLORFFFFFF,LINETHICK2;AA:=VV1;STICKLINE(C<AA,C,O,4,1),COLORFFFF00;STICKLINE(C<AA,C,O,4,1),COLOR00FF00;STICKLINE(C<AA,C,O,0.1,1),COLOR00FF00;STICKLINE(C>A,C,O,0.1,1),COLORRED;HH:=MA(C,1),COLORWHITE;一硝:=(HHV(HIGH,9)+LLV(LOW,9))/2,COLORRED;二黄:=(HHV(HIGH,26)+LLV(LOW,26))/2,COLORYELLOW;硝酸钾:=MA(C,3);硫磺:=MA(硝酸钾,5);木炭:=MA(硝酸钾,60);三木炭:=3*木炭-2*硫磺;AAQ:=CROSS(二黄,三木炭);BB:=CROSS(一硝,二黄);C1C:=MA(C,30);DDQ:=MA(C,72);地球引力:(C1C+DDQ)/2,LINETHICK2,COLORWHITE;上引力线:=地球引力+地球引力*0.1,COLORRED;下引力线:=地球引力-地球引力*0.1,COLORFF00FF;AAZ:=FORCAST((C+L+H)/3,5);趋势:=EMA(3*AAZ-2*SMA(AAZ,2,1),15),COLORYELLOW,LINETHICK2;BBZ:=FORCAST(趋势,40);做多:3*趋势-2*BBZ,LINETHICK2,COLORFF00FF;做空:3*BBZ-2*趋势,LINETHICK2,COLORC0C0C0;VV:=做多>=REF(做多,1) AND 趋势>=REF(趋势,1) AND 做多>趋势;B1A:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));BS:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);分水岭:=IF(MA(CLOSE,17)<BS,BS,MA(CLOSE,17)),COLORRED,LINETHICK3;MA30:MA(C,30),COLORRED,LINETHICK2;MA75:MA(C,75),COLOR00FF00,LINETHICK2;HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLA Y:=0;A1A:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(A1A,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);高点压力:=DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2;AA11:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA11,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);低点支撑:=DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLOR00FF00,LINETHICK2;ZGSTAR:=(高点压力+低点支撑)/2;ZGEND:=CONST((高点压力+低点支撑)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);中轨:=DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORWHI TE,LINETHICK2;A0:=(L+H+C*2)/4;A1:=EMA(A0,14)COLORBLUE,LINETHICK2;A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;出击:IF(A1X>=0 ANDBARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL ),COLORMAGENTA,LINETHICK2;逃遁:IF(A1X<0 ANDBARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL ),COLORWHITE,LINETHICK2;买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWICON(BU,L-0.1,5);DRAWICON(SEL,H+0.1,6);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;{R,1,100,4}ZF:=(C-REF(C,1))/REF(C,1);TJ:=ZF>=R/100 OR ZF<=-R/100;下限:=IF(BARSLAST(TJ),REF(LOW,BARSLAST(TJ)),DRAWNULL),COLOREA91B5; 上限:=IF(BARSLAST(TJ),REF(HIGH,BARSLAST(TJ)),DRAWNULL),COLORYELLOW; A1AA:=IF(REF(H,BARSLAST(TJ))<REF(C,BARSLAST(TJ)+1),REF(C,BARSLAST(TJ)+1),REF(H,BARSLAST(TJ)));C1AC:=IF(REF(LOW,BARSLAST(TJ))>REF(C,BARSLAST(TJ)+1),REF(C,BARSLAST(TJ)+1),REF(LOW,BARSLAST(TJ)));重心:=IF(BARSLAST(TJ),(A1AA+C1AC)/2,DRAWNULL),COLOR00FF00;止损:MAX(MAX((HHV(C,20)+LLV(C,20))/2,(HHV(C,30)+LLV(C,30))/2),(HHV(C,60 )+LLV(C,60))/2);MA125:MA(C,125),COLORYELLOW;沪股均价:"SH000002$AMOUNT"/"SH000002$VOL"/10000,COLORYELLOW,NODRAW; 深股均价:"SZ399107$AMOUNT"/"SZ399107$VOL"/10000,COLORYELLOW,NODRAW;市场均价:("SH000002$AMOUNT"+"SZ399107$AMOUNT")/("SH000002$VOL"+"SZ399107$VO L")/10000,NODRAW;【通达信】地球引力(趋势线、捞钱手、能量线、智能黄金线)-指标公式效果图(文档来源:若水财经社区)。