【股票指标公式下载】-【通达信】神奇均线(红杏出墙、蚂蚁上树、红衣侠女、均线互换)

合集下载

神奇线(开花线)通达信指标公式源码

神奇线(开花线)通达信指标公式源码

神奇线(开花线) (主图源码)M5:=MA(O,5);M10:=MA(O,10);M20:=MA(O,20);M30:=MA(O,30);M40:=MA(O,40);M60:=MA(O,60);M80:=MA(O,80);M90:=MA(O,90);M120:=MA(O,120);M180:=MA(O,180);M270:=MA(O,270);M360:=MA(O,360);M480:=MA(O,480);M540:=MA(O,540);M640:=MA(O,640);M720:=MA(O,720);M810:=MA(O,810);M960:=MA(O,960);M1080:=MA(O,1080);M1440:=MA(O,1440);M1920:=MA(O,1920);M2160:=MA(O,2160);M2560:=MA(O,2560);M3240:=MA(O,3240);M4320:=MA(O,4320);M5120:=MA(O,5120);M6480:=MA(O,6480);M7290:=MA(O,7290);M8640:=MA(O,8640);M9720:=MA(O,9720);M10240:=MA(O,10240);M12960:=MA(O,12960);M14580:=MA(O,14580);LL1:=IF(PERIOD=14 OR PERIOD=11 OR PERIOD=10 OR PERIOD=18 OR PERIOD=17 OR PERIOD=16 OR PERIOD=15 OR PERIOD=7,1,0);H20%:IF(ISLASTBAR AND LL1=1,H-H*0.2,DRAWNULL),COLORGRAY,LINETHICK7; DRAWNUMBER(H20%<>DRAWNULL AND LL1=1,H20%,H20%),COLORGRAY;H30%:IF(ISLASTBAR AND LL1=1,H-H*0.3,DRAWNULL),COLORGREEN,LINETHICK7; DRAWNUMBER(H30%<>DRAWNULL AND LL1=1,H30%,H30%),COLORGREEN;H40%:IF(ISLASTBAR AND LL1=1,H-H*0.4,DRAWNULL),COLORGRAY,LINETHICK7; DRAWNUMBER(H40%<>DRAWNULL AND LL1=1,H40%,H40%),COLORGRAY;H50%:IF(ISLASTBAR AND LL1=1,H-H*0.5,DRAWNULL),COLORGREEN,LINETHICK7; DRAWNUMBER(H50%<>DRAWNULL AND LL1=1,H50%,H50%),COLORGREEN;H60%:IF(ISLASTBAR AND LL1=1,H-H*0.6,DRAWNULL),COLORGRAY,LINETHICK7; DRAWNUMBER(H60%<>DRAWNULL AND LL1=1,H60%,H60%),COLORGRAY;H70%:IF(ISLASTBAR AND LL1=1,H-H*0.7,DRAWNULL),COLORGREEN,LINETHICK7; DRAWNUMBER(H70%<>DRAWNULL AND LL1=1,H70%,H70%),COLORGREEN;H80%:IF(ISLASTBAR AND LL1=1,H-H*0.8,DRAWNULL),COLORGRAY,LINETHICK5; DRAWNUMBER(H80%<>DRAWNULL AND LL1=1,H80%,H80%),COLORGRAY;H90%:IF(ISLASTBAR AND LL1=1,H-H*0.9,DRAWNULL),COLORGREEN,LINETHICK7; DRAWNUMBER(H90%<>DRAWNULL AND LL1=1,H90%,H90%),COLORGREEN;H99%:IF(ISLASTBAR AND LL1=1,H-H*0.99,DRAWNULL),COLORYELLOW,LINETHICK7; DRAWNUMBER(H99%<>DRAWNULL AND LL1=1,H99%,H99%),COLORGREEN;LL2:=IF(PERIOD=5,1,0);QC:IF(ISLASTBAR AND LL2=1, REF(CLOSE,1),DRAWNULL),COLORLIGREEN,LINETHICK4; ZHANG2%:IF(ISLASTBAR ANDLL2=1,QC+QC*0.02,DRAWNULL),COLORWHITE,LINETHICK3;{DRAWNUMBER(ZHANG2%<>DRAWNULL ANDLL2=1,ZHANG2%,ZHANG2%),COLORWHITE;}ZHANG3%:=IF(ISLASTBAR ANDLL2=1,QC+QC*0.03,DRAWNULL),COLORBLUE,LINETHICK4;{DRAWNUMBER(ZHANG3%<>DRAWNULL ANDLL2=1,ZHANG3%,ZHANG3%),COLORWHITE;}ZHANG4%:=IF(ISLASTBAR ANDLL2=1,QC+QC*0.04,DRAWNULL),COLORWHITE,LINETHICK3;{DRAWNUMBER(ZHANG4%<>DRAWNULL ANDLL2=1,ZHANG4%,ZHANG4%),COLORWHITE;}ZHANG5%:IF(ISLASTBAR ANDLL2=1,QC+QC*0.05,DRAWNULL),COLORBLUE,LINETHICK4;{DRAWNUMBER(ZHANG5%<>DRAWNULL ANDLL2=1,ZHANG5%,ZHANG5%),COLORWHITE;}ZHANG6%:=IF(ISLASTBAR ANDLL2=1,QC+QC*0.06,DRAWNULL),COLORWHITE,LINETHICK3;{DRAWNUMBER(ZHANG6%<>DRAWNULL ANDLL2=1,ZHANG6%,ZHANG6%),COLORWHITE;}ZHANG7%:=IF(ISLASTBAR ANDLL2=1,QC+QC*0.07,DRAWNULL),COLORBLUE,LINETHICK4;{DRAWNUMBER(ZHANG7%<>DRAWNULL ANDLL2=1,ZHANG7%,ZHANG7%),COLORWHITE;}ZHANG8%:IF(ISLASTBAR ANDLL2=1,QC+QC*0.08,DRAWNULL),COLORWHITE,LINETHICK3;{DRAWNUMBER(ZHANG8%<>DRAWNULL ANDLL2=1,ZHANG8%,ZHANG8%),COLORWHITE;}ZHANG9%:=IF(ISLASTBAR ANDLL2=1,QC+QC*0.09,DRAWNULL),COLORBLUE,LINETHICK3;{DRAWNUMBER(ZHANG9%<>DRAWNULL ANDLL2=1,ZHANG8%,ZHANG8%),COLORWHITE;}ZHANG10%:IF(ISLASTBAR ANDLL2=1,QC+QC*0.1,DRAWNULL),COLORBLUE,LINETHICK4;{DRAWNUMBER(ZHANG10%<>DRAWNULL ANDLL2=1,ZHANG10%,ZHANG10%),COLORWHITE;}DIE2%:IF(ISLASTBAR AND LL2=1,QC-QC*0.02,DRAWNULL),COLORGRAY,LINETHICK3; {DRAWNUMBER(DIE2%<>DRAWNULL AND LL2=1,DIE2%,DIE2%),COLORGRAY;}DIE3%:=IF(ISLASTBAR AND LL2=1,QC-QC*0.03,DRAWNULL),COLORBLUE,LINETHICK4; {DRAWNUMBER(DIE3%<>DRAWNULL AND LL2=1,DIE3%,DIE3%),COLORGRAY;}DIE4%:=IF(ISLASTBAR AND LL2=1,QC-QC*0.04,DRAWNULL),COLORGRAY,LINETHICK3; {DRAWNUMBER(DIE4%<>DRAWNULL AND LL2=1,DIE4%,DIE4%),COLORGRAY;}DIE5%:IF(ISLASTBAR AND LL2=1,QC-QC*0.05,DRAWNULL),COLORBLUE,LINETHICK4; {DRAWNUMBER(DIE5%<>DRAWNULL AND LL2=1,DIE5%,DIE5%),COLORGRAY;}DIE6%:=IF(ISLASTBAR AND LL2=1,QC-QC*0.06,DRAWNULL),COLORGRAY,LINETHICK3; {DRAWNUMBER(DIE6%<>DRAWNULL AND LL2=1,DIE6%,DIE6%),COLORGRAY;}DIE7%:=IF(ISLASTBAR AND LL2=1,QC-QC*0.07,DRAWNULL),COLORBLUE,LINETHICK4; {DRAWNUMBER(DIE7%<>DRAWNULL AND LL2=1,DIE7%,DIE7%),COLORGRAY;}DIE8%:IF(ISLASTBAR AND LL2=1,QC-QC*0.08,DRAWNULL),COLORGRAY,LINETHICK3; {DRAWNUMBER(DIE8%<>DRAWNULL AND LL2=1,DIE8%,DIE8%),COLORGRAY;}DIE9%:=IF(ISLASTBAR AND LL2=1,QC-QC*0.09,DRAWNULL),COLORGRAY,LINETHICK3; {DRAWNUMBER(DIE9%<>DRAWNULL AND LL2=1,DIE9%,DIE9%),COLORGRAY;}DIE10%:IF(ISLASTBAR AND LL2=1,QC-QC*0.1,DRAWNULL),COLORBLUE,LINETHICK4; {DRAWNUMBER(DIE10%<>DRAWNULL AND LL2=1,DIE10%,DIE10%),COLORGRAY;} B10:MIN(M10,M5),LINETHICK3,COLORRED;B20:MIN(M20,B10),COLORBLUE;B30:MIN(M30,B20),COLORGREEN;B40:MIN(M40,B30),COLORGREEN;B60:MIN(M60,B40),COLORCYAN;B80:MIN(M80,B60),COLORRED;B90:MIN(M90,B80),COLORMAGENTA;B120:MIN(M120,B90),COLORMAGENTA;B180:MIN(M180,B120),COLORLIGRAY;B270:MIN(M270,B180),COLORLIBLUE;B360:MIN(M360,B270),COLORLIGREEN;B480:MIN(M480,B360),COLORLICYAN;B640:MIN(M640,B480),COLORLICYAN;B720:MIN(M720,B640),COLORLIRED;B810:MIN(M810,B720),COLORLIMAGENTA;B960:MIN(M960,B810),COLORLIMAGENTA;B1080:MIN(M1080,B960),COLORLIMAGENTA;B1440:MIN(M1440,B1080),COLORYELLOW;B1920:MIN(M1920,B1440),COLORYELLOW;B2160:MIN(M2160,B1920),COLORYELLOW;B2560:MIN(M2560,B2160),COLORWHITE;B3240:MIN(M3240,B2560),COLORGREEN;B4320:MIN(M4320,B3240),COLORGREEN;B5120:MIN(M5120,B4320),COLORGREEN;B6480:MIN(M6480,B5120),COLORCYAN;B7290:MIN(M7290,B6480),COLORCYAN;B8640:MIN(M8640,B7290),COLORCYAN;B9720:MIN(M9720,B8640),COLORCYAN;B10240:MIN(M10240,B9720),COLORCYAN;B12960:MIN(M12960,B10240),COLORCYAN; B14580:MIN(M14580,B12960),COLORCYAN;S10:MAX(M10,M5),LINETHICK3,COLORRED; S20:MAX(M20,S10),COLORBLUE;S30:MAX(M30,S20),COLORGREEN;S40:MAX(M40,S30),COLORGREEN;S60:MAX(M60,S40),COLORCYAN;S80:MAX(M80,S60),COLORRED;S90:MAX(M90,S80),COLORMAGENTA;S120:MAX(M120,S90),COLORMAGENTA;S180:MAX(M180,S120),COLORLIGRAY;S270:MAX(M270,S180),COLORLIBLUE;S360:MAX(M360,S270),COLORLIGREEN;S480:MAX(M480,S360),COLORLICYAN;S640:MAX(M640,S480),COLORLICYAN;S720:MAX(M720,S640),COLORLIRED;S810:MAX(M810,S720),COLORLIMAGENTA; S960:MAX(M960,S810),COLORLIMAGENTA; S1080:MAX(M1080,S960),COLORLIMAGENTA; S1440:MAX(M1440,S1080),COLORYELLOW; S1920:MAX(M1920,S1440),COLORYELLOW; S2160:MAX(M2160,S1920),COLORYELLOW;S2560:MAX(M2560,S2160),COLORWHITE;S3240:MAX(M3240,S2560),COLORGREEN;S4320:MAX(M4320,S3240),COLORGREEN;S5120:MAX(M5120,S4320),COLORGREEN;S6480:MAX(M6480,S5120),COLORCYAN;S7290:MAX(M7290,S6480),COLORCYAN;S8640:MAX(M8640,S7290),COLORCYAN;S9720:MAX(M9720,S8640),COLORCYAN;S10240:MAX(M10240,S9720),COLORCYAN; S12960:MAX(M12960,S10240),COLORCYAN; S14580:MAX(M14580,S12960),COLORCYAN;。

