确定起涨点 通达信指标公式源码

合集下载

通达信点火起飞公式

通达信点火起飞公式

通达信点火起飞公式
通达信点火起飞公式是一种股票交易技术分析工具,它可以帮助
交易者确定股票价格的趋势和买卖时机。

该公式的中文名为“趋势追
踪指标(TM)”,其计算公式如下:
1、MTR = MAX(MAX(HIGH-LOW,ABS(HIGH-PREV_CLOSE)),ABS(LOW-PREV_CLOSE))
2、ITF = SUM(MTR,N)/N
3、UPR = (HIGH+LOW)/2+C*K*ITF
4、DWN = (HIGH+LOW)/2-C*K*ITF
其中,MTR表示真实波幅,HIGH表示当日的最高价格,LOW表示
当日的最低价格,PREV_CLOSE表示昨日的收盘价,ABS表示绝对值,MAX表示取两个数中的较大值,SUM表示累计求和,N表示累计的期数,UPR表示上轨线,DWN表示下轨线,C表示常数,K表示调整系数。

在使用该公式时,交易者需要选定一定的N值作为计算期数,并
设定C和K的值。

具体地,当价格突破上轨线时,表明价格可能进一
步上涨;当价格跌破下轨线时,表明价格可能进一步下跌。

因此,交
易者可以根据上下轨线确定买入和卖出的时机,以获取更好的投资回报。

通达信公式源码指标暴涨启动点副图源码 通达信

通达信公式源码指标暴涨启动点副图源码 通达信

暴涨启动点副图源码通达信贴图这是一个可能暴涨的提前筛选指标,可以选出来盘中跟踪,出现急拉是可跟进,也可以稍回调后跟进DIF:EMA(CLOSE,9)-EMA(CLOSE,150),NODRAW;DEA:EMA(DIF,12),NODRAW;MACD:2*(DIF-DEA),COLORSTICK;DIK:4*DIF-3*DEA,COLORYELLOW;DED:=EMA(DIK,1),COLORGREEN;IF(C>DED,DED,DRAWNULL),COLORRED,LINETHICK3;IF(DED<=REF(DED,1),DED,DRAWNULL),COLORGREEN,LINETHICK3;Æô¶¯µã:=MACD<0 AND MACD>REF(MACD ,1) ANDREF(MACD ,1)<REF(MACD ,2)AND REF(MACD ,2)<REF(MACD ,3)AND REF(MACD ,3)<REF(MACD ,4);STICKLINE(Æô¶¯µã,8,MACD,2,0),COLORMAGENTA;·Ö½çÏß:0,COLORFF00FF;DRAWICON(Æô¶¯µã,20,11);STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR000055; STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR000099; STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR0000BB; STICKLINE(MACD<=REF(MACD,1) ANDMACD>0,0,MACD,1.8,0),COLOR40FF00;STICKLINE(MACD<=REF(MACD,1) ANDMACD>0,0,MACD,1.1,0),COLOR40FF00;STICKLINE(MACD<=REF(MACD,1) ANDMACD>0,0,MACD,0.6,0),COLOR40FF00;STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLOR000055; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLOR000099; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLOR0000BB; STICKLINE(MACD<=REF(MACD,1) ANDMACD<0,0,MACD,1.8,0),COLOR40FF00;STICKLINE(MACD<=REF(MACD,1) ANDMACD<0,0,MACD,1.1,0),COLOR40FF00;STICKLINE(MACD<=REF(MACD,1) ANDMACD<0,0,MACD,0.6,0),COLOR40FF00;。

通达信指标公式源码拉升涨停主图指标

通达信指标公式源码拉升涨停主图指标

通达信指标公式源码拉升涨停主图指标做价值的传播者,一路同行,一起成长问题:怎样才能每天都收到这类文章!答案:只需点击上方《通达信公式指标》N:=5;N1:=3;H1:EMA(CLOSE,N);H2:EMA(H1,N1);VAR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR2:=SMA(VAR1,5,1);VAR3:=SMA(VAR2,8,1);VAR4:=CROSS(VAR2,VAR3) AND VAR3<20;VAR5:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR4;VAR6:=IF(CLOSE>1000,VAR4,VAR5);DRAWICON(VAR6,H,2);DRAWTEXT(CROSS(H1,H2),H1*0.99,'○买点'),COLORYELLOW;MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;取舍线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16* REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12* REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8* REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4* REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,L INETHICK1,COLORYELLOW;STICKLINE(C>取舍线,O,C,2,0),COLORRED;STICKLINE(C<取舍线,O,C,2,0),COLORGREEN;DRAWICON(CROSS(C,取舍线),L,1);DRAWICON(CROSS(取舍线,C),H,2);DRAWICON(CROSS(C,取舍线),L,26);{缺口}STICKLINE(L>REF(H,1) ,REF(H,1),L,1,-1),COLOR990099;STICKLINE(H<REF(L,1) ,REF(L,1),H,1,-1),COLOR999900;DRAWKLINE(H,O,L,C);{涨停分类}个线:=EMA(EMA(CLOSE,30),9);大线:=EMA(EMA(INDEXC,45),9);个股1:=CLOSE/个线*100;大盘1:=INDEXC/大线*100;GGQD:=(个股1-大盘1);回光返照:=COUNT(CROSS(MA(C,15),MA(C,5)),N1)=0 ANDHHV(GGQD,20)>23 AND MA(C,5)>MA(C,30) AND GGQD<HHV(GGQD,30) AND GGQD>5 AND (C-REF(C,1))/REF(C,1)*100>9.6 AND C=H,;ZT:=(C-REF(C,1))/REF(C,1)*100>8.5,COLORWHITE;开盘:=IF(REF(ZT,1)>0 ,(O-REF(C,1))/REF(C,1)*100,0),NODRAW;BIAS1 :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2 :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;BIA:=(BIAS1-BIAS2);BIS:=LLV(BIAS1,3);超跌涨停:=ZT>0 AND BIS<0 AND BIA>5 AND MA(C,5)<MA(C,60);DRAWTEXT(超跌涨停,L*0.98,'超跌涨停'),COLORGREEN;MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20) ;MA30:=MA(C,30);MA60:=MA(C,34);F1:=(MA5-MA10)/MA10*100;F2:=(MA10-MA20)/MA10*100;F3:=(MA20-MA60)/MA10*100;拉升涨停:=F1>1 AND F2>3 AND F3>0 AND ZT>0;A1:=REF(C,20)=HHV(C,2*20+1);B1:=FILTER(A1,20);C1:=BAC KSET(B1,20+1);HD:=FILTER(C1,20);A:=REF(H,BARSLAST(HD));RSI1:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),5,1)*100;钝化涨停:=ZT>0 AND RSI1=HHV(RSI1,5) AND RSI1>80;钝化涨停1:=GGQD>15 AND ZT>0 AND RSI1=HHV(RSI1,5) AND RSI1>80 AND REF(GGQD>15 AND ZT>0 ANDRSI1=HHV(RSI1,5) AND RSI1>80,1)=0;新股首次:=COUNT(ZT>0,BARSCOUNT(C))=1 AND ZT>0 AND FINANCE(42)<100;突破涨停:=CROSS(C,A) AND ZT>0;DRAWTEXT(回光返照,L*0.99,'回光返照'),COLORBLUE;DRAWTEXT(拉升涨停,L*0.98,'拉升涨停'),COLORRED;DRAWTEXT(突破涨停,L*0.97,'突破涨停'),COLORYELLOW;DRAWTEXT(新股首次,L*0.96,'新股首次'),COLORMAGENTA;DRAWTEXT(钝化涨停1,L*0.95,'钝化涨停1'),COLORLIRED;DRAWTEXT(钝化涨停,L*0.94,'钝化涨停'),COLORLIBLUE;STICKLINE(CLOSE,REF(HIGH,BARSLAST(涨停)),REF(HIGH,BARSLAST(涨停)),0.1,0),COLORDDDD00;STICKLINE(CLOSE,REF(LOW,BARSLAST(涨停)),REF(LOW,BARSLAST(涨停)),0.1,0),COLOR00DDDD;风险提示:本指标公式仅作为知识分享,不构成任何投资建议,不作投资依据。

起涨起跌点通达信指标公式源码

起涨起跌点通达信指标公式源码

起涨起跌点通达信指标公式源码【公式解析】起涨起跌点(Upturn-Downturn Point,UDP)是通达信中的一个指标,用来标识股价的起涨和起跌点。

