股价安全垫股价止损线主图指标通达信指标公式源码
通达信指标公式源码很实用的抄底逃顶指标
通达信指标公式源码很实用的抄底逃顶指标这是一篇关于股票交易的文章,提供了一些实用的抄底逃顶指标。
以下是这些指标的具体内容:1.DRAWBAND指标:该指标由两条移动平均线组成,分别是60日和120日的收盘价移动平均线。
这两条线之间的区域被填充为红色。
另外,还有两条5日和10日的收盘价移动平均线,它们之间的区域被填充为绿色。
2.DRAWKLINE指标:该指标显示了股票的开盘价、最高价、最低价和收盘价。
这些数据可以帮助交易者了解股票的价格走势。
3.MA指标:该指标显示了不同时间段内的收盘价移动平均线。
具体来说,包括5日、10日、30日、60日、120日和240日的收盘价移动平均线。
这些线的颜色分别为白色、黄色、洋红色、绿色、浅洋红色和蓝色。
4.VOL指标:该指标显示了不同时间段内的成交量移动平均线。
具体来说,包括5日、10日和40日的成交量移动平均线。
这些线的颜色分别为白色、黄色和紫红色。
5.量托指标:该指标是一种量价分析指标,用于判断股票的买卖压力。
当5日成交量移动平均线大于等于40日成交量移动平均线,并且10日成交量移动平均线上穿40日成交量移动平均线,同时10日成交量移动平均线的前一天小于40日成交量移动平均线的前一天时,就会出现量托信号。
6.芙蓉出水指标:该指标用于判断股票的买入信号。
当60日收盘价移动平均线大于30日收盘价移动平均线,并且30日收盘价移动平均线等于10日收盘价移动平均线或者30日收盘价移动平均线大于10日收盘价移动平均线时,就会出现芙蓉出水信号。
同时,当股票的收盘价上穿60日收盘价移动平均线,并且成交量大于5日成交量移动平均线时,也会出现芙蓉出水信号。
7.ZJ和TM指标:这两个指标分别显示了资金和成交量的情况。
ZJ指标显示了资金的流入流出情况,TM指标显示了成交量的填充情况。
这些指标可以帮助交易者更好地了解股票的走势。
改写后的文章:根据一定的条件,我们可以判断出股市中的黄金柱和将军柱。
通达信选股公式(庄家专用不外传)
通达信选股公式(庄家专用不外传)本文介绍了三种股票选股公式和策略,包括MACD、KDJ、RSI底背离、老鼠仓和抄底高手。
MACD、KDJ、RSI底背离公式如下:DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3 ,3)),1));B2:=REF(C,A2+1)>C ANDREF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) ANDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.R SI2"(6,12,24)),1));B3:=REF(C,A3+1)>C ANDREF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));底背离条件为B1>0 OR B2>0 OR B3>0.老鼠仓公式如下:AA1:=AMOUNT/VOL;BB1:=L< AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100.1.2;DD1:=L< MA(C,5)*0.921;EE1:=VOL< MA(V,5)*1.5;老鼠仓条件为BB1 AND CC1 AND DD1 AND EE1.抄底高手公式如下:VAR1:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,48)*100+M<0;VAR2:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+N<0;VAR3:=VAR1 AND VAR2;VAR4:=VAR1 AND VAR2 AND COUNT(VAR3,2)=1 AND DATE> AND (CLOSE>OPEN OR CLOSE<OPEN) AND (OPEN<CLOSE);其中M、N、D为参数,VAR4为抄底高手条件。
通达信指标公式源码大全
通达信指标公式源码大全Profit: EMA(EMA(EMA(High,5),5)*1.15.Color=ffffff。
LineThickness=1;Risk: EMA(EMA(High,5),5)*1.1.Color=yellow;Drawdown:EMA(MA(EMA(High,5),5),5)*1.05.Color=00FF00;Balance: EMA(EMA(EMA(High,5),5)。
Color=FF00FF。
LineThickness=1;Rebound: MA(MA(MA(High,5),5)*0.95.Color=gray。
LineThickness=1;Oversold: MA(MA(MA(Close,5),5)*0.9.Color=blue。
LineThickness=1;VAR3:=LLV(High,240);VAR4:=100*(Close-VAR3)/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;VAR7:=0;VAR8:=SMA(Max(Close-REF(Close,1),34,1)/SMA(ABS(Close-REF(Close,1)),7,1)*100;VAR9:=SMA(Max(Close-REF(Close,1),13,1)/SMA(ABS(Close-REF(Close,1)),13,1)*100;VAR10:=IF(Cross(3,16,1)=0 AND High>Low+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) ANDREF(ZIG(3,6),1)<=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);Rewritten:The profit ___ (EMA) of the high price over 5 ds。
通达信指标——永不套牢主图(主图)
{永不套牢升级版主图
该指标决不是一个只用于止损的指标。
本次升级加入了安全线,能更好的提示你买入的时机。
另外变动了参数,在下一次不定期升级中将加入股票的大底信号。
善意提示:该指标适用于长线,短线,震荡市。
上面的三条实线不是简单用来止损的,每一级台阶暗示着股价运动方向。
不要问使用方法,您的思路不应该被原创者所干扰。
只有自己悟出来的东西才好用,否则您就应该象扔垃圾一样把该指标扔弃,指标送给
有缘人。
}
安全线: SMA(LOW,5,1),COLORBLUE,LINETHICK2;
HH:HHV(CLOSE,20),COLORWHITE;
止损5%:HH*0.95,LINETHICK1,COLORGREEN;
止损10%:HH*0.9,LINETHICK1,COLORMAGENTA;
止损15%:HH*0.85,LINETHICK1,COLORGREEN,POINTDOT;
止损20%:HH*0.8,LINETHICK1,COLORGRAY,POINTDOT;
最
低:LLV(C,20),COLORGRAY;。
通达信指标公式源码 底部支撑决策 主图源码
STICKLINE((HIGH-REF(C,1))/REF(C,1)*100>=1.1,MIN(OPEN,REF(CLOSE,1)),CLOSE,3.5,0),COLORWHITE;
STICKLINE((HIGH-REF(C,1))/REF(C,1)*100>=1.1,MIN(OPEN,REF(CLOSE,1)),HIGH,0.001,0),COLORWHITE;
STICKLINE((HIGH-REF(C,1))/REF(C,1)*100>=2.1,MIN(OPEN,REF(CLOSE,1)),CLOSE,3.5,0), COLORRED;
STICKLINE((HIGH-REF(C,1))/REF(C,1)*100>=2.1,MIN(OPEN,REF(CLOSE,1)),HIGH,0.001,0), COLORRED;
LJL:=FILTER(TJ1பைடு நூலகம்5);
TJ2:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(LJL)=2 AND
CLOSE>REF(HIGH,2),1,IF(BARSLAST(LJL)=3 AND CLOSE>REF(HIGH,3),1,0)));
JJ:=(3*C+H+L+O)/6;
VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;
优化CCI并找底通达信指标公式源码
优化CCI并找底通达信指标公式源码在通达信软件中,CCI(顺势指标)是一种常用的技术分析指标,用于判断股价的超买超卖状态。
CCI指标源码如下所示:```python'''该CCI函数传入参数为:high,low,close,n,例如:cci(高价,低价,收盘价,计算周期)计算方法:1.计算典型价(Typical Price):=(High+Low+Close)/32.计算典型价的移动平均数:=SMA(Typical Price,N)3.计算MD(平均绝对偏离) =SUM(ABS(Typical Price-SMA),N)=(Typical Price-Moving Average)/0.015/MD其中,SMA是简单移动平均数,SUM是求和函数,ABS是取绝对值函数。
'''def cci(high, low, close, n):typical_price = (high + low + close) / 3moving_average = []md = []cci_value = []for i in range(len(typical_price)):if i < n:moving_average.append(None)md.append(None)cci_value.append(None)else:moving_average.append(sum(typical_price[i-n:i]) / n)md_value = sum(abs(typical_price[i-n:i] - moving_average[i])) / nmd.append(md_value)cci_value.append((typical_price[i] - moving_average[i]) / (0.015 * md_value))return cci_value```以上是一个简单的CCI指标的计算函数,需要传入股价的高价、低价、收盘价以及计算周期n,返回一个CCI指标值的列表。
通达信指标公式源码 物极必反 黄金坑
{黄金坑}REFLINE: -15, {0}, {20}, {40}, {60};VAR1:=MA(WINNER(CLOSE),9)*100;买!: CROSS(VAR1,2)*30,COLOR0000FF ,LINETHICK3 ;VAR2:=(1-EMA((HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15)),15))* 100;VAR3:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;VAR4:=SMA(VAR3,9,1);VAR5:=SMA(VAR4,9,1);VAR6:=(CLOSE-SMA(CLOSE,13,1))/SMA(CLOSE,13,1)*(-100);VAR7:=REF(VAR6,1)>13 AND REF(VAR6,1)/VAR6>1.23 ANDCLOSE/REF(CLOSE,1)>1.03;春笋: IF(VAR7 ANDREF(CLOSE,1)<=COST(5),20,0),LINESTICK ,COLOR00FF00,LINETHICK2; VAR8:=MA(CLOSE,27);VAR9:=(CLOSE-VAR8)/VAR8*100;VARA:=MA(VAR9,2);VARB:=BARSLAST(CROSS(-10,VARA)=1);VARC:=BARSLAST(CROSS(VARA,10)=1);VARD:=VARA<-10 AND VARB>3;VARE:=VARA>10 AND VARC>3;黄金坑: IF(VARD,VARA,0),LINESTICK ,LINETHICK2, COLORYELLOW;财神到: IF(VARE,VARA,0),LINESTICK , COLORGREEN;贪嘴乐: IF(VARA>REF(VARA,1) AND VARD ANDVARA<-15,30,0),LINETHICK2,LINESTICK,COLORFFA2AF;DRAWICON(贪嘴乐>0,40,1);VARF:=REF(LOW,1)*0.9;VAR10:=LOW*0.9;VAR11:=(VAR10*VOL+VARF*(CAPITAL-VOL))/CAPITAL;VAR12:=EMA(VAR11,30);VAR13:=CLOSE-REF(CLOSE,1);VAR14:=MAX(VAR13,0);VAR15:=ABS(VAR13);VAR16:=SMA(VAR14,7,1)/SMA(VAR15,7,1)*100;VAR17:=SMA(VAR14,13,1)/SMA(VAR15,13,1)*100;VAR18:=BARSCOUNT(CLOSE);VAR19:=SMA(MAX(VAR13,0),6,1)/SMA(ABS(VAR13),6,1)*100;VAR1A:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100; VAR1B:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1C:=SMA((SMA(VAR1B,4,1)-50)*2,3,1);VAR1D:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; VAR1E:=SMA(VAR1D,4,1);VAR1F:=SMA(VAR1E,3,1);VAR20:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR21:=VAR19<=25 AND VAR1A<-95 AND VAR20>20 AND VAR1C<-30 AND VAR1F<30 AND VAR12-CLOSE>=-0.25 AND VAR16<22 AND VAR17<28 AND VAR18>50;血战超跌: STICKLINE(VAR21,0,60,5,0);{黄金坑选股}VAR1:=MA(CLOSE,27);VAR2:=(CLOSE-VAR1)/VAR1*100;VARA:=MA(VAR2,2);VARB:=BARSLAST(CROSS(-10,VARA)=1);VARC:=BARSLAST(CROSS(VARA,10)=1);VARD:=VARA<-10 AND VARB>3;VARE:=VARA>10 AND VARC>3;黄金坑:=IF(VARD,VARA,0);黄金:=REF(黄金坑,1)<0;黄金坑消失:黄金AND 黄金坑=0;{改进版物极必反}物极必反:(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100,COLORMAGE NTA,POINTDOT,LINETHICK4;风险:=IF(物极必反<5,物极必反+90,120);DRAWBAND(120,RGB(0,180,180),风险,RGB(0,180,180));底部:=IF(物极必反>95,物极必反-10,0);DRAWBAND(底部,RGB(250,0,00),0,RGB(250,0,00));VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR2:=EMA(VAR1,30);VAR3:=EMA(VAR2,30);VAR4:=3*VAR2-2*VAR3;势:EMA(VAR4,5),COLORBLUE,LINETHICK3;VAR5:=LLV(LOW,10);VAR6:=HHV(HIGH,25);决策线:EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4),COLORRED,LINETHICK2; DRAWTEXT(CROSS(80,决策线),75,'小心')COLORWHITE;五十:50,POINTDOT,COLORYELLOW;十:10,COLORYELLOW;八十:80;STICKLINE(势>80,势,80,1,0),COLORGREEN;STICKLINE(势<10,势,10,1,0),COLORWHITE;DRAWTEXT(CROSS(10,势),69,'进→'),COLORYELLOW;DRAWTEXT(CROSS(10,势),58,'入'),COLORFF00FF;DRAWTEXT(CROSS(10,势),43,'异'),COLOR00C0FF;DRAWTEXT(CROSS(10,势),31,'动[↓]'),COLORB47DFF;DRAWTEXT(CROSS(10,势),19,'区'),COLORFFFF6F;。
通达信公式指标源码止盈主图指标公式.docx
通达信止盈主图指标公式VARl:=(HIGH+L0W+0PEN+CL0SE)/4;黄金线:=EMA(3*VAR1-2*SMA(VAR1,2,1),13)Z COLORYELLOW Z LINETHICK2; CJ:=(3*C+L+O+H)/6;多空线:=(20*CJ+19*REF(CJ,l)+18*REF(CJ,2)+17*REF(CJ,3)+16*REF(CJ,4)+15* REF(CJ,5)+14*REF(CJ/6)+13*REF(CJ,7)+12*REF(CJ,8)+ll*REF(CJ,9)+10* REF(CJ」0)+9*REF(CJ,ll)+8*REF(CJ」2)+7*REF(CJ,13)+6*REF(CJ,14)+5* REF(CJ,15)+4*REF(CJ/16)+3*REF(CJ」7)+2*REF(CJ,18)+REF(CJ/20))/210, COLORFFOOFF 丄INETHICK2;亚当:=((HIGH + LOW + CLOSE)/3-MA((HIGH + LOW + CLOSE)/3,14))*100/ (1・5*AVEDEV((HIGH + LOW + CLOSE)/3,14));N: = l,100,12;夏娃: = EMA(亚当,N); X2:=亚当;X3:=夏娃;STICKLINE(X2>=X3z LOW,HIGH z O,0),COLORRED;STICKLINE(X2>=X3,CLOSE,OPEN z3z O)z COLOROOOOAA;STICKLINE(X2>=X3Z CLOSE,OPEN Z2,0)Z COLOROOOOCC;STICKLINE(X2>=X3,CLOSE,OPEN Z1,0)Z COLOROOOODD;STICKLINE(X2>=X3,CLOSE,OPEN,0.3,0),COLOROOOOFF;STICKLINE(X2<X3,CLOSE,OPEN,0.3,0),COLORFFFFOO;STICKLINE(X2<X3,CLOSE Z OPEN Z1,0),COLORDDDDOO;STICKLINE(X2<X3,CLOSE,OPEN Z2,0),COLORAAAAOO;STICKLINE(X2<X3z CLOSE z OPEN z3z O),COLOR888800;STICKLINE(X2<X3,LOW z HIGH,O z O),COLORFFFFOO;STICKLINE(X2vX3 ANDC〉=黄金线AND 黄金线> =多空线z OPEN z CLOSE z3z O),COLORFFOOFF;STICKLINE(X2<X3 AND C> =多空线AND Cv黄金线Z OPEN,CLOSER,0),COLORBLUE;Xl:=(C+L+H)/3;BB13:=ATAN(EMA(X1Z13)-REF(EMA(X1Z13)Z1))*3.1416*1O;EMA8:=EMA(C Z8);DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10), EMA8/Z45 fl-1),COLORWHITE;E1:=BARSCOUNT(C);AH:=HHV(H,200);AL:=LLV(L,200);B0:=(AH-AL)/40;KBl:=H+B0;KB2:=L-B0;STICKLINE((E1+0)/34=FLOOR((E1+0)/34)Z KB2Z KB2-0.8*BO,1,0),COLORYELL OW 丄INETHICK3;DRAWTEXT((El+0)/34=FLOOR((El+0)/34),KB2-B0/,时窗'),COLORYELLOW; VAR81: = 1;VAR82:=((((2*CLOSE)+HIGH)+LOW) / 4);低金叉进:=20,COLORYELLOW,LINETHICK2;高死叉岀:=90,COLORGREEN 丄INETHICK3;VAR84:=LLV(LOW Z5);VAR85:=HHV(HIGH,4);C1:=(EMA((((VAR82-VAR84)/(VAR85・VAR84))*100),4)*VAR81),COLORFF00FF ,LINETHICK2;C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR81),COLORFFFFFF,LINET HICK2;条件:=CROSS(C1,C2) AND Cl<40;条件0:=CROSS(C2,C1) AND Cl>90;TJ1:=CROSS(C1,C2);TJ2:=CROSS(C2,C1);TJ3:=CROSS(C1Z C2) AND REF(Cl,l)<20;TJ4:=CROSS(C2,C1) AND REF(Cl」)>80;DRAWTEXT(条件0Z H*1.02;S,)Z COLORBLUE;{DRAWTEXT(CROSS(C1Z75)Z H*1.013/,险区'),COLORGREEN;} DRAWTEXT(TJ3/L*0.98;买jCOLORFFOOFF;均线:=MA(C,13)Z COLOROOFFFF;X8:=,,MACD.MACD n;X:=HHV(REF(X8,l),BARSLAST(X8>0)+l);A8:=(X8/REF(X8z l)-l)*100;Al: = BARSLAST(CROSS(0,A8))+1;DRAWTEXT(X8>0.618 AND CROSS(X,X8),H*1.035;止赢COLORBLUE; STICKLINE(X8>0.618 AND CROSS(X,X8)Z H*1.02,H*1.021,20,1),COLORBLUE; DRAWTEXT(REF(C z BARSLAST(REF(CROSS(,,MACD.DIF n,,,MACD.DEA H),l))+l)> C ANDREF(,,MACD.DIF,,Z BARSLAST(REF(CROSS(,,MACD.DIF,,;,MACD.DEA,,),1))+1) <"MACD.DIF n AND CROSS(n MACD.DIF',,,,MACD.DEA n) >0,L-0.02;*M'),COLORFF00FF;{MACD 底背离}DRAWTEXT(REF(C z BARSLAST(REF(CROSS(,,KDJ.K,,z,,KDJ.D n\l))4-l)>C AND REF(“KDJ・K:BARSLAST(REF(CROSS(”KDJ・KTKDJ・D”),l))+l)v“KDJ・ie AND CROSSC,KDJ.K,,,,,KDJ.D n)丄・0・10,©K)COLORFF00FF;{KDJ 底背离} DRAWTEXT(REF(C,BARSLAST(REF(CROSS(,,RSI.RSIl n,n RSLRSI2,l)z l))+l)>CANDREFCRSI・RSI1:BARSLAST(REF(CROSS(”RSLRSI1TRSI・RSI2J1))+1) <,,RSI.RSI1" AND CROSS(“RSI・RSI1TRSI・RSI2”)>O,L-O.18,,0R,),COLORFFOOFF;{RSI 底背离};DRAWTEXT(REF(C,BARSLAST(REF(CROSS(,,MACD.DEA,7,MACD.DIF n)z l))+l)< C ANDREF(,,MACD.DIF,I/BARSLAST(REF(CROSS(,,MACD.DEA,,Z,,MACD.DIF,,),1))+1) >n MA CD.DIF H AND CROSS(”MACD・DEATMACD・DIF“)>0,H+0・16,*M)COLORGREEN;{MACD 顶背离};DRAWTEXT(REF(C,BARSLAST(REF(CROSS(H KDJ.D,,;,KDJ.K,I),1))+1)<CAND REF(,,KDJ.K,,Z BARSLAST(REF(CROSS(,,KDJ.D,,Z,,KDJ.K,,)Z1))+1) >"KDJ.K n AND CROSSC,KDJ.D,7,KDJ.K,,)>0,H+0.08,,©K,)Z COLORGREEN;{KDJ 顶背离}DRAWTEXT(REF(C,BARSLAST(REF(CR0SS(,,RSLRSI2,,,n RSLRSIl H)z l))+l)<CANDREFC,RSLRSI1,,,BARSLAST(REF(CR0SS(,,RSLRSI2,,Z,,RSI.RSI1,,)Z1))+1)>,,RSL RSI1"ANDCROSSC,RSLRSI2,I Z,,RSI.RSI1H)>0Z H+0.04/♦R,)Z COLORGREEN;{RSI 顶背离};CCC:C,COLORFFFFFF;UPPER : MA(CLOSE,14)*1.06,POINTDOT Z COLORFF99FF Z LINETHICK2;LOWER : MA(CLOSE,14)*0.94,POINTDOT,COLORFFOOFF丄INETHICK2;MID:(UPPER+LOWER)/2,NODRAW,COLOROOFFFF 丄INETHICK1;VAR91:=(2*CLOSE+HIGH+LOW+OPEN)/5;A51:(EMA(VAR91z l)+EMA(VAR91/2)+EMA(VAR91,3)+EMA(VAR91,4))/4,COLORCY AN,LINETHICK1;W51:=(EMA(VAR91,1)+EMA(VAR91,2)+EMA(VAR91,3)+EMA(VAR91,4))/4; DRAWICON(CROSS(UPPER,CCC),UPPER Z15);。
20个极品通达信指标公式源码
20个极品通达信指标公式源码1.AHH_(N):=AMOUNT/CAPITAL*100;AHHV_(N):=REF(AHH_(N),1);AHH:(AHH_(N)-AHHV_(N))/AHHV_(N)>0;2.MA20V:=REF(MA(CLOSE,20),1);MA20:(MA(CLOSE,20)-MA20V)/MA20V>=0;3.BRKV:=REF(HIGH,1);BRK:HIGH/BRKV>1.02;4.ROCV:=REF(CLOSE,1);ROC:(CLOSE-ROCV)/ROCV*100;5.ROCMA20V:=REF(MA(CLOSE,20),1);ROCMA20:=MA(CLOSE,20)/ROCMA20V*100;6.DMAV:=REF(MA(CLOSE,10)-MA(CLOSE,20),1);DMA:(MA(CLOSE,10)-MA(CLOSE,20)-DMAV)/DMAV>0;7.MEANDEV(N):=SUM(ABS(CLOSE-REF(CLOSE,1))/N,N)/CLOSE/N; MEANDEV:MEANDEV(6);8.VARV:=REF(VAR(CLOSE,N),1);VAR:(VAR(CLOSE,N)-VARV)/VARV>=0;9.RSI(N,M):=(SMA(MAX(CLOSE-REF(CLOSE,1),0),N,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),N,1)*100);RSI:RSI(3,1);10.VRSIV:=REF(RSI(3,1),1);VRSI:(RSI(3,1)-VRSIV)/VRSIV>=0;11.MACD:DIF-DEA;12.UPREBV:=REF(HHV(HIGH,N),1);UPREB:(HHV(HIGH,N)-UPREBV)/UPREBV>=0;13.WVPV:=REF(MA(VOL,N),1);WVP:(MA(VOL,N)-WVPV)/WVPV>=0;14.BBDV:(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;15.AVERAGE(N):MA(CLOSE,N);AVERAGE:AVERAGE(5);16.MACDV:=REF(MA(DIF,3),1);MACD:(MA(DIF,3)-MACDV)/MACDV>=0;17.HSV:=REF(HIGH*2-LOW,1);HS:(HIGH*2-LOW)/HSV>=0;18.RAV:=REF(REF(HIGH+LOW,1)+REF(CLOSE,2),1);RA:(REF(HIGH+LOW,1)+REF(CLOSE,2)-RAV)/RAV>=0;19.CMO:=(SUM(CLOSE-REF(CLOSE,1),N))/(SUM(ABS(CLOSE-REF(CLOSE,1)),N))*100;20.AR:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;。
这据说是通达信最牛的主图公式(源码)
这据说是通达信最牛的主图公式(源码)回归斜率线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));{A}MAHL3:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}回归斜率带: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/10 ANDCOUNT(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;{可将3该为4,信号少点}VAR4:=EMA(EMA(EMA(VAR3,4),4),4);{可将3该为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;{红K};STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.7,0 ),COLOR000077;{红K};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) AND J<70,CLOSE,OPEN,0.9,0),COLORFFBBFF;STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.3,0),COLORFFDDFF;。
盈损线 一款超好用的指标通达信指标公式源码
盈损线一款超好用的指标很好用的一款指标,有买点,卖点。
主力买入,卖出的提示{突破主}R1:=(C>REF(C,1)AND C>REF(C,2)); R2:=(REF(R1,1)AND C<=REF(C,1)ANDC>=REF(C,2));R3:=(REF(R2,1)AND C>=REF(C,1)AND C<=REF(C,2)); R4:=(REF(R3,1)ANDC<=REF(C,1)AND C>=REF(C,2));R5:=(REF(R4,1)AND C>=REF(C,1)AND C<=REF(C,2)); R6:=(REF(R5,1)ANDC<=REF(C,1)AND C>=REF(C,2));R7:=(REF(R6,1)AND C>=REF(C,1)AND C<=REF(C,2)); R8:=(REF(R7,1)ANDC<=REF(C,1)AND C>=REF(C,2));R9:=(REF(R8,1)AND C>=REF(C,1)AND C<=REF(C,2)); A1:=(REF(R9,1)ANDC<=REF(C,1)AND C>=REF(C,2));A2:=(REF(A1,1)AND C>=REF(C,1)AND C<=REF(C,2)); A3:=(REF(A2,1)ANDC<=REF(C,1)AND C>=REF(C,2));A4:=(C<REF(C,1)AND C<REF(C,2)); A5:=(REF(A4,1)AND C>=REF(C,1)ANDC<=REF(C,2));A6:=(REF(A5,1)AND C<=REF(C,1)AND C>=REF(C,2)); A7:=(REF(A6,1)ANDC>=REF(C,1)AND C<=REF(C,2));A8:=(REF(A7,1)AND C<=REF(C,1)AND C>=REF(C,2)); A9:=(REF(A8,1)ANDC>=REF(C,1)AND C<=REF(C,2));B1:=(REF(A9,1)AND C<=REF(C,1)AND C>=REF(C,2)); B2:=(REF(B1,1)ANDC>=REF(C,1)AND C<=REF(C,2));B3:=(REF(B2,1)AND C<=REF(C,1)AND C>=REF(C,2)); B4:=(REF(B3,1)ANDC>=REF(C,1)AND C<=REF(C,2));B5:=(REF(B4,1)AND C<=REF(C,1)AND C>=REF(C,2)); B6:=(REF(B5,1)ANDC>=REF(C,1)AND C<=REF(C,2));B7:=REF(A4 OR A5 OR A6 OR A7 OR A8 OR A9 OR B1 OR B2 OR B3 OR B4 OR B5 OR B6,1)AND R1;B8:=((REF(R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR A1 OR A2 OR A3,1))AND A4);T1:=HHV(C,4); T2:=REF(C,1); T3:=REF(C,2); T4:=REF(C,3); T5:=LLV(C,4); STICKLINE(C>=OPEN,C,OPEN,3.2,0),COLOR0000AA;STICKLINE(C>=OPEN,C,OPEN,2.2,0),COLOR0000CC;STICKLINE(C>=OPEN,C,OPEN,1.0,0),COLOR0000EE;STICKLINE(C>=OPEN,C,OPEN,0.1,0),COLORAA55FF;STICKLINE(OPEN>=C,C,OPEN,3.2,0),COLOR009900;STICKLINE(OPEN>=C,C,OPEN,1.5,0),COLOR00BB00;STICKLINE(OPEN>=C,C,OPEN,0.6,0),COLOR00DD00;STICKLINE(OPEN>=C,C,OPEN,0.1,0),COLOR00FF00;Q:=C=T5 AND(T2<T3 OR T2<T4)OR T2=T5 AND C<T3 OR T3=T5 AND T2!=T1 AND C<T2 OR T4=T5 AND C<T2 AND C<T3; W:=O+C;STICKLINE(Q,C,W/2,3.1,0),COLOR999999;STICKLINE(Q,C,W/2,2,0),COLORBBBBBB;STICKLINE(Q,C,W/2,1,0),COLORDDDDDD;STICKLINE(Q,C,W/2,0.1,0),COLORFFFFFF;S:=T2=T5 AND C>=T3 OR T3=T5 AND T2<=T4 AND T3<REF(C,4)AND C>=T2; STICKLINE(S,O,W/2,3.1,0),COLOR999900;STICKLINE(S,O,W/2,2,0),COLORBBBB00;STICKLINE(S,O,W/2,1,0),COLORDDDD00;STICKLINE(S,O,W/2,0.1,0),COLORFFFF00;STICKLINE(B7,REF(C,1),REF(C,2),3.2,0),COLOR335555;STICKLINE(B7,REF(C,1),REF(C,2),2.5,0),COLOR338888;STICKLINE(B7,REF(C,1),REF(C,2),1.5,0),COLOR33AAAA;STICKLINE(B7,REF(C,1),REF(C,2),0.8,0),COLOR33CCCC;STICKLINE(B7,REF(C,1),REF(C,2),0.1,0),COLOR33EEEE;STICKLINE(B8,REF(C,1),REF(C,2),3.0,0),COLORAA0000;STICKLINE(B8,REF(C,1),REF(C,2),2.0,0),COLORCC0000;STICKLINE(B8,REF(C,1),REF(C,2),1.1,0),COLORFF4400;STICKLINE(B8,REF(C,1),REF(C,2),0.2,0),COLORFF8800;STICKLINE(B8,REF(C,1),REF(C,2),0.0,0),COLORFFCC00;四:=SUMBARS(VOL,CAPITAL/4),NODRAW; 二:=SUMBARS(VOL,CAPITAL/2),NODRAW; ZJ:=MA(C,二){中期成本均线};XJ:=MA(C,四){近期成本均线}; T:=C>XJ; P:=XJ>ZJ; Z:=ZJ>Q;I:=MAX(O,C); STICKLINE(T AND P AND Z,I,W/2,3.1,0),COLOR880088;STICKLINE(T AND P AND Z,I,W/2,2,0),COLORBB00BB;STICKLINE(T AND P AND Z,I,W/2,1,0),COLORDD00DD;STICKLINE(T AND P AND Z,I,W/2,0.1,0),COLORFF00FF;STICKLINE(C=C,O+((C-O)/2),(O+(C-O)/2),3,0),COLOR00FFFF;{当日实体幅度的1/2} AA1:=EMA(C,5); AA2:=EMA(C,10);突破:REF(AA2,1),COLORMAGENTA,DOTLINE; AA3:=AA1-突破; AA4:=((AA3)/突破*100); A:=IF(AA4>=0,REF(AA2,BARSLAST(CROSS(AA4,0))+1),DRAWNULL);B:=IF(AA4<0,REF(AA2,BARSLAST(CROSS(0,AA4))+1),DRAWNULL);STICKLINE(A,A,A,4,-1)COLORMAGENTA;STICKLINE(B,B,B,4,-1)COLORGREEN;STICKLINE(AA4>=0,A,突破,0,-1)COLORMAGENTA;STICKLINE(AA4<0,B,突破,0,-1)COLORGREEN;持币:=IF(AA4<0,突破,DRAWNULL)COLORFFCC00,DOTLINE;DRAWTEXT(ISLASTBAR AND A,A-0.1,'出击'),COLORMAGENTA;DRAWTEXT(ISLASTBAR AND B,B+0.15,'休假'),COLORGREEN;顶:HHV(H,60),COLORFF00FF,DOTLINE; 底:LLV(L,60),COLORWHITE,DOTLINE;MA5:MA(C,5)COLORWHITE;MA18:MA(C,18)COLOR0080FF;MA21:MA(C,21)COLORYELLOW;MA35:MA(C,35)COLOR00FF00;MA60:MA(C,35)COLORRED;盈损线:MA(MA5,1),LINETHICK2,COLOR00FF00;IF(盈损线>=REF(盈损线,1),盈损线,DRAWNULL),COLORRED,LINETHICK2; DRAWTEXT((MA18>=REF(MA18,3)AND CROSS(C,MA18)),L-0.05,'↖跟'),COLORRED;获利%:WINNER(C)*100,NODRAW,COLORFF00FF;{涨跌停提示}XX:=REF(C,1);ZDF:=(C-XX)/XX*100;DRAWTEXT(C>=1.099*XX,C*1.01,'↙涨停'),COLORYELLOW;DRAWTEXT(ZDF<-9.9,C*1.01,'↖跌停'),COLOR00FF00;AA8:=ZIG(3,5); AA9:=REF(AA8,1);DRAWICON((AA8>AA9)AND(AA9<=REF(AA8,2))AND(REF(AA8,2)<=REF(AA8,3)),L-0.15, 23);DRAWICON((AA8<AA9)AND(AA9>=REF(AA8,2))AND(REF(AA8,2)>=REF(AA8,3)),H+0.01 ,15);DRAWTEXT_FIX(1,0.0,0.0,0,'蓝柱-高位出货坚决'),COLOR0080FF,LINETHICK1; DRAWTEXT_FIX(1,0.00,0.06,0,'白柱-主力洗盘'),COLORWHITE,LINETHICK1; DRAWTEXT_FIX(1,0.00,0.12,0,'绿柱-主力深度洗盘'),COLORGREEN,LINETHICK1; DRAWTEXT_FIX(1,0.00,0.18,0,'粉柱-主力在做高抛低吸或低吸高抛'),COLORFF00FF,LINETHICK1;DRAWTEXT_FIX(1,0.00,0.24,0,'红柱-主力吸筹进货积极主动'),COLORRED,LINETHICK1;。
通达信指标公式源码 精确抄底逃顶波段
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);Q4:=SMA(Q3, 3, 1);长趋势:3*Q3-2*Q4,colorwhite,LINETHICK3;趋势线:EMA(Q3, 3),colorred,LINETHICK3;DRAWTEXT(CROSS(趋势线, 长趋势) AND REF(长趋势,1)>80,REF(长趋势,3), '*顶'),colorred,LINETHICK5;★逢低买入: DRAWTEXT(REF(CROSS(趋势线,长趋势),82) AND 趋势线>1.3*长趋势,长趋势,'★<<-逢低买入'),LINETHICK1;★低买: DRAWTEXT(REF(CROSS(长趋势,趋势线),1) AND 长趋势>1.3*趋势线,趋势线,'★低买'),colorred,LINETHICK1;VAR3:=PEAKBARS(3,15,1)<10;VAR5:=IF(VAR3=1,2,0);顶:= IF(VAR5=2,2,0);顶A:IF(顶>REF(顶,1),50,0),colorgreen;DRAWTEXT(顶A=50,45,'快走'),COLOR00FF00;抄底一趋势:=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);见底:=10;短期底部:CROSS(趋势,见底);抄底二HLM1:=MA(HHV(H,500),13);HLM2:=MA(HHV(H,250),13);HLM3:=MA(HHV(H,89),13);HLM4:=MA(LLV(L,500),13);HLM5:=MA(LLV(L,250),13);HLM6:=MA(LLV(L,89),13);HLM7:=MA((HLM1*0.558+HLM2*0.558+HLM3*0.558+HLM4*0.96+HLM5*0.9 6+HLM6*0.96)/6,17);HLM8:=MA((HLM1*0.55+HLM2*0.55+HLM3*0.65+HLM4*1.25+HLM5*1.23+ HLM6*1.2)/6,17);HLM9:=MA((HLM1*0.68+HLM2*0.68+HLM3*0.68+HLM4*1.3+HLM5*1.3+HL M6*1.3)/6,17);HLM10:=MA((HLM7*3+HLM8*2+HLM9)/6*1.738,17);HLM11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;HLM12:=MA(IF(C*1.35<=HLM10,HLM11*10,HLM11/10),3);HLMH:=HHV(HLM12,30);关注:MA(IF(L<=LLV(L,42),(HLMH+HLM11*2)/3,0),3)/200;DRAWBAND(关注,RGB(255,255,50),0.00001,RGB(0,100,50));STICKLINE(CROSS(3.8,关注) AND 关注<REF(关注,1),0,3.8,1,0),COLORFF00FF;DRAWTEXT(CROSS(3.8,关注) AND 关注<REF(关注,1),3.8,'买底'),COLORFF00FF;STICKLINE(CROSS(10,关注) AND 关注<REF(关注,1),0,10,2,0),COLORyellow; DRAWTEXT(CROSS(10,关注) AND 关注<REF(关注,1),10,'金山'),COLORyellow; STICKLINE(CROSS(62,关注) AND 关注<REF(关注,1),0,18,4,0),COLORred; DRAWTEXT(CROSS(38,关注) AND 关注<REF(关注,1),18,'倾买'),COLORred; JS:=LAST(关注>0.618,3,1) AND (COUNT(CROSS(0.618,关注) OR CROSS(62,关注),21)>=2);stickline(FILTER(JS,13),15,0,4,0),COLORRED;DRAWTEXT(FILTER(JS,13),15,'←★★★牛'),COLORred;。
通达信抄底逃顶没错指标公式
通达信抄底逃顶没错指标公式BIAS1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100; BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; MM:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6;MN:=MA(MM,3);VAR24:=LLV(LOW,36);VAR25:=HHV(HIGH,30);VAR26:=EMA((CLOSE-VAR24)/(VAR25-VAR24)*4,4)*25; 底背离:IF(MN<-4 ,17,0),COLORA67D3D,LINETHICK3;顶背离: IF((VAR26>90),17,0), COLOR6B238E,LINETHICK3; IF(MN<-4 ,12,0),COLORBLACK,LINETHICK3;IF((VAR26>90),12,0), COLORBLACK,LINETHICK3; DRAWTEXT(底背离,6,'底背离'),COLORA67D3D; DRAWTEXT(顶背离,6,'顶背离'),COLORGREEN;N:=20;MID:=MA(C,N);VART1:=POW((C-MID),2);VART2:=MA(VART1,N);VART3:=SQRT(VART2);UPPER:=MID+2*VART3;LOWER:=MID-2*VART3;BOLL:=REF(MID,1);UB:=REF(UPPER,1);LB:=REF(LOWER,1);LOWER1:=MID-VART3;LB1:=REF(LOWER1,1);股价线:(C-LB1)/(UB-LB)*100,COLORGREEN, LINETHICK1; 趋势线:MA(股价线,6),COLORRED, LINETHICK3;90,COLORGREEN, LINETHICK1;50,COLORWHITE, LINETHICK1;0,COLORWHITE, LINETHICK1;VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);准备建仓:EMA(IF(L<= LLV(L,30),VARC,0),3),COLORFF00FF,LINETHICK2;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区: IF((VARO7<10),80,100) ,COLORFFFF00,LINETHICK3;IF((VARO7<10),85,100) ,COLORBLACK,LINETHICK2;下单: 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;BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离1:=MA(BIAS,3);乖离:IF(CROSS(BIAS,乖离1) AND 乖离1<-9,28,0),COLORRED,LINETHICK2;IF(CROSS(BIAS,乖离1) AND 乖离1<-9,18,0),COLORRED,LINETHICK2;STICKLINE(CROSS(BIAS,乖离1) AND 乖离1<-9,-12,0,6,0),COLORYELLOW;DRAWTEXT(乖离,18,'低买'),COLORRED;TRJ:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=(SUM(IF(((HD > 0) AND (HD > LD)),HD,0),5) );DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),5);神偷线:=(((DMP ) * 100) / TRJ);辅助线:=((DMM * 100) / TRJ);动向趋势线:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3));ADXR:=((动向趋势线 + REF(动向趋势线,3)) / 2);VAR3:=MA(CLOSE,2);VAR7:=REF(VAR3,1);【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100);快买:( IF(((动向趋势线> 88) AND (神偷线< 5.8)),68,0)),LINETHICK1,COLORFF00FF;( IF(((动向趋势线> 88) AND (神偷线< 5.8)),48,0)),LINETHICK1,COLORFF00FF;DRAWTEXT(快买,60,'准备'),COLORFF00FF;MA2:=EMA(C,2);MA5:=EMA(C,5);MA13:=EMA(C,13);MA30:= EMA(C,30);MA55:=EMA(C,55);YCX:=MA5>=REF(MA5,1);H1:=MA X(MAX(MA5,MA13),MA30);L1:=MIN(MIN(MA5,MA13),MA30);一阳穿三线:= H1<C AND O<L1 AND YCX AND MA2>REF(MA2,1);满仓选股:IF(一阳穿三线,88,0),COLORFFFF00,LINETHICK2;IF(一阳穿三线,58,0),COLORFFFF00,LINETHICK2;DRAWTEXT(一阳穿三线,88,'满仓'),COLORYELLOW;VAR2:=0.0001*AMOUNT,;MA1:=0.0001*MA(AMOUNT,5);M2:=0.0001*MA(AMOUNT,10);百日地量:LLV(VAR2,100)=VAR2,STICK,COLORRED,LINETHICK0;DRAWTEXT(百日地量,-10,'地量'),COLORRED;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); {选股设JC=10即可}DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A:=IF(CROSS(0,DEA),1,0);A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0);SS:=IF(A,SUM(A1,0),0);SSB:=HHV(SS,0);SSS:=SUM(A1,0);JC:IF(SSS-SSB=2 AND SSS>REF(SSS,1),-22,0),LINETHICK2,COLORFFFF00;IF(SSS-SSB=2 AND SSS>REF(SSS,1),-12,0),LINETHICK2,COLORFFFF00;DRAWTEXT(A1,-10,'W底'),COLORYELLOW;VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(VAR1,13)-EMA(VAR1,73);SD:= EMA(SK,2);V1:(CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03)OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035));IF(V1,28,0),COLORYELLOW,LINETHICK2;IF(V1,18,0),COLORYELLOW,LINETHICK2;DRAWTEXT(V1,28,'买点'),COLORRED;AA05:=MA(C,5);五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3);AA10:=MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;AA30:=MA(C,30);三拾日乖离率:=(C-AA30)/AA30*100;(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) AND AA30>REF(AA30,1);(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) AND AA30<REF(AA30,1);BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;强势狙击选股:FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 ANDAA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;青云直上选股:IF(FILTER(MR,10),30,0),COLORYELLOW,LINETHICK2;IF(FILTER(MR,10),20,0),COLORYELLOW,LINETHICK2;DRAWTEXT(青云直上选股,30,'青云直上'),COLORGREEN;QUAN:(CLOSE-DMA(CLOSE,VOL/SUM(VOL,13)))/DMA(CLOSE,VOL/SUM(VOL,13 ))*100<=-28 AND (CLOSE-DMA(CLOSE,VOL/SUM(VOL,34)))/DMA(CLOSE,VOL/SUM(VOL,34 ))*100<=-19AND C/REF(C,25)<=1.1 AND IF((((HIGH > (LOW * 1.051)) AND (COUNT((HIGH > (LOW * 1.051)),5) > 1)) AND ((((CLOSE / MA(CLOSE,40)) * 100) < 78) OR(((CLOSE / MA(CLOSE,60)) * 100) < 74))),2,0) AND(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15 AND IF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)>REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)AND REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)<REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),2)AND SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)<23 ,1.5,0) AND FILTER((C/MA(C,48))<0.75 AND (C/MA(C,70))<0.70 AND((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3),3) ;DRAWTEXT(QUAN,88,'弱市百发百中'),COLORFFFF00;IF(QUAN,88,0),COLORFFFF00,LINETHICK2;IF(QUAN,60,0),COLORFFFF00,LINETHICK2;AA:=1;BB:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;CC:=IF(AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100>100,1 00,AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100);DD:=CC/BB;顶部雷达:CROSS(80,RSI)*88,LINETHICK2 ,COLORGREEN; CROSS(80,RSI)*58,LINETHICK2 ,COLORGREEN; DRAWTEXT(CROSS(80,RSI),88,'逃顶 '),COLORGREEN;。
通达信指标公式源码 抄底公式(副图)
Var1:=IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,18),30)<=0.85 AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,50,0);Var2:=(-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100;Var3:=(-100)*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100;Var4:=(-100)*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100;Var5:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;Var6:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;Var7:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;Var8:=(Var2+Var3+Var4+Var5+Var6+Var7)/6;Var9:=EMA(Var8,3);VarA:=ABS(Var5-Var7);VarB:=(Var8+VarA)/2;VarC:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;VarD:=VarC+VarB;VarE:=IF(Var1>0 AND VarD<0,200,0);VarF:=IF(VarB<0 AND CLOSE=LLV(CLOSE,5) AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,-50,0);Var10:=IF(VarD<0 AND VarF=-50,100,0);Var11:=MA(CLOSE,3);Var12:=REF(CLOSE,2)*0.865;Var13:=REF(CLOSE,13)*0.772;Var14:=MIN(Var12,Var13);Var15:=100*VOL/CAPITAL;Var16:=MA(CLOSE,13);Var17:=IF((CLOSE-Var14)/CLOSE<0.03 AND SUM(Var15,5)/5<1.8,1,0);Var18:=IF(Var17>0 AND (VarF<0 OR Var1>0),100,0);Var19:=Var18;Var1A:=IF(VarE>0 AND Var10>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var17>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902 OR (VarE>0 AND Var10>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var17>0) AND (VarF<0 OR Var1>0) AND Var18<10,50,0);Var1B:=(VarE>0 AND Var10>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var17>0) AND (VarF<0 OR Var1>0);Var1C:=VarE>0 AND Var10>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var17>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902;Var1B OR Var1C;。