均线金叉通达信指标公式源码
通达信30日均线金叉60日均线的选股公式这么编写
通达信30日均线金叉60日均线的选股公式这么编写通达信30日均线金叉60日均线的选股公式这么编写CROSS (MA(C,30),MA(C,60));通达信20日均线金叉30日均线的选股公式这么编写,CROSS(MA(C,20),MA(C,30));通达信五日均线金叉10日均线的选股公式这么编写均线买入条件选股:CROSS(MA(CLOSE,5),MA(CLOSE,10));这样的公式不用自己编写,通达信选股指标中就有。
有时间用心把系统自带的选股公式多看看就知道了。
功能---选股器---条件选股:拉动“条件选股公式”下拉箭头,把MA买入-均线买入条件选股选取出来,加入条件,执行选股即可。
求高人写个通达信量金叉MACD金叉均线金叉选股公式CRO SS(MACD.DIF,MACD.DEA) AND CROSS(MA(V,5),MA(V, 10))追问再加上一个5日均线上穿10日均线吧,和前两个弄到一起谢谢您回答CROSS(MACD.DIF,MACD.DEA) AND CROSS(MA(V,5),MA(V,1 0)) AND CROSS(MA(C,5),MA(C,10))能做一个“阴线回踩60日均线”的选股公式吗?XG:CROSS (MA(C,60),L) AND C>MA(C,60) AND O>C;求高人指点:一个选股公式,就是60日均线与120日均线距离很近,而且方向走平向上,20日均线向上金叉这两条均线,当日股价在2 0日均线上,涨幅5%以下(MAX(MA(C,60),MA(C,120))-MI N(MA(C,60),MA(C,120)))/MAX(MA(C,60),MA(C,120))< 0.025 ANDMA(C,120)>=REF(HHV(MA(C,120),20),1) AND C>MA(C,20) A ND C<REF(C,1)*1.05 ANDCOUNT(CROSS(MA(C,20),MA(C,60)),4)=1 AND COUNT(CRO SS(MA(C,20),MA(C,120)),4)=1求助,240日均线走平或向上,30日均线上穿60日均线的选股公式?MA1:=MA(C,30);MA2:=MA(C,60);MA3:=MA(C,240);XG:CROSS(MA1,MA2) AND MA3>=REF(MA3,1) AND C>O A ND C>MA1;求高人写个通达信量金叉MACD金叉均线金叉选股公式,再加上一个5日均线上穿10日均线吧,和前两个弄到一起CRO SS(MACD.DIF,MACD.DEA) AND CROSS(MA(V,5),MA(V, 10)) AND CROSS(MA(C,5),MA(C,10))。
【指标公式源码下载】通达信六线金叉选股指标公式
VOL3:=MA(VOL,20);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
N:=9;M1:=3;M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
MTM:=CLOSE-REF(CLOSE,12);
MAMTM:=MA(MTM,6);
DIE:=MA(CLOSE,10)-MA(CLOSE,50);
AMA:=MA(DIF,10);
COUNT(CROSS(MNT(CROSS(VOL1,VOL2),5)>=1 AND
【指标公式源码下载】通达信六线金叉选股指标公式 通达信六线金叉选股指标公式 ma1:=ma(close,5); ma2:=ma(close,10); ma3:=ma(close,30); ma4:=ma(close,60); ma5:=ma(close,120); ma6:=ma(close,250); vol1:=ma(vol,5); vol2:=ma(vol,10); vol3:=ma(vol,20); dif:=ema(close,12)-ema(close,26); dea:=ema(dif,9); macd:=(dif-dea)*2; n:=9;m1:=3;m2:=3; rsv:=(close-llv(low,n))/(hhv(high,n)-llv(low,n))*100; k:=sma(rsv,m1,1); d:=sma(k,m2,1); j:=3*k-2*d; mtm:=close-ref(close,12); mamtm:=ma(mtm,6); die:=ma(close,10)-ma(close,50); ama:=ma(dif,10); count(cross(ma1,ma2),5)>=1 and count(cross(vol1,vol2),5)>=1 and count(cross(dif,dea),7)>=1 and count(cross(dea,dif),7)=0 and count(cross(j,k),7)>=1 and count(cross(k,d),7)>=1 and count(cross(mtm,mamtm),7)>=1 and count(cross(die,ama),7)>=1 ;
通达信 几种均线实用的选股 指标源码
通达信几种均线实用的选股指标源码1、四合一金叉选股公式一个5日均线金叉10日均线,成交量5日均量金叉10日均量,MACD金叉,KDJ 金叉,上面四个条件满足三个同时金叉就可以成立的选股公式:M1:=MA(CLOSE,5);M2:=MA(CLOSE,10);MA1:=MA(VOL,5);MA2:=MA(VOL,10);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);A1:=DEA;F1:=DIF;K1:="";J1:="";金叉1:=CROSS(M1,M2);金叉2:=CROSS(MA1,MA2);金叉3:=CROSS(F1,A1);金叉4:=CROSS(J1,K1);选1:=金叉1 AND 金叉2 AND 金叉3 AND 金叉4;选2:=金叉1 AND 金叉2 AND 金叉3;选3:=金叉2 AND 金叉3 AND 金叉4;选4:=金叉1 AND 金叉2 AND 金叉4;选5:=金叉1 AND 金叉3 AND 金叉4;选股:选1 OR 选2 OR 选3 OR 选4 OR 选5;2、均价线,均量线,KDJ三金叉MA5:=EMA(C,5);MA10:=EMA(C,10);MV5:=EMA(V,5);MV10:=EMA(V,10);K:=""(9,3,3);D:=""(9,3,3);V1:=MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND C>REF (C,1) AND C/O>;VV1:=MV5>REF(MV5,1) AND MV10>=REF(MV10,1) ANDV>REF(V,1)* ;KD1:=K>REF(K,1) AND D>=REF(D,1);VA:=COUNT(CROSS(K,D),4)>=1 AND COUNT(CROSS(MA5,MA10),4)>=1 ANDCOUNT(CROSS(MV5,MV10),4)>=1;XG1:IF(V1 AND VV1 AND KD1 AND VA,1,0);3、5、10 日线,5、10日均量线,MACD。
通达信指标公式源码 操盘均线 主图源码
网1:=EXPMA(C,5),COLORYELLOW;网2:=EXPMA(网1,2);网3:=EXPMA(网2,2);网33:EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;TJ1A:IF(网1>网2,网1,网2),COLORLICYAN;TJ2A:IF(网1>网3,网1,网3),COLORGREEN;TJ3A:网1,COLORYELLOW,LINETHICK2;{QS}网A:=EXPMA(CLOSE,5),COLORWHITE;网B:=EXPMA(CLOSE,33),COLORFF00FF,LINETHICK3;IF(网B<REF(网B,1),网B,DRAWNULL),COLOR00FF00,LINETHICK3;IF(网B<REF(网A,1),网A,DRAWNULL),COLORWHITE,LINETHICK1;IF(网1<REF(网B,1),网A,DRAWNULL),COLORGREEN,LINETHICK1;{HJ}HH:=CONST(HHV(H,160));LL:=CONST(LLV(L,160));{160可改成你习惯锁定的日K线数}HL1:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.76,0.04)); HL2:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.80,0.08)); HL3:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.84,0.12)); HL4:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.88,0.16)); HL5:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.92,0.20)); HL6:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.96,0.24)); DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR0080FF;DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.00,0.04,0,'主题投资:')COLOR0000FF;DRAWTEXT_FIX(1,0.07,0.04,0,EXTERNSTR(0,1))COLOR0000FF; {生成数据时第1项输1与这里1一致,描述部分输"主题投资"}DRAWTEXT_FIX(1,0.00,0.08,0,'主营业务:')COLORFF00FF;DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2))COLORFF00FF; {生成数据时第1项输2与这里2一致,描述部分输"主营业务"}DRAWTEXT_FIX(1,0.00,0.12,0,'出千概念:')COLORFF88FF;DRAWTEXT_FIX(1,0.07,0.12,0,EXTERNSTR(0,3))COLORFF88FF; {生成数据时第1项输3与这里3一致,描述部分输"出千概念"}日:=50;昨前:=3;高1:=REF(HHV(H,日),昨前);低1:=REF(LLV(L,日),昨前);H1:=高1-(高1-低1)*0.191;H2:=高1-(高1-低1)*0.382;H3:=高1-(高1-低1)*0.5;H4:=高1-(高1-低1)*0.618;H5:=高1-(高1-低1)*0.809;L1:=低1+(高1-低1)*1.191;L2:=低1+(高1-低1)*1.382;L3:=低1+(高1-低1)*1.5;L4:=低1+(高1-低1)*1.618;L5:=低1+(高1-低1)*1.809;短压:REFDATE(高1,DATE),COLORGREEN,LINETHICK1;支撑19.1%:REFDATE(H1,DATE),COLORYELLOW;支撑38.2%:REFDATE(H2,DATE),COLORMAGENTA;支撑50%:REFDATE(H3,DATE),COLORLIGRAY;支撑61.8%:REFDATE(H4,DATE),COLORWHITE,LINETHICK1;支撑80.9%:REFDATE(H5,DATE),COLORWHITE;低:REFDATE(低1,DATE),COLORWHITE;阻力119.1%:REFDATE(L1,DATE),COLORYELLOW;阻力138.2%:REFDATE(L2,DATE),COLORMAGENTA;阻力150%:REFDATE(L3,DATE),COLORLIGRAY;阻力161.8%:REFDATE(L4,DATE),COLORRED;阻力180.9%:REFDATE(L5,DATE),COLORWHITE;{三线金叉显示钱袋子的源码}DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA1:=EMA(DIFF1,9);MACDD:=CROSS(DIFF1,DEA1);均线1:=CROSS(MA(C,5),MA(C,10));量线1:=CROSS(MA(V,5),MA(V,10));DRAWICON(MACDD AND 均线1 AND 量线1,L-0.20,25);{同时金叉显示25号图标};DRAWICON( 均线1 AND 量线1,L-0.20,1);DRAWTEXT(量线1,L-0.25,'量'),COLORYELLOW;总额:=AMOUNT;买:=IF(O=C AND(C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L ));买%:=买/AMOUNT*100;流入:=AMOUNT*买%/10000000000;流出:=AMOUNT/100000000-流入;净流:=(流入-流出);总额3:=SUM(AMOUNT,3);流入3:=SUM(流入,3);流出3:=SUM(流出,3);净流3:=SUM(流入-流出,3);总额5:=SUM(AMOUNT,5);流入5:=SUM(流入,5);流出5:=SUM(流出,5);净流5:=SUM(流入-流出,5);总额10:=SUM(AMOUNT,10);流入10:=SUM(流入,10);流出10:=SUM(流出,10);净流10:=SUM(流入-流出,10);画:=CONST(FINDHIGH(总额10,0,190,1));DRAWTEXT_FIX(1,0.71,0.07,0,'净流(亿):'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.78,0.05,0,'1日'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.83,0.05,0,'3日'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.88,0.05,0,'5日'),COLORMAGENTA,LINETHICK1; DRAWTEXT_FIX(1,0.93,0.05,0,'10日'),COLORMAGENTA,LINETHICK1; DRAWNUMBER_FIX(1,0.78,0.10,0,CONST((净流))),COLORYELLOW; DRAWNUMBER_FIX(1,0.83,0.10,0,CONST((净流3))),COLORYELLOW; DRAWNUMBER_FIX(1,0.88,0.10,0,CONST((净流5))),COLORYELLOW; DRAWNUMBER_FIX(1,0.93,0.10,0,CONST((净流10))),COLORYELLOW;。
通达信 几种均线实用地选股 指标源码
通达信几种均线实用的选股指标源码1、四合一金叉选股公式一个5日均线金叉10日均线,成交量5日均量金叉10日均量,MACD金叉,KDJ 金叉,上面四个条件满足三个同时金叉就可以成立的选股公式:M1:=MA(CLOSE,5);M2:=MA(CLOSE,10);MA1:=MA(VOL,5);MA2:=MA(VOL,10);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);A1:=DEA;F1:=DIF;K1:="KDJ.K";J1:="KDJ.J";金叉1:=CROSS(M1,M2);金叉2:=CROSS(MA1,MA2);金叉3:=CROSS(F1,A1);金叉4:=CROSS(J1,K1);选1:=金叉1 AND 金叉2 AND 金叉3 AND 金叉4;选2:=金叉1 AND 金叉2 AND 金叉3;选3:=金叉2 AND 金叉3 AND 金叉4;选4:=金叉1 AND 金叉2 AND 金叉4;选5:=金叉1 AND 金叉3 AND 金叉4;选股:选1 OR 选2 OR 选3 OR 选4 OR 选5;2、均价线,均量线,KDJ三金叉MA5:=EMA(C,5);MA10:=EMA(C,10);MV5:=EMA(V,5);MV10:=EMA(V,10);K:="KDJ.K"(9,3,3);D:="KDJ.D"(9,3,3);V1:=MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND C>REF(C,1) AND C/O>1.01;VV1:=MV5>REF(MV5,1) AND MV10>=REF(MV10,1) ANDV>REF(V,1)*1.2 ;KD1:=K>REF(K,1) AND D>=REF(D,1);VA:=COUNT(CROSS(K,D),4)>=1 AND COUNT(CROSS(MA5,MA10),4)>=1 ANDCOUNT(CROSS(MV5,MV10),4)>=1;XG1:IF(V1 AND VV1 AND KD1 AND VA,1,0);3、5、10 日线,5、10日均量线,MACD。
通达信极品金叉选股指标公式
通达信极品金叉选股指标公式VAR1:=MA(CLOSE,5);VAR2:=MA(CLOSE,10);VAR3:=MA(CLOSE,20);VAR4:=MA(CLOSE,30);VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;VAR6:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1500;VAR7:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1500;VAR8:=EMA(VAR6,8);VAR9:=TROUGHBARS(3,15,1)<10;VAR10:=PEAKBARS(3,15,1)<10;VAR11:=IF(VAR9=1,50,0);VAR12:=IF(VAR10=1,50,0);底部勇于介入:= IF(VAR11=50,50,0);头部果断出局:= IF(VAR12=50,100,0);买入:IF( 底部勇于介入>REF(底部勇于介入,1),50,0),COLORRED;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(短趋势,趋势线),0.7) AND 短趋势>0.95*趋势线,趋势线,'★低买'),COLORRED,LINETHICK1;VAR13:=PEAKBARS(3,15,1)<10;VAR15:=IF(VAR13=1,2,0);顶:= IF(VAR15=2,2,0);顶A:IF(顶>REF(顶,1),50,0),COLORGREEN;DRAWTEXT(顶A=50,45,'快跑'),COLOR00FF00;选股公式: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;趋势线:=EMA(Q3, 3);低买: REF(CROSS(短趋势,趋势线),0.7) AND 短趋势>0.95*趋势线;。
通达信指标公式源码均线画线黄金分割指标
自动C:=INDEXC;自动H:=INDEXH;自动L:=INDEXL;自动O:=INDEXO;大盘低:=CONST(LLV(自动L,叠加行指));大盘高:=CONST(HHV(自动H,叠加行指));大盘差:=大盘高-大盘低;当前低:=CONST(LLV(L,叠加行指));当前高:=CONST(HHV(H,叠加行指));当前差:=当前高-当前低;比:=当前差/大盘差;大盘:当前低+(自动C-大盘低)*比,NODRAW; 变H:=当前低+(自动H-大盘低)*比;变L:=当前低+(自动L-大盘低)*比;变O:=当前低+(自动O-大盘低)*比;自动HYC:=HY_INDEXC;自动HYH:=HY_INDEXH;自动HYL:=HY_INDEXL;自动HYO:=HY_INDEXO;大盘低HY:=CONST(LLV(自动HYL,叠加行指)); 大盘高HY:=CONST(HHV(自动HYH,叠加行指)); 大盘差HY:=大盘高HY-大盘低HY;当前低HY:=CONST(LLV(L,叠加行指));当前高HY:=CONST(HHV(H,叠加行指));当前差HY:=当前高HY-当前低HY;比HY:=当前差HY/大盘差HY;行业:当前低HY+(自动HYC-大盘低HY)*比HY,NODRAW;变HYH:=当前低HY+(自动HYH-大盘低HY)*比HY;变HYL:=当前低HY+(自动HYL-大盘低HY)*比HY;变HYO:=当前低HY+(自动HYO-大盘低HY)*比HY;STICKLINE(CURRBARSCOUNT<=叠加行指,变H,变L,0,0),COLOR888888;STICKLINE(CURRBARSCOUNT<=叠加行指,变O,大盘,2,0),COLOR888888;STICKLINE(CURRBARSCOUNT<=叠加行指AND 大盘>=变O,变O,大盘,2,1),COLORAAAAAA; STICKLINE(CURRBARSCOUNT<=叠加行指,变HYH,变HYL,0,0),COLORYELLOW;STICKLINE(CURRBARSCOUNT<=叠加行指,变HYO,行业,2,0),COLORYELLOW;STICKLINE(CURRBARSCOUNT<=叠加行指AND 行业>=变HYO,变HYO,行业,2,1),COLORYELLOW; MA1:MA(CLOSE,M1)COLORWHITE;MA2:MA(CLOSE,M2)COLORYELLOW;MA3:MA(CLOSE,M3)COLORMAGENTA;MA4:MA(CLOSE,M4)COLORLIBLUE;MA5:MA(CLOSE,M5)COLORCYAN;昨天MA1:=REF(MA1,1);昨天MA2:=REF(MA2,1);昨天MA3:=REF(MA3,1);昨天MA4:=REF(MA4,1);昨天MA5:=REF(MA5,1);M1向上:=BARSLASTCOUNT(MA1>REF(MA1,1));M2向上:=BARSLASTCOUNT(MA2>REF(MA2,1));M3向上:=BARSLASTCOUNT(MA3>REF(MA3,1));M4向上:=BARSLASTCOUNT(MA4>REF(MA4,1));M5向上:=BARSLASTCOUNT(MA5>REF(MA5,1));SA:=MAX(MAX(MA1,MA2),MAX(MA3,MA4));SB:=MIN(MIN(MA1,MA2),MIN(MA3,MA4));JD1:=MAX(MAX(MA(C,M1),MA(C,M2)),MA(C,M3));JX1:=MIN(MIN(MA(C,M1),MA(C,M2)),MA(C,M3));多头N:=(昨天MA1>=昨天MA2 AND 昨天MA2>=昨天MA3 AND 昨天MA3>=昨天MA4 AND 昨天MA4>=昨天MA5);向上N:=(MA1>昨天MA1 AND MA2>昨天MA2 AND MA3>昨天MA3 AND MA4>昨天MA4 AND MA5>昨天MA5);多头:BARSLASTCOUNT(多头N>0)COLORWHITE,NODRAW;向上:BARSLASTCOUNT(向上N>0)COLORWHITE,NODRAW;五线顺上N:=多头>0 AND 向上>0;一阳三线:(JX1/JD1*100>98.5 AND C>JD1 AND O<JX1 AND REF(MA(C,M3),1)/MA(C,M3)<1 AND C>MA(C,M5))COLORLIRED,NODRAW;四线粘合:100*(SA-SB)/SB,COLORYELLOW,NODRAW;N线顺上:BARSLASTCOUNT(五线顺上N>0)COLORMAGENTA,NODRAW;DRAWTEXT(一阳三线=1,L,' 一阳'),COLORLIRED;显示:=黄金分割*1000-1000;DRAWRECTREL(显示, 1,1000,1,RGB(94,38,18));{顶} DRAWRECTREL(显示,189,1000,189,RGB(94,38,18));{八零九} DRAWRECTREL(显示,374,1000,374,RGB(94,38,18));{六一八} DRAWRECTREL(显示,495,1000,495,RGB(94,0,0));{半分位} DRAWRECTREL(显示,610,1000,610,RGB(94,38,18));{三八二} DRAWRECTREL(显示,807,1000,807,RGB(94,38,18));{一九一} DRAWRECTREL(显示,999,1000,1000,RGB(94,38,18));{底}{上轨趋势线}WA1:=(REF(H,上轨+1)=HHV(H,上轨+1+1))*趋势开关;WB1:=FILTER(WA1,上轨+1);WC1:=BACKSET(WB1,上轨+1+1); {高}WD1:=FILTER(WC1,上轨+1);{高点}WT0:=BACKSET(ISLASTBAR,BARSLAST(WC1)+1);WU0:=WT0>REF(WT0,1); {前高}WR1:=BACKSET(ISLASTBAR,BARSLAST(WD1)+1);WS1:=WR1>REF(WR1,1); {前一高}WR2:=BACKSET(WS1,REF(BARSLAST(WD1),1)+2);WS2:=WR2>REF(WR2,1); {前二高}WR3:=BACKSET(WS2,REF(BARSLAST(WD1),1)+2);WS3:=WR3>REF(WR3,1); {前三高}压力1:DRAWLINE(WS1,H,WC1,H,1)COLOR004000;压力2:DRAWLINE(WS2,H,WS1,H,1)COLOR004000;压力3:DRAWLINE(WS3,H,WS2,H,1)COLOR004000,LINETHICK2; 高:=REF(L,BARSLAST(WU0))COLOR808080,DOTLINE;高1:REF(H,BARSLAST(WS1))COLOR808080,DOTLINE;高2:REF(H,BARSLAST(WS2))COLOR808080,DOTLINE;高3:=REF(H,BARSLAST(WS3))COLOR808080,DOTLINE;{下轨趋势线}WA2:=(REF(L,下轨+1)=LLV(L,下轨+1+1))*趋势开关;WB2:=FILTER(WA2,下轨+1);WC2:=BACKSET(WB2,下轨+1+1);{低}WD2:=FILTER(WC2,下轨+1);{低点}WT:=BACKSET(ISLASTBAR,BARSLAST(WC2)+1);WU:=WT>REF(WT,1); {前低}WT1:=BACKSET(ISLASTBAR,BARSLAST(WD2)+1);WU1:=WT1>REF(WT1,1); {前一低}WT2:=BACKSET(WU1,REF(BARSLAST(WD2),1)+2);WU2:=WT2>REF(WT2,1); {前二低}WT3:=BACKSET(WU2,REF(BARSLAST(WD2),1)+3);WU3:=WT3>REF(WT3,1); {前三低}下轨3:DRAWLINE(WU1,L,WC2,L,1)COLORLIRED,LINETHICK2; 下轨2:DRAWLINE(WU2,L,WU1,L,1)COLOR0080FF,LINETHICK2;下轨1:DRAWLINE(WU3,L,WU2,L,1)COLOR0080FF,LINETHICK2;低:=REF(L,BARSLAST(WU))COLOR808080,DOTLINE;低1:REF(L,BARSLAST(WU1))COLOR808080,DOTLINE;低2:REF(L,BARSLAST(WU2))COLOR808080,DOTLINE;低3:=REF(L,BARSLAST(WU3))COLOR808080,DOTLINE;{上轨信号}向下:=BARSLASTCOUNT(高3>高2);向上K:=BARSLASTCOUNT(高3<高2);DRAWTEXT(向下=1,H,'向下'),COLORLIGREEN;DRAWTEXT(向上K=1,H,'向上'),COLORLIGREEN;下跌:=BARSLASTCOUNT(高3>高2 AND 高2>高1 AND 低2>低1);DRAWTEXT(下跌=1,H,'下跌'),COLORLIGREEN;回落:=BARSLASTCOUNT(高3<高2 AND 高2>高1 AND 低2>低1);DRAWTEXT(回落=1,H,'回落'),COLORLIGREEN;加速跌:=BARSLASTCOUNT(高3>高2 AND 高2>高1 AND 高1>高AND 压力1<压力2);{正轨信号}上升:=BARSLASTCOUNT(低2>低3);下降:=BARSLASTCOUNT(低2<低3);DRAWTEXT(上升=1,L,'上升'),COLORMAGENTA;DRAWTEXT(下降=1,L,'下降'),COLORGREEN;转强:=BARSLASTCOUNT(低2<低1);转弱:=BARSLASTCOUNT(低2>低1);DRAWTEXT(转强=1,L,'转强'),COLORMAGENTA;DRAWTEXT(转弱=1,L,'转弱'),COLORGREEN;KQW:=CONST(C);加速上:=BARSLASTCOUNT(低>低1);加速涨:BARSLAST(加速上=1 AND KQW>下轨3 AND 下轨3>下轨2 AND 下轨2>REF(下轨2,1) AND 高1<高2),COLORYELLOW,NODRAW;反弹:=BARSLASTCOUNT(低3>低2 AND 低2>低1 AND 低1<低);STICKLINE(CLOSE>=OPEN,CLOSE,HIGH,0,0), COLORRED;STICKLINE(CLOSE>=OPEN,OPEN,LOW,0,0), COLORRED;STICKLINE(CLOSE<OPEN,OPEN,HIGH,0,0), COLOR00EC00;STICKLINE(CLOSE<OPEN,CLOSE,LOW,0,0), COLOR00EC00;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2.9.2,0),COLOR0000A1;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1.9.2,0),COLOR0000B5;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.9.8,0),COLOR0000C5;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.4,0),COLOR0000D4;STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,0.2,0),COLOR0000FF;STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2.9.2,0),COLOR009000;STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1.9.2,0),COLOR00B400;STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.9.8,0),COLOR00C100;STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.4,0),COLOR00DB00;STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.2,0),COLOR00EC00;涨停:=(CLOSE/REF(C,1)>=1.09)AND C=H;STICKLINE(涨停,L,H,0,0),COLORYELLOW;STICKLINE(涨停,CLOSE,OPEN,2.9.2,0),COLOR00AAFF;STICKLINE(涨停,CLOSE,OPEN,1.9.2,0),COLOR00CCFF;STICKLINE(涨停,CLOSE,OPEN,0.9.8,0),COLOR00FFFF;跌停:=(C/REF(C,1)<=0.91)AND C=L;STICKLINE(跌停,L,H,0,0),COLORGREEN;STICKLINE(跌停,CLOSE,OPEN,2.9.2,0),COLOR009000;STICKLINE(跌停,CLOSE,OPEN,1.9.2,0),COLOR00B400;STICKLINE(跌停,CLOSE,OPEN,0.9.8,0),COLOR00C100;DRAWTEXT(加速涨,L,'加速涨')COLORYELLOW;DRAWTEXT(反弹=1,L,'反弹'),COLORYELLOW;DRAWTEXT(加速跌=1,H,'加速跌'),COLORLIGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=黄金分割,0.0,0.160,0,'80.9%')COLOR0000F7; DRAWTEXT_FIX(CURRBARSCOUNT=黄金分割,0.0,0.345,0,'61.8%')COLOR0000F7; DRAWTEXT_FIX(CURRBARSCOUNT=黄金分割,0.0,0.465,0,' 50%')COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=黄金分割,0.0,0.580,0,'38.2%')COLOR0000F7; DRAWTEXT_FIX(CURRBARSCOUNT=黄金分割,0.0,0.780,0,'19.1%')COLOR0000F7;。