该指标通过计算一定周期内最高点和最低点之间的差值,并与一定比例的移动平均线进行对比,从而判断股价的上涨和下跌力度。

【公式代码】//起涨起跌点(Upturn-Downturn Point)//输入参数:N-计算周期//输出:GD-起涨起跌点UPDOWNP(N):=M:=CLOSE;S:=STD(M,N);GD:=IFF(REF(C,M)>MA(REF(C,M),5),M+N*S,M-N*S);【代码解析】1.首先声明起涨起跌点指标的函数UPDOWNP,函数的输入参数为计算周期N,没有输出参数。

2.内部变量M表示收盘价序列,将其赋值为CLOSE。

3.内部变量S表示收盘价序列的标准差,计算公式为STD(M,N),其中N为计算周期,表示最近N个收盘价的标准差。

4.内部变量GD表示起涨起跌点序列,赋初值为M+N*S,表示最近N个收盘价的平均值加上N倍的标准差。

5.判断条件REF(C,M)>MA(REF(C,M),5)表示收盘价M相对于其5个周期前的移动平均线MA(REF(C,M),5)是否上涨。

6.如果条件成立,即收盘价上涨,则GD赋值为M+N*S,表示起涨点;如果条件不成立,即收盘价下跌,则GD赋值为M-N*S,表示起跌点。

7.返回GD作为起涨起跌点指标的输出。

【注意事项】1.起涨起跌点指标是通过计算收盘价的标准差来判断上涨和下跌力度的,因此在使用时应对计算周期和标准差的倍数加以合理设定。

2.UPDOWNP函数返回的是起涨起跌点序列,可以作为其他指标的输入,进行综合分析和判断。

【总结】以上是起涨起跌点指标的通达信源码和解析。

该指标通过计算一定周期内的收盘价标准差,并与移动平均线进行对比,来判断股价的上涨和下跌力度。

在实际应用中,可以结合其他指标和技术分析方法,进行股价的预测和交易决策。

通达信指标-预测上涨-副选指标源码

通达信指标-预测上涨-副选指标源码

通达信指标-预测上涨-副选指标源码副图指标源码A:=1;X00:=O;MX000:=(0.3609454219*X00-0.03309329629*REF(X00,1)-0.04241822779*REF(X00,2)-0.026737249*REF(X00,3)-0.007010041271*REF(X00,4)-0.002652859952*REF(X00,5)-0.0008415042966*REF(X00,6)-0.0002891931964*REF(X00,7)-0.0000956265934*REF(X00,8)-0.0000321286052*REF(X00,9)-0.0000106773454*REF(X00,10)-0.0000035457562*REF(X00,11)-0.0000011670713*REF(X00,12) )/ (1-0.7522406533 );明日重心涨跌幅:=(MX000-X00)/X00*100;资金动力:=明日重心涨跌幅*100;ST:=NOT(C/REF(C,1)>=1.045 AND O=C)*A;ST1:=IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1);涨:=REF(C,1)*1.1-C<0.01 AND H=C;{涨停}最低成本:=COST(5);最高成本:=COST(95);平均成本:=COST(50);成本重心:=(平均成本-最低成本)/(最高成本-最低成本)*100;成本带宽CBW:=(最高成本-最低成本)/最低成本*100*A;中线位置:=(C-LLV(最低成本,120))/LLV(最低成本,120)*100*A;成本突破:=(中线位置<50 AND 成本带宽CBW<40)*A;XG5:=BARSLASTCOUNT(成本突破)*A;AHC1:=CLOSE*VOL;AHC2:=EMA((EMA(AHC1,3)/EMA(VOL,3)+EMA(AHC1,6)/EM A(VOL,6)+EMA(AHC1,12)/EMA(VOL,12)+EMA(AHC1,24)/EMA(V OL,24))/4,13);内上:=1.06*AHC2*A;内下:=AHC2*0.94;XXX:=(MA(CLOSE,120)>内下 AND MA(CLOSE,60)>内下 AND MA(CLOSE,20)>内下AND MA(CLOSE,10)>内下AND MA(CLOSE,5)>内下AND MA(CLOSE,120)<内上AND MA(CLOSE,60)<内上AND MA(CLOSE,20)<内上AND MA(CLOSE,10)<内上AND MA(CLOSE,5)<内上)/2*A;VAR61 := MA(C,26);VAR62 := POW(C - VAR61,2);VAR63 := MA(VAR62,13);VAR64 := SQRT(VAR63);VAR65 :=VAR61 + (2 * VAR64);XG14:=COUNT(REF(L,0)/REF(L,1)>1.03,5)=1;XG9:=BARSLASTCOUNT(XG14);XG15:=COUNT(REF(L,0)/REF(L,1)>1.03,5)=1;XG10:=BARSLASTCOUNT(XG15);A1:=(C-REF(C,1))/REF(C,1)*100*A;涨多:=NOT(REF(涨,1)) AND REF(A1,1)<3 AND REF(A1,2)<3 AND REF(A1,3)<3 AND REF(A1,4)<3 AND REF(A1,5)<3 AND REF(A1,6)<3*A;D:=MA(O,4)+0.03;霸气:={CROSS(VAR32,50) AND }O/REF(C,1)>1.02 AND HIGH > REF(VAR65,1) AND 资金动力<=400 AND 涨多 AND XG9=1;霸气2:={CROSS(VAR32,50) AND }O/REF(C,1)>1.02 AND HIGH > REF(VAR65,1) AND 涨多AND XG9=1 AND XXX AND XG5 AND ST1 AND ST AND O/REF(C,1)<1.06 AND REF(C,1)<=D;VAR34 := ZJL.折价率#WEEK;VAR35 := MA(VAR34,PERIOD) + (2 * STD(VAR34,PERIOD));VAR36 := (MA(VAR34,3 * PERIOD)) + (2 * (STD(VAR34,3 * PERIOD)));VAR37 := (MA(VAR34,5 * PERIOD)) + (2 * (STD(VAR34,5 * PERIOD)));VAR38 := (MA(VAR34,6 * PERIOD)) + (2 * (STD(VAR34,6 * PERIOD)));VAR39 := (MA(VAR34,7 * PERIOD)) + (2 * (STD(VAR34,7 * PERIOD)));VAR40 := (MA(VAR35 - (REF(VAR35,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR35 - (REF(VAR35,3 * PERIOD)),PERIOD)));VAR41 := (MA(VAR36 - (REF(VAR36,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR36 - (REF(VAR36,3 * PERIOD)),PERIOD)));VAR42 := (MA(VAR37 - (REF(VAR37,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR37 - (REF(VAR37,3 * PERIOD)),PERIOD)));VAR43 := (MA(VAR38 - (REF(VAR38,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR38 - (REF(VAR38,3 * PERIOD)),PERIOD)));VAR44 := (MA(VAR39 - (REF(VAR39,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR39 - (REF(VAR39,3 * PERIOD)),PERIOD)));VAR45 := REF(HHV(VAR37,5),1);VAR46 := REF(HHV(VAR37,5),6);VAR47 := REF(HHV(VAR37,5),11);VAR48 := REF(HHV(VAR37,5),16);VAR49 := REF(HHV(VAR37,5),21);VAR50 := REF(HHV(VAR37,5),26);VAR51 := IF(VAR45 < REF(MAX(VAR46,VAR47),BARSLAST(CROSS(VAR37,MAX(VAR46, VAR47)))),REF(MAX(VAR46,VAR47),BARSLAST(CROSS(VAR37,MA X(VAR46,VAR47)))),VAR45);气:=((((VAR37 > VAR51)) AND (VAR38 > VAR51)) AND (VAR39 > VAR51)),COLORRED;必涨:XXX AND XG5 AND 霸气AND ST1 AND ST{ AND 气}*A,COLORFF00FF;必涨2:=霸气2 AND (REF(C,2)<REF(O,1) OR REF(C,1)<REF(O,1) OR REF(C,4)>REF(O,1) OR REF(C,3)>REF(O,1))*A;MA34:=EMA(H,5);确定涨:(必涨 2 AND REF(C,1)<REF(MA34,1) { AND 底部<=0.13}){ OR (必涨AND MACD.DIF<0.2)}{AND XG10=1},COLORRED,NODRAW;STICKLINE(确定涨,0,0.5,4,0 )*A,COLOR000099;STICKLINE(确定涨,0,0.5,3,0 )*A,COLOR0000BB;STICKLINE(确定涨,0,0.5,1.5,0 )*A,COLOR0000DD;STICKLINE(确定涨,0,0.5,0.3,0 )*A,COLOR0000FF;选股指标源码A:=1;ST:=NOT(C/REF(C,1)>=1.045 AND O=C)*A;ST1:=IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1);涨:=REF(C,1)*1.1-C<0.01 AND H=C;最低成本:=COST(5);最高成本:=COST(95);成本带宽CBW:=(最高成本-最低成本)/最低成本*100*A;中线位置:=(C-LLV(最低成本,120))/LLV(最低成本,120)*100*A;成本突破:=(中线位置<50 AND 成本带宽CBW<40)*A;XG5:=BARSLASTCOUNT(成本突破)*A;AHC1:=CLOSE*VOL;AHC2:=EMA((EMA(AHC1,3)/EMA(VOL,3)+EMA(AHC1,6)/EM A(VOL,6)+EMA(AHC1,12)/EMA(VOL,12)+EMA(AHC1,24)/EMA(V OL,24))/4,13);内上:=1.06*AHC2*A;内下:=AHC2*0.94;XXX:=(MA(CLOSE,120)>内下 AND MA(CLOSE,60)>内下 AND MA(CLOSE,20)>内下AND MA(CLOSE,10)>内下AND MA(CLOSE,5)>内下AND MA(CLOSE,120)<内上ANDMA(CLOSE,60)<内上AND MA(CLOSE,20)<内上AND MA(CLOSE,10)<内上 AND MA(CLOSE,5)<内上)/2*A;VAR61 := MA(C,26);VAR62 := POW(C - VAR61,2);VAR63 := MA(VAR62,13);VAR64 := SQRT(VAR63);VAR65 :=VAR61 + (2 * VAR64);XG14:=COUNT(REF(L,0)/REF(L,1)>1.03,5)=1;XG9:=BARSLASTCOUNT(XG14);A1:=(C-REF(C,1))/REF(C,1)*100*A;涨多:=NOT(REF(涨,1)) AND REF(A1,1)<3 AND REF(A1,2)<3 AND REF(A1,3)<3 AND REF(A1,4)<3 AND REF(A1,5)<3 AND REF(A1,6)<3*A;D:=MA(O,4)+0.03;霸气2:=O/REF(C,1)>1.02 AND HIGH > REF(VAR65,1) AND 涨多AND XG9=1 AND XXX AND XG5 AND ST1 AND ST AND O/REF(C,1)<1.06 AND REF(C,1)<=D;必涨2:=霸气2 AND (REF(C,2)<REF(O,1) OR REF(C,1)<REF(O,1) OR REF(C,4)>REF(O,1) OR REF(C,3)>REF(O,1))*A;MA34:=EMA(H,5);确定涨:(必涨2 AND REF(C,1)<REF(MA34,1) );{提示大家:在复制通达信指标源码时注意复制完整,复制不完整在测试时指标会提示错误。