【股票指标公式下载】-【通达信】天衣无缝(趋势线、短趋势、空方)

【股票指标公式下载】-【通达信】天衣无缝(趋势线、短趋势、空方)

【通达信】天衣无缝(趋势线、短趋势、空方)-指标公式源码KS:=((CLOSE-EMA(CLOSE,13))/EMA(CLOSE,13))*(-100);趋势线:=EMA(KS/10+EMA(CLOSE,10),3);AA:= -100*(趋势线-CLOSE)/趋势线;AC:=EMA(AA,5);{STICKLINE(CLOSE>=OPEN AND AA>=0 ANDAA>=AC,OPEN,CLOSE,2.8,1),COLOR0000FF;STICKLINE(OPEN>CLOSE AND AA>=0 ANDAA>=AC,CLOSE,OPEN,2.8,0),COLOR0000FF;STICKLINE(CLOSE>=OPEN AND AA>=0 ANDAA<AC,OPEN,CLOSE,2.8,1),COLORFF00FF;STICKLINE(OPEN > CLOSE AND AA >= 0 AND AA <AC,CLOSE,OPEN,2.8,0),COLORFF00FF;STICKLINE(CLOSE>=OPEN AND AA<0,OPEN,CLOSE,2.8,0),COLORD38784; STICKLINE(OPEN>CLOSE AND AA<0,CLOSE,OPEN,2.8,0),COLORD38784;}AG:=SUM((VOL/FINANCE(7)),1);{STICKLINE(((((((CLOSE >= OPEN) AND (DATATYPE < 7)) ) AND (AG >= 8)) AND (AG < 15)) AND (AA >= 0)),OPEN,(OPEN * 1.008),10,0),COLOR0000FF; STICKLINE(((((((OPEN > CLOSE) AND (DATATYPE < 7)) ) AND (AG >= 8)) AND (AG < 15)) AND (AA >= 0)),(OPEN * 1.008),OPEN,10,0),COLOR0000FF; STICKLINE(((((((CLOSE >= OPEN) AND (DATATYPE < 7)) ) AND (AG >= 8)) AND (AG < 15)) AND (AA < 0)),OPEN,(OPEN * 0.998),10,0),COLOR0000FF; STICKLINE(((((((OPEN > CLOSE) AND (DATATYPE < 7)) ) AND (AG >= 8)) AND (AG < 15)) AND (AA < 0)),(OPEN * 0.998),OPEN,10,0),COLOR0000FF; STICKLINE((((((CLOSE >= OPEN) AND (DATATYPE < 7)) ) AND (AG >= 15)) AND (AA >= 0)),OPEN,(OPEN * 1.008),15,0),COLORFFFFFF;STICKLINE((((((OPEN > CLOSE) AND (DATATYPE < 7)) ) AND (AG >= 15)) AND (AA >= 0)),(OPEN * 1.008),OPEN,15,0),COLORFFFFFF;STICKLINE((((((CLOSE >= OPEN) AND (DATATYPE < 7)) ) AND (AG >= 15)) AND (AA < 0)),OPEN,(OPEN * 0.998),15,0),COLORFFFFFF;STICKLINE((((((OPEN > CLOSE) AND (DATATYPE < 7)) ) AND (AG >= 15)) AND (AA < 0)),(OPEN * 0.998),OPEN,15,0),COLORFFFFFF;}SSL:=EMA(CLOSE,3);MMV:=EMA(SLOPE(CLOSE,22)*20+CLOSE,55);MM:=1;{(IF(((DATATYPE > 7) AND (DATATYPE < 11)),MA(MMV,1),IF((DATATYPE = 7),MA(MMV,4),IF((DATATYPE = 6),MA(MMV,8),IF((DATATYPE =5),MA(MMV,16),IF((DATATYPE = 4),MA(MMV,32),0))))) );}SA:=0.985;SS:=MA(CLOSE,5);DD:=MA(CLOSE,13);GG:=MA(CLOSE,21);短趋势:IF(SS>MM,SSL,SA),LINETHICK1,COLORWHITE;空方:IF(SSL>MM,MA(MMV,8),SA),LINETHICK1,COLORFFFFFF;多方:IF(SSL>MM,MA(MMV,16),SA),LINETHICK2,COLORFF00FF;{IF(SA,SSL<=MM,DRAWNULL),LINETHICK3,COLORFF0000;}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<-28*20;VARDY:=((100 - CROSS(76,VAR5Y)) AND VAR3Y>5*20);DRAWICON(CROSS(76,VAR5Y) AND VAR3Y>5,HIGH*1.0099,5),COLORFFFFFF; VAREY:=(CROSS(VAR9Y,VARAY) AND VARAY<10 AND VAR3Y<-30 AND VAR2Y>3)*30; VARFY:= -((VARAY<11 AND VAR5Y<15 AND VAR3Y<-26)*10);DRAWICON(CROSS(VARFY,-9),LOW*0.998,4);能量线:=DMA((CLOSE+OPEN)/2,(VOL/(SMA(VOL,4,1)*4)));VAR3C:=EMA(能量线,1);VAR4C:=REF(能量线,1);STICKLINE(VAR3C>VAR4C,VAR3C,VAR4C,2.5,0),COLOR00FFFF;X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);LL:=REF(CLOSE,2);MM1:=((SMA(MAX((CLOSE - LL),0),6,1) / SMA(ABS((CLOSE - LL)),6,1)) * 100); DB:=IF(MM1<REF(MM1,1) AND MM1>79,MM1,0);DRAWICON(CROSS(Y,X),(LOW * 0.985),1),LINETHICK3,COLORRED; DRAWICON(CROSS(X,Y),(HIGH * 1.02),2),LINETHICK2,COLOR00FF00; {DRAWTEXT(DB,(HIGH * 1.02),'↓顶'),LINETHICK2,COLOR00FF00;}VAR1:=LLV(LOW,21);VAR2:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);DD1:=EMA(((0.667 * REF(AK1,1)) + (0.333 * AK1)),2);VAR3:=LLV(LOW,55);VAR4:=HHV(HIGH,34);VAR5:=EMA((((CLOSE - VAR3) / (VAR4 - VAR3)) * 100),3);VAR6:=((AK + VAR5) / 2);VAR7:=EMA(((0.667 * REF(VAR5,1)) + (0.333 * AK1)),2);VAR8:=EMA(VAR6,5);BB:=EMA(((0.667 * REF(VAR8,1)) + (0.333 * VAR8)),2);AB:=CROSS(AK1,AK);BB1:=(CROSS(AK1,BB) AND (BB < 30));CD:=(BB1 * 0.6);DRAWTEXT(CD=0.6,LOW*0.99,'↑底2'),LINETHICK1,COLOR33CC99; DRAWTEXT(AB=1,LOW*0.99,'↑底1'),LINETHICK1,COLORWHITE;C1:=(CLOSE+LOW+HIGH)/3;C2:=EMA(C1,6);C3:=EMA(C2,5);C4:=CROSS(C2,C3);DRAWTEXT(C4,LOW/1.01,'★'),LINETHICK3,COLORRED;C5:=CROSS(C3,C2);DRAWTEXT(C5,HIGH*1.03,'★'),LINETHICK3,COLORBLUE;STICKLINE(CLOSE<OPEN ANDREF(CLOSE,1)>REF(OPEN,1),REF(CLOSE,1),REF(CLOSE,1),20,0),COLORFFFFFF;RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;RSV12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;K12:=SMA(RSV12,3,1);D12:=SMA(K12,3,1);J12:=3*K12-2*D12;RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;K24:=SMA(RSV24,3,1);D24:=SMA(K24,3,1);J24:=3*K24-2*D24;压力位:IF(CROSS(J24,J),H,REF(H,BARSLAST(CROSS(J24,J)))),COLORGREEN,LINETH ICK2;支撑位:IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24)))),COLOR77AAFF,LINET HICK2;【通达信】天衣无缝(趋势线、短趋势、空方)-指标公式效果图(文档来源:若水财经社区)。

通达信准确率%以上选股公式

通达信准确率%以上选股公式

通达信准确率%以上选股公式专买老鼠仓{老鼠仓}AA1:=AMOUNT/V;BB1:=L<aa1*0.9;< p="">CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<ma(c,5)*0.921;< p="">EE1:=V<ma(v,5)*1.5;< p="">FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF1,(LOW* 0.97),'老鼠仓'),COLOR4080FF;老鼠仓是个很不错的指标,信号发出一般都在一个波段的底部起涨之时。

根据本人的实践,使用指标时候要注意几点:1 该指标可以添加到任何一个主图里面去,比如MA均线什么的。

2 出现信号当天买进股票,第二天收阳继续持股,直到出阴为止。

3 第二天出阴考虑卖出,非常适合短线操作!老鼠仓(选股公式)AA1:=AMOUNT/V;BB1:=L<aa1*0.9;< p="">CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<ma(c,5)*0.921;< p="">EE1:=V<ma(v,5)*1.5;< p="">老鼠仓:BB1 AND CC1 AND DD1 AND EE1;理想选股(选股公式)VAR1:=MA((LOW+HIGH+CLOSE)/3,5);VAR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);VAR3:=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,1);VAR4:=VAR1>REF(VAR1,1) AND REF(VAR1,1)<ref(var1,2);< p="">VAR5:=LOWHHV(VAR1,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;VAR6:=VAR5 AND COUNT(VAR4,2);VAR7:=VAR6 AND NOT(REF(VAR6,1));VAR8:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);VAR9:=EMA(MA(C,13),13);VAR10:=FILTER((LLV(VAR8,2)=LLV(VAR8,7) AND COUNT(VAR8<0,2) ANDCROSS(VAR8,MA(VAR8,2)))=1,5);VAR11:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;VAR12:=FILTER(((CROSS(VAR11,0) OR CROSS(C,VAR9)) AND VAR10)=1,3);VAR13:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));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:=(VAR12 OR VAR13) AND VAR10;买2:=(VAR12 OR VAR13) AND VAR3;买3:=(VAR12 OR VAR13) AND VAR2;买4:=(VAR2 AND VAR10) OR (VAR3 AND VAR10);买5:=(金叉AND VAR3) OR (金叉AND VAR2) OR (金叉AND VAR10);ST:=EXIST(C/REF(C,1)>1.06,50);输出:=(买1 OR 买2 OR 买3 OR 买4 OR 买5 OR VAR7) AND ST;MA5:=MA(C,5),COLORWHITE;X:=(3*C+L+O+H)/6;多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X ,4)+15*REF(X,5)+14*RE F(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*RE F(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF (X,17)+2*REF(X,18)+ REF(X,20))/210,COLORFF00FF,LINETHICK1;AB:=DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(L OW,3),HHV(HIGH,3),1),CO LORYELLOW;CROSS(MA5,多空线) and CROSS(C,AB) and 输出;点石成金(选股公式)KS13:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*(-100);RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;FASTK:=SMA(RSV,3,1);K:=SMA(FASTK,3,1);D:=SMA(K,5,1);Var1:=CLOSE/MA(CLOSE,40)*100<76;Var2:=CLOSE/MA(CLOSE,60)*100<74;Var3:=HIGH>LOW*1.051;Var4:=Var3 AND COUNT(Var3,5)>1;Var4 AND (Var1 OR Var2) AND REF(KS13,1)>=10 AND REF(KS13,1)/KS13>=1.13 ANDCLOSE/REF(CLOSE,1)>=1.02;牛市绝底(选股公式)VAR1:=REF(CLOSE,1);VAR2:=((SMA(MAX((CLOSE - VAR1),0),7,1) / SMA(ABS((CLOSE - VAR1)),7,1)) * 100);VAR3:=((SMA(MAX((CLOSE - VAR1),0),13,1) / SMA(ABS((CLOSE - VAR1)),13,1)) * 100);VAR4:=((100 * (HHV(HIGH,48) - LOW)) / HHV(HIGH,48));VAR5:=((100 * (HIGH - LLV(LOW,48))) / LLV(LOW,48));牛市绝底:VAR2 < 15 AND VAR3 < 20 AND (VAR2 + VAR3) > 20 AND VAR4 > 40 AND BARSCOUNT(CLOSE) > 47;通达信精准选股公式:条件选股公式源码:年认同价:=MA(C,240);价格中枢:=(SUM(年认同价,0)/(BARSSINCE(年认同价>0)+239));箱顶:=价格中枢*1.2;箱底:=价格中枢*0.8;毛利润率:=FINANCE(21)/FINANCE(20);成长价值:=年认同价*(1+毛利润率);收益价值:=年认同价+FINANCE(33);回调认同:=EMA(EXPMA(C,20),13);多头:=(回调认同>REF(回调认同,1))AND(成长价值>REF(成长价值,1))AND(收益价值>REF(收益价值,1))AND(DYNAINFO(7)>0);回调条件:=COUNT(C<回调认同,5)>=3;回调突破:=(REF(C,1)<=REF(回调认同,1))AND(C>回调认同)AND(回调条件)AND 多头; 成长条件:=COUNT(C<成长价值,5)>=3;成长突破:=(REF(C,1)<=REF(成长价值,1))AND(C>成长价值)AND(成长条件)AND 多头; 收益条件:=COUNT(C<收益价值,5)>=3;收益突破:=(REF(C,1)<=REF(收益价值,1))AND(C>收益价值)AND(收益条件)AND 多头; 箱底条件:=COUNT(C<箱底,5)>=3;箱底突破:=(REF(C,1)<=REF(箱底,1))AND(C>箱底)AND(箱底条件)AND 多头;价格条件:=COUNT(C<价格中枢,5)>=3;价格突破:=(REF(C,1)<=REF(价格中枢,1))AND(C>价格中枢)AND(价格条件)AND 多头; 箱顶条件:=COUNT(C<箱顶,5)>=3;箱顶突破:=(REF(C,1)<=REF(箱顶,1))AND(C>箱顶)AND(箱顶条件)AND 多头;突破买点:(回调突破+成长突破+收益突破+箱底突破+价格突破+箱顶突破);飞弹一号(选股公式)var1:=c/ma(c,40)*100<78;var2:=c/ma(c,60)*100<74;var3:=h>=l*1.051;var4:=var3 and count(var3,5)>=2;xg:var4 and (var1 or var2) and count(h=l and c=o and c< p="">and hhv(v/capital,30)<0.8;牛魔无双(选股公式)A4:=(HIGH-LOW)/HIGH*100+(C-REF(C,1))/REF(C,1)*100;B4:=EMA(MA(A4,50),5);c4:=B4>LLV(B4,5)*1.01 AND REF(B4,1)<ref(llv(b4,5),1)*1.01< p="">AND LLV(B4,50)=LLV(B4,5);d4:=LLV(LOW,5)=LLV(LOW,50) AND LLV(LOW,5)<hhv(low,70)*0.5;< p="">xg:c4 AND d4;火牛神功(选股公式)Var1:=DMA(CLOSE,VOL/SUM(VOL,34));Var2:=DMA(CLOSE,VOL/SUM(VOL,13));Var3:=(CLOSE-Var1)/Var1*100;Var4:=(CLOSE-Var2)/Var2*100;Var4<=-12 AND Var3<=-19 ;跟庄建仓(选股公式)A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);Var3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势:=EMA(Var3,3)-10;机构建仓区:=(A09 > 0 AND (趋势<20 OR 趋势>REF(趋势,1)AND 趋势<50));Var7:=LLV(LOW,30);Var11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;Var12:=HHV(Var11,30)*8;火焰山:=EMA(IF(LOW<=Var7 AND 趋势<40,(Var11+Var12),0),3)/618;选股:火焰山>0 AND 机构建仓区>0 AND 趋势>REF(趋势,1) AND REF(趋势,1)<ref(趋势,2);< p="">跟庄建仓源码A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);Var1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);Var2:=EMA(Var1,8);Var3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势:=EMA(Var3,3)-10;STICKLINE(趋势>80,趋势,80,5,0);DRAWICON(CROSS(趋势,0),0,1);STICKLINE((A09 > 0 AND (趋势<20 OR 趋势>REF(趋势,1)AND 趋势<50)),0,A09,6,0),colorFFff00;机构建仓区:0,LINETHICK0,colorFFFF00;Var4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;STICKLINE(趋势<=13,0,20,3,0),colorcc9900;DRAWTEXT(FILTER(趋势<=13,15),30,'准备现金'),colorcc9900;STICKLINE(趋势<=13 AND Var4>13,0,50,2,0),color0099ff;Var5:=FILTER((趋势<=13 AND Var4>13),10);DRAWTEXT(Var5,60,'买入'),color0099ff;STICKLINE(趋势>=90 AND Var4,0,30,3,0),colorgray;Var6:=FILTER((趋势>=90 AND Var4),10);DRAWTEXT(Var6,40,'清仓'),colorgray;Var7:=LLV(LOW,30);Var8:=HHV(HIGH,30);Var9:=EMA((CLOSE-Var7)/(Var8-Var7)*4,4)*25;STICKLINE(Var9>90,100,105,3,2),COLORRED;Var10:=(Var9-LLV(Var9,4))/(HHV(Var9,4)-LLV(Var9,4))*100;DRAWTEXT(IF(CROSS(Var9,Var10) AND Var9>87,95,0),88,'险'),Color00FF00; DRAWICON(CROSS(90,Var9),95,9);Var11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;Var12:=HHV(Var11,30)*8;火焰山:EMA(IF(LOW<=Var7 AND 趋势<40,(Var11+Var12),0),3)/618,COLORRED,linethick2;STICKLINE(火焰山>0,0 ,火焰山*1.2,4,0 ),COLORRED;Var13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;Var14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;趋势线: 趋势,colorff0000;Var16:=MAX(EMA(Var13,2)-EMA(Var14,5),0)*200;Var17:=EMA(Var16,5);波浪峰:Var17,stick,colorff00ff;STICKLINE(Var17<ref(var17,1),0,var17,1,0),color00ff00;<p="">Var18:=MA(趋势线,8);if(CROSS(Var2,Var18) AND Var2<15,50,0),COLORRED;DRAWTEXT(CROSS(趋势线,Var2)AND 趋势线>REF(趋势线,1)AND 趋势线<50,50,'追涨'),COLORff00ff;风险区:IF(趋势>80,趋势,80),colorff00ff;双信号"全仓"选股(选股公式)FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);TTJ:=CROSS(FF,MA15);上:=EMA(C,3),COLORBLUE,LINETHICK1;中:=EMA(C,5),COLORWHITE,LINETHICK1;下:=EMA(中,5),COLOR00FF00,LINETHICK1;QQ:= C<中;MM:=上>REF(上,1) AND REF(上,1)<="" p="">V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));</ref(var17,1),0,var17,1,0),color00ff00;<> </ref(趋势,2);<></hhv(low,70)*0.5;<></ref(llv(b4,5),1)*1.01<><></ref(var1,2);<></ma(v,5)*1.5;<></ma(c,5)*0.921;<></aa1*0.9;<></ma(v,5)*1.5;<></ma(c,5)*0.921;<></aa1*0.9;<>。

135战法通达信多个公式

135战法通达信多个公式