通达信指标公式源码 精确定位起涨第一日【波段启动前兆】一套威猛的指标

通达信指标公式源码 精确定位起涨第一日【波段启动前兆】一套威猛的指标

T1:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLOR0080FF;T2:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLOR008000;T3:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORFF8000;T4:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLOR00FFFF;{白金}{白金星星点灯} {20T 10% 100%}AA1:=BARSLAST(CROSS(30,T1))<2 ANDBARSLAST(CROSS(T1,50))<2;BB1:=BARSLAST(CROSS(T4,T1))<2 ANDT1>T4;EE1:=T1>60 AND T4>70;白金:AA1 AND BB1 ANDEE1,NODRAW,COLORWHITE;{黄金} {黄金星星点灯} {20T 10%94.05%}AA2:=BARSLAST(CROSS(50,T1))<3 AND BARSLAST(CROSS(T1,50))<3; BB2:=BARSLAST(CROSS(T4,T1))<2 AND T1>T4;黄金:AA2 ANDBB2,NODRAW,COLORYELLOW;{天瀑} {启动金三角(捉中线牛股起涨点)}XG1:=BARSLAST(CROSS(T4,T1))<5 ANDT1>T4;天瀑:COUNT(XG1,3)=1 AND XG1,NODRAW,COLORRED; {日月} {短线追涨(高位横盘突破)}A:=BARSLAST(CROSS(97,T1))<=1 AND BARSLAST(CROSS(T1,85))<=1;B:=BARSLAST(CROSS(97,T2))<=1 AND BARSLAST(CROSS(T2,85))<=1;A1:=A ANDB;AA:=BARSLAST(CROSS(97,T1))<=2 AND BARSLAST(CROSS(T1,85))<=1;BA:=BARSLAST(CROSS(97,T2))<=2 AND BARSLAST(CROSS(T2,85))<=1;A2:=AA AND BA;AAA:=BARSLAST(CROSS(97,T1))<=3 AND BARSLAST(CROSS(T1,85))<=1;BAA:=BARSLAST(CROSS(97,T2))<=3 AND BARSLAST(CROSS(T2,85))<=1;A3:=AAA AND BAA;B1:=REF(A1,1);B2:=REF(A2,1);B3:=REF(A3,1);D1:=T1=100 AND T2=100AND A1 ;D2:=T1=100 AND T2=100 AND A2 ;D3:=T1=100 AND T2=100 AND A3;日月1 OR D2 OR D3,NODRAW,COLORCYAN;{青干}{蓝三角启动(精确定位起涨第一日)}AA3:=BARSLAST(CROSS(95,T1))<=2;BB3:=BARSLAST(CROSS(95,T2))<=2;EE3:=T4<T1 T1<T3;FF3:=T2>50 ANDT3>50;GG3:=T1=100 AND T2=100;TX:=COUNT(GG3,2)=1;青干:AA3 AND BB3AND EE3 AND FF3 AND TX,NODRAW,COLORGREEN;{莫问} {银边启动(波段启动前兆)}AA4:=T3=100;BB4:=T4<90;莫问:COUNT(A,2) = 2 AND B,NODRAW,COLORBLUE;{竞星}{启动金三角(捉中线牛股起涨点)}AA5:=T1=T2 AND T2=T3 ANDT1=100 AND T4>96;BB5:=COUNT(AA5,2)=1;DD5:=T1<T2 ANDT1<T4 ANDT4<95;YH:=INDEXC/REF(INDEXC,1)*REF(C,1);YH1:=REF(C,1)+C-INDEXC/REF(INDEXC,1)*REF(C,1);X1:=EMA(YH1,7);X2:=EMA(YH1,14);X3:=EMA(X1,14);EE5:=X1>X2AND X2>X3;竞星:BB5 AND DD5 AND EE5,NODRAW,COLORMAGENTA;{舍神}{阶段震仓启动点(黄金坑)}AA6:=BARSLAST(CROSS(T4,T1))>3 ANDBARSLAST(CROSS(T1,T4))<3;BB6:=BARSLAST(CROSS(T4,T2));DD6:=T3<T4AND T2<T4;EE6:=BARSLAST(CROSS(T4,T3))>3 ANDBARSLAST(CROSS(T1,T4))<3;FF6:=T2<T3 ANDT1=100;舍神:AA6 AND BB6 AND DD6 AND EE6 AND FF6,NODRAW,COLOR0080FF; {画剑}STICKLINE(白金=1,90,100,1,0),COLORWHITE;STICKLINE(黄金=1,80,90,1,0),COLORYELLOW;STICKLINE(天瀑=1,70,80,1,0),COLORRED;STICKLINE(日月=1,60,70,1,0),COLORCYAN;STICKLINE(青干=1,50,60,1,0),COLORGREEN;STICKLINE(莫问=1,40,50,1,0),COLORBLUE;STICKLINE(竞星=1,30,40,1,0),COLORMAGENTA;STICKLINE(舍神=1,20,30,1,0),COLOR0080FF;买入:T1<20 ANDT4<20,COLOR0000FF;STICKLINE(买入=1,0,20,1,0),COLOR0000FF;{写字位置,高度,间距};X:=58;Y:=50;Z:=5;DRAWTEXT(CURRBARSCOUNT=X,Y-Z*0,'白金星星点灯'),COLORWHITE; DRAWTEXT(CURRBARSCOUNT=X,Y-Z*1,'黄金星星点灯'),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=X,Y-Z*2,'莫问银边启动波段启动前兆'),COLORFF8000;DRAWTEXT(CURRBARSCOUNT=X,Y-Z*3,'天瀑启动金三角捉中线牛股起涨点'),COLORRED;DRAWTEXT(CURRBARSCOUNT=X,Y-Z*4,'竞星启动金三角捉中线牛股起涨点'),COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=X,Y-Z*5,'青干蓝三角启动精确定位起涨第一日'),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=X,Y-Z*6,'舍神黄金坑阶段震仓启动点'),COLOR0080FF;DRAWTEXT(CURRBARSCOUNT=X,Y-Z*7,'日月短线追涨高位横盘突破'),COLORCYAN;DRAWTEXT(CURRBARSCOUNT=X,Y-Z*8,'游龙短线至尊无剑胜有剑'),COLORGRAY;。