135战法通达信多个公式135战法,通达信新版主图一蓄势篇(1)马失前蹄(2)日月合璧(3)金屋藏娇(4)红杏出墙(5)双蹄并进(6)步步高(7)四星望月(8)小鸟依人(9)四渡赤水(10)星星点灯(11)串阳(12)串阴(13)蚂蚁上树(14)八仙过海(15)九九艳阳天(16)十全十美(17)月季花开二转势篇(1)黑客点击(2)均线互换(3)海底捞月(4)投石问路(5)动感地带(6)绝外逢生(7)一锤定音三进攻篇(1)揭竿而起(2)红衣侠女(3)破镜从圆(4)一阳穿三线(5)三线推进(6)梅开二度(7)三军集结四防御篇(1)一石二鸟(2)双飞燕(3)三剑客(4)走四方(5)暗渡阵仓(6)浪子回头(7)立竿见影五撤退篇(1)一枝独秀(2)独上高楼(3)见好就收(4)一剑封喉(5)一箭穿心(6)明修栈道(7)狗急跳墙(8)拖泥带水(9)晨钟暮鼓(10)笑里藏刀(11)落井下石(12)节外生枝(13)过河拆桥(14)金蝉脱壳(15)分道扬镳(16)突出重围(17)一阴破三线{135战法,通达信新版主图}白马线:MA(C,13),COLORRED,LINETHICK1;黑马线:MA(C,34),COLORYELLOW,LINETHICK1;烈马线:MA(C,55),COLOR9933CC,LINETHICK1;K1:=BACKSET(白马线<ref(白马线,1),2);< p="">波幅变窄:IF(K1,白马线,DRAWNULL),COLOR00CC33,LINETHICK1;K2:=BACKSET(黑马线<ref(黑马线,1),2);< p="">均线粘合:IF(K2,黑马线,DRAWNULL),COLORFFCC66,LINETHICK1;K3:=BACKSET(烈马线<ref(烈马线,1),2);< p="">随时变盘:IF(K3,烈马线,DRAWNULL),COLORBLUE,LINETHICK1;JW1:=C<ref(open,1);<="">JW2:=OPENREF(L,1);JW3:=O<ema(c,55);<="" p="">JW:=JW1 AND JW2 AND JW3;金屋藏娇:DRAWTEXT(JW,LOW-0.1,'←藏娇'),COLORYELLOW;AR1:=烈马线>黑马线AND 黑马线>白马线;AR2:=BARSLAST((C-白马线)/白马线*100<-6);AR3:=白马线>=REF(白马线,1);AR4:=COUNT(CROSS(C,白马线),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);红杏出墙:DRAWTEXT(AR6,L-0.0,'←红杏'),COLORYELLOW;Z1:STICKLINE(AR6,H,L,0.2,1),COLORYELLOW;Z2:STICKLINE(AR6,O,C,3,1),LINETHICK2,COLORYELLOW;BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;BR2:=ABS((白马线-黑马线)+(黑马线-烈马线))/C<0.2;BR3:=C>烈马线AND (REF(C,1)<="" p="" ref(c,2)REF(C,3)<="">(C,5)蚂蚁上树:DRAWTEXT(BR4 AND FILTER(BR4,10),H+0.0,'←上树'),COLOR00C5FF; TS1:=CROSS(MA(C,13),MA(C,34));TS2:=MA(C,13)<ma(c,55);< p="">TS:=TS1 AND TS2;投石问路:DRAWTEXT(TS,黑马线-0.0,'←投石'),COLORF00FF0;破镜重圆:DRAWTEXT(REF((MAX(MA(C,1),MA(C,55))-MIN(MA(C,1),MA(C,55)))/MIN(MA(C,1),MA(C,55))*1000<60,1)AND EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)<ref(ema< p="">((EMA(CLOSE,12)-EMA(CLOSE,26)),9),1) AND REF((CLOSE-REF(CLOSE,1))/REF (CLOSE,1)*100<-1,1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>3,L-0.02,'←重圆');Y:=(MA(C,13)-MA(C,55))/MA(C,13)*100;YY1:=C>MA(C,13) AND OPEN<ma(c,13);< p="">YY3:=C>MA(C,34) AND OPEN<ma(c,34);< p="">YY5:=C>MA(C,55) AND OPEN<ma(c,55);< p="">阳穿三线:DRAWTEXT(YY1 AND YY5 AND YY3,LOW-0.05,'←穿线'),COLORRED; SJ1:=ABS(MA(CLOSE,13)-MA(CLOSE,34))<c*0.01;< p="">SJ2:=ABS(MA(CLOSE,34)-MA(CLOSE,55))<c*0.01;< p="">SJ3:=CROSS(MA(CLOSE,13),MA(CLOSE,55));三军集结:DRAWTEXT(SJ1 AND SJ2 AND SJ3,HIGH+0.05,'←集结'),COLORRED; JG1:=ABS(MA(C,13)-MA(C,34))MA(C,13) OR O=MA(C,13);JG3:=C/OPEN>1.03 ;JG:=JG1 AND JG2 AND JG3;揭竿而起:DRAWTEXT(JG,H+0.0,'←揭竿'),COLORYELLOW;HR2:=白马线>=REF(白马线,3) AND 黑马线>=REF(黑马线,1) AND 烈马线>=REF (烈马线,1) AND CROSS(C,白马线) AND CROSS(C,黑马线) AND CROSS(C,烈马线); 三线推进:DRAWTEXT(HR2 AND FILTER(HR2,10),H+0.1,'←推进'),COLORFFC8FF; X1:STICKLINE(HR2 AND FILTER(HR2,10),H,L,0,1),COLORFFC8FF;X2:STICKLINE(HR2 AND FILTER(HR2,10),O,C,3,1),LINETHICK2,COLORFFC8FF;MK1:=MA(C,13)>MA(C,55) AND MA(C,34)>MA(C,55);MK:=TS1 AND MK1;梅开二度:DRAWTEXT(MK,黑马线-0.0,'←二度'),COLORF00FF0;均线互换:DRAWTEXT(CROSS(黑马线,烈马线),烈马线-0.0,'←互换'),COLOR0099FF,LINETHICK9;YZ1:=C/O>1.02 AND H/C>1.02 AND O/L<1.02;{收阳有上影} YZ2:=REF(C,1)>REF(O,1) AND O>MA(C,11);{昨收阳今大于均线} YZ:=YZ1 AND YZ2 AND Y>10;一支独秀:DRAWTEXT(YZ,H+0.02,'←独秀'),COLORF00FF0;DS1:=OPEN/C>1.04 AND O/REF(C,1)>1.03;DS2:=V*100/FINANCE(7)>0.08 AND Y>8;DS:=DS1 AND DS2;独上高楼:DRAWTEXT(DS,HIGH+0.0,'←高楼'),COLORGREEN;YJ1:=H/O>1.04;YJ2:=ABS(C-O)<c*0.03;< p="">YJ3:=C/EMA(C,13)>1.1;YJ:=YJ1 AND YJ2 AND DS2 AND YJ3 AND YZ2;一剑封喉:DRAWTEXT(YJ,HIGH+0.1,'←封喉'),COLORRED;T:=(MA(C,13)-MA(C,55))/MA(C,13)*100;NN1:=CMA(C,13);TT3:=CMA(C,34);TT5:=CMA(C,55);阴破三线:DRAWTEXT(NN1 AND TT5 AND TT3,H+0.0,'←破线'),COLORBLUE;红衣黑客:DRAWTEXT(CROSS(白马线,烈马线),烈马线-0.0,'←红客'), COLORYELLOW,LINETHICK9;投石叉:DRAWICON(CROSS(白马线,黑马线),黑马线,1);红客叉:DRAWICON(CROSS(白马线,烈马线),烈马线,1);互换叉:DRAWICON(CROSS(黑马线,烈马线),烈马线,1);分道叉:DRAWICON(CROSS(黑马线,白马线),黑马线,2);穿心叉:DRAWICON(CROSS(烈马线,白马线),烈马线,2);各为叉:DRAWICON(CROSS(烈马线,黑马线),烈马线,2);{买卖成交量}量:VOL,VOLSTICK;预量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),COLORFFFF00;V AR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买:IF(CLOSE>OPEN,V AR1*(HIGH-LOW),IF(CLOSE<="" p=""> ((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORFF00FF,POINTDOT ;卖:-IF(CLOSE>OPEN,0-V AR1*((HIGH-CLOSE)+(OPEN-LOW)), IF(CLOSE<="" ar1*(high-low),0-vol="" p="">买卖%:ABS(买/卖),LINETHICK0,COLORWHITE;二十换:SUM(V/CAPITAL*100,20),COLORRED,POINTDOT;预换:MAX(VOL,DYNAINFO(17)*REF(MA(VOL,5),1))/CAPITAL*100,COLORFFFF00,POINTDOT;STICKLINE(VOL>0,VOL,0,2.5,0),COLORFF9088;STICKLINE(买>0,0,买,2.5,0),COLORFF00FF;五日均量:MA(V,5),COLORWHITE;十日均量:MA(V,10),COLORYELLOW;红箭:DRAWICON(CROSS(五日均量,十日均量),十日均量,1);绿箭:DRAWICON(CROSS(十日均量,五日均量),十日均量,2);{绝代双骄MACD}DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED;DEA:EMA(DIF,9);DEF:=2*(DIF-DEA);MACD:(DIF-DEA)*2,COLORSTICK;进退有据:(DIF-DEA)*2,COLORFF00FF,LINETHICK1;K1:=BACKSET(进退有据<ref(进退有据,1),2);< p="">速战急归:IF(K1,进退有据,DRAWNULL),COLOR00CC33,LINETHICK1;K2:=BACKSET(DIF<ref(dif,1),2);< p="">畏法度:IF(K2,DIF,DRAWNULL),COLORLIBLUE,LINETHICK1;红柱持股:IF(MACD>REF(MACD,1),MACD,DRAWNULL),STICK,COLORRED ,LINETHICK1;绿柱持币:IF(MACD0 AND REF(DEF,1)>REF(DEF,2) AND DEF< REF(DEF,1),1,0);月:=IF(DEF<0 AND REF(DEF,1)< REF(DEF,2) AND DEF>REF(DEF,1),1,0);天堂:DRAWTEXT(CROSS(DIF,DEA) AND DIF<0,DEA,'←天'),COLORFF00FF;加油:DRAWTEXT(CROSS(DIF,DEA) AND DIF>0,DEA,'←加'),COLORYELLOW;地狱:DRAWTEXT(CROSS(DEA,DIF) AND DIF<0,DEA,'←地'),COLOR00CC33;末日:DRAWTEXT(CROSS(DEA,DIF) AND DIF>0,DEA,'←末'),COLORLIBLUE;卖出:DRAWICON(FILTER(日,3) AND 日,DEF+0.03,8);钱袋:DRAWICON(FILTER(月,3) AND 月,DEF-0.03,9);金叉:DRAWICON(CROSS(DIF,DEA),DEA,1);死叉:DRAWICON(CROSS(DEA,DIF),DEA,2);{股市天机}DIF:=EMA(CLOSE,9)-EMA(CLOSE,18);DEA:=EMA(DIF,7);DEF:=2*(DIF-DEA);量价线形:(DIF-DEA)*2,COLORSTICK;STICKLINE(DEF>=0 AND DEF>=REF(DEF,1),0,DEF,2.0,1),COLORRED;STICKLINE(DEF>=0 AND DEF< REF(DEF,1),0,DEF,2.0,0),COLORFFFF00;STICKLINE(DEF<0 AND DEF>=REF(DEF,1),0,DEF,2.0,1),COLORRED;STICKLINE(DEF<0 AND DEF< REF(DEF,1),0,DEF,2.0,0),COLORFFFF00;DIFF:EMA(CLOSE,9)-EMA(CLOSE,18),COLORWHITE;DEAA:EMA(DIFF,7),COLORYELLOW;日:=IF(DEF>0 AND REF(DEF,1)>REF(DEF,2) AND DEF< REF(DEF,1),1,0);月:=IF(DEF<0 AND REF(DEF,1)< REF(DEF,2) AND DEF>REF(DEF,1),1,0);进退有据:(DIF-DEA)*2,COLORFF00FF,LINETHICK2;K1:=BACKSET(进退有据<ref(进退有据,1),2);< p="">速战急归:IF(K1,进退有据,DRAWNULL),COLOR00CC33,LINETHICK2;卖出:DRAWICON(FILTER(日,3) AND 日,DEF+0.01,8);钱袋:DRAWICON(FILTER(月,3) AND 月,DEF-0.0,9);金叉:DRAWICON(CROSS(DIFF,DEAA),DEA,1);死叉:DRAWICON(CROSS(DEAA,DIFF),DEA,2);</ref(进退有据,1),2);<></ref(dif,1),2);<></ref(进退有据,1),2);<></c*0.03;<></c*0.01;<></c*0.01;<></ma(c,55);<></ma(c,34);<></ma(c,13);<></ref(ema<></ma(c,55);<></ref(烈马线,1),2);<></ref(黑马线,1),2);<> </ref(白马线,1),2);<>。

股市短线指标(通达信)

股市短线指标(通达信)
2、卖点:当“AK”线下勾、并与“AD”线死叉时卖出。
3、注意事项:
A、超短线炒作股票进出频繁,风险极大,务必慎之又慎。
B、当“AK”线与“AD”在“0”或“20”线附近发生金叉向上反弹时,多数情况是调整结束的低点,往往是炒底的好时机,此时可试行建仓。利用本指标确定买点,十分有效,但要十分注意是否有成交量的配合,并确立快进快出的战术。本指标如能与“神奇均线”配合使用,效果更好。
C、利用本指标确定买卖点时,请参照《庄家克星》其它指标做出决策。如此,你必将成为股市赢家。
Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
A1: (EMA(Var1,3)+EMA(Var1,6)+EMA(Var1,12)+EMA(Var1,24))/4;
A2: EMA(A1,2);
D、在确定买卖点时,请参照《庄家克星》其它指标做出决策。如此,你必将成为股市赢家。
Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
安全线: EMA(Var1,55), CIRCLEDOT;
SK: SLOPE(EMA(Var1,2),7)*15+Var1;
SD: EMA(SK,2);
B、如做中线,在“多方能量”线在“强弱分界”线上方运行时,一般可以继续持股直至“多方能量”线下穿“强弱分界”线时止赢卖出。如果所持股票是强势股,将会获得丰厚的赢利;如果所持股票是弱势股,则有可能会丢失已到手的赢利,此时应参考其它指标的卖出提示,提前清仓出局
C、当“空方能量”线在“强弱分界”线以上运行时,说明“空方能量”能量仍然大于“多方主力”能量,原则上不进行操作。即使发出买进信号,也只能做短线,快进快出。

神奇线(开花线)通达信指标公式源码

神奇线(开花线)通达信指标公式源码

神奇线(开花线) (主图源码)M5:=MA(O,5);M10:=MA(O,10);M20:=MA(O,20);M30:=MA(O,30);M40:=MA(O,40);M60:=MA(O,60);M80:=MA(O,80);M90:=MA(O,90);M120:=MA(O,120);M180:=MA(O,180);M270:=MA(O,270);M360:=MA(O,360);M480:=MA(O,480);M540:=MA(O,540);M640:=MA(O,640);M720:=MA(O,720);M810:=MA(O,810);M960:=MA(O,960);M1080:=MA(O,1080);M1440:=MA(O,1440);M1920:=MA(O,1920);M2160:=MA(O,2160);M2560:=MA(O,2560);M3240:=MA(O,3240);M4320:=MA(O,4320);M5120:=MA(O,5120);M6480:=MA(O,6480);M7290:=MA(O,7290);M8640:=MA(O,8640);M9720:=MA(O,9720);M10240:=MA(O,10240);M12960:=MA(O,12960);M14580:=MA(O,14580);LL1:=IF(PERIOD=14 OR PERIOD=11 OR PERIOD=10 OR PERIOD=18 OR PERIOD=17 OR PERIOD=16 OR PERIOD=15 OR PERIOD=7,1,0);H20%:IF(ISLASTBAR AND LL1=1,H-H*0.2,DRAWNULL),COLORGRAY,LINETHICK7; DRAWNUMBER(H20%<>DRAWNULL AND LL1=1,H20%,H20%),COLORGRAY;H30%:IF(ISLASTBAR AND LL1=1,H-H*0.3,DRAWNULL),COLORGREEN,LINETHICK7; DRAWNUMBER(H30%<>DRAWNULL AND LL1=1,H30%,H30%),COLORGREEN;H40%:IF(ISLASTBAR AND LL1=1,H-H*0.4,DRAWNULL),COLORGRAY,LINETHICK7; DRAWNUMBER(H40%<>DRAWNULL AND LL1=1,H40%,H40%),COLORGRAY;H50%:IF(ISLASTBAR AND LL1=1,H-H*0.5,DRAWNULL),COLORGREEN,LINETHICK7; DRAWNUMBER(H50%<>DRAWNULL AND LL1=1,H50%,H50%),COLORGREEN;H60%:IF(ISLASTBAR AND LL1=1,H-H*0.6,DRAWNULL),COLORGRAY,LINETHICK7; DRAWNUMBER(H60%<>DRAWNULL AND LL1=1,H60%,H60%),COLORGRAY;H70%:IF(ISLASTBAR AND LL1=1,H-H*0.7,DRAWNULL),COLORGREEN,LINETHICK7; DRAWNUMBER(H70%<>DRAWNULL AND LL1=1,H70%,H70%),COLORGREEN;H80%:IF(ISLASTBAR AND LL1=1,H-H*0.8,DRAWNULL),COLORGRAY,LINETHICK5; DRAWNUMBER(H80%<>DRAWNULL AND LL1=1,H80%,H80%),COLORGRAY;H90%:IF(ISLASTBAR AND LL1=1,H-H*0.9,DRAWNULL),COLORGREEN,LINETHICK7; DRAWNUMBER(H90%<>DRAWNULL AND LL1=1,H90%,H90%),COLORGREEN;H99%:IF(ISLASTBAR AND LL1=1,H-H*0.99,DRAWNULL),COLORYELLOW,LINETHICK7; DRAWNUMBER(H99%<>DRAWNULL AND LL1=1,H99%,H99%),COLORGREEN;LL2:=IF(PERIOD=5,1,0);QC:IF(ISLASTBAR AND LL2=1, REF(CLOSE,1),DRAWNULL),COLORLIGREEN,LINETHICK4; ZHANG2%:IF(ISLASTBAR ANDLL2=1,QC+QC*0.02,DRAWNULL),COLORWHITE,LINETHICK3;{DRAWNUMBER(ZHANG2%<>DRAWNULL ANDLL2=1,ZHANG2%,ZHANG2%),COLORWHITE;}ZHANG3%:=IF(ISLASTBAR ANDLL2=1,QC+QC*0.03,DRAWNULL),COLORBLUE,LINETHICK4;{DRAWNUMBER(ZHANG3%<>DRAWNULL ANDLL2=1,ZHANG3%,ZHANG3%),COLORWHITE;}ZHANG4%:=IF(ISLASTBAR ANDLL2=1,QC+QC*0.04,DRAWNULL),COLORWHITE,LINETHICK3;{DRAWNUMBER(ZHANG4%<>DRAWNULL ANDLL2=1,ZHANG4%,ZHANG4%),COLORWHITE;}ZHANG5%:IF(ISLASTBAR ANDLL2=1,QC+QC*0.05,DRAWNULL),COLORBLUE,LINETHICK4;{DRAWNUMBER(ZHANG5%<>DRAWNULL ANDLL2=1,ZHANG5%,ZHANG5%),COLORWHITE;}ZHANG6%:=IF(ISLASTBAR ANDLL2=1,QC+QC*0.06,DRAWNULL),COLORWHITE,LINETHICK3;{DRAWNUMBER(ZHANG6%<>DRAWNULL ANDLL2=1,ZHANG6%,ZHANG6%),COLORWHITE;}ZHANG7%:=IF(ISLASTBAR ANDLL2=1,QC+QC*0.07,DRAWNULL),COLORBLUE,LINETHICK4;{DRAWNUMBER(ZHANG7%<>DRAWNULL ANDLL2=1,ZHANG7%,ZHANG7%),COLORWHITE;}ZHANG8%:IF(ISLASTBAR ANDLL2=1,QC+QC*0.08,DRAWNULL),COLORWHITE,LINETHICK3;{DRAWNUMBER(ZHANG8%<>DRAWNULL ANDLL2=1,ZHANG8%,ZHANG8%),COLORWHITE;}ZHANG9%:=IF(ISLASTBAR ANDLL2=1,QC+QC*0.09,DRAWNULL),COLORBLUE,LINETHICK3;{DRAWNUMBER(ZHANG9%<>DRAWNULL ANDLL2=1,ZHANG8%,ZHANG8%),COLORWHITE;}ZHANG10%:IF(ISLASTBAR ANDLL2=1,QC+QC*0.1,DRAWNULL),COLORBLUE,LINETHICK4;{DRAWNUMBER(ZHANG10%<>DRAWNULL ANDLL2=1,ZHANG10%,ZHANG10%),COLORWHITE;}DIE2%:IF(ISLASTBAR AND LL2=1,QC-QC*0.02,DRAWNULL),COLORGRAY,LINETHICK3; {DRAWNUMBER(DIE2%<>DRAWNULL AND LL2=1,DIE2%,DIE2%),COLORGRAY;}DIE3%:=IF(ISLASTBAR AND LL2=1,QC-QC*0.03,DRAWNULL),COLORBLUE,LINETHICK4; {DRAWNUMBER(DIE3%<>DRAWNULL AND LL2=1,DIE3%,DIE3%),COLORGRAY;}DIE4%:=IF(ISLASTBAR AND LL2=1,QC-QC*0.04,DRAWNULL),COLORGRAY,LINETHICK3; {DRAWNUMBER(DIE4%<>DRAWNULL AND LL2=1,DIE4%,DIE4%),COLORGRAY;}DIE5%:IF(ISLASTBAR AND LL2=1,QC-QC*0.05,DRAWNULL),COLORBLUE,LINETHICK4; {DRAWNUMBER(DIE5%<>DRAWNULL AND LL2=1,DIE5%,DIE5%),COLORGRAY;}DIE6%:=IF(ISLASTBAR AND LL2=1,QC-QC*0.06,DRAWNULL),COLORGRAY,LINETHICK3; {DRAWNUMBER(DIE6%<>DRAWNULL AND LL2=1,DIE6%,DIE6%),COLORGRAY;}DIE7%:=IF(ISLASTBAR AND LL2=1,QC-QC*0.07,DRAWNULL),COLORBLUE,LINETHICK4; {DRAWNUMBER(DIE7%<>DRAWNULL AND LL2=1,DIE7%,DIE7%),COLORGRAY;}DIE8%:IF(ISLASTBAR AND LL2=1,QC-QC*0.08,DRAWNULL),COLORGRAY,LINETHICK3; {DRAWNUMBER(DIE8%<>DRAWNULL AND LL2=1,DIE8%,DIE8%),COLORGRAY;}DIE9%:=IF(ISLASTBAR AND LL2=1,QC-QC*0.09,DRAWNULL),COLORGRAY,LINETHICK3; {DRAWNUMBER(DIE9%<>DRAWNULL AND LL2=1,DIE9%,DIE9%),COLORGRAY;}DIE10%:IF(ISLASTBAR AND LL2=1,QC-QC*0.1,DRAWNULL),COLORBLUE,LINETHICK4; {DRAWNUMBER(DIE10%<>DRAWNULL AND LL2=1,DIE10%,DIE10%),COLORGRAY;} B10:MIN(M10,M5),LINETHICK3,COLORRED;B20:MIN(M20,B10),COLORBLUE;B30:MIN(M30,B20),COLORGREEN;B40:MIN(M40,B30),COLORGREEN;B60:MIN(M60,B40),COLORCYAN;B80:MIN(M80,B60),COLORRED;B90:MIN(M90,B80),COLORMAGENTA;B120:MIN(M120,B90),COLORMAGENTA;B180:MIN(M180,B120),COLORLIGRAY;B270:MIN(M270,B180),COLORLIBLUE;B360:MIN(M360,B270),COLORLIGREEN;B480:MIN(M480,B360),COLORLICYAN;B640:MIN(M640,B480),COLORLICYAN;B720:MIN(M720,B640),COLORLIRED;B810:MIN(M810,B720),COLORLIMAGENTA;B960:MIN(M960,B810),COLORLIMAGENTA;B1080:MIN(M1080,B960),COLORLIMAGENTA;B1440:MIN(M1440,B1080),COLORYELLOW;B1920:MIN(M1920,B1440),COLORYELLOW;B2160:MIN(M2160,B1920),COLORYELLOW;B2560:MIN(M2560,B2160),COLORWHITE;B3240:MIN(M3240,B2560),COLORGREEN;B4320:MIN(M4320,B3240),COLORGREEN;B5120:MIN(M5120,B4320),COLORGREEN;B6480:MIN(M6480,B5120),COLORCYAN;B7290:MIN(M7290,B6480),COLORCYAN;B8640:MIN(M8640,B7290),COLORCYAN;B9720:MIN(M9720,B8640),COLORCYAN;B10240:MIN(M10240,B9720),COLORCYAN;B12960:MIN(M12960,B10240),COLORCYAN; B14580:MIN(M14580,B12960),COLORCYAN;S10:MAX(M10,M5),LINETHICK3,COLORRED; S20:MAX(M20,S10),COLORBLUE;S30:MAX(M30,S20),COLORGREEN;S40:MAX(M40,S30),COLORGREEN;S60:MAX(M60,S40),COLORCYAN;S80:MAX(M80,S60),COLORRED;S90:MAX(M90,S80),COLORMAGENTA;S120:MAX(M120,S90),COLORMAGENTA;S180:MAX(M180,S120),COLORLIGRAY;S270:MAX(M270,S180),COLORLIBLUE;S360:MAX(M360,S270),COLORLIGREEN;S480:MAX(M480,S360),COLORLICYAN;S640:MAX(M640,S480),COLORLICYAN;S720:MAX(M720,S640),COLORLIRED;S810:MAX(M810,S720),COLORLIMAGENTA; S960:MAX(M960,S810),COLORLIMAGENTA; S1080:MAX(M1080,S960),COLORLIMAGENTA; S1440:MAX(M1440,S1080),COLORYELLOW; S1920:MAX(M1920,S1440),COLORYELLOW; S2160:MAX(M2160,S1920),COLORYELLOW;S2560:MAX(M2560,S2160),COLORWHITE;S3240:MAX(M3240,S2560),COLORGREEN;S4320:MAX(M4320,S3240),COLORGREEN;S5120:MAX(M5120,S4320),COLORGREEN;S6480:MAX(M6480,S5120),COLORCYAN;S7290:MAX(M7290,S6480),COLORCYAN;S8640:MAX(M8640,S7290),COLORCYAN;S9720:MAX(M9720,S8640),COLORCYAN;S10240:MAX(M10240,S9720),COLORCYAN; S12960:MAX(M12960,S10240),COLORCYAN; S14580:MAX(M14580,S12960),COLORCYAN;。

【股票指标公式】-【通达信】绝无仅有 放心买(主图)

【股票指标公式】-【通达信】绝无仅有 放心买(主图)

【通达信】绝无仅有放心买(主图)-指标公式源码放心买出现后成功率非常高,白花到底,红花趋势突破VAR1:=(C+H+O+L)/4;卖出:=XMA(VAR1,20)*(1+80/1000),POINTDOT,COLORGREEN,LINETHICK3;买入:=XMA(VAR1,32)*(1-100/1000),POINTDOT,COLORMAGENTA,LINETHICK3; 幅度:=100*(卖出-买入)/买入,NODRAW;菩提:=买入+(卖出-买入)*2/3;{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底};般:=XMA(CLOSE,7);若:=MEMA(CLOSE,3);全绿K:=LONGCROSS(若,般,3) AND H>菩提;RSVL:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;KL:=SMA(RSVL,3,1);DL:=SMA(KL,3,1);KKL:=SMA(RSVL,3,1);DD:=SMA(KL,3,1);NL:=KKL+DD;买入L:=DRAWICON(CROSS(NL,50),50,1),COLORRED;卖出L:=DRAWICON(CROSS(160,NL),160,2),COLORGREEN;卖出K:=CROSS(160,NL);TM:=(CLOSE*1.0+LOW*0.0+HIGH*0.0);T1M:=V;SL1M:=(TM/REF(TM,1)-1)*1000;趋势5:=XMA(XMA(XMA(SL1M,20),20),20),COLORYELLOW;趋势6:=XMA(XMA(XMA(SL1M,10),10),10),COLORMAGENTA;QA9:=趋势6-趋势5;QA10:=EMA(QA9,89);买入M:=(QA9-QA10)*2,COLORSTICK;M1:=EMA(C,5);M2:=EMA(C,13);M3:=EMA(C,34),COLORBLUE,LINETHICK2;MC1:=EMA(C,55);MC2:=EMA(C,89);MA4:=EMA(C,144);VAR1A1H:=(REF(CLOSE,1)-REF(ATR,1));买线1:=REF(EMA(C,14),1)COLORWHITE,LINETHICK3;卖线1:=IF(MC1>MAX(MC2,MA4),MC1,IF(MC1<MIN(MC2,MA4),MC2,MA4)),COLORFF00CC, LINETHICK3;高1:=REF(HHV(H,150),3);低1:=REF(LLV(L,150),3);STICKLINE(买线1>=卖线1,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,6,0)COLOR001050;STICKLINE(买线1<卖线1,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,6,0)COLOR404050;STICKLINE(买入M>=0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORRED;STICKLINE(买入M<0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORGREEN;STICKLINE(买入L,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,2,0)COLORYELLOW;STICKLINE(卖出K AND 买入M<0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,2,0)COLORCYAN;多空趋势彩带:DRAWBAND(SMA(C,6.5,1),RGB(255,97,0),SMA(C,13.5,1),RGB(0,128,0)); 中线:=(卖出+买入)/2,POINTDOT,COLORWHITE,LINETHICK4;MA5:=MA(C,5),COLOR000099;MA10:=MA(C,10),COLOR006600;MA20:=MA(C,20),COLOR005555;ZB1:=EMA(C,34);{ 原为55或65 }长期趋势:EMA(ZB1,13),COLORRED,LINETHICK3;{原为34或55}STICKLINE(C>=REF(C,1),O,C,3,1),COLOR000000;STICKLINE(C<REF(C,1),O,C,3,1),COLOR000000;AA3:=EMA(CLOSE,5)>EMA(CLOSE,6) AND EMA(CLOSE,6)>EMA(CLOSE,7) AND EMA(CLOSE,7)>EMA(CLOSE,8) AND EMA(CLOSE,8)>EMA(CLOSE,9)AND EMA(CLOSE,9)>EMA(CLOSE,10) AND EMA(CLOSE,10)>EMA(CLOSE,11) AND EMA(CLOSE,11)>EMA(CLOSE,12)AND EMA(CLOSE,12)>EMA(CLOSE,13) AND EMA(CLOSE,13)>EMA(CLOSE,14);AA2:= EMA(CLOSE,14)>EMA(CLOSE,15)AND EMA(CLOSE,15)>EMA(CLOSE,20) AND EMA(CLOSE,20)>EMA(CLOSE,30) AND EMA(CLOSE,30)>EMA(CLOSE,60) AND EMA(CLOSE,60)>EMA(CLOSE,90)AND EMA(CLOSE,90)>EMA(CLOSE,120) AND EMA(CLOSE,120)>EMA(CLOSE,250); A1:= AA2 AND AA3;A2:=EMA(CLOSE,5)>EMA(CLOSE,6) AND EMA(CLOSE,6)>EMA(CLOSE,7) AND EMA(CLOSE,7)>EMA(CLOSE,8) AND EMA(CLOSE,8)>EMA(CLOSE,9)AND EMA(CLOSE,9)>EMA(CLOSE,10) AND EMA(CLOSE,10)>EMA(CLOSE,11) AND EMA(CLOSE,11)>EMA(CLOSE,12)AND EMA(CLOSE,12)>EMA(CLOSE,13) AND EMA(CLOSE,13)>EMA(CLOSE,14);B1:=IF(A1,1,2);VAR1MZ:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));VAR2MZ:=((REF(VAR1MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR3MZ:=((REF(VAR2MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR4MZ:=((REF(VAR3MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR5MZ:=((REF(VAR4MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR6MZ:=((REF(VAR5MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR7MZ:=((REF(VAR6MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR8MZ:=((REF(VAR7MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR9MZ:=((REF(VAR8MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VARAMZ:=((REF(VAR9MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VARBMZ:=((REF(VARAMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VARCMZ:=((REF(VARBMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));{红K}STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),L,H,0,0),COLOR0000DD;STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),C,REF(C,1),3,0),COLOR000099;STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),C,REF(C,1),2,0),COLOR0000BB;STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),C,REF(C,1),1,0),COLOR0000DD;VARDMZ:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2))); VAREMZ:=((REF(VARDMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VARFMZ:=((REF(VAREMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR10MZ:=((REF(VARFMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR11MZ:=((REF(VAR10MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR12MZ:=((REF(VAR11MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR13MZ:=((REF(VAR12MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR14MZ:=((REF(VAR13MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR15MZ:=((REF(VAR14MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR16MZ:=((REF(VAR15MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR17MZ:=((REF(VAR16MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR18MZ:=((REF(VAR17MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));{绿K}STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),C,REF(C,1),3 ,0 ),COLOR00BB00;STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),C,REF(C,1),2 ,0 ),COLOR00DD00;STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),C,REF(C,1),1 ,0 ),COLOR00FF00;STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),H,L,0,0 ),COLOR00DD00;VAR19MZ:=(REF((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),1) AND VAR1MZ);VAR1AMZ:=(REF((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),1) AND VARDMZ);{粉红}STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),3 ,0 ),COLORFF11FF; STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),2 ,0 ),COLORFF44FF; STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),1 ,0 ),COLORFF66FF;{黄色}STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00AAFF; STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR00CCFF; STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR00EEFF;FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);TTJ:=CROSS(FF,MA15);上:=EMA(C,3),COLORBLUE,LINETHICK1;中:=EMA(C,5),COLORWHITE,LINETHICK1;下:=EMA(中,5),COLOR00FF00,LINETHICK1;QQ:= C<中;MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ;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);MA1Q:=MEMA(CLOSE,5);MA2Q:=ATAN((MA1Q/REF(MA1Q,1)-1)*100)*180/3.1416;MA3Q:=IF(MA2Q>0,MA2Q,MA2Q);MA5Q:=MA(CLOSE,5),COLOR888899;MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;VAR01:=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) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) ANDC>=REF(C,1) AND C>=REF(C,2);VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);VAR03:=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) ANDC<REF(C,1) AND C<REF(C,2);VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);VAR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(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);VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;VAR08:=VAR07 AND COUNT(VAR06,2);VAR09:=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(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) AND CROSS(VAR09,MA(VAR09,2)))=1,5);VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) AND CROSS(MA(VAR09,2),VAR09))=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:=VAR08 AND NOT(REF(VAR08,1));RSVQ:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSVQ,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 VAR04;买3:=(VAR14 OR VAR15) AND VAR02;买4:=(VAR02 AND VAR11) OR (VAR04 AND VAR11);买5:=(金叉 AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11);TTJ0:=VAR16;TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;XG0:=TTJ AND TTJ0;XG1:=TTJ AND TTJ1;XG11:=XG0 OR XG1;PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);TJ11:=EN2 AND ZTJZ5=1;TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;TJ33:=EN2 AND DTJZ10=1;TJ44:=EN3 AND ZTJZ10=1;TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;XGQ:=XG11 OR XG22;W18:=EXIST(XGQ,1);DRAWTEXT(XGQ,L-0.1,'●放心买'),COLORRED;SQX:=(C-MA(CLOSE,13))*100;DIFF:=EMA(MA(SQX,7),1),COLORWHITE;DEA:=EMA(DIFF,7),COLORYELLOW;MACD:=(DIFF-DEA)*2,COLORSTICK;文浩专用:IF((CROSS(DIFF,DEA) ANDDIFF<-0.1) ,L-0.2,DRAWNULL),COLORMAGENTA,LINETHICK9,CROSSDOT;低位金叉:=IF(CROSS(DIFF,DEA) ANDDIFF<-0.1,15,DRAWNULL),COLORMAGENTA,LINETHICK9,CROSSDOT;IF(CROSS(DIFF,DEA) ANDDIFF<-0.1,L-0.2,DRAWNULL),COLORYELLOW,LINETHICK4,POINTDOT;{再上N均线 N 10 1 100 1}MA1:=MA(C,5);MA2:=MA(C,10);MA3:=MA(C,21);破N:=REF(MA1,1)<REF(MA2,1)AND MA2>REF(MA2,1);试摸N:=C>MA(C,10) OR H>=MA2;再上N:=C>O AND REF(C,1)< MA(C,10) AND 试摸N AND 破N ANDMA(C,21)<MA(C,10);有行情:=再上N AND (CROSS(C,长期趋势) OR CROSS(L,长期趋势) OR CROSS(H,长期趋势));DRAWTEXT(有行情,LOW-0.2,'●有行情'),COLORGREEN;VAR10B:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11B:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12B:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13B:=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);VAR14B:=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);VAR15B:=ZIG(3,51)>REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)<=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16B:=ZIG(3,51)<REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17B:=ZIG(3,72)>REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)<=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18B:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19B:=EMA(CLOSE,2)-EMA(CLOSE,150);买1B:=VAR10B;买2B:=(VAR11B+VAR13B+VAR15B+VAR17B);BB:=IF(买1B>0 OR 买2B>0 ,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;红买绿卖:IF(CROSS(BB,买1B),LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK5,COLORWHITE;牛节点:=CROSS(EMA(C,5),EMA(C,30))AND CROSS(EMA(C,10),EMA(C,20)); DRAWICON(牛节点,L-0.1,13);CSAR:=SAR(10,2,20);持币:=IF(CSAR>=H,CSAR,0),CIRCLEDOT,COLORGREEN{持币};持股:=IF(CSAR<=L,CSAR,0),CIRCLEDOT,COLORRED{持股};生命线2:=EMA(SLOPE(C,21)*20+C,42),LINETHICK2,COLORYELLOW;{股价在上持,在下空仓}止损:=EMA(C,5),COLORYELLOW,LINETHICK1;{红持股绿持币黄观望}菩提B:=XMA(H,20);{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底};参买:=IF(止损>=REF(止损,1),止损,DRAWNULL),LINETHICK2,COLORRED;{持股前提}{}DRAWICON(CROSS(L,CSAR) AND 参买>0 AND H<菩提B AND 持股>0AND H>长期趋势,(LOW- 0.1),5);VVAR1D:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);短底:=EMA(VVAR1D,5);支撑:=HHV(短底,60);MAN:=(SMA(HIGH,21,2) * 1.05);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); 中D:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X1D:=EMA(中D,10);RSVD:=SMA(下档线,3,1);K大:=SMA(RSVD,3,1);D大:=((3 * RSVD) - (2 * K大));J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(J12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力位:=IF(CROSS(D24,D大),HIGH,REF(HIGH,BARSLAST(CROSS(D24,D 大)))),COLORFFFFFF;牛浮面:=CROSS(CLOSE,MA20) AND HIGH < 压力位 AND OPEN < MA20AND HIGH < 支撑 AND MAN - REF(MAN,1) > 0 AND X1D - REF(X1D,1)>0 AND D大 < 63 AND MA20 - REF(MA20,1) > 0,COLORWHITE;DRAWTEXT(牛浮面,L,'●牛浮面'),COLORWHITE;CO:=(C-O);绿K:=(卖出>LOW AND 卖出<HIGH) OR (卖出>MIN(C,O) AND 卖出<MAX(C,O)) OR 卖出<LOW;{全绿K}全绿K2:=C>卖出 OR (H>卖出 AND O>C);STICKLINE(全绿K2,C,O,3,0),COLOR00BB00;STICKLINE(全绿K2,C,O,2,0),COLOR00DD00;STICKLINE(全绿K2,C,O,1,0),COLOR00FF00;【通达信】绝无仅有放心买(主图)-指标公式效果图(文档来源:好股票网)。

神奇的135均线

神奇的135均线
8、海底捞月
形态特征:中长期均线能够长时间保持平行移动,说明市场对目前的股价趋于认同,同时也封闭了股价在短期内的下跌空间。13日均线弱势下叉中长期均线并在其不远处作半弧状运动,显示上方抛压并不沉重,暗示回档幅度不会太深。13日均线重新上穿55日均线,表明有新的资金进场,均线系统可望迅速构成多头排列状态,从而支持股价继续上行。
4.拒绝盘整,不抢反弹。道理很简单,参与盘整增加时间成本,影响资金的运作质量。倘若大盘遇突发利空反转向下,即使主力没有全身而退,此时也会选择顺势而为,与大盘保持同步。这样就容易造成资金的沉淀。
抢反弹不失为一种投资策略,但不值得提倡。抢反弹,无疑于“刀口舔血”,如果抢不到阶段性底部,股份的惯性下挫将会使你怀沙自沉。下跌途中的股价,犹如空中飞刀,冒险去接,随时都有葬身乱刀之下的可能。最好的办法是先躲一边,等刀子掉地上了再去捡,这起码安全多了。这里须提醒投资者注意:放弃空头排列的股票。
1、红杏出墙
形态特征:13日均线由下降趋于走平。股价从下向上突破 13日均线,并且在13日均线上企稳,这根站在13日均线上的阳线称之为"红杏出墙"。红杏出墙是135均线的第一买点,也是行情最初启动点。
2、蚂蚁上树
形态特征:两条略微向右下方倾斜的主均线相距很近或基本持平。股价踏上13日均线后,以连续上攻的小阳线缓步盘升,把股价轻松地送上55日均线。这几根持续上升的小阳线称之为"蚂蚁上树"。"蚂蚁上树"的出现,是股价见底,开始转强的标志。
当最终筛选出某个股票后,按具体形态的买卖时机和相关原则进行操作。
三、使用原则:
“135”系统的最高原则是纪律。股市如战场,资金如兵力,如果没有一整套铁的纪律作保障,不论你装备多么精良,别管你如何兵多将广,同样逃脱不了失败的命运。

通达信神奇布林线股票指标公式

通达信神奇布林线股票指标公式

通达信神奇布林线股票指标公式MID2 := MA(CLOSE,21),COLORWHITE;UPPER2:=MID2 +1.96*STD(CLOSE,21),COLORYELLOW;LOWER2:=MID2 -1.96*STD(CLOSE,21),COLORYELLOW;UP2:=MID2 + 2.56*STD(CLOSE,21),COLORFF00FF; LOOW2:=MID2 - 2.56*STD(CLOSE,21),COLORFF00FF; {上升趋势}STICKLINE(C>=MID2,MID2,UP2,2,0),COLOR330066; {下降趋势}STICKLINE(C=MID AND REF(开口,1)=HHV(开口,20),UPPER,'减仓'),COLOR00FF00;DRAWTEXT(C>=MID AND REF(相离,1)=LLV(相离,5),MID,'加仓');股价多头:=C>MA(C,5) AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20);DRAWTEXT(FILTER(股价多头,20),LOOW*0.95,'开始建仓'),COLORRED;DRAWICON(FILTER(股价多头,20),LOWER,1),COLORRED;DRAWTEXT(CROSS(MID,C),UP,'空仓观望'),COLORYELLOW;DRAWICON(CROSS(MID,C),UPPER,2),COLORYELLOW ;{K线}{STICKLINE((CLOSE >OPEN),CLOSE,OPEN,5.2,0),COLOR070084;} STICKLINE((CLOSE >OPEN),CLOSE,OPEN,4,1),COLOR0000A3; STICKLINE((CLOSE >OPEN),CLOSE,OPEN,3.5,0),COLOR000033; STICKLINE((CLOSE >OPEN),CLOSE,OPEN,3,0),COLOR000066; STICKLINE((CLOSE >OPEN),CLOSE,OPEN,2.0,0),COLOR000099; STICKLINE((CLOSE >OPEN),CLOSE,OPEN,1.5,0),COLOR0000CC; STICKLINE((CLOSE >OPEN),CLOSE,OPEN,1.0,0),COLOR0000FF; STICKLINE((CLOSE >OPEN),CLOSE,OPEN,0.5,0),COLORCC66FF; STICKLINE((CLOSE >OPEN),OPEN,LOW,0.3,0),COLORRED; STICKLINE((CLOSE >OPEN),CLOSE,HIGH,0.3,0),COLORRED; {STICKLINE((CLOSE = OPEN ANDC>REF(C,1)),CLOSE,OPEN,5.2,0),COLOR070084;} STICKLINE((CLOSE = OPEN ANDC>REF(C,1)),CLOSE,OPEN,4,1),COLOR0000A3; STICKLINE((CLOSE = OPEN ANDC>REF(C,1)),CLOSE,OPEN,3.5,0),COLOR0000B7; STICKLINE((CLOSE = OPEN ANDC>REF(C,1)),CLOSE,OPEN,3,0),COLOR0000CD; STICKLINE((CLOSE = OPEN ANDC>REF(C,1)),CLOSE,OPEN,2.0,0),COLOR0000E9; STICKLINE((CLOSE = OPEN ANDC>REF(C,1)),CLOSE,OPEN,1.5,0),COLOR0754E9; STICKLINE((CLOSE = OPEN ANDC>REF(C,1)),CLOSE,OPEN,1.0,0),COLOR076EF3; STICKLINE((CLOSE = OPEN ANDC>REF(C,1)),CLOSE,OPEN,0.5,0),COLOR077BF3; STICKLINE((CLOSE = OPEN ANDC>REF(C,1)),OPEN,LOW,0.3,0),COLOR0000CD; STICKLINE((CLOSE = OPEN ANDC>REF(C,1)),CLOSE,HIGH,0.3,0),COLOR0000CD; {STICKLINE((OPEN >CLOSE),CLOSE,OPEN,5.2,0),COLORFF5B00;} STICKLINE((OPEN >CLOSE),CLOSE,OPEN,4,1),COLORFF6C00; STICKLINE((OPEN >CLOSE),CLOSE,OPEN,3.5,0),COLORFF7B00; STICKLINE((OPEN >CLOSE),CLOSE,OPEN,2,0),COLORFF9C00; STICKLINE((OPEN >CLOSE),CLOSE,OPEN,1.5,0),COLORFFBE00; STICKLINE((OPEN >CLOSE),CLOSE,OPEN,1,0),COLORFFCC00; STICKLINE((OPEN >CLOSE),CLOSE,OPEN,0.5,0),COLORFFFF00; STICKLINE((OPEN >CLOSE),CLOSE,LOW,0.3,0),COLORFF9C00; STICKLINE((OPEN >CLOSE),OPEN,HIGH,0.3,0),COLORFF9C00; {STICKLINE((OPEN = CLOSE ANDC<REF(C,1)),CLOSE,OPEN,5.2,0),COLORFF5B00;} STICKLINE((OPEN = CLOSE ANDC<REF(C,1)),CLOSE,OPEN,4,1),COLORFF6C00; STICKLINE((OPEN = CLOSE ANDC<REF(C,1)),CLOSE,OPEN,3.5,0),COLORFF7B00; STICKLINE((OPEN = CLOSE ANDC<REF(C,1)),CLOSE,OPEN,2,0),COLORFF9C00; STICKLINE((OPEN = CLOSE ANDC<REF(C,1)),CLOSE,OPEN,1.5,0),COLORFFBE00; STICKLINE((OPEN = CLOSE ANDC<REF(C,1)),CLOSE,OPEN,1,0),COLORFFCC00; STICKLINE((OPEN = CLOSE ANDC<REF(C,1)),CLOSE,OPEN,0.5,0),COLORFFFF00; STICKLINE((OPEN = CLOSE ANDC<REF(C,1)),CLOSE,LOW,0.3,0),COLORFF9C00; STICKLINE((OPEN = CLOSE AND C。

通达信指标公式源码小试牛刀

通达信指标公式源码小试牛刀

通达信指标公式源码小试牛刀通达信是一种非常流行的股票分析软件,提供了丰富的技术指标,供投资者使用。

每个指标都有一套独特的计算公式,可以用于识别市场趋势和价格走势,并提供买入或卖出的信号。

以下是通达信指标公式源码的一些示例。

1. 移动平均线(Moving Average,简称MA)移动平均线是一种常见的趋势指标,用于平滑价格数据,并显示出价格的长期趋势。

通达信中的移动平均线指标公式如下:MA(CLOSE,N):收盘价的N日简单移动平均线。

源码示例:```AVG:MA(CLOSE,N);```2. 相对强弱指标(Relative Strength Index,简称RSI)相对强弱指标用于衡量市场的超买和超卖情况,范围从0到100。

通达信中的相对强弱指标公式如下:RSI(CLOSE,N):N日相对强弱指标。

源码示例:```RSI:RSI(CLOSE,N);```3. 成交量指标(Volume Index,简称VI)成交量指标是一种衡量市场活跃度的指标。

通达信中的成交量指标公式如下:VI(VOLUME,N):N日成交量指标。

源码示例:```VI:VI(VOLUME,N);```4. 布林带(Bollinger Bands,简称BOLL)布林带是一种用于测量价格波动的指标。

通达信中的布林带指标公式如下:BOLL(CLOSE,N,K):N日布林带中轨、上轨和下轨。

源码示例:```BOLL:BOLL(CLOSE,N,K);```5. 相对强弱指标(Moving Average Convergence Divergence,简称MACD)MACD是一种常用的趋势指标,用于衡量价格的动能和趋势方向。

通达信中的MACD指标公式如下:MACD(CLOSE,SHORT,LONG,M):MACD、DIFF和DEA。

源码示例:```MACD:MACD(CLOSE,SHORT,LONG,M);```以上只是通达信中的一小部分指标公式示例,通达信提供了很多其他的指标,每个指标都有不同的计算公式。

神奇中线通达信指标公式源码

神奇中线通达信指标公式源码

自用主图指标用法如下:(祝各位投资顺利,股市长红)
1、买点:当“神奇中线”由向下转变为向上并即将或已经开始向上时为中线买点。

当“神奇短线”发生“金叉”时为短线买点;
2、卖点:当“神奇中线”由向上转变为向下并即将或已经开始向下时为中线卖点。

当“神奇短线”发生“死叉”时为短线卖点;
3、当发出买入信号时,如果K线在安全线(绿色)之下,可以试建仓,做反弹,但必须快进快出;一旦K线站在“安全线”(绿色)之上,并且有成交量的配合即可加码建仓,此时为较佳的买点,然后可看长做短,一路持股并等待短线指标或“神奇中线”或“神奇短线”发卖出信号,然后回避短线调整或清仓离场;
VAR1:=(2*C+H+L+O)/5;
A1:=(EMA(VAR1,5)+EMA(VAR1,8)+EMA(VAR1,13)+EMA(VAR1,21))/4;
A2:=EMA(A1,2);
A3:=EMA(A2,2);
A4:=EMA(A3,2);
A5:=EMA(A4,2);
A6:=EMA(A5,2);
中线:EMA(A6,2);
短线1:EMA(VAR1,2.78)*1.028;
短线2:MA(O,3.2)*1.028;
安全线:EMA(C,55),CIRCLEDOT;。

【股票指标公式下载】-【通达信】精准趋势波段(趋势、风险、底部、逃顶)

【股票指标公式下载】-【通达信】精准趋势波段(趋势、风险、底部、逃顶)

【通达信】精准趋势波段(趋势、风险、底部、逃顶)-指标公式源码趋势:5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) -3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3, 1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) ,3,1),2,1),COLOR7F52AF;趋势1:EMA(MA(趋势,5),3),COLORA6B8C1;STICKLINE(趋势>=趋势1,趋势,趋势1,2,0),COLOR7F52AF;STICKLINE(趋势<趋势1,趋势,趋势1,2,0),COLORA6B8C1;STICKLINE(趋势>108 AND 趋势>=趋势1,趋势,108,2,0),COLORBLUE ; STICKLINE(趋势1>108 AND 趋势<趋势1,趋势1,108,2,0),COLORWHITE; STICKLINE(趋势<0 AND 趋势<趋势1,趋势,0,2,0),COLORF00FF0 ; STICKLINE(趋势1<0 AND 趋势>趋势1,趋势1,0,2,0),COLORF0F000;V1:=MA(C,5)=HHV(MA(C,5),20);V2:=MA(C,5)>MA(C,20);V3:=COUNT(MA(C,1)>REF(C,1),3)=3;风险:IF(V1 AND V2 AND V3,30,0),STICK,COLOR00FF00;V11:=MA(C,5)=HHV(MA(C,5),120);V21:=MA(C,5)>MA(C,120);V31:=COUNT(MA(C,1)>REF(C,1),3)=3;风险1:IF(V11 AND V21 AND V31,60,0),STICK,COLORF0F000;底部:5;抄底:IF(CROSS(趋势,底部),60,0),STICK,COLORYELLOW,LINETHICK4; DRAWTEXT(抄底,50,'抄底'),COLORRED;天线:108,COLORFF9D00;逃顶:IF(CROSS(天线,趋势),1,0),STICK,COLORFF9D00;STICKLINE(CROSS(天线,趋势),90,108,6,0),COLORFF9D00;【通达信】精准趋势波段(趋势、风险、底部、逃顶)-指标公式效果图(文档来源:若水财经社区)。

【股票指标公式下载】-【通达信】大牛指标(趋势线、判断、大牛)

【股票指标公式下载】-【通达信】大牛指标(趋势线、判断、大牛)

【通达信】大牛指标(趋势线、判断、大牛)-指标公式源码DIFF:(EMA(CLOSE,10)-EMA(CLOSE,20))*0.7,LINETHICK1,COLORRED;DEAF:EMA(DIFF,8),LINETHICK1,COLORGREEN;MACD1:=(DIFF-DEAF),COLORSTICK; DRAWBAND(DIFF,RGB(250,10,10),DEAF,RGB(0,0,0));SHORT:=5;LONG:=26;MID:=2;DIF:(EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)),LINETHICK1,COLOR0000FF;DEA:EMA(DIF,MID);DRAWBAND(DIF,RGB(500,180,280),DEA,RGB(380,280,180));MACD:=(DIF-DEA)*2,COLORSTICK;向下:=IF(DIF<REF(DIF,1),DIF,DRAWNULL),COLORGREEN,LINETHICK2; DRAWICON(CROSS(DIF,DEA) AND DIF>REF(DIF,1) AND DEA<0,DIF,0);趋势线:=MACD1,LINETHICK2,COLORCYAN;判断:=(SMA(((C+L)/2-LLV(L,21))/(HHV((H+C)/2,21)-LLV(L,21))*100,2,1)-8); STICKLINE(FILTER(CROSS(判断,趋势线)=1 OR 判断>REF(判断,1),10) AND 判断<25 ,0,0.02,4,0),COLORRED;STICKLINE(FILTER(判断<REF(判断,1)AND 判断>65,5),0,0.02,4,0),COLORGREEN;MA5:=EMA(C,3);MA13:=EMA(C,13);UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROS S(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CR OSS(MA5,MA13))+1),0),COLOR0000FF;DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CR OSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CR OSS(MA13,MA5))+1),0),COLOR00FF00;HR:=HHV(HIGH,55);HRY:=LLV(LOW,55);HRY11:=HR*HRY;HRY33:=SQRT(HRY11);TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33; STICKLINE(TJ2,0,0.02,5,0),COLOR008888;STICKLINE(TJ2,0,0.02,2,0),COLOR00AAAA;STICKLINE(TJ2,0,0.02,1,0),COLOR00CCCC;STICKLINE(TJ2,0,0.03,0.2,0),COLOR00FFFF;DRAWTEXT(TJ2,-0.01,'大牛'),COLOR00FFFF;【通达信】大牛指标(趋势线、判断、大牛)-指标公式效果图(文档来源:若水财经社区)。

【股票指标公式下载】-【通达信】简明买卖(波段底、加仓)

【股票指标公式下载】-【通达信】简明买卖(波段底、加仓)

【通达信】简明买卖(波段底、加仓)-指标公式源码MA5:MA(CLOSE,5),LINETHICK1,COLORGREEN;MA10:MA(CLOSE,10),LINETHICK1,COLORRED;MA30:MA(CLOSE,30),LINETHICK2,COLORYELLOW;红轨道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW;绿轨道:=MA(MA(CLOSE,3),3);上升:=IF(红轨道>=绿轨道,绿轨道,DRAWNULL),COLORRED,LINETHICK2;AA1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV (L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1);加仓:=IF(CROSS(AA1,REF(AA1+0.01,1)) AND LLV(AA1,2)=LLV(AA1,8) AND BETWEEN(AA1,20,60),1,0);波段底:=(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));DRAWICON(加仓,L*0.97,7);DRAWICON(CROSS(波段底,3),L*0.97,1);A:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+ 14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A, 11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A, 18)+REF(A,20))/210;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);CB:=EMA(X,13);卖:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) ANDCROSS(MA(DX,2),DX),1,0);DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,'卖'),COLORWHITE;买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDCROSS(DX,MA(DX,2)),1,0);DRAWTEXT(FILTER(买=1,5),LOW-0.03,'买'),COLORRED;RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;BDGD:=HHV(J,2)=HHV(J,8) AND J>80;注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);DRAWTEXT(注意 AND 卖!=1,HIGH*1.02,'减'),COLORFFFF50;加仓A:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;DRAWTEXT(FILTER((CROSS(加仓A,0) OR CROSS(CLOSE,CB)) AND买!=1,3),LOW-0.03,'加'),COLOR0080FF;MA18:=MA(C,18);跟:=IF(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),1,0);DRAWTEXT(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),LOW*0.96,'跟'),COLOR7F52AF;【通达信】简明买卖(波段底、加仓)-指标公式效果图(文档来源:若水财经社区)。

神奇线指标公式

神奇线指标公式

神奇线指标公式神奇线指标公式是指一系列用于分析和预测股票或其他金融市场价格变动的指标和公式。

这些指标通常基于历史价格数据,通过特定的计算和分析方法,以揭示市场趋势、支撑和阻力水平、买卖信号等。

神奇线指标公式的种类非常多,下面列举几个常见的神奇线指标公式:1.移动平均线(Moving Average):移动平均线是一种常用的神奇线指标,它通过计算一定周期内(如5日、10日、20日等)的收盘价平均值,以反映市场趋势和支撑/阻力水平。

2.布林带(Bollinger Bands):布林带由三条线组成,中间一条是移动平均线,上下两条是标准差(通常为2或3倍)的移动平均线。

布林带可以用于判断市场波动性和买卖信号。

3.相对强弱指数(Relative Strength Index,RSI):RSI是一种振荡器指标,用于衡量股票或其他金融资产的超买或超卖情况。

RSI的值在0到100之间波动,通常认为当RSI超过70时为超买,低于30时为超卖。

4.随机指标(Stochastic Oscillator):随机指标是一种振荡器指标,用于衡量股票或其他金融资产的短期趋势。

随机指标的值在0到100之间波动,通常认为当随机指标超过80时为超买,低于20时为超卖。

这些神奇线指标公式都是基于历史价格数据和特定的计算方法得出的,它们可以单独使用,也可以结合使用以获得更准确的预测结果。

在使用这些指标时,需要注意它们的适用范围和局限性,并结合其他信息进行综合分析。

最后总结来说,神奇线指标公式是指一系列用于分析和预测股票或其他金融市场价格变动的指标和公式。

这些指标可以单独使用,也可以结合使用以获得更准确的预测结果。

在使用这些指标时,需要注意它们的适用范围和局限性,并结合其他信息进行综合分析。

【股票指标公式下载】-【通达信】神奇均线(红杏出墙、蚂蚁上树、红衣侠女、均线互换)

【股票指标公式下载】-【通达信】神奇均线(红杏出墙、蚂蚁上树、红衣侠女、均线互换)

【通达信】神奇均线(红杏出墙、蚂蚁上树、红衣侠女、均线互换)-指标公式源码EMA13:EMA(C,13),COLORWHITE,LINETHICK2;EMA34:EMA(C,34),COLORYELLOW; EMA55:EMA(C,55),COLORFF00FF;EMA120:EMA(C,120),COLORFFCC66;AR1:=EMA55>EMA34ANDEMA34>EMA13;AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);AR3:=EMA13>=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;AR5:=AR1AND AR2 AND AR3 AND AR4;AR6:=AR5 ANDFILTER(AR5,10);DRAWTEXT(AR6,L-0.09,'红杏出墙'),COLORYELLOW;BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5),5)=5;BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;BR3:=C>EMA55 AND(REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) ORREF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) ORREF(C,5)<REF(EMA55,5));BR4:=BR1 AND BR2 AND BR3;DRAWTEXT(BR4 ANDFILTER(BR4,10),L-0.09,'蚂蚁上树'),COLOR00C5FF;STICKLINE(BR4 ANDFILTER(BR4,10),H,L,0.5,1),COLOR00C5FF;CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;CR4:=ABS(EMA34-EMA55)/EMA55<0.03; CR5:=EMA55<=EMA120AND EMA55>=REF(EMA55,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 ANDCR5,2);DRAWTEXT(CR6,L-0.09,'红衣侠女'),COLORF00FF0;DR1:=EMA13>EMA34 ANDEMA34<EMA55;DR2:=BARSLAST(CROSS(C,EMA55));DR3:=H=HHV(H,DR2);DR4:=BARSLAST(DR3);DR5:=COUNT(O>C ANDC<REF(C,1) AND C>EMA55 ANDBETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5AND DR6 ;DR8:=DR7 AND FILTER(DR7,10);DRAWTEXT(DR8,L-0.09,'黑客点击'),COLORD6BA63;STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1))ANDCROSS(EMA34,EMA55);DRAWTEXT(ER,L-0.09,'均线互换'),COLOR0099FF;FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1))ANDCROSS(EMA13,EMA34);DRAWTEXT(FR,L-0.09,'梅开二度'),COLORWHITE;STICKLINE(FR,H,L,0.5,1),COLORWHITE;GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5));GR2:=EMA13>EMA34 AND EMA34>EMA55 ANDEMA13>REF(EMA13,1);GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 ANDH=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);GR6:=GR2AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 ANDGR7,H+0.13,'见好就收!'),COLOR00FF00;STICKLINE(GR6 ANDGR7,H,H+0.09,4,0),COLOR00FF00;HR2:=EMA13>=REF(EMA13,3) ANDEMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) ANDCROSS(C,EMA34) AND CROSS(C,EMA55) AND CROSS(C,EMA120);DRAWTEXT(HR2 ANDFILTER(HR2,10),L-0.09,'三线推进'),COLORFFC8FF;【通达信】神奇均线(红杏出墙、蚂蚁上树、红衣侠女、均线互换)-指标公式效果图(文档来源:若水财经社区)。

红杏出墙选股指标公式源码编程思路破译及成功率回测数据

红杏出墙选股指标公式源码编程思路破译及成功率回测数据

红杏出墙选股指标公式源码编程思路破译及成功率回测数据编程思路破译EMA13赋值:收盘价的13日指数移动平均EMA34赋值:收盘价的34日指数移动平均EMA55赋值:收盘价的55日指数移动平均AR1赋值:EMA55>EMA34 AND EMA34>EMA13AR2赋值:上次(收盘价-EMA13)/EMA13*100<-6距今天数AR3赋值:EMA13>=2日前的EMA13AR4赋值:统计AR2日中满足收盘价上穿EMA13的天数=1AR5赋值:AR1 AND AR2 AND AR3 AND AR4输出红杏出墙:AR5 AND AR5的10日过滤条件选股:大智慧135均线之红杏出墙[日线]成功率测试(20日收益率10%)测试股票数:5028共发出信号:128951 成功信号:63772 失败信号:64778 未完成信号:401信号发出率:93.60% 平均成功率:49.61% 成功率达到50%的股票数有:49.83%利润1总平均:13.94% 最大平均利润1: 225.19% 最小平均利润1: 0.00%利润2总平均:1.93% 最大平均利润2: 191.05% 最小平均利润2: -30.12%条件选股:大智慧135均线之红杏出墙[日线]成功率测试(250日收益率10%)测试股票数:5028共发出信号:128952 成功信号:108552 失败信号:17234 未完成信号:3166信号发出率:93.60% 平均成功率:86.30% 成功率达到50%的股票数有:98.34%利润1总平均:49.48% 最大平均利润1: 1212.89% 最小平均利润1: 1.38%利润2总平均:1.33% 最大平均利润2: 500.22% 最小平均利润2: -70.32%。

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