通达信指标公式源码 必涨指标 副图源码 有未来

通达信指标公式源码 必涨指标 副图源码 有未来

清仓:=1.66*MA(FORCAST(CLOSE,2),40),COLORRED;出货:=1.36*MA(FORCAST(CLOSE,2),40),COLOR08FFFF;高抛:=1.16*MA(FORCAST(CLOSE,2),40),COLORFF82FF;低吸:=0.82*MA(FORCAST(CLOSE,2),40),COLORF7E300;满仓:=0.72*MA(FORCAST(CLOSE,2),40),COLORGREEN;强通1:=清仓>REF(清仓,1),;强通2:=出货>REF(出货,1),;强通3:=高抛>REF(高抛,1),;强通4:=低吸>REF(低吸,1),;强通5:=满仓>REF(满仓,1),;上升通道:=强通1 AND 强通2 AND 强通3 AND 强通4 AND 强通5,; MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10),;MA20:=MA(CLOSE,20);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);五强:=MA5>REF(MA5,1),;十强:=MA10>REF(MA10,1),;二十强:=MA20>REF(MA20,1),;三十强:=MA30>REF(MA30,1),;六十强:=MA60>REF(MA60,1),;小均强:=五强AND 十强,;均强:=十强AND 二十强AND 三十强,;大均强:=十强AND 二十强AND 三十强AND 六十强,;JJD:=(H+L+C)/3;强势线1:=HHV(MA((((LOW + HIGH) + CLOSE) /3),8),60),COLORRED,LINETHICK2;强势线2:=HHV(MA((((LOW + HIGH) + CLOSE) /3.18),8),20),COLORWHITE,LINETHICK2;强势线3:=HHV(MA((((LOW + HIGH) + CLOSE) /3.258),8),10),COLORYELLOW,LINETHICK2;强势线4:=HHV(MA((((LOW + HIGH) + CLOSE) /3.08),80),13),COLORLIMAGENTA,LINETHICK2;开始走强1:=强势线1>REF(强势线1,1),;开始走强2:=强势线2>REF(强势线2,1),;开始走强3:=强势线3>REF(强势线3,1),;开始走强4:=强势线4>REF(强势线3,1),;双强1:=开始走强1 AND 开始走强2,;双强2:=开始走强2 AND 开始走强3,;双强3:=开始走强2 AND 开始走强3,;双强4:=开始走强3 AND 开始走强4,;三强:=开始走强1 AND 开始走强2 AND 开始走强3,;四强:=开始走强1 AND 开始走强2 AND 开始走强3 AND 开始走强4,; 强势为王:=双强1 OR 双强2 OR 双强3 OR 双强4 OR 三强OR 四强,;VV:=(C+L+H)/3;DSA:=SMA(XMA(VV,15),2,1)LINETHICK3;顶部1:=DSA*1.0888,COLORMAGENTA,LINETHICK1;顶部2:=DSA*1.158,COLORBROWN,LINETHICK1;顶部3:=DSA*1.218,COLORRED,LINETHICK1;底部1:=DSA*0.9518,COLORLICYAN,LINETHICK1;底部2:=DSA*0.888,COLORLIMAGENTA,LINETHICK1;底部3:=DSA*0.8,COLORGREEN,LINETHICK1;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);MA4:=MA(CLOSE,60);五日走强:=MA1>REF(MA1,1),;十日走强:=MA2>REF(MA2,1),;二十日走强:=MA3>REF(MA3,1),;六十日走强:=MA4>REF(MA4,1),;低位主升:=五日走强AND 十日走强AND 六十日走强,;主升浪:=五日走强AND 十日走强AND 二十日走强,;大主升浪:=十日走强AND 二十日走强AND 六十日走强,;大主升浪2:=五日走强AND 十日走强AND 二十日走强AND 六十日走强,; 总主升:=主升浪AND 大主升浪AND 大主升浪2,;总主升浪:=低位主升OR 主升浪OR 大主升浪OR 大主升浪2 OR 总主升,; 绝对主升浪:L<底部1 AND 总主升浪AND 强势为王ANDC<DSA,COLORYELLOW,LINETHICK2;回调加仓:L<底部1 AND C<DSA AND 强势为王,COLORMAGENTA,LINETHICK2,LINESTICK;DRAWICON(回调加仓>0,1.1,1);老介出马:绝对主升浪AND 回调加仓AND H<DSA,COLORRED,;;A:=MA(C,30);A1:=A*1.1;A4:=A*0.9;A2:=A1-(A1-A4)*0.191;持仓:=IF(HIGH*1.01>A2 ORREF(HIGH,1)>REF(A2,1),A1,A4),LINETHICK3,COLORRED;生命线:=IF(HIGH*1.01>A2 ORREF(HIGH,1)>REF(A2,1),A2,A4),LINETHICK3,COLORFFFFFF;主升持仓:=持仓>生命线,;主升1:=持仓>REF(持仓,1),;主升2:=生命线>REF(生命线,1),;主升:=主升1 AND 主升2,;堆量连阳:=(老介出马AND 主升持仓AND 主升) OR (回调加仓AND 主升持仓AND 主升),;介必升选股:(堆量连阳AND 小均强) OR (回调加仓AND 小均强),COLORYELLOW,LINETHICK4,STICK;DRAWICON(介必升选股>0,1.1,3);DRAWICON(介必升选股>0,1.1,1);DRAWICON(介必升选股>0,0.6,7);DRAWICON(介必升选股>0,0.3,9);。

通达信精准起点指标公式

通达信精准起点指标公式

通达信精准起点指标公式通达信精准起点指标公式明涨停价:CLOSE * 1.1,NODRAW;ST涨停价:CLOSE * 1.05,NODRAW;获利1个点:REF(C,1)*1.01,COLORRED,NODRAW;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);短期底部:=LLV(OPEN,30);AA10:=MA(CLOSE,10);AA12:=MA(CLOSE,12);BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);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));VARA:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VARB:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VARC:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);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:=((((VARA >= (0 - 45)) AND (VARA <= (0 - 10))) AND (VARB <= (0 - 15))) AND (VARC <= (0 - 20)));VAR15:=(COUNT(VAR14,1) >= 1);VAR16:=(VAR13 AND VAR15);VAR17:=1;VAB0:=531;VAB1:=1510000;VAB2:=VAB0 + VAB1; VAB3:=IF(DATE > VAB2,0,1);VARA12:=SMA(H,10,9)*VAB3; VARA13:=SMA(L,10,9)*VAB3; 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));VAR32:=(INDEXA / 100000000);VAR33:=INDEXADV;VAR34:=INDEXDEC;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 ((VAR20AND 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));VAR46:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR47:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR48:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR49:=REF(CLOSE,1);VAR4A:=((SMA(MAX((CLOSE - VAR49),0),5,1) / SMA(ABS((CLOSE - VAR49)),5,1)) * 100);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);VAR54:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR55:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR56:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR57:=REF(CLOSE,1);VAR58:=((SMA(MAX((CLOSE - VAR57),0),5,1) / SMA(ABS((CLOSE - VAR57)),5,1)) * 100);VAR59:=(((HIGH + LOW) + CLOSE) / 3);VAR5A:=((VAR59 - MA(VAR59,14)) / (0.015 * AVEDEV(VAR59,14)));VAR5B:=((((((VAR54 >= (0 - 15.8)) AND (VAR54 <= (0 - 12.2))) AND (VAR55 <= (0 - 20.8))) AND (VAR56 <= (0 - 27.5))) AND (VAR58<= 11.7)) AND (VAR5A <= (0 - 145)));VAR5C:=9.999999884842+026;VAR5D:=(COST(10) * 0)*VAB3;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);VAR66:=MA(CLOSE,13);VAR67:=IF(((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8)),1,0);开始控盘:=STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),5,0)*VAB3,COLORBROWN;出击:=IF(((((VAR9 OR VAR16) OR VAR53) OR VAR5B) OR ((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) <1.8))),120,0),LINETHICK2,COLOR0000FF;VAR68:=0;VARQ:=MA(CLOSE,152);VARW:=MA(CLOSE,194.16);VAREE:=(VARW + (2 * STD(CLOSE,170)));VARR:=(VARQ + (2 * STD(CLOSE,170)));VART:=IF((DATE > 1080822),0,1);VAR611:=EMA(HHV(HIGH,500),21);VAR71:=EMA(HHV(HIGH,250),21);VAR81:=EMA(HHV(HIGH,90),21);VAR91:=EMA(LLV(LOW,500),21);VARA1:=EMA(LLV(LOW,250),21);VARB1:=EMA(LLV(LOW,90),21);VARC1:=EMA((((((((VAR91 * 0.96) + (VARA1 * 0.96)) + (VARB1 * 0.96)) + (VAR611 * 0.558)) + (VAR71 * 0.558)) + (VAR81 * 0.558)) / 6),21);VARD1:=EMA((((((((VAR91 * 1.25) + (VARA1 * 1.23)) + (VARB1 * 1.2)) + (VAR611 * 0.55)) + (VAR71 * 0.55)) + (VAR81 * 0.65)) /6),21);VARE1:=EMA((((((((VAR91 * 1.3) + (VARA1 * 1.3)) + (VARB1 * 1.3)) + (VAR611 * 0.68)) + (VAR71 * 0.68)) + (VAR81 * 0.68)) /6),21);VARF1:=EMA((((((VARC1 * 3) + (VARD1 * 2)) + VARE1) / 6) * 1.738),21)*VAB3;VAR101:=REF(LOW,1);VAR111:=((SMA(ABS((LOW - VAR101)),3,1) / SMA(MAX((LOW - VAR101),0),3,1)) * 100);VAR121:=EMA(IF(((CLOSE * 1.35) <= VARF1),(VAR111 * 10),(VAR111 / 10)),3)*VAB3;VAR131:=LLV(LOW,30);VAR141:=HHV(VAR121,30)*VAB3;VAR151:=IF(MA(CLOSE,58),1,0);VAR161:=((EMA(IF((LOW <= VAR131),((VAR121 + (VAR141 * 2)) / 2),0),3) / 618) * VAR151);VAR171:=(((IF((VAR161 > 50),50,VAR161) / 20) * 15) * VART)*VAB3;SG:=EMA(HHV(HIGH,1),8);X1:=EMA(CLOSE,8);X30:=((X1 < REF(X1,1)) AND (CLOSE < X1));X31:=IF(((SG < REF(SG,1)) OR X30),1,0);LC:=REF(CLOSE,1);操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100,COLORRED,LINETHICK2;趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100,COLORGRAY;震仓线:=45,COLORMAGENTA;震仓线2:=50,COLORGRAY;逃命线:=80,COLORRED;抄底线:=20,COLORGREEN;绝底线:=5,COLORBLUE;PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ;PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线*VAB3;卖出价参考:VARA12,COLORRED,NODRAW;补仓价参考:VARA13,COLORGREEN,NODRAW;财主抓涨停:(((((COUNT((X31 = 1),4) = 3) AND (X31 = 0))AND O<C AND (((C-REF(C,1))/REF(C,1))>0.085))*89) >=89)OR((C-REF(C,1))/REF(C,1)>0.085 AND (REF(PP3,1) OR REF(PP,1))) AND VAB3=1,NODRAW;STICKLINE(财主抓涨停,0.1,0,2,0),COLORRED;STICKLINE(财主抓涨停,0.1,1,2,0),COLORBLUE;STICKLINE(财主抓涨停,0.2,1,2,0),COLORRED;STICKLINE(财主抓涨停,0.3,1,2,0),COLORBLUE;STICKLINE(财主抓涨停,0.4,1,2,0),COLORMAGENTA;STICKLINE(财主抓涨停,0.5,1,2,0),COLORBROWN;STICKLINE(财主抓涨停,0.6,1,2,0),COLORMAGENTA;STICKLINE(财主抓涨停,0.7,1,2,0),COLORYELLOW;STICKLINE(财主抓涨停,0.8,1,2,0),COLORLIRED;STICKLINE(财主抓涨停,0.9,1,2,0),COLORYELLOW;。

通达信牛起点指标公式

通达信牛起点指标公式

通达信牛起点指标公式牛起点CA:=MA(CLOSE,5);CJ5:=CA*102/100;HA:=MA(H,5);HJ5:=HA*102/100;TGH1:=IF(C>O&&H>REF(C,1),ATAN(HJ5-REF(CJ5,1)),0); TGH2:=IF(C>O&&H<REF(C,1),-ATAN(REF(CJ5,1)-HJ5),0); TGH3:=IF(C>O&&H=REF(C,1),0,0);LGH1:=IF(C<O&&H>REF(C,1),ATAN(HJ5-REF(CJ5,1)),0); LGH2:=IF(C<O&&H<REF(C,1),-ATAN(REF(CJ5,1)-HJ5),0); LGH3:=IF(C<O&&H=REF(C,1),0,0);GGH:=(TGH1+TGH2+TGH3+LGH1+LGH2+LGH3);突破高点:MA(REF(GGH,1),26),COLORWHITE;AA:=MA((2*CLOSE+HIGH+LOW)/4,9);通道1:=AA*102/100;CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(C,26))/MA(C,26); DD:=DMA(CLOSE,CC);通道2:=(1+7/100)*DD;TA2:MA(ATAN((通道2-REF(通道2,1))),3),COLORCYAN;T1:=ATAN((通道1-REF(通道1,1)));T2:=ATAN((通道1-REF(通道1,2)));T3:=ATAN((通道1-REF(通道1,3)));T4:=ATAN((通道1-REF(通道1,4)));T5:=ATAN((通道1-REF(通道1,5)));T6:=ATAN((通道1-REF(通道1,6)));T7:=ATAN((通道1-REF(通道1,7)));T8:=ATAN((通道1-REF(通道1,8)));T9:=ATAN((通道1-REF(通道1,9)));T10:=ATAN((通道1-REF(通道1,10)));TJD:MA((((T1+T2+T3+T4+T5+T6+T7+T8+T9+T10)/10)),3),C OLORGRAY,LINETHICK2;TT1:=ATAN((通道2-REF(通道2,1)));TT2:=(ATAN((通道2-REF(通道2,2))));TT3:=(ATAN((通道2-REF(通道2,3))));TT4:=(ATAN((通道2-REF(通道2,4))));TT5:=(ATAN((通道2-REF(通道2,5))));TT6:=(ATAN((通道2-REF(通道2,6))));TT7:=(ATAN((通道2-REF(通道2,7))));TT8:=(ATAN((通道2-REF(通道2,8))));TT9:=(ATAN((通道2-REF(通道2,9))));TT10:=(ATAN((通道2-REF(通道2,10))));TJD2:MA((((TT1+TT2+TT3+TT4+TT5+TT6+TT7+TT8+TT9+T T10)/10)),3),COLORRED;。

通达信指标公式源码绝妙箱体主图指标

通达信指标公式源码绝妙箱体主图指标