【通达信】神奇均线(红杏出墙、蚂蚁上树、红衣侠女、均线互换)-指标公式源码
EMA13:EMA(C,13),COLORWHITE,LINETHICK2;EMA34:EMA(C,34),COLORYELLOW; EMA55:EMA(C,55),COLORFF00FF;EMA120:EMA(C,120),COLORFFCC66;
AR1:=EMA55>EMA34
AND
EMA34>EMA13;AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);
AR3:=EMA13>=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;
AR5:=AR1
AND AR2 AND AR3 AND AR4;AR6:=AR5 AND
FILTER(AR5,10);
DRAWTEXT(AR6,L-0.09,'红杏出墙'),COLORYELLOW;
BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5)
,5)=5;
BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;
BR3:=C>EMA55 AND
(REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR
REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) OR
REF
(C,5)<REF(EMA55,5));BR4:=BR1 AND BR2 AND BR3;
DRAWTEXT(BR4 AND
FILTER(BR4,10),L-0.09,'蚂蚁上树'),COLOR00C5FF;
STICKLINE(BR4 AND
FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF;
CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;
CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;CR4:=ABS(EMA34-EMA55)/EMA55<0.03; CR5:=EMA55<=EMA120
AND EMA55>=REF(EMA55,1);
CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND
CR5,2);
DRAWTEXT(CR6,L-0.09,'红衣侠女'),COLORF00FF0;
DR1:=EMA13>EMA34 AND
EMA34<EMA55;DR2:=BARSLAST(CROSS(C,EMA55)
);DR3:=H=HHV(H,DR2);
DR4:=BARSLAST(DR3);
DR5:=COUNT(O>C AND
C<REF(C,1) AND C>EMA55 AND
BETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;
DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5
AND DR6 ;DR8:=DR7 AND FILTER(DR7
,10);
DRAWTEXT(DR8,L-0.09,'黑客点击'),COLORD6BA63;
STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;
ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1))
AND
CROSS(EMA34,EMA55);
DRAWTEXT(ER,L-0.09,'均线互换'),COLOR0099FF;
FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1))
AND
CROSS(EMA13,EMA34);
DRAWTEXT(FR,L-0.09,'梅开二度
'),COLORWHITE;STICKLINE(FR,H,L,0.5,1),COLORWHITE;
GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5)
);
GR2:=EMA13>EMA34 AND EMA34>EMA55 AND
EMA13>REF(EMA13,1);
GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND
H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);
GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);
GR6:=GR2
AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;
DRAWTEXT(GR6 AND
GR7,H+0.13,'见好就收!'),COLOR00FF00;
STICKLINE(GR6 AND
GR7,H,H+0.09,4,0),COLOR00FF00;
HR2:=EMA13>=REF(EMA13,3) AND
EMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND
CROSS(C,EMA34) AND CROSS
(C,EMA55) AND CROSS(C,EMA120);
DRAWTEXT(HR2 AND
FILTER(HR2,10),L-0.09,'三线推进'),COLORFFC8FF;
【通达信】神奇均线(红杏出墙、蚂蚁上树、红衣侠女、均线互换)-指标公式效果图
(文档来源:若水财经社区)。

相关文档
最新文档