VARX:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;VARX1:=SMA(VARX,3,1);VARX2:=SMA(VARX1,3,1);VARX3:=REF(LOW,1);VARX4:=SMA(ABS(LOW-VARX3),3,1)/SMA(MAX(LOW-VARX3,0),3,1)*100; VARX5:=EMA(IF(CLOSE*1.2,VARX4*10,VARX4/10),3);VARX6:=LLV(LOW,30);VARX7:=HHV(VARX5,30);VARX8:=IF(LLV(LOW,58),1,0); 筹码短期:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,8)/(AMOU NT/VOL/100)/100));筹码中期:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,13)/(AMO UNT/VOL/100)/100));筹码长期:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,20)/(AMO UNT/VOL/100)/100));DIF:=EMA(EMA(CLOSE,18)-EMA(CLOSE,34),11); MACD:=EMA(EMA(DIF,11),11),COLOR58FF58;DEF:=2*(DIF-MACD),COLORFFFF00,LINETHICK0;MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6)); MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12)); MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26)); VARR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100; VARR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100; VARR3:=(2*CLOSE+HIGH+LOW)/4;VARR4:=LLV(LOW,26);VARR5:=HHV(HIGH,34);VARR6:=EMA((VARR3-VARR4)/(VARR5-VARR4)*100,16);VARR7:=SMA((SMA(VARR2,3,1)+3),3,1),LINETHICK3;VARR8:=EMA(VARR6,7);VARR9:=SMA(VARR1,3,1);VARR10:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VARR11:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VARR12:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VARR13:=(VARR10+VARR11+VARR12)/3;VARR14:=IF(VARR13<=-20,10,0);VARR15:=HHV(VARR14,10);VARR24:=LLV(LOW,36);VARR25:=HHV(HIGH,30);VARR26:=EMA((CLOSE-VARR24)/(VARR25-VARR24)*4,4)*25;VARB27:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100)/2+22)*1; VARB28:=(((CLOSE -(((EMA(AMOUNT,13) /EMA(VOL,13)) / 100))) / (((EMA(AMOUNT,13) /EMA(VOL,13)) / 100))) * 100);箱顶:HHV(MA((CLOSE),5),30)COLORRED,LINETHICK2;箱底:LLV(MA((CLOSE),5),30) ;长底:LLV(MA((CLOSE),5),120)LINETHICK2;JJ:=(CLOSE+HHV(MA((CLOSE),5),2)+LLV(MA((CLOSE),5),2))/3;DARS:=IF((DATETODAY(DATE))<9999,1,DRAWNULL);AA:=EMA(JJ,3)*DARS;BB:=REF(AA,1);STICKLINE(AA>BB,AA,BB,3,0),COLORYELLOW,;STICKLINE(AA<BB,AA,BB,3,0),COLORLICYAN,;XSR:=1970330;XS:=IF(DATE<XSR,1,DRAWNULL);DS:="MFI.MFI"(12,9)*XS;{反特别版处理}A9:= DATETODAY(DATE)*XS;{反特别版处理}DS1:=IF(A9<9999{0324},4.55,-DS);DS31:=IF(A9<9999{90324},4.7,-DS);DS 41:=IF(A9<9999{324},4.45,-DS);DS51:=IF(A9<9999{2094},4.75,-DS);DS61: =IF(A9<9999{0324},4.65,-DS);DS71:=IF(A9<9999{0324},4.5,-DS);DS81:=I F(A9<9999{2094},4.6,-DS);DS2:=IF(A9<9999{230},0.01,-DS);DS5:=IF(A9<9999{200},0.02,-DS);DS7:=I F(A9<9999{2},0.03,-DS);DS9:=IF(A9<9999{230},0.04,-DS);DS11:=IF(A9<9 999{230},0.05,-DS);DS13:=IF(A9<9999{30},0.06,-DS);DS15:=IF(A9<9999{20},0.002,-DS);DS17: =IF(A9<9999{230},0.004,-DS);DS19:=IF(A9<9999{230},0.006,-DS);DS21:= IF(A9<9999{230},0.008,-DS);AJ2:=A9>146 AND A9<200;AJ21:=A9>144 AND A9<146;AJ22:=A9>142 AND A9<144;AJ23:=A9>140 AND A9<142;AJ24:=A9>138 ANDA9<140;AJ25:=A9>136 AND A9<138;AJ26:=A9>134 AND A9<136;AI29:=A9>704 AND A9<706;AI28:=A9>702 AND A9<704;AI27:=A9>698 AND A9<700;AI2:=A9>696 AND A9<698;AI21:=A9>694 AND A9<696;AI22:=A9>692 AND A9<694;AI23:=A9>690 AND A9<692;AI24:=A9>688 AND A9<690;AI25:=A9>686 AND A9<688;AI26:=A9>684 AND A9<686;AH2:=A9>1315 AND A9<1365;AH21:=A9>1311 ANDA9<1313;AH22:=A9>1309 AND A9<1311;AH23:=A9>1307 AND A9<1309; AH24:=A9>1305 AND A9<1307;AH25:=A9>1303 ANDA9<1305;AH26:=A9>1299 AND A9<1301;AH27:=A9>1297 AND A9<1299; AA28:=A9>1860 AND A9<1862;AA27:=A9>1856 ANDA9<1858;AA2:=A9>1854 AND A9<1856;AA21:=A9>1852 ANDA9<1854;AA22:=A9>1848 AND A9<1850;AA23:=A9>1846 AND A9<1848;AA24:=A9>1844 ANDA9<1846;AA25:=A9>1842 AND A9<1844;AA26:=A9>1840 AND A9<1842; AL2:=A9>3290 AND A9<3292;AL21:=A9>3066 ANDA9<3068;AL22:=A9>3288 AND A9<3290;AL23:=A9>3292 ANDA9<3294;AL24:=A9>3294 AND A9<3296;AL25:=A9>3296 AND A9<3298;AL26:=A9>3068 ANDA9<3070;AL27:=A9>93054 AND A9<3056;AL28:=A9>93020 AND A9<3044; AK27:=A9>4711 AND A9<4713;AK2:=A9>4709 ANDA9<4711;AK21:=A9>4707 AND A9<4709;AK22:=A9>4705 ANDA9<4707;AK23:=A9>4703 AND A9<4705;AK24:=A9>4701 AND A9<4703;AK25:=A9>4699 ANDA9<4701;AK26:=A9>4697 AND A9<4699;AK28:=A9>4695 AND A9<4697; AB2:=A9>5280 AND A9<5320;AB21:=A9>5278 ANDA9<5280;AB22:=A9>5276 AND A9<5278;AB23:=A9>5274 AND A9<5276; AB24:=A9>5272 AND A9<5274;AB25:=A9>5270 ANDA9<5272;AB26:=A9>5268 AND A9<5270;AB27:=A9>5266 AND A9<5268; AC2:=A9>6520 AND A9<6523;{14180=6523}AC21:=A9>6523 ANDA9<6526;AC22:=A9>6526 AND A9<6529;AC23:=A9>6529 ANDA9<6532;AC24:=A9>6532 AND A9<6535;AE2:=A9>6828 AND A9<6878;AF2:=A9>7132 ANDA9<7134;AF21:=A9>7134 AND A9<7136;AF22:=A9>7136 ANDA9<7138;AF23:=A9>7138 AND A9<7140;AG2:=A9>7337 AND A9<7339;AG22:=A9>7339 ANDA9<7341;AG222:=A9>7341 AND A9<7343;AX2:=A9>8014 AND A9<8016;AX22:=A9>8016 ANDA9<8018;AX222:=A9>8018 AND A9<8020;AP2:=A9>8480 AND A9<8482;AP22:=A9>8482 ANDA9<8484;AP222:=A9>8484 AND A9<8486;AQ:=A9>8558 AND A9<8560;AQ2:=A9>8556 ANDA9<8558;AQ22:=A9>8554 AND A9<8556;AQ222:=A9>8552 ANDA9<8554;AQ2222:=A9>8550 AND A9<8552;AQ23:=A9>8548 AND A9<8550;AQ24:=A9>8546 ANDA9<8548;AQ25:=A9>8544 AND A9<8546;AQ26:=A9>8542 ANDA9<8544;AQ27:=A9>8540 AND A9<8542;AM2:=A9>99015 AND A9<9017;AM21:=A9>99017 ANDA9<9019;AM22:=A9>99019 AND A9<9021;AM23:=A9>99021 ANDA9<9023;AM24:=A9>99023 AND A9<9025;AM25:=A9>99025 AND A9<9027;AM26:=A9>99027 ANDA9<9029;AM27:=A9>99029 AND A9<9031;AM28:=A9>99037 AND A9<9040;AH1:=A9>786 AND A9<788;AH11:=A9>784 AND A9<786;AH12:=A9>782 AND A9<784;AH13:=A9>794 AND A9<796;AH14:=A9>792 ANDA9<794;AH15:=A9>790 AND A9<792;AH16:=A9>788 AND A9<790;AI1:=A9>520 AND A9<522;AI11:=A9>530 AND A9<532;AI12:=A9>522 AND A9<524;AI13:=A9>528 AND A9<530;AI14:=A9>526 ANDA9<528;AI15:=A9>524 AND A9<526;AI16:=A9>522 AND A9<524;AG1:=A9>1360 AND A9<1362;AG11:=A9>1358 ANDA9<1360;AG12:=A9>1356 AND A9<1358;AG13:=A9>1354 AND A9<1356; AG14:=A9>1366 AND A9<1368;AG15:=A9>1364 ANDA9<1366;AG16:=A9>1362 AND A9<1364;AL1:=A9>2333 AND A9<2383;AL11:=A9>2331 ANDA9<2333;AL12:=A9>2329 AND A9<2331;AL13:=A9>2327 ANDA9<2329;AL14:=A9>2325 AND A9<2327;AL15:=A9>2323 AND A9<2325;AL16:=A9>2321 ANDA9<2323;AL17:=A9>2319 AND A9<2321;AA1:=A9>3826 AND A9<3876;AA11:=A9>3824 ANDA9<3826;AA12:=A9>3822 AND A9<3824;AA13:=A9>3820 ANDA9<3822;AA14:=A9>3818 AND A9<3820;AA15:=A9>3816 AND A9<3818;AA16:=A9>3814 ANDA9<3816;AA17:=A9>3812 AND A9<3814;AK1:=A9>4856 AND A9<4906;AK11:=A9>4854 ANDA9<4856;AK12:=A9>4852 AND A9<4854;AK13:=A9>4850 AND A9<4852; AK14:=A9>4848 AND A9<4850;AK15:=A9>4846 ANDA9<4848;AK16:=A9>4844 AND A9<4846;AK17:=A9>4842 AND A9<4844; AB0:=A9>6140 AND A9<6142;AB1:=A9>6142 ANDA9<6144;AB11:=A9>6144 AND A9<6146;AB12:=A9>6146 AND A9<6148; AB13:=A9>6148 AND A9<6150;AB14:=A9>6152 ANDA9<6154;AB15:=A9>6154 AND A9<6156;AB16:=A9>6156 ANDA9<6158;AB17:=A9>6158 AND A9<6160;AB18:=A9>6160 AND A9<6162; AC1:=A9>6802 AND A9<6804;AC11:=A9>6800 ANDA9<6802;AC12:=A9>6798 AND A9<6800;AC13:=A9>6796 ANDA9<6798;AC14:=A9>6794 AND A9<6796;AC15:=A9>6792 AND A9<6794; AC16:=A9>96790 AND A9<6892;AC17:=A9>96788 AND A9<6790;AE14:=A9>6914 AND A9<6916;AE12:=A9>6908 ANDA9<6910;AE11:=A9>6910 AND A9<6912;AE1:=A9>6912 AND A9<6914;AF1:=A9>7258 AND A9<7260;AF11:=A9>7260 ANDA9<7262;AF111:=A9>7262 AND A9<7264;AF1111:=A9>7264 AND A9<7266; AX1:=A9>7422 AND A9<7499; AW1:=A9>7420 AND A9<7422;AX11:=A9>7418 AND A9<7420; AW11:=A9>8095 AND A9<8099;AWP1:=A9>8932 AND A9<8934; AWP11:=A9>8934 AND A9<8936;AWP12:=A9>8936 AND A9<8938; AWP13:=A9>8938 AND A9<8940;AWP14:=A9>8942 AND A9<8944; AWP15:=A9>8944 AND A9<8946;AWP16:=A9>8946 AND A9<8948;个股:=5*POW(SMA((C-LLV(L,65))/(HHV(H,65)-LLV(L,65)*DARS),6,1),2)*XS;{}Y1:=IF(A9<8948,0.5*(AWP15+AWP16+AWP13+AWP14+AK17+AH11+AH1 2+AH13+AH14+AH15+AH16+AI11+AI12+AI13+AI14+AI15+AI16+AG11+AG12+AG13+AG14+AG15+AG16+AL11+AL12+AL13+AL14+AL15+AL16+AL17 +AA11+AA12+AA13+AA14+AA15+AA16+AA17+AK11+AK12+AK13+AK14+A K15+AK16+AWP12+AWP11+AWP1+AA1+AB1+AC1+AE1+AF1+AG1+AH1+A I1+AK1+AL1+AX1+AW1+AW11+AX11+AF11+AF111+AF1111+AE11+AE12+ AE14+AC11+AC12+AC13+AC14+AC15+AC16+AC17+AB11+AB12+AB13+AB 14+AB15+AB16+AB17+AB0+AB18)*14,DS1)*DARS;{反特别版处理}{}Y31:=IF(A9<8940,0.5*(AA1+AB1+AC1+AE1+AF1+AG1+AH1+AI1+AK1+A L1+AX1+AW1+AW11+AX11+AF11+AF111+AF1111)*14,DS31);{反特别版处理}{}Y41:=IF(A9<8940,0.5*(AA1+AB1+AC1+AE1+AF1+AG1+AH1+AI1+AK1+A L1+AX1+AW1+AW11+AX11+AF11+AF111+AF1111)*14,DS41);{反特别版处理}{}Y51:=IF(A9<8940,0.5*(AA1+AB1+AC1+AE1+AF1+AG1+AH1+AI1+AK1+A L1+AX1+AW1+AW11+AX11+AF11+AF111+AF1111)*14,DS51);{反特别版处理}{}Y61:=IF(A9<8940,0.5*(AA1+AB1+AC1+AE1+AF1+AG1+AH1+AI1+AK1+A L1+AX1+AW1+AW11+AX11+AF11+AF111+AF1111)*14,DS61);{反特别版处理}}Y71:=IF(A9<8940,0.5*(AA1+AB1+AC1+AE1+AF1+AG1+AH1+AI1+AK1+AL 1+AX1+AW1+AW11+AX11+AF11+AF111+AF1111)*14,DS61);{反特别版处理} Y81:=IF(A9<8940,0.5*(AA1+AB1+AC1+AE1+AF1+AG1+AH1+AI1+AK1+AL1 +AX1+AW1+AW11+AX11+AF11+AF111+AF1111)*14,DS61);{反特别版处理} {}Y2:=IF(A9<9050,0.5*(AI29+AF23+AF21+AF22+AK27+AK28+AL27+AL28+ AA27+AA28+AI27+AI28+AJ21+AJ22+AJ23+AJ24+AJ25+AJ26+AI21+AI22+ AI23+AI24+AI25+AI26+AH21+AH22+AH23+AH24+AH25+AH26+AH27+AA2 1+AA22+AA23+AA24+AA25+AA26+AL21+AL22+AL23+AL24+AL25+AL26+A K21+AK22+AK23+AK24+AK25+AK26+AB2+AB21+AB22+AB23+AB24+AB25 +AB26+AB27+AM28+AM27+AM26+AM25+AM24+AM23+AM22+AM21+AM2 +AA2+AH2+AI2+AJ2+AK2+AL2+AC2+AE2+AF2+AG2+AX2+AP2+AX22+AX2 22+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG22+AG222+AQ23+A Q24+AQ25+AQ26+AQ27+AC21+AC22+AC23+AC24),DS2)*DARS;{反特别版处理}{}Y5:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+AX2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG22+AG222),DS5);{反特别版处理}{}Y7:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+AX2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG22+AG222),DS7);{反特别版处理}{}Y9:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+AX2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG22+AG222),DS9);{反特别版处理}{}Y11:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+AX2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG 22+AG222),DS11);{反特别版处理}{}Y13:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+A X2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG 22+AG222),DS13);{反特别版处理}{}Y15:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+A X2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG 22+AG222),DS15);{反特别版处理}{}Y17:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+A X2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG 22+AG222),DS17);{反特别版处理}{}Y19:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+A X2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG 22+AG222),DS19);{反特别版处理}{}Y21:=IF(A9<9050,0.5*(AA2+AH2+AI2+AJ2+AL2+AC2+AE2+AF2+AG2+A X2+AP2+AX22+AX222+AP22+AP222+AQ2+AQ22+AQ222+AQ+AQ2222+AG 22+AG222),DS21);{反特别版处理}Y3:=CROSS(Y2,个股);Y4:=CROSS(Y1,个股) AND 个股>0.6;Y32:=CROSS(Y31,个股) AND 个股>0.6;Y42:=CROSS(Y41,个股) AND 个股>0.6;Y52:=CROSS(Y51,个股) AND 个股>0.6;Y62:=CROSS(Y61,个股) AND 个股>0.6;Y72:=CROSS(Y71,个股) AND 个股>0.6;Y82:=CROSS(Y81,个股) AND 个股>0.6;Y6:=CROSS(Y5,个股);Y8:=CROSS(Y7,个股);Y10:=CROSS(Y9,个股);Y12:=CROSS(Y11,个股);Y14:=CROSS(Y13,个股);Y16:=CROSS(Y15,个股); Y18:=CROSS(Y17,个股);Y20:=CROSS(Y19,个股);Y22:=CROSS(Y21,个股); DRAWICON((Y4 > 0),箱顶*1.03,2);DRAWICON((Y32> 0),箱顶*1.03,2);DRAWICON((Y42 > 0),箱顶*1.03,2);DRAWICON((Y52 > 0),箱顶*1.03,2);DRAWICON((Y62 > 0),箱顶*1.03,2);DRAWICON((Y72 > 0),箱顶*1.03,2);DRAWICON((Y82 > 0),箱顶*1.03,2);DRAWICON((Y3 > 0),长底,1);DRAWICON((Y6> 0),长底,1);DRAWICON((Y8> 0),长底,1);DRAWICON((Y10 > 0),长底,1);DRAWICON((Y12 > 0),长底,1); DRAWICON((Y14 > 0),长底,1);DRAWICON((Y16 > 0),长底,1);DRAWICON((Y18> 0),长底,1);DRAWICON((Y20> 0),长底,1);DRAWICON((Y22 > 0),长底,1);Z1:=STRCAT(HYBLOCK,' ');Z2:=STRCAT(Z1,FGBLOCK);Z3:=STRCAT(Z2,DYBLOCK);Z4:=STRCAT(Z3,' ');DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z4,GNBLOCK)),COLORCYAN;。

通达信指标公式源码跌涨趋势线主图指标

通达信指标公式源码跌涨趋势线主图指标

通达信指标公式源码跌涨趋势线主图指标A1:=MA(H,6);A2:=MA(L,6);A3:IF(C>REF(A1,1),A2,IF(C<REF(A2,1),A1,A2)),COLORGRAY,LI NETHICK1;涨家数:INDEXADV,NODRAW, ;跌家数:INDEXDEC,NODRAW,COLORGREEN;C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(涨停,OPEN,CLOSE,1,0),COLORRED;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,1,0),COLORGREEN;VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);短线: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,COLORYELLOW,NODRAW;STICKLINE(短线,O,(C+O)/2,1.5,0),COLORYELLOW;F:=100*(C-REF(C,1))/REF(C,1);今小昨:=IF(C<REF(O,1) AND F<0,1,0);P1:=今小昨;今小前:=IF(C<REF(O,2) AND F<0,1,0);P2:=今小前;爱琴海:P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,COLORMAGENTA,NODRAW;STICKLINE(爱琴海,C,(C+O)/2,1.5,0),COLORMAGENTA;{自动分割画线}E1P:DRAWLINE(C=LLV(C,30),LOW,C=LLV(C,10) AND C>LLV(C,22),LLV(LOW,3),1),LINETHICK2,COLORYELLOW;E1PP:DRAWLINE(C=LLV(C,10),LOW,C=LLV(C,5) AND C>LLV(C,10),LLV(LOW,3),1),LINETHICK2,COLORRED;K:=(C+H+L)/3;D:=MA(K,4);B:REF(C,1)<D AND C>D AND D<REF(D,1),NODRAW,COLORRED;DRAWICON(REF(C,1)>D AND C<D AND D>REF(D,1),H*1.002, 2);DRAWICON(REF(C,1)<D AND C>D AND D<REF(D,1),E1PP*0.965 ,23);。

通达信指标公式源码 一定大涨指标 无未来

通达信指标公式源码 一定大涨指标 无未来

MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);五强:=MA5>REF(MA5,1);十强:=MA10>REF(MA10,1);小均强:=五强AND 十强;强势线1:=HHV(MA((((LOW + HIGH) + CLOSE) / 3),8),60);强势线2:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.18),8),20);强势线3:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.258),8),10);强势线4:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.08),80),13);开始走强1:=强势线1>REF(强势线1,1);开始走强2:=强势线2>REF(强势线2,1);开始走强3:=强势线3>REF(强势线3,1);开始走强4:=强势线4>REF(强势线3,1);双强1:=开始走强1 AND 开始走强2;双强2:=开始走强2 AND 开始走强3;双强3:=开始走强2 AND 开始走强3;双强4:=开始走强3 AND 开始走强4;三强:=开始走强1 AND 开始走强2 AND 开始走强3;四强:=开始走强1 AND 开始走强2 AND 开始走强3 AND 开始走强4;强势为王:=双强1 OR 双强2 OR 双强3 OR 双强4 OR 三强OR 四强; VV:=(C+L+H)/3;DSA:=SMA(XMA(VV,15),2,1);底部1:=DSA*0.9518;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);MA4:=MA(CLOSE,60);五日走强:=MA1>REF(MA1,1);十日走强:=MA2>REF(MA2,1);二十日走强:=MA3>REF(MA3,1);六十日走强:=MA4>REF(MA4,1);低位主升:=五日走强AND 十日走强AND 六十日走强;主升浪:=五日走强AND 十日走强AND 二十日走强;大主升浪:=十日走强AND 二十日走强AND 六十日走强;大主升浪2:=五日走强AND 十日走强AND 二十日走强AND 六十日走强; 总主升:=主升浪AND 大主升浪AND 大主升浪2;总主升浪:=低位主升OR 主升浪OR 大主升浪OR 大主升浪2 OR 总主升; 低买:L<底部1 AND 总主升浪AND 强势为王ANDC<DSA,NODRAW,COLORGREEN,LINETHICK1;STICKLINE(低买,0,15,2,0),COLORGREEN;猎股:L<底部1 AND C<DSA AND 强势为王,NODRAW,COLORYELLOW,LINETHICK1;STICKLINE(猎股,15,30,2,0),COLORYELLOW;猎股大王出击:=低买AND 猎股AND H<DSA;A:=MA(C,30);A1:=A*1.1;A4:=A*0.9;A2:=A1-(A1-A4)*0.191;持仓:=IF(HIGH*1.01>A2 OR REF(HIGH,1)>REF(A2,1),A1,A4);生命线:=IF(HIGH*1.01>A2 OR REF(HIGH,1)>REF(A2,1),A2,A4);主升持仓:=持仓>生命线;主升1:=持仓>REF(持仓,1);主升2:=生命线>REF(生命线,1);主升3:=主升1 AND 主升2;主升猎股王:=(猎股大王出击AND 主升持仓AND 主升3) OR (猎股AND 主升持仓AND 主升3);主升:(主升猎股王AND 小均强) OR (猎股AND 小均强),NODRAW,COLORMAGENTA,LINETHICK1;STICKLINE(主升,30,45,2,0),COLORMAGENTA;LOWV:=LLV(LOW,9);HIGHV:=HHV(HIGH,9);RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);K:EMA(RSV,3),COLORWHITE;D:MA(K,3),COLORYELLOW;。

最准确的开端点 通达信公式源码

最准确的开端点 通达信公式源码

最准确的开端点通达信公式源码本文目的是介绍一个最准确的开端点的通达信公式源码。

我们将提供一个简单的策略来确定开端点,并保证无法确认的内容不会被引用。

策略概述为了确定最准确的开端点,我们将使用以下策略:1. 收集数据:首先,我们需要收集相关的股票市场数据,包括开盘价、收盘价、最高价、最低价等。

2. 计算指标:根据收集的数据,我们将使用一些技术指标来帮助确定开端点。

例如,可以使用移动平均线、相对强弱指标(RSI)、布林带等。

3. 确定开端点:结合技术指标的结果,我们将制定一套规则来确定最准确的开端点。

这可以是一些简单的条件,例如当某个技术指标的数值超过或低于某一阈值时,我们认为出现了一个开端点。

4. 验证结果:为了确保策略的准确性,我们需要对历史数据应用该策略,并验证开端点的准确性。

我们可以通过比较策略确定的开端点与实际市场走势的变化来评估策略的有效性。

通达信公式源码以下是一个使用通达信公式语言编写的简单示例代码,用于实现上述策略:公式名称:开端点策略变量定义:变量A:收盘价变量B:开盘价变量C:最高价变量D:最低价变量E:移动平均线计算过程:1. 通过收集数据,获取变量A、B、C和D的值。

2. 计算移动平均线变量E。

3. 判断开端点条件:- 当收盘价大于移动平均线E时,认为是一个开端点。

- 当最低价低于移动平均线E时,认为是一个开端点。

- 可根据实际需求添加其他条件。

4. 输出开端点结果。

示例代码:IF(A > E OR D < E, 1, 0)注意事项:- 请根据实际需要修改变量定义和条件判断部分。

- 此示例代码仅供参考,请自行根据实际情况进行修改和调试。

结论在这篇文档中,我们介绍了一个最准确的开端点的通达信公式源码。

通过收集数据、计算指标、确定开端点和验证结果,我们可以使用这个策略来找到最准确的开端点。

请注意,示例代码仅为参考,具体实现应根据实际需求进行修改和调试。

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