久久国产成人av_抖音国产毛片_a片网站免费观看_A片无码播放手机在线观看,色五月在线观看,亚洲精品m在线观看,女人自慰的免费网址,悠悠在线观看精品视频,一级日本片免费的,亚洲精品久,国产精品成人久久久久久久

分享

通達(dá)信天天進(jìn)金及選股指標(biāo)公式-通達(dá)信公式-股旁網(wǎng)

 達(dá)咪 2017-01-30
創(chuàng)建時(shí)間:2015-08-27 修改時(shí)間:2015-09-05 來源:http://www.gupang.com/201501/0106352642015.html

百發(fā)百中,,屢試不爽
短線特色技法:60分鐘MA(13,40)中,,13MA和40 MA箭頭同時(shí)向上,,并且形成金叉,,操盤線處于紅色持股趨勢(shì)中,,
即處于B點(diǎn)區(qū)域,;符合這一特征者,,第一時(shí)間大膽介入,次日可按MACD紅柱縮短時(shí)拋出,。
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);

發(fā)現(xiàn)即將進(jìn)入主升浪階段的牛股的絕招
經(jīng)過近幾年的持續(xù)觀察和總結(jié),,我們發(fā)現(xiàn)那些短期內(nèi)漲幅巨大的牛股,,在進(jìn)入主升浪階段以前大多表現(xiàn)出一定相同的市場(chǎng)特征,,投資者如果能夠熟練掌握相應(yīng)的投資技巧,并及時(shí)發(fā)現(xiàn)這類股票的市場(chǎng)特征,,還是有一定機(jī)會(huì)在短期內(nèi)獲取高額收益的,。 
  一般而言,一只股票的運(yùn)作大體可以分為建倉(cāng),、洗盤,、主升及震蕩出貨四個(gè)階段。對(duì)于散戶投資者而言,,如果想既賺快錢又賺大錢,,那么只有去尋找那些進(jìn)入或即將進(jìn)入主升浪階段的牛股才能實(shí)現(xiàn)自己的目標(biāo)。 
  我們發(fā)現(xiàn),,近幾年來市場(chǎng)上漲幅居前的牛股大多具有如下特征:(近期快速增長(zhǎng)的五只股,!)   一、周MACD在零軸上方剛剛發(fā)生“黃金交叉”或即將發(fā)生“黃金交叉”(技術(shù)面特征)   根據(jù)MACD的運(yùn)用原理我們可以得知,,MACD在零軸上方的“黃金交叉”意味著該股前面曾出現(xiàn)過一輪上漲,,且后來出現(xiàn)過調(diào)整。當(dāng)MACD再次出現(xiàn)“黃金交叉”時(shí),,則表明前面的調(diào)整已經(jīng)結(jié)束,,而且這個(gè)調(diào)整只是回檔而已,,后面股價(jià)將進(jìn)入新一輪漲升階段。 
  舉例:2005.12.9這一周中,,浦發(fā)銀行周MACD發(fā)生黃金交叉,,隨后股價(jià)開始進(jìn)入快速上揚(yáng)階段。 
  二,、總體漲幅不大,,股價(jià)已基本擺脫下降通道的壓制,步入上升通道(技術(shù)面特征)   股價(jià)漲幅不大可能確保后市仍有上升空間,,投資者不會(huì)在頭部區(qū)域介入,;要求股價(jià)擺脫下降趨勢(shì),進(jìn)入上升通道,,主要是因?yàn)榻鼛啄晔袌?chǎng)處于熊市之中,,大多數(shù)股票價(jià)格處于持續(xù)下滑狀態(tài),如果一只股票能夠擺脫下滑趨勢(shì)并步入上升通道,,則往往意味著這家公司的基本面可能已出現(xiàn)好轉(zhuǎn),,并有資金量較大的投資者已先行一步介入,此時(shí)散戶投資者擇機(jī)跟風(fēng)買入,,風(fēng)險(xiǎn)并不大,。   舉例:2005.12.23,中信證券周MACD發(fā)生黃金交叉,,從圖形上來看,,公司股價(jià)已基本擺脫2004年2月以來形成的下降趨勢(shì),并進(jìn)入持續(xù)上升階段,。在隨后的三周內(nèi)中信證券股價(jià)漲幅超過20%,,公司亦于2006.1.17發(fā)布年度業(yè)績(jī)預(yù)增50%以上的利好公告。   三,、業(yè)績(jī)良好或發(fā)展前景較好(基本面特征) 
  目前的市場(chǎng)機(jī)構(gòu)博弈日趨激烈,,有時(shí)單純的技術(shù)分析并不足以成為投資者入市的依據(jù),因此選擇一家基本面良好的公司是很重要的,。 
  舉例:盡管天威保變當(dāng)期業(yè)績(jī)并不十分突出,,但由于公司業(yè)務(wù)未來發(fā)展空間較為廣闊,業(yè)績(jī)預(yù)期較好,,所以引得眾多機(jī)構(gòu)投資者紛紛進(jìn)入其中,。 
  四、公司前十大流通股東中有一定數(shù)量的基金或其它機(jī)構(gòu)投資者存在(基本面特征+資金面特征) 
  流通股東中有一定數(shù)量的基金或機(jī)構(gòu)投資者可以再度表明該公司基本面相對(duì)較好(在目前的市場(chǎng)狀況下,,機(jī)構(gòu)投資者是不會(huì)輕易涉足那些基本面不佳的公司的),,且以基金為代表的機(jī)構(gòu)投資者在購(gòu)買股票時(shí),其投資行為往往會(huì)表現(xiàn)出長(zhǎng)時(shí)間的一貫性(即看好一家公司的股票會(huì)持續(xù)購(gòu)買并持有),不會(huì)像以往市場(chǎng)上那些所謂的“敢死隊(duì)”一樣快進(jìn)快出,,這一點(diǎn)可以確保散戶投資者有足夠的時(shí)間進(jìn)行跟風(fēng)投機(jī),。 
  舉例:2003.12.5中集集團(tuán)周MACD黃金交叉后,股價(jià)開始持續(xù)上升,。由于該公司當(dāng)時(shí)基本面持續(xù)向好,,吸引了眾多以基金為代表的投資者一路增持,從而使得該股在近一年半的持續(xù)上升中,,共計(jì)給了投資者三次跟風(fēng)買入機(jī)會(huì),。 
  五、在市場(chǎng)總體表現(xiàn)平穩(wěn)或市場(chǎng)總體呈上升趨勢(shì)時(shí)介入(市場(chǎng)特征) 
  再好,、再符合上述條件的股票,,也難以擺脫整體市場(chǎng)對(duì)其的制約。因此,,如果一旦當(dāng)你發(fā)現(xiàn)符合前面四個(gè)條件的好股票時(shí),,千萬不要忙于介入,因?yàn)榇藭r(shí)你還需要對(duì)市場(chǎng)進(jìn)行判斷,,否則往往會(huì)陷入“教條主義”,。 
  舉例:2004年10月8日,齊魯石化周線MACD“黃金交叉”發(fā)出買入信號(hào),,但隨后而來的不是一輪上升行情,,而是股價(jià)的暴跌。究其原因主要在于2004年10月8日以后,,市場(chǎng)剛剛結(jié)束“9·14”行情并跌向1000點(diǎn),。在這種市場(chǎng)背景下,再怎么符合上述條件的股票也無法獨(dú)善其身,,畢竟沒有人能長(zhǎng)時(shí)間與趨勢(shì)相抗衡,。guminxuexiao.com 

通達(dá)信天天進(jìn)金及選股指標(biāo)公式
來源:Internet,,編輯:股旁網(wǎng),,2015-01-06
A:=IF((CLOSE > 126.32),(AMOUNT / 100000),VOL);
主力:MA(A,4),NODRAW,COLOR00FFFF;
游資:MA(A,8),NODRAW,COLOR00FF00;
大戶:MA(A,16),NODRAW,COLOR0000FF;
散戶:MA(A,32),NODRAW,COLORFFFF00;
主動(dòng)參與比例:=ROUND(((主力 / (((主力 + 游資) + 大戶) + 散戶)) * 100)),NODRAW,COLOR00FFFF;
游資參與比例:=ROUND(((游資 / (((主力 + 游資) + 大戶) + 散戶)) * 100)),NODRAW,COLOR00FF00;
大戶參與比例:=ROUND(((大戶 / (((主力 + 游資) + 大戶) + 散戶)) * 100)),NODRAW,COLOR0000FF;
散戶參與比例:=ROUND(((散戶 / (((主力 + 游資) + 大戶) + 散戶)) * 100)),NODRAW,COLORFFFF00;
STICKLINE((主力 > 0),0,主力,3,0),COLOR0000FF;
STICKLINE((主力 > 0),0,主力,2.7.5,0),COLOR001BFF;
STICKLINE((主力 > 0),0,主力,2.4,0),COLOR0035FF;
STICKLINE((主力 > 0),0,主力,2.1,0),COLOR0050FF;
STICKLINE((主力 > 0),0,主力,1.8,0),COLOR0062FF;
STICKLINE((主力 > 0),0,主力,1.5,0),COLOR007AFF;
STICKLINE((主力 > 0),0,主力,1.2,0),COLOR0089FF;
STICKLINE((主力 > 0),0,主力,0.9,0),COLOR009CFF;
STICKLINE((主力 > 0),0,主力,0.6,0),COLOR00C0FF;
STICKLINE((主力 > 0),0,主力,0.3,0),COLOR00EAFF;
STICKLINE((游資 > 0),0,游資,3,0),COLOR007F00;
STICKLINE((游資 > 0),0,游資,2.7,3),COLOR008B00;
STICKLINE((游資 > 0),0,游資,2.4,0),COLOR009500;
STICKLINE((游資 > 0),0,游資,2.1,0),COLOR00A300;
STICKLINE((游資 > 0),0,游資,1.8,0),COLOR00AF00;
STICKLINE((游資 > 0),0,游資,1.5,0),COLOR00C000;
STICKLINE((游資 > 0),0,游資,1.2,0),COLOR00CA00;
STICKLINE((游資 > 0),0,游資,0.9,0),COLOR00DB00;
STICKLINE((游資 > 0),0,游資,0.6,0),COLOR00FF00;
STICKLINE((大戶 > 0),0,大戶,3,0),COLOR102088;
STICKLINE((大戶 > 0),0,大戶,2.7,0),COLOR102099;
STICKLINE((大戶 > 0),0,大戶,2.4,0),COLOR1020AA;
STICKLINE((大戶 > 0),0,大戶,2.1,0),COLOR1020BB;
STICKLINE((大戶 > 0),0,大戶,1.8,0),COLOR1020CC;
STICKLINE((大戶 > 0),0,大戶,1.5,0),COLOR1020DD;
STICKLINE((大戶 > 0),0,大戶,1.2,0),COLOR1020EE;
STICKLINE((大戶 > 0),0,大戶,0.9,0),COLOR1020FF;
STICKLINE((散戶 > 0),0,散戶,3,0),COLORFF7700;
STICKLINE((散戶 > 0),0,散戶,2.7,0),COLORFF8800;
STICKLINE((散戶 > 0),0,散戶,2.4,0),COLORFF9900;
STICKLINE((散戶 > 0),0,散戶,2.1,0),COLORFFAA00;
STICKLINE((散戶 > 0),0,散戶,1.8,0),COLORFFBB00;
STICKLINE((散戶 > 0),0,散戶,1.5,0),COLORFFCC00;
STICKLINE((散戶 > 0),0,散戶,1.2,0),COLORFFDD00;
STICKLINE((散戶 > 0),0,散戶,0.9,0),COLORFFEE00;
游資線:MA(A,180),COLORWHITE,DOTLINE,LINETHICK2;
{選股公式:
S1:=IF(CODELIKE('300'),0,1);
S2:=IF(NAMELIKE('S'),0,1);
S3:=IF(NAMELIKE('*'),0,1);
S4:=DYNAINFO(17)>0;
換手:=VOL/CAPITAL*100;
放量:=EVERY(VOL>=REF(VOL,1),1);
去掉:=S1 AND S2 AND S3 AND S4;
CC:=(C-REF(C,1))/REF(C,1)>=(1/100);
XG:VOL>REF(HHV(VOL,10),1)*2 AND CC AND 去掉 AND 換手>=1.37 AND 放量 ;
}

通達(dá)信火鳥漲停主圖及選股指標(biāo)公式
來源:Internet,編輯:股旁網(wǎng),,2015-08-06

 
ma5:ma(c,5);
ma24:ma(c,24);
ma60:ma(c,60);
布林上軌:MA(CLOSE,24)+2*STD(CLOSE,24);
bulin:=o<ma5 AND C>MA5 AND o<布林上軌 AND C>布林上軌 AND MA(C,60)>REF(MA(C,60),1);
DRAWTEXT(bulin,H*1.02,'★火鳥漲停'),COLORWHITE;
{
選股公式:
ma5:=ma(c,5);
布林上軌:=MA(CLOSE,24)+2*STD(CLOSE,24);
XG1:=o<ma5 AND C>MA5 AND o<布林上軌 AND C>布林上軌 AND MA(C,60)>REF(MA(C,60),1) AND C/REF(C,1)>1.03;
XG:COUNT(REF(XG1,1),5)<1 AND XG1;
}

通達(dá)信極品黑馬主圖指標(biāo)公式
來源:Internet,,編輯:股旁網(wǎng),2015-08-19

 
EMA13:EMA(C,5),COLORWHITE; 
EMA21:EMA(C,13),COLORYELLOW; 
EMA34:EMA(C,21),COLORFF00FF;
EMA60:MA(C,60),COLORFFCC66; 
{大陰線:大跌超2.3}
C2:=REF(C,1);
BG:=IF((C2-C)*100/C2>=2.3,1,0) OR IF((O-C)*100/O>=5,1,0){ OR IF((H-L)*100/REF(C,1)>5,1,0)};{第二個(gè)條件開盤價(jià)過高掉下來}
BG2:=IF((H-L)*100/C2>=3.58,1,0);
BB1:=L<REF(L,1);
{賣點(diǎn)信號(hào)}
SELL1:=BG AND BB1 ;
{大陽線:升幅超2.64}
BR:=IF((C-C2)*100/C2>=2.59,1,0) OR IF((C-O)*100/O>=4.5,1,0) OR IF((C-L)*100/L>5,1,0);{第二個(gè)條件開盤價(jià)太低升上來}
STICKLINE(BR,O,C,3,0),COLORRED;
{以下條件記住最近一次賣出點(diǎn)}
DAY1:=BARSLAST(SELL1);
JIA1:=REF(O,DAY1);
JIA2:=REF(O,1);
BB4:=C>JIA2;
BB2:=H>JIA1;
{買入信號(hào)}
BUY1:=BR AND BB2 AND BB4;
{記住最后一次買點(diǎn)}
DAY2:=BARSLAST(BUY1);
{買賣誰先}
S1:=DAY1<DAY2;
B1:=DAY2<DAY1;
{畫出賣出信號(hào)}
{DRAWTEXT(S1,H*1.05,'S'),COLORGREEN;}
STICKLINE(S1,O,C,3,0),COLORGREEN;
{畫出買入信號(hào)}
{DRAWTEXT(B1,L-0.2,'B'),COLORRED;}
STICKLINE(B1,H,L,0.3,0),COLORRED;
STICKLINE(B1,O,C,3,1),LINETHICK2,COLORRED;
{其它補(bǔ)充1:買點(diǎn)}
AA2:=AMOUNT/VOL;
BB3:=L<AA2*0.9;
CC2:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD2:=L<MA(C,6)*0.921;
DD1:=L<MA(C,5)*0.921;
EE2:=VOL<MA(V,5)*1.5;
FF2:=BB3 AND CC2 AND DD2 AND EE2;
老鼠倉(cāng):=BB3 AND CC2 AND DD1 AND EE2,LINETHICK0,COLOR0099FF;
DRAWTEXT(老鼠倉(cāng),L*0.97,'老鼠倉(cāng)'),COLOR0099FF;
{DRAWTEXT(FF2,L*0.99,'買點(diǎn)'),COLOR00FFFF;}
STICKLINE(FF2,H,L,0.3,0),COLOR00FFFF;
{STICKLINE(FF2,O,C,3,1),LINETHICK2,COLOR00FFFF;}
{檢查買點(diǎn)是否成立}
B4:=BARSLAST(FF2);{底點(diǎn)日期}
E4:=B4<5;{5日內(nèi)的線}
F4:=E4 AND C>REF(C,1);
STICKLINE(F4,H,L,0.3,0),COLOR00FFFF;
{其它補(bǔ)充2:賣點(diǎn)}
A2:=(C-REF(C,1))/REF(C,1)*100<1.02;
A3:=H>MA(C,5)*1.12;
AA:= A2 AND A3;
DRAWTEXT(AA,H*1.05,'賣點(diǎn)'),COLORFF0000;
STICKLINE(AA,H,L,0.3,0),COLORFF0000;
{STICKLINE(AA,H,L,3,0),COLORFF0000;};
{補(bǔ)充陽光買點(diǎn)}
VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
VAR2:=8;
CC:=CROSS(VAR1,VAR2);
CCC:=CROSS(VAR1,VAR2) AND H>REF(H,1) AND C>REF(C,1) ;
DRAWICON(CCC,L*0.99,1);
STICKLINE(CC,H,L,0.3,0),COLORRED;
STICKLINE(CC,O,C,3,1),LINETHICK2,COLORRED;
{加強(qiáng)買點(diǎn)后續(xù)升勢(shì)}
CF1:=BARSLAST(CC);{買點(diǎn)日期}
CF2:=CF1<3;{5日內(nèi)的線}
CF3:=CF2 AND C>REF(C,1);
STICKLINE(CF3,O,C,3,0),COLOR00FFFF;
CD:=CROSS(VAR2,VAR1);
STICKLINE(CD,H,L,0.3,0),COLORYELLOW;
STICKLINE(CD,O,C,3,1),LINETHICK2,COLORYELLOW;
DRAWTEXT(CD,H*1.01,'準(zhǔn)備'),COLORYELLOW;
DRAWTEXT(CC,L*0.98,'買'),COLORFF00FF;{輸出粉紅色的買字};
{牛窩}
VAR1A:=LLV(LOW,21);
VAR2A:=HHV(HIGH,21);
AK1:=EMA((((CLOSE - VAR1A) / (VAR2A - VAR1A)) * 100),5);
AK:=EMA((((CLOSE - VAR1A) / (VAR2A - VAR1A)) * 50),13);
AB:=CROSS(AK1,AK);
DRAWTEXT((AB = 1),(LOW * 0.95),'○牛窩'),COLORYELLOW;
{主力成本及短期支撐}
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;
S2:=SMA(C,3,1);
S6:=SMA(C,5,1);
DK:=2*(S2-S6);
主力成本:EMA(X,13),LINETHICK1,COLORLIGRAY;
短期支撐:LLV(HIGH,30),LINETHICK2,COLORFFCC00;
{大膽博,、加倉(cāng),、小心變盤、逃頂}
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大膽搏 '),COLOR00FFFF;
DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加倉(cāng)'),COLOR00FFFF;
A1AA:=9;
A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);
DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心變盤'),COLORFFFFFF;
VAR6:=REF(C,1);
VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;
DRAWTEXT(CROSS(82,VAR7),H*1.02,'逃頂'),COLORYELLOW;
{主力進(jìn)場(chǎng)}
VAR9:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);
VAR10:=SMA(VAR9,3,1);
VAR11:=SMA(VAR10,3,1);
VAR12:=SMA(VAR11,3,1);
主力出現(xiàn):DRAWICON(CROSS(VAR11,VAR12) AND (VAR11<40),L*0.98,1);
{黑馬}
A1A:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1),COLOR330066;
A5A:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*1;
DRAWTEXT(CROSS(A1A,EMA(A1A,5))AND EMA(A1A,5)<A5A,L*0.98,'黑馬'),COLORYELLOW;
{波段上行和買入};
多:EMA(C,3),COLORYELLOW;
空:EMA(C,5),COLOR00FF00;
均衡:EMA(空,5),COLORWHITE,;
VVARF1:=COUNT(CROSS(多,均衡),2)=1;
VVARF2:=COUNT(CROSS(空,均衡),2)=1;
ZAI:=FILTER(VVARF1 AND VVARF2,2);
DRAWTEXT(ZAI,均衡*0.985,' ▲'),COLORRED;
VV2:=REF(CLOSE,1);
VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;
DRAWICON(REF(VV3,1)>81 AND VV3<80,HIGH,2);
VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;
DRAWTEXT(IF(CLOSE<VF1 AND VOL/240>MA(VOL,5)/240 AND CLOSE>=REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'☆'),COLORRED;
VVARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100; 
VVARB:=EMA(0.667*REF(VVARA,1)+0.333*VVARA,5);
DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VVARA>=VVARB AND VVARA<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'★注意買入');
VVARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,VVARR1),HIGH,2);
DRAWTEXT(CROSS(82,VVARR1),HIGH,''),COLORYELLOW;
VVAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VVAR2:=REF(VVAR1,1);
VVAR3:=SMA(MAX(VVAR1-VVAR2,0),10,1)/SMA(ABS(VVAR1-VVAR2),10,1)*100;
HY3:=IF(COUNT(VVAR3<20,5)>=1 AND COUNT(VVAR1=LLV(VVAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
DRAWTEXT(HY3,LOW,' 注意買入'),COLORRED;

短線無敵指標(biāo):
MA7:EMA(CLOSE,7),COLORFFFFFF,LINETHICK2;
MID:MA(CLOSE,20),COLORYELLOW;
UPPER:MID+2*STD(CLOSE,20),COLORRED,DOTLINE;
LOWER:MID-2*STD(CLOSE,20),COLORGREEN,DOTLINE;
JRH:=HHV(C,2);
JRL:=LLV(C,2);
MA3:=MA(CLOSE,3);
YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;
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) AND CLOSE<=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));
VAR19:=((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);
VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);

紅色持股:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;
離場(chǎng):=IF(紅色持股,JRL,DRAWNULL);
明離場(chǎng)價(jià):=離場(chǎng),COLORFF99FF,NODRAW;
今離場(chǎng)價(jià):REF(離場(chǎng),1)COLOR0000FF,NODRAW;
青色觀望:VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW;
進(jìn):=IF(青色觀望,JRH,DRAWNULL);
明進(jìn)場(chǎng)價(jià):=進(jìn),COLOR33AACC,NODRAW;
今進(jìn)場(chǎng)價(jià):REF(明進(jìn)場(chǎng)價(jià),1),COLORFF0000,NODRAW;
短買:VAR19,COLOR33AACC,NODRAW;
品紅離場(chǎng):VAR1A,COLORFF99FF,NODRAW;
急速超跌:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRAW;

辰星線:(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(YTSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211,COLOR0000FF;
牽牛線:MA(CLOSE,26),COLORFF00FF;
等待:=IF(MA3>辰星線,辰星線,MA3);

上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;
月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;
日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;

IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR00FFFF;
IF(辰星線>REF(辰星線,1),辰星線,DRAWNULL),LINETHICK2,COLOR0000FF;
IF(辰星線<REF(辰星線,1),辰星線,DRAWNULL),COLOR00FF00;
IF(牽牛線>REF(牽牛線,1),牽牛線,DRAWNULL),LINETHICK1,COLORFF00FF;
IF(牽牛線<REF(牽牛線,1),牽牛線,DRAWNULL),COLOR669933;
STICKLINE(ISLASTBAR AND (紅色持股 OR REF(紅色持股,1)=1),今離場(chǎng)價(jià),今離場(chǎng)價(jià),30,1),COLOR0000FF;
STICKLINE(ISLASTBAR AND (青色觀望 OR REF(青色觀望,1)=1),今進(jìn)場(chǎng)價(jià),今進(jìn)場(chǎng)價(jià),30,1),COLOR00FF00;
STICKLINE(C>=O,L,H,0,0),COLOR0000CC;
STICKLINE(C<O,L,H,0,0),COLOR999900;
STICKLINE(1,C,O,3.5,0),COLOR858500;
STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;
STICKLINE(紅色持股,CLOSE,O,2.8,0),COLOR000055;
STICKLINE(紅色持股,CLOSE,O,2,0),COLOR000088;
STICKLINE(紅色持股,CLOSE,O,1.5,0),COLOR0000AA;
STICKLINE(紅色持股,CLOSE,O,1,0),COLOR0000CC;
STICKLINE(紅色持股,CLOSE,O,0.5,0),COLOR0000EE;
STICKLINE(青色觀望,CLOSE,O,2.8,0),COLOR555500;
STICKLINE(青色觀望,CLOSE,O,2,0),COLOR888800;
STICKLINE(青色觀望,CLOSE,O,1.5,0),COLORAAAA00;
STICKLINE(青色觀望,CLOSE,O,1,0),COLORCCCC00;
STICKLINE(青色觀望,CLOSE,O,0.5,0),COLOREEEE00;
CO:=(C-O);
STICKLINE(急速超跌,O,C-CO/2,2.8,0),COLOR555555;
STICKLINE(急速超跌,O,C-CO/2,2,0),COLOR888888;
STICKLINE(急速超跌,O,C-CO/2,1.5,0),COLORAAAAAA;
STICKLINE(急速超跌,O,C-CO/2,1,0),COLORCCCCCC;
STICKLINE(急速超跌,O,C-CO/2,0.5,0),COLOREEEEEE;
STICKLINE(短買,O,O+CO/3,2.8,0),COLOR335555;
STICKLINE(短買,O,O+CO/3,2,0),COLOR338888;
STICKLINE(短買,O,O+CO/3,1.5,0),COLOR33AAAA;
STICKLINE(短買,O,O+CO/3,1,0),COLOR33CCCC;
STICKLINE(短買,O,O+CO/3,0,0),COLOR33EEEE;
DRAWTEXT(短買,REF(CLOSE,1),'←B'),COLOR33FFCC;
STICKLINE(品紅離場(chǎng),O,O+CO/3,2.8,0),COLOR550055;
STICKLINE(品紅離場(chǎng),O,O+CO/3,2,0),COLOR880088;
STICKLINE(品紅離場(chǎng),O,O+CO/3,1.5,0),COLORAA00AA;
STICKLINE(品紅離場(chǎng),O,O+CO/3,1,0),COLORCC00CC;
STICKLINE(品紅離場(chǎng),O,O+CO/3,0.5,0),COLOREE00EE;
DRAWTEXT(品紅離場(chǎng),REF(CLOSE,1)+0.01,'←S'),COLORFF99FF;
DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIF,9);
AAA:=(DIF-DEA)*2*60;
起爆:=CROSS(AAA-REF(AAA,1),15);
DRAWTEXT(起爆,L*0.99,'↖暴漲'),COLORYELLOW,LINETHICK2;

{超跌反彈}
RSV:=(CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*100;
短期底部:=LLV(OPEN,30);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=(3*K-2*D),LINETHICK2;
D2:=SMA(J,3,1)*0.82;
VAR72:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR73:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
VAR74:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR75:=(VAR72+2*VAR73+3*VAR74)/6;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA2:=EMA(DIFF,6);
MACD超跌2:=(COUNT(DIFF<DEA2,19))=10;
DRAWTEXT(CROSS(J,-3),L,'↖超跌反彈'),COLORGREEN;


{金底選股}
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
BT1:=CROSS(RSI1,25);
主力:=EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5;
散戶:=EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5;
BT2:=CROSS(主力,散戶) AND 主力<-10;
BT:FILTER(COUNT(BT1 OR BT2,3)>=2,3);

寧俊明135戰(zhàn)法所有公式全編寫主圖通達(dá)信指標(biāo)公式源碼

EMA13:MA(C,13),COLORWHITE,LINETHICK2; 
EMA34:MA(C,34),COLORYELLOW; 
EMA55:MA(C,55),COLORFF00FF; 

{見好就收} 
Y:=(EMA13-EMA55)/EMA13*100; 
JHJX:=REF(Y,1)<=10 AND Y>10; 
{DRAWICON(JHJX,H,1);} 
DRAWTEXT(JHJX,H,'見好就收'),COLORF00FF0; 
{紅杏出墻} 
HX1:=EMA13<EMA34 AND EMA34<EMA55;{股價(jià)長(zhǎng)期下跌,,并且遠(yuǎn)離長(zhǎng)期均線} 
HX2:=BARSLAST((C-EMA13)/EMA13*100<-6);{收盤價(jià)在13均線%6到現(xiàn)在的天數(shù)} 
HX3:=ABS(1-EMA55/REF(C,1))>0.1; 
HX6:=BARSLAST(CROSS(EMA55,EMA34))>=20;{13日均線下降趨于走平} 
HX4:=ABS(1-REF(EMA13,1)/EMA13)<0.004 AND C<EMA34; 
HX5:=REF(C,1)<EMA13 AND C>EMA13 AND C>O; 
HX7:=HX1 {AND HX3} AND HX4 AND HX5 ; 
HX8:=HX7 AND FILTER(HX7,10);{滿足后10天內(nèi)不標(biāo)記} 
DRAWTEXT(HX8,L-0.05,'紅杏出墻'),COLORYELLOW; 
{螞蟻上樹} 
BR1:=COUNT(BETWEEN(((C-O)/O)*100,0,5) ,5)=5;{5日內(nèi)收盤價(jià)都比前日收盤價(jià)高} 
BR2:=(ABS(EMA13-EMA34)+ABS(EMA34-EMA55))/C<0.1;{主均線相距很近或基本持平} 
BR3:=C>EMA55 AND COUNT(L<EMA55,5)>=1;{股價(jià)送上55日均線} 
MYSS:=BR1 AND BR2 AND BR3; 
DRAWTEXT(MYSS AND FILTER(MYSS,5),H,'螞蟻上樹'),COLOR00C5FF; 
{黑客點(diǎn)擊} 
DJ1:=EMA13>EMA34 AND EMA34<EMA55;{13日均線大于34日均線,,34日均線小于55日均線} 
DJ2:=O>EMA55;{開盤價(jià)大于55日均線} 
DJ3:=CROSS(EMA13,EMA55) OR ABS(1-EMA13/EMA55)<0.002; 
DJ4:=O>C AND C<REF(C,1); 
HKDJ:= DJ2 AND DJ3 AND DJ4; 
DRAWTEXT(HKDJ AND FILTER(HKDJ,10),L-0.03,'黑客點(diǎn)擊'),COLORD6BA63; 


{紅衣俠女} 
XN1:=ABS(1-HHV(EMA55,5)/LLV(EMA55,5))<0.02; 
XN2:=CROSS(EMA13,EMA55) OR ABS(1-EMA13/EMA55)<0.002; 
XN3:=C>O AND V>REF(V,1) AND C>EMA55; 
HYXN:=XN1 AND XN2 AND XN3; 
DRAWTEXT(HYXN AND FILTER(HYXN,5),L-0.05,'紅衣俠女'),COLORF00FF0; 

{海底撈月} 
LY1:=COUNT(ABS(1-EMA55/EMA34)<0.1,20)>=16; 
LY2:=COUNT(CROSS(EMA34,EMA13),40)>=1 AND COUNT(CROSS(EMA55,EMA13),40)>=1; 
LY3:=CROSS(EMA13,EMA55); 
HDLY:=LY1 AND LY2 AND LY3; 
DRAWTEXT(HDLY AND FILTER(HDLY,5),L-0.25,'海底撈月'),COLORGREEN; 

{均線互換} 
JXHH:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55); 
DRAWTEXT(JXHH,L+0.09,'均線互換'),COLOR0099FF; 
{梅開二度} 
MKED1:=BARSLAST(REF(CROSS(EMA34,EMA13),1)); 
MKED2:=COUNT(H>=EMA55,MKED1)=MKED1; 
MKED:=MKED2 AND CROSS(EMA13,EMA34); 
DRAWTEXT(MKED,L-0.1,'梅開二度'),COLOR0044FF; 
{一陽三線} 
YY1:=C>EMA13 AND O<EMA13; 
YY2:=C>EMA34 AND O<EMA34; 
YY3:=C>EMA55 AND O<EMA55; 
YYSX:=YY1 AND YY2 AND YY3; 
DRAWTEXT(YYSX,H+0.1,'一陽三線'),COLORRED; 

{揭竿而起} 
MAX3:=MAX(MAX(EMA13,EMA34),EMA55); 
MIN3:=MIN(MIN(EMA13,EMA34),EMA55); 
JG1:=ABS(EMA13-EMA34)<C*0.05;{13線34線55線接近} 
JG2:=ABS(EMA34-EMA55)<C*0.05; 
JG3:=C>=O*1.03 AND C>MAX3;{陽線3%} 
JG4:=O>MIN3 AND O<MAX3; 
JG5:=C>REF(H,5); 
JG6:=(C-EMA34)/EMA34<=0.15;{控制價(jià)高} 
JG7:=V>MA(V,5) AND MA(V,10); 
JGEQ:=JG1 AND JG2 AND JG3 AND JG4 AND JG5 AND JG6 AND JG7; 
DRAWTEXT(JGEQ,H+0.1,'揭竿而起'),COLORGREEN; 

{三線推進(jìn)} 
MAX4:=MAX(MAX(MAX(EMA13,EMA34),EMA55),H); 
MIN4:=MIN(MIN(MIN(EMA13,EMA34),EMA55),L); 
SXTJ1:=HHV(MAX4,60); 
SXTJ2:=LLV(MIN4,60); 
SXTJ3:=EVERY(ABS(1-SXTJ1/SXTJ2)<0.3,20); 
SXTJ:=SXTJ3 AND (YYSX OR JGEQ); 
DRAWTEXT(SXTJ AND FILTER(SXTJ,10),H+0.25,'三線推進(jìn)'),COLOR00C5FF; 

{浪子回頭} 
LZ1:=REF(C,2)<REF(O,2) AND REF(C,1)<REF(O,1) AND C<O; 
LZ2:=C<=REF(C,1) AND REF(C,1)<=REF(C,2); 
LZ3:=MA(V,3)<REF(V,3); 
LZ4:=REF(C,3)>EMA13 AND (C>EMA55 OR ABS(1-C/EMA55)<0.01); 
LZHT:=LZ1 AND LZ2 AND LZ3 AND LZ4; 
DRAWTEXT(LZHT AND FILTER(LZHT,5),L-0.1,'浪子回頭'),COLOR00FF99; 

{走四方} 
ZSF1:=REF(C,4)>REF(O,4) AND (REF(C,4)>EMA13 OR REF(C,4)>EMA34) AND (ABS(1-REF(EMA55,4)/EMA55)<0.01 OR MA(EMA55,4)>REF(EMA55,5)); 
ZSF2:=COUNT(ABS((1-REF(C,1)/C)*100)<3,4)=4 AND MA(V,4)<REF(V,4)*0.8; 
ZSF:=ZSF1 AND ZSF2; 
DRAWTEXT(ZSF AND FILTER(ZSF,4),L-0.1,'走四方'),COLORBLUE; 

{一枝獨(dú)秀} 
YZ1:=C/O>1.01 AND H/C>1.025 ;{收陽有上影} 
YZ2:=EMA13>MAX(EMA34,EMA55) AND C>1.05*EMA13 AND O>MA(C,11);{昨收陽 今大于均線} 
YZDX:=YZ1 AND YZ2; 
DRAWTEXT(YZDX,(H+C)/2,'一枝獨(dú)秀'),COLORF00FF0; 

{獨(dú)上高樓} 
DSGL1:=REF(C,1)>=REF(O,1); 
DSGL2:=O/REF(C,1)>1.029 AND O/C>1.03 AND O/MAX(EMA13,EMA55)>1.03; 
DSGL:=DSGL1 AND DSGL2; 
DRAWTEXT(DSGL,(O+C)/2,'獨(dú)上高樓'),COLORF00FF0; 

{金屋藏嬌} 
JWCJ1:=C<O AND REF(C,1)<REF(O,1); 
JWCJ2:=O<=REF(C,1) AND L>=REF(L,1); 
JWCJ3:=REF(C,1)/REF(L,1)>1.02; 
JWCJ4:=EMA13<EMA34 OR EMA13<EMA55; 
JWCJ:=JWCJ1 AND JWCJ2 AND JWCJ3 AND JWCJ4; 
DRAWTEXT(JWCJ,LOW-0.2,'金屋藏嬌'),COLORYELLOW; 

{日月合璧} 
RYHB1:=REF(O,1)<=REF(C,2) AND REF(C,1)<REF(O,1) AND ABS(1-REF(C,1)/REF(L,1))<0.02; 
RYHB2:=C>O AND ABS(1-C/REF(O,1))<0.025 AND ABS(1-O/REF(C,1))<0.025; 
RYHB3:=EMA13<REF(EMA13,1) OR ABS(1-EMA13/REF(EMA13,1))<0.01 AND (EMA13<EMA34 OR EMA13<EMA55); 
RYHB4:=REF(L,1)<=LLV(REF(L,1),10); 
RYHB:=RYHB1 AND RYHB2 AND RYHB3 AND RYHB4; 
DRAWTEXT(RYHB ,LOW,'日月合璧'),COLORYELLOW; 
{投石問路} 
TSWL1:=CROSS(EMA13,EMA34) AND EMA13<EMA55; 
DRAWTEXT(TSWL1,L-0.1,'投石問路'),COLOR0044FF; 
{分道揚(yáng)鑣} 
FDYB:=CROSS(EMA34,EMA13) AND EMA34>EMA55; 
DRAWTEXT(FDYB,L-0.1,'分道揚(yáng)鑣'),COLOR0044FF; 
{三軍集結(jié)} 
SJJJ3:=REF(EMA55,1)>REF(EMA13,1); 
SJJJ4:=ABS(1-(MAX(MAX(EMA34,EMA55),EMA13)/MIN(MIN(EMA13,EMA34),EMA55)))<0.005; 
SJJJ:=SJJJ3 AND SJJJ4; 
DRAWTEXT(SJJJ AND FILTER(SJJJ,5),L-0.1,'三軍集結(jié)'),COLOR0044FF; 
{突出重圍} 
TCCW1:=REF(EMA55,1)<REF(EMA13,1); 
TCCW2:=EMA13<LLV(REF(EMA13,1),5) AND ABS(1-(MAX(MAX(EMA34,EMA55),EMA13)/MIN(MIN(EMA13,EMA34),EMA55)))<0.008; 
TCCW:=TCCW1 AND TCCW2; 
DRAWTEXT(TCCW AND FILTER(TCCW,5),H+0.01,'突出重圍'),COLORF00FF0; 
{明修棧道} 
MXZD1:=C/O>1.07; 
MXZD2:=EMA13>HHV(REF(EMA13,1),5) AND V>HHV(REF(V,1),10) AND V/MA(REF(V,1),5)>2; 
MXZD:=MXZD1 AND MXZD2; 
DRAWTEXT(MXZD,H+0.01,'明修棧道'),COLORF00FF0; 
{暗度陳倉(cāng)} 
ADCC1:=O/C>1.05 AND EMA13/EMA55<1.1 AND EMA13>MA(EMA13,5); 
ADCC2:=O/REF(C,1)<1.03;{V<HHV(REF(V,1),5) AND V/MA(REF(V,1),5)<2}; 
ADCC:=ADCC1 AND ADCC2; 
DRAWTEXT(ADCC,(C+O)/2,'暗度陳倉(cāng)'),COLOR00C5FF; 
{破鏡重圓} 
PJCY1:=REF(O,1)/REF(C,1)>1.02; 
PJCY2:=O<=REF(C,1) AND C>=REF(O,1); 
PJCY3:=(ABS(1-REF(C,1)/EMA55)<0.05 OR ABS(1-C/EMA55)<0.05 OR ABS(1-MA(C,2)/EMA55)<0.05); 
PJCY4:=EMA13>EMA55 OR EMA13>MA(EMA13,5); 
PJCY:=PJCY1 AND PJCY2 AND PJCY3 AND PJCY4; 
DRAWTEXT(PJCY,LOW,'破鏡重圓'),COLORYELLOW; 
{一石二鳥} 
YSEN1:=REF(C,2)>REF(O,2) AND REF(C,1)<REF(O,1) AND C<O; 
YSEN2:=REF(C,2)>EMA55 AND EMA13>EMA55 AND EMA13>=MA(EMA13,5); 
YSEN3:=REF(V,2)>REF(V,1) AND REF(V,2)>V; 
YSEN:=YSEN1 AND YSEN2 AND YSEN3; 
DRAWTEXT(YSEN,H+0.01,'一石二鳥'),COLORBLUE; 
{拖泥帶水} 
TNDS1:=O/REF(C,1)>1.05 AND MIN(C,O)/L>1.03; 
TNDS2:=C/MAX(EMA13,EMA55)>1.03 AND C>REF(C,1); 
TNDS:=TNDS1 AND TNDS2; 
DRAWTEXT(TNDS,(O+C)/2,'拖泥帶水'),COLORF00FF0; 
{金蟬脫殼} 
JCTQ1:=C<O AND (EMA13/EMA55>1.1 OR (C/MIN(EMA13,EMA55)>1.1)) AND EMA13>MA(EMA13,5); 
JCTQ2:=REF(O,1)>=REF(C,2) AND REF(C,1)>REF(O,1) AND O<=REF(C,1) AND C>REF(O,1); 
JCTQ:=JCTQ1 AND JCTQ2; 
DRAWTEXT(JCTQ,(O+C)/2,'金蟬脫殼'),COLORF00FF0; 
{一箭穿心} 
YJCX:=CROSS(EMA55,EMA13); 
DRAWTEXT(YJCX,L-0.1,'一箭穿心'),COLOR0044FF; 
{步步高} 
BBG1:=C>=REF(C,1) AND REF(C,1)>=REF(C,2);{3日內(nèi)收盤價(jià)都比前日收盤價(jià)高} 
BBG2:=V>=REF(V,1) AND REF(V,1)>=REF(V,2);{3日內(nèi)量都比前日量高} 
BBG3:=COUNT(C>=O,3)=3; 
BBG:=BBG1 AND BBG2 AND BBG3; 
DRAWTEXT(BBG AND FILTER(BBG,3),(C+O)/2,'步步高'),COLORFF00FF; 
{雙飛燕} 
SFY1:=EMA13>EMA34 AND EMA34>EMA55; 
SFY2:=REF(O,1)>=REF(C,2) AND O>=REF(C,1) AND REF(C,2)>=REF(O,2); 
SFY3:=COUNT(C>O AND C/O<1.02,2)=2 OR COUNT(C<O AND O/C<1.02,2)=2; 
SFY4:= V<REF(V,1); 
SFY:=SFY1 AND SFY2 AND SFY3 AND SFY4; 
DRAWTEXT(SFY AND FILTER(SFY,2),L,'雙飛燕'),COLORYELLOW; 
{三劍客} 
SJK1:=EMA13>EMA34 AND EMA34>EMA55; 
SJK2:=COUNT(C<=O AND O/C<1.03,3)=3 AND COUNT(ABS(1-REF(C,1)/C)<1.03,2)=2; 
SJK:=SJK1 AND SJK2; 
DRAWTEXT(SJK AND FILTER(SJK,3),L,'三劍客'),COLORYELLOW; 
{四星望月} 
SXWY1:=COUNT(C>=O AND C/O<1.03,4)=4; 
SXWY2:=(ABS(EMA13-EMA34)+ABS(EMA34-EMA55))/C<0.1;{主均線相距很近或基本持平} 
SXWY3:=EMA13<EMA55; 
SXWY:=SXWY1 AND SXWY2 AND SXWY3; 
DRAWTEXT(SXWY AND FILTER(SXWY,5),H,'四星望月'),COLOR00C5FF; 
{星星點(diǎn)燈} 
XXDD1:=ABS(1-C/O)*100<=2.5 AND H/MAX(C,O)>1.03 AND REF(C,1)/REF(O,1)>1.05; 
XXDD2:=O>=REF(C,1) AND ABS(1-REF(EMA13,1)/EMA55)<0.1}; 
XXDD:=XXDD1 AND XXDD2; 
DRAWTEXT(XXDD,(O+C)/2,'星星點(diǎn)燈'),COLORGREEN; 
{過河拆橋} 
GHCQ1:=C<O AND O/C>=1.04; 
GHCQ2:=O>EMA13 AND C<EMA13; 
GHCQ3:=EMA13/EMA55>1.1 AND ABS(1-EMA13/MA(EMA13,3))<0.02; 
GHCQ:=GHCQ1 AND GHCQ2 AND GHCQ3; 
DRAWTEXT(GHCQ,(O+C)/2,'過河拆橋'),COLORF00FF0; 
{狗急跳墻} 
GJTQ1:=O/REF(C,1)>1.02 AND L>REF(C,1); 
GJTQ2:=V>MA(V,5); 
GJTQ3:=EMA13/EMA55>1.1; 
GJTQ:=GJTQ1 AND GJTQ2 AND GJTQ3; 
DRAWTEXT(GJTQ,(O+C)/2,'狗急跳墻'),COLORF00FF0; 
{雙蹄并進(jìn)} 
STBJ1:=CROSS(DMI.PDI,DMI.MDI); 
STBJ2:=ABS(1-DMI.ADX/DMI.ADXR)<0.1; 
STBJ:=STBJ1 AND STBJ2; 
DRAWTEXT(STBJ,(O+C)/2,'雙蹄并進(jìn)'),COLORGREEN; 
{一劍封喉} 
YJFH1:=REF(C,1)>=REF(O,1); 
YJFH2:=H/MAX(C,O)>=1.035 ; 
YJFH3:=V/MA(REF(V,1),11)>3 AND EMA13/EMA55>1.05; 
YJFH:=YJFH1 AND YJFH2 AND YJFH3; 
DRAWTEXT(YJFH,(H+L)/2,'一劍封喉'),COLORF00FF0; 
{小鳥依人} 
XNYR1:=REF(C,1)/REF(O,1)>1.05; 
XNYR2:=O<=REF(C,1) AND ABS(1-C/O)<0.02; 
XNYR3:=COUNT(JGEQ OR YYSX OR HYXN,10)>=1 AND COUNT(JGEQ OR YYSX OR HYXN,2)=0; 
XNYR:=XNYR1 AND XNYR2 AND XNYR3; 
DRAWTEXT(XNYR,H+0.01,'小鳥依人'),COLORBLUE; 
{立竿見影} 
LGJY1:=O<=REF(C,1) AND V<REF(V,1) AND C<O; 
LGJY2:=COUNT(JGEQ OR YYSX OR HYXN,2)=1; 
LGJY:=LGJY1 AND LGJY2; 
DRAWTEXT(LGJY,H+0.1,'立竿見影'),COLORBLUE; 
{節(jié)外生枝} 
JWSZ1:=EMA13>MAX(EMA34,EMA55) AND EMA13/EMA55>1.1 AND REF(C,1)>1.04*EMA13 AND REF(C,1)/REF(O,1)>1.04; 
JWSZ2:=ABS(1-C/O)<0.015 AND ABS(1-REF(C,1)/C)<0.02; 
JWSZ:=JWSZ1 AND JWSZ2; 
DRAWTEXT(JWSZ,(H+C)/2,'節(jié)外生枝'),COLORF00FF0; 
{笑里藏刀} 
XLCD1:=REF(H,1)/MAX(REF(C,1),REF(O,1))>1.04; 
XLCD2:=H<REF(H,1) AND O>=REF(C,1); 
XLCD3:=EMA13/EMA55>1.05 AND C/EMA13>1.03; 
XLCD:=XLCD1 AND XLCD2 AND XLCD3; 
DRAWTEXT(XLCD,(O+C)/2,'笑里藏刀'),COLORF00FF0; 
{馬失前蹄} 
MSQT1:=EMA55/EMA13>1.04 AND EMA13/C>1.03; 
MSQT2:=O<=REF(L,1) AND REF(O,1)/REF(C,1)>1.03; 
MSQT:= MSQT1 AND MSQT2; 
DRAWTEXT(MSQT,(O+C)/2,'馬失前蹄'),COLORYELLOW; 
{絕處逢生} 
JCFS1:=EMA55>EMA13 AND EMA13>C; 
JCFS2:=O<=REF(L,1) AND C/O>1.05; 
JCFS:= JCFS1 AND JCFS2; 
DRAWTEXT(JCFS,H,'絕處逢生'),COLORYELLOW; 
{一陰三線} 
YYSX1:=C<EMA13 AND O>EMA13;{一陰三線} 
YYSX2:=C<EMA34 AND O>EMA34; 
YYSX3:=C<EMA55 AND O>EMA55; 
YYYSX:=YYSX1 AND YYSX2 AND YYSX3; 
DRAWTEXT(YYYSX,H+0.1,'一陰三線'),COLORF00FF0; 
{落井下石} 
LJXS1:=O<REF(L,1) AND EMA13/EMA55>1.05 AND C<O; 
DRAWTEXT(LJXS1,H+0.01,'落井下石'),COLOR00C5FF; 
{晨鐘暮鼓} 
CZMG1:=REF(C,1)/REF(O,1)>1.05 AND REF(V,1)/REF(V,2)>2 AND HSL>3; 
CZMG2:=C>O AND V<REF(V,1); 
CZMG:=CZMG1 AND CZMG2; 
DRAWTEXT(CZMG,H,'晨鐘暮鼓'),COLORF00FF0;


前輩老師用的分時(shí)指標(biāo)和最好的漲停選股指標(biāo)公式
上午10點(diǎn)以前選的股最好,在牛市里85%都能漲停。
分時(shí)指標(biāo)
Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05,0.95);
天:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))));
DRAWICON(CROSS((C/天),1.01),25,3);
STICKLINE(CROSS((C/天),1.01),25,0,2,0), ,COLORYELLOW;
VAR1:=REF(CLOSE,3.5);
VAR2:=REF(CLOSE,1);
VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100;
Q2:=(CLOSE-LLV(LOW, 21))/(HHV(HIGH, 21)-LLV(LOW, 21))*100;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
Q8:=HHVBARS(HIGH, 50); 
Q10:=(CLOSE-REF(OPEN, Q8))/REF(OPEN, Q8)*100;
快線: SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,COLORFFAA66;
慢線:EMA(Q3, 3),COLORRED;
DRAWBAND(快線,RGB(115,95,120),慢線,RGB(95,120,115));
A:=VOL*CLOSE;
B:=SUM(A,3.52)/SUM(VOL,3.82);
B1:=EMA(B,13);
主力線:(B-B1)*191/B+50,COLORMAGENTA;
多頭:3*Q3-2*Q4,COLORRED;
VAR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
空頭: SMA(VAR12,3,1),COLORGREEN;
DRAWTEXT(CROSS(慢線, 多頭) AND REF(多頭,1)>80, REF(多頭,3), '*頂'),COLORRED,LINETHICK5;
●關(guān)注: DRAWTEXT(REF(CROSS(空頭,慢線),25) AND 空頭>1.005*慢線,慢線,'●關(guān)注'),COLORBLUE,LINETHICK1;
★關(guān)注: DRAWTEXT(REF(CROSS(慢線,多頭),82) AND 慢線>1.3*多頭,多頭,'★關(guān)注'),LINETHICK1;
★追漲: DRAWTEXT(REF(CROSS(多頭,慢線),1) AND 多頭>1.3*慢線,慢線,'★追漲'),COLORRED,LINETHICK1;
★抄底:IF(CROSS(多頭,慢線) AND 快線>=REF(快線,1) AND 多頭>=REF(多頭,1)
AND 慢線<38.2 AND 慢線>=REF(慢線,1) AND COUNT(REF(快線,1)<REF(快線,2) OR REF(慢線,1)<REF(慢線,2) OR REF(多頭,1)<REF(多頭,2),3)>=2,30,0),COLORMAGENTA;
DRAWTEXT(CROSS(多頭, 8) AND Q10<-13,20,'*大底'),COLORYELLOW,LINETHICK5;
★逃亡:IF(快線< REF(快線,1) AND 快線>61.8,70,100),COLORBLUE;
50,POINTDOT,COLORWHITE;
AZ1:=AMOUNT/VOL/100;
AZ2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
AZ3:=SUM(AMOUNT,40)/AZ1/100;
AZ4:=SUM(AMOUNT,80)/AZ1/100;
BZ1:=DMA(AZ2,VOL/AZ3);
BZ2:=DMA(AZ2,VOL/AZ4);
BZ3:=(CLOSE-BZ1)/BZ1*100;
BZ4:=(CLOSE-BZ2)/BZ2*100;
DRAWTEXT(ISLASTBAR AND C,93,' 冷眼分時(shí)專用指標(biāo)'),COLOR00AAFF;
DRAWTEXT(ISLASTBAR AND C,80,' 55上紅柱謹(jǐn)慎看多'),COLOR00BBBB;
DRAWTEXT(ISLASTBAR AND C,68,' 50下綠柱保持警惕'),COLOR00BBBB;
DRAWTEXT(ISLASTBAR AND C,56,' 結(jié)合多(黃)空(綠)線'),COLOR00BBBB;
DRAWTEXT(ISLASTBAR AND C,44,' 選擇正確操作時(shí)段'),COLOR00BBBB;
DRAWTEXT(ISLASTBAR AND C,32,' 按照?qǐng)D中提示關(guān)注'),COLOR00BBBB;
DRAWTEXT(ISLASTBAR AND C,20,' 嚴(yán)格遵守操作紀(jì)律'),COLOR00BBBB;
DRAWTEXT(ISLASTBAR AND C,8,' 心態(tài)平衡投資順利'),COLOR00BBBB;
STICKLINE(FILTER(C,60)>0,100,-0,0,0),COLORRED;
STICKLINE(BZ4>0,50,50+13.82*BZ4,0,0),COLORYELLOW;
STICKLINE(BZ3>0,50,50+13.82*BZ3,0,0),COLORRED;
STICKLINE(BZ3<=0,50,50+13.82*BZ3,0,0),COLORGREEN;
==================================================================
選股指標(biāo)
地:=DYNAINFO(11)+(DYNAINFO(11)*0.021);
條件:IF(DYNAINFO(7)>地,1,0);


{通達(dá)信文字指標(biāo)}
所屬板塊:=STRCAT('所屬板塊: ',STRCAT(STRCAT(STRCAT('[行業(yè)]-',HYBLOCK),STRCAT(' [地域]-',DYBLOCK)),STRCAT(' [概念]-',GNBLOCK)));
總股本:=STRCAT(STRCAT('總股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'億');
流通盤:=STRCAT(STRCAT(' 流通盤: ',CON2STR(CAPITAL/1000000,2)),'億');
全流通:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));
市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'億');
上市天數(shù):=STRCAT(' 上市天數(shù): ',CON2STR(FINANCE(42),0));
{上市日期:=STRCAT(' 上市日期: ',CON2STR(HHV((BARSCOUNT(C)=0)*(DATE+19000000),0),0));}
股本市值:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(STRCAT(總股本,流通盤),全流通),市值),上市天數(shù)));
{}
市盈率:=STRCAT('市盈率: ',CON2STR(C/FINANCE(33),2));
市銷率:=STRCAT(' 市銷率: ',CON2STR(C/(FINANCE(20)/FINANCE(1)),2));
市凈率:=STRCAT(' 市凈率: ',CON2STR(C/FINANCE(34),2));
凈資收益率:=STRCAT(' 凈資收益率: ',CON2STR(FINANCE(33)/FINANCE(34)*100,2));
毛利率:=STRCAT(' 毛利率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));
凈利潤(rùn)率:=STRCAT(' 凈利潤(rùn)率 ',CON2STR(FINANCE(30)/FINANCE(20)*100,2));
主營(yíng)利潤(rùn)率:=STRCAT(' 主營(yíng)利潤(rùn)率 ',CON2STR(FINANCE(23)/FINANCE(20)*100,2));
當(dāng)前業(yè)績(jī):=STRCAT('當(dāng)前業(yè)績(jī): ',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市銷率),市凈率),凈資收益率),毛利率),凈利潤(rùn)率),主營(yíng)利潤(rùn)率));
{}
X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;
X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公積用資本公積金代替};
X3:=FINANCE(23)/FINANCE(10)*3.3;
X4:=FINANCE(19)/FINANCE(15)*0.6;{缺長(zhǎng)期負(fù)債或負(fù)債總額}
X5:=FINANCE(20)/FINANCE(15)*0.999;
Z值:=X1+X2+X3+X4+X5;
預(yù)警:=IF(Z值<1.2,'重警',IF(Z值>=1.2 AND Z值<2.6,'輕警','無警'));
財(cái)務(wù)預(yù)警:=STRCAT('財(cái)務(wù)預(yù)警: ',STRCAT(預(yù)警,STRCAT('-Z值: ',CON2STR(Z值,3))));
優(yōu)質(zhì)資產(chǎn)率:=STRCAT(' 優(yōu)質(zhì)資產(chǎn)率: ',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2));
現(xiàn)金負(fù)債比:=STRCAT(' 現(xiàn)金負(fù)債比: ',CON2STR(FINANCE(25)/FINANCE(15),3));
財(cái)務(wù)系數(shù):=STRCAT('風(fēng)險(xiǎn)系數(shù): ',STRCAT(STRCAT(財(cái)務(wù)預(yù)警,優(yōu)質(zhì)資產(chǎn)率),現(xiàn)金負(fù)債比));
DRAWTEXT_FIX(ISLASTBAR,0.005,0,0,所屬板塊),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,股本市值),COLORGREEN;

平安短線
DRAWGBK(C>0,RGB(150,50,175),RGB(0,25,100),0,' ',0);
布林軌:(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,COLORRED,LINETHICK2;
MA3:=MA(CLOSE,20),COLORMAGENTA,LINETHICK2;
DRAWBAND(布林軌,RGB(250,125,50),MA3,RGB(0,150,250)); 
MA1:MA(CLOSE,5),COLORWHITE;
MA2:MA(CLOSE,10),COLORYELLOW;
IF(布林軌<MA3 OR C<布林軌,布林軌,DRAWNULL),COLORBLUE,LINETHICK2;
漲勢(shì)線:IF(布林軌>MA3,MA3,DRAWNULL),COLORMAGENTA,LINETHICK3;
跌勢(shì)線:IF(布林軌<=MA3,MA3,DRAWNULL),COLORLIBLUE,LINETHICK1;
MA4:MA(CLOSE,60),COLORGREEN;
HLCO:=(C+H+L+O)/4;
MAHC:=MA((CLOSE*2+H)/3,5),COLOR0000FF;
MAHO:=MA((O*2+H)/3,5),COLOR00FF00;
MALC:=MA((C+L*2)/3,5),COLORFFFFFF;
MALO:=MA((O+L*2)/3,5),COLOR00FFFF;
CO:=O+(C-O)/2;
DRAWKLINE(H,O,L,C);
STICKLINE("DMI.PDI">"DMI.MDI",C,O,2.9,0),COLOR000099;
STICKLINE("DMI.PDI">"DMI.MDI",C,O,1.5,0),COLOR0000CC;
STICKLINE("DMI.PDI">"DMI.MDI",C,O,0.1,0),COLOR9966FF;
STICKLINE(MAHC>=MAHO,C,O,2.9,0),COLOR000099;
STICKLINE(MAHC>=MAHO,C,O,1.5,0),COLOR0000CC;
STICKLINE(MAHC>=MAHO,C,O,0.1,0),COLOR9966FF;
STICKLINE(MAHC<MAHO AND "DMI.PDI"<"DMI.MDI",C,O,2.9,0),COLOR999900;
STICKLINE(MAHC<MAHO AND "DMI.PDI"<"DMI.MDI",C,O,1.5,0),COLORCCCC00;
STICKLINE(MAHC<MAHO AND "DMI.PDI"<"DMI.MDI",C,O,0.1,0),COLORFFFF66;
STICKLINE(MAHC>=MAHO AND C<MAHO,CO,MAX(O,C),2.8,0),COLORMAGENTA;
{STICKLINE(LC>MAHC,CO,MAX(C,O),2.8,0),COLORRED;
STICKLINE(LC<MAHC,CO,MIN(C,O),2.8,0),COLORCYAN;}
STICKLINE(CROSS(MAHC,MAHO),C,O,2.8,0),COLORYELLOW;
STICKLINE(MAHC<MAHO AND (CROSS(C,MALO) OR CROSS(HLCO,MALO)),CO,MIN(C,O),2.8,0),COLORWHITE;
STICKLINE(CROSS(MAHO,MAHC) AND C<O AND "DMI.PDI"<"DMI.MDI",C,O,2.8,0),COLORFF3300;
{STICKLINE(REF(C,1)<LC AND C>=LC AND CROSS(C,MAX(MAHC,MAHO)),CO,MIN(C,O),2.8,0),COLORYELLOW;}
{STICKLINE(REF(C,1)<LC AND C>=LC AND CROSS(C,MAHC) AND MAHC>MAHO,C,O,2.8,0),COLORYELLOW;}
TAR1:=REF(OPEN,1);
TAR2:=SMA(MAX(OPEN-TAR1,0),6,1)/SMA(ABS(OPEN-TAR1),6,1)*100;
TAR3:=REF(CLOSE,1);
TAR4:=SMA(MAX(CLOSE-TAR3,0),6,1)/SMA(ABS(CLOSE-TAR3),6,1)*100;
TAR5:=REF(HIGH,1);
TAR6:=SMA(MAX(HIGH-TAR5,0),6,1)/SMA(ABS(HIGH-TAR5),6,1)*100;
TAR7:=REF(LOW,1);
TAR8:=SMA(MAX(LOW-TAR7,0),6,1)/SMA(ABS(LOW-TAR7),6,1)*100;
TAR9:=(MIN(OPEN,CLOSE)-LOW)/LOW*100>VOL/CAPITAL*0.001 ;
TAR10:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,13))*100;
TAR11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
TAR12:=EMA(TAR11,8)*10<-26;
TAR13:=IF(TAR9 AND MA(TAR10,5)<50 AND TAR12,30,0);
開盤值:=TAR2,COLORGREEN,NODRAW;
收盤值:=TAR4,COLORRED,NODRAW;
最高值:=TAR6,COLORMAGENTA,NODRAW;
最低值:=TAR8,COLORCYAN,NODRAW;
T小值:=MIN(MIN(MIN(開盤值,收盤值),最高值),最低值),NODRAW;
T大值:=MAX(MAX(MAX(開盤值,收盤值),最高值),最低值),NODRAW;
DRAWICON((LLV(T小值,5)<=20 OR LLV(T大值,5)<=30) AND CROSS(MAHC,MAHO),H,9);
倍量攻擊:=V>REF(V,1)*2 AND (C>=O OR C>REF(C,1)),COLORRED,NODRAW;
STICKLINE(倍量攻擊,C,O,0.5,0),COLOR0088FF;
N:=14; M:=6;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
MACCI1:=MA(CCI,3);
MACCI2:=EMA(CCI,3);
MACCI3:=SMA(CCI,5,1);
平安線:=(((MACCI3-LLV(MACCI3,21))/(HHV(MACCI3,21)-LLV(MACCI3,21)))*100-50)+50,COLORCYAN,LINETHICK3; 
DDI:=IF(CCI>100,120,IF(CCI<-100,-120,CCI))/2+50,COLORYELLOW,LINETHICK2;
角線:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926);
角線MA:=MA(角線,5);
ANA:=PLOYLINE(CROSS(角線,角線MA),角線MA),COLORRED;
ANB:=PLOYLINE(CROSS(角線MA,角線),角線MA),COLORFF00FF ;
角買點(diǎn):=CROSS(角線,角線MA) AND ((ANB>REF(ANB,1) AND ANB>ANA AND 角線MA<=0) OR ((角線MA<=-45 OR CROSS(角線MA,-45)) AND (ANB<-60 OR LLV("KDJ.J",3)<=-49) AND ANB>0)),COLORGREEN;
角起漲:=COUNT(CROSS(角線,角線MA),ANA<REF(ANA,5) AND ANB>REF(ANB,5));
角賣點(diǎn):=(CROSS(角線MA,角線) AND (ANB>REF(ANB,1) OR ANA<REF(ANA,1)) AND ANB>ANA{AND ANB>0} AND 角線MA>0)*1;
角始跌:=COUNT(CROSS(角線MA,角線),ANA<REF(ANA,5) AND ANB>REF(ANB,5));
DRAWTEXT(倍量攻擊,L,'VOL');
DRAWTEXT(CROSS(MAHO,MAHC) AND C<O AND "DMI.PDI"<"DMI.MDI",H,'空倉(cāng)'),COLORFFFF00;
DRAWTEXT(角買點(diǎn),L,'角買'),COLORMAGENTA;
DRAWTEXT(角賣點(diǎn) AND (平安線<50 OR DDI<50),H,'角賣'),COLORGREEN;
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);
大宗進(jìn):=(超B)+(大B),NODRAW;
大宗出:=(超S)+(大S),NODRAW;
非大宗進(jìn):=(中B)+(小B),NODRAW;
非大宗出:=(中S)+(小S),NODRAW;
大宗進(jìn)限制:=IF((超B+大B)=0,0,大宗進(jìn));
大宗出限制:=IF((超S+大S)=0,0,大宗出);
非大宗進(jìn)限制:=IF(中B+小B=0,0,非大宗進(jìn));
非大宗出限制:=IF(中S+小S=0,0,非大宗出);
主力凈流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;
散戶凈流入:=(中B+小B)-(中S+小S),COLORRED,NODRAW;
凈流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S),COLORRED,NODRAW;
大單流入:=(超B+大B)/(超B+大B+超S+大S)*100,NODRAW;
大單流入限制:=IF((超B+大B+超S+大S)=0,0,大單流入);
大單流出比:=(超S+大S)/(超B+大B+超S+大S)*100,NODRAW;
大單流出限制:=IF((超B+大B+超S+大S)=0,0,大單流出比);
總流入比:=(超B+大B+中B+小B)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;
總流出比:=(超S+大S+中S+小S)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;
成交總量:=(超B+大B+中B+小B+超S+大S+中S+小S),NODRAW;
機(jī)構(gòu)參與度:=(超B+超S+大B+大S)/成交總量*100,COLORYELLOW,NODRAW;
大單強(qiáng)度:=(超B+大B-超S-大S)/成交總量*100,COLORYELLOW,NODRAW;
大單強(qiáng)度限制:=IF(大單強(qiáng)度=0,-100,大單強(qiáng)度);
大單強(qiáng)度比:=IF(大單強(qiáng)度>=0,(大單強(qiáng)度限制+100)/2,100-ABS((大單強(qiáng)度限制-100)/2)),NODRAW;
超單強(qiáng)度:=(超B-超S)/(超B+超S)*100,COLORYELLOW,NODRAW;
超單強(qiáng)度限制:=IF(超單強(qiáng)度=0,-100,超單強(qiáng)度);
超單強(qiáng)度比:=IF(超單強(qiáng)度>0,(超單強(qiáng)度限制+100)/2,IF(超單強(qiáng)度<0,100-ABS((超單強(qiáng)度限制-100)/2),0)),NODRAW;
DAZHIV:=CONST(MAX(ABS(大宗進(jìn)),MAX(ABS(大宗出),MAX(ABS(非大宗進(jìn)),ABS(非大宗出))))),NODRAW;
DRAWRECTREL(0,CONST(950-(ABS(大宗進(jìn))*250/DAZHIV))-20,30,950,IF(CONST(大宗進(jìn)>0),RGB(250,125,0),RGB(25,150,250)));
DRAWRECTREL(32,CONST(950-(ABS(大宗出)*250/DAZHIV))-20,62,950,IF(CONST(大宗出>0),RGB(25,150,250),RGB(250,125,0)));
DRAWRECTREL(102,CONST(950-(ABS(非大宗進(jìn))*250/DAZHIV))-20,132,950,IF(CONST(非大宗進(jìn)>0),RGB(250,125,0),RGB(25,150,250)));
DRAWRECTREL(134,CONST(950-(ABS(非大宗出)*250/DAZHIV))-20,164,950,IF(CONST(非大宗出>0),RGB(25,150,250),RGB(250,125,0)));
DRAWRECTREL(204,CONST(950-(ABS(凈流入)*250/DAZHIV))-20,234,950,IF(CONST(凈流入>0),RGB(200,0,0),RGB(0,125,50)));
DRAWTEXT_FIX(1,0.00,0.95,0,STRCAT(STRCAT('主力 ',CON2STR(主力凈流入,0)),'萬')),COLORMAGENTA;
DRAWTEXT_FIX(1,0.10,0.95,0,STRCAT(STRCAT('散戶 ',CON2STR(散戶凈流入,0)),'萬')),COLORCYAN;
DRAWTEXT_FIX(1,0.20,0.95,0,STRCAT(STRCAT('凈流入 ',CON2STR(凈流入,0)),'萬')),COLORYELLOW;
主買A:=ACTINVOL,COLORRED,NODRAW;
主賣A:=ACTOUTVOL,COLORGREEN,NODRAW;
主買:=主買A*100/(主買A+主賣A),NODRAW,COLORRED;
主賣:=主賣A*100/(主買A+主賣A),NODRAW,COLORGREEN;
大單買比:=LARGEINTRDVOL*100/(LARGEINTRDVOL+LARGEOUTTRDVOL);
大單賣比:=LARGEOUTTRDVOL*100/(LARGEINTRDVOL+LARGEOUTTRDVOL);
主力凈買量:=(LARGEINTRDVOL-LARGEOUTTRDVOL),COLORYELLOW,NODRAW;
主動(dòng)買賣差:=(ACTINVOL-ACTOUTVOL),COLORMAGENTA,NODRAW;
主力資金差:=((L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1)))/10000,COLORCYAN,NODRAW;
主力買力度:=LARGEINTRDVOL*100/VOL;
主力賣力度:=LARGEOUTTRDVOL*100/VOL;
主買力度比:=主力買力度/(主力買力度+主力賣力度)*100,NODRAW;
主賣力度比:=主力賣力度/(主力買力度+主力賣力度)*100,NODRAW;
力度比限制:=IF((LARGEINTRDVOL+LARGEOUTTRDVOL)=0,0,大單買比);
JGV:=(L2_VOL(0,0) - L2_VOL(0,1))*VOL/100000000,COLORRED;
DHV:=(L2_VOL(1,0) - L2_VOL(1,1))*VOL/100000000,COLORFF00FF;
ZHV:=(L2_VOL(2,0) - L2_VOL(2,1))*VOL/100000000,COLOR00FFFF;
SHV:=(L2_VOL(3,0) - L2_VOL(3,1))*VOL/100000000,COLORFFFFFF;
NOTEXT大量動(dòng)向:=MA((JGV+DHV),5),COLORYELLOW;
超級(jí)大量:=JGV,COLOR0000FF,NODRAW;
機(jī)構(gòu)大量:=DHV,COLORMAGENTA,NODRAW;
大量博弈:=(JGV+DHV),COLORYELLOW,NODRAW;
小量博弈:=(ZHV+SHV),COLORWHITE,NODRAW;
大量資金比:=大量博弈/(ABS(JGV)+ABS(DHV)+ABS(ZHV)+ABS(SHV))*100,COLORYELLOW,NODRAW;
大量資金比限制:=IF(大量資金比=0,-100,大量資金比);
大量強(qiáng)度比:=IF(大量資金比>0,(大量資金比限制+100)/2,IF(大量資金比<0,100-ABS((大量資金比限制-100)/2),0)),COLORGREEN,NODRAW;
小量資金比:=小量博弈/(ABS(JGV)+ABS(DHV)+ABS(ZHV)+ABS(SHV))*100,COLORYELLOW,NODRAW;
小量強(qiáng)度比:=IF(小量資金比>=0,(小量資金比+100)/2,100-ABS((小量資金比-100)/2)),COLORCYAN,NODRAW;
MVR:=REF(MA(V,5),1);
FVR:=REF(V,1);
PVR:=(MVR+FVR)/2;
量能比:=V/(V+PVR)*100/FROMOPEN*240;
{量能飽和度}
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
【量能飽和】:=IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;
{活躍度}
LC:=REF(CLOSE,1);
RSI5:=(SMA(MAX(CLOSE-LC,0),3,1))/(SMA(ABS(CLOSE-LC),3,1))*100;
WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;
活躍度:=(RSI5-WR10),COLORFFFF00,LINETHICK1,NODRAW;
活躍度比:=IF(活躍度>=0,(活躍度+100)/2,100-ABS((活躍度-100)/2));
DRAWRECTREL(80,0,240,40,RGB(0,75,200));
DRAWRECTREL(80,0,160,40,RGB(0,250,50));
DRAWRECTREL(80,0,80+CONST(力度比限制*160/100),40,RGB(200,0,50));
DRAWTEXT_FIX(1,0.00,0.00,0,STRCAT(STRCAT('買賣力度比 ',CON2STR(大單買比,2)),'%買')),COLORYELLOW;
{DRAWTEXT_FIX(1,0.33,0.00,0,STRCAT(STRCAT('',CON2STR(大單賣比,2)),'%賣')),COLORGREEN;}
DRAWRECTREL(80,50,240,90,RGB(0,100,0));
DRAWRECTREL(80,50,160,90,RGB(0,250,50));
DRAWRECTREL(80,50,80+CONST(大量強(qiáng)度比*160/100),90,RGB(230,130,0));
DRAWTEXT_FIX(1,0.00,0.05,0,STRCAT(STRCAT('大量強(qiáng)度比 ',CON2STR(大量強(qiáng)度比,2)),'%買')),COLORYELLOW;
DRAWRECTREL(80,100,240,140,RGB(0,75,200));
DRAWRECTREL(80,100,160,140,RGB(0,250,50));
DRAWRECTREL(80,100,80+CONST(主買*160/100),140,RGB(230,130,0));
DRAWTEXT_FIX(1,0.00,0.10,0,STRCAT(STRCAT('主動(dòng)買賣比 ',CON2STR(主買,2)),' %')),COLORYELLOW;
{DRAWTEXT_FIX(1,0.33,0.10,0,STRCAT(STRCAT('',CON2STR(主賣,2)),'%賣')),COLORGREEN;}
DRAWRECTREL(80,150,240,190,RGB(0,100,0));
DRAWRECTREL(80,150,160,190,RGB(0,250,50));
DRAWRECTREL(80,150,80+CONST(機(jī)構(gòu)參與度*160/100),190,RGB(200,0,50));
DRAWTEXT_FIX(1,0.00,0.15,0,STRCAT(STRCAT('機(jī)構(gòu)參與度 ',CON2STR(機(jī)構(gòu)參與度,2)),' %')),COLORYELLOW;
DRAWRECTREL(330,0,490,40,RGB(0,100,0));
DRAWRECTREL(330,0,410,40,RGB(0,250,50));
DRAWRECTREL(330,0,330+CONST(大單流入限制*160/100),40,RGB(200,0,50));
DRAWTEXT_FIX(1,0.25,0.00,0,STRCAT(STRCAT('大單流入比 ',CON2STR(大單流入限制,2)),' %買')),COLORYELLOW;
{DRAWTEXT_FIX(1,0.83,0.01,0,STRCAT(STRCAT('',CON2STR(大單流出限制,2)),' %賣')),COLORGREEN;}
DRAWRECTREL(330,50,490,90,RGB(0,200,250));
DRAWRECTREL(330,50,410,90,RGB(0,250,50));
DRAWRECTREL(330,50,330+CONST(大單強(qiáng)度比*160/100),90,RGB(230,130,0));
DRAWTEXT_FIX(1,0.25,0.05,0,STRCAT(STRCAT('大單強(qiáng)度比 ',CON2STR(大單強(qiáng)度比,2)),' %買')),COLORYELLOW;
DRAWRECTREL(330,100,490,140,RGB(0,100,0));
DRAWRECTREL(330,100,410,140,RGB(0,250,50));
DRAWRECTREL(330,100,330+CONST(總流入比*160/100),140,RGB(230,130,0));
DRAWTEXT_FIX(1,0.25,0.10,0,STRCAT(STRCAT('資金流入比 ',CON2STR(總流入比,2)),' %')),COLORYELLOW;
{DRAWTEXT_FIX(1,0.83,0.10,0,STRCAT(STRCAT('',CON2STR(總流出比,2)),' %賣')),COLORGREEN;}
DRAWRECTREL(330,150,490,190,RGB(0,200,250));
DRAWRECTREL(330,150,410,190,RGB(0,250,50));
DRAWRECTREL(330,150,330+CONST(量能比*160/100),190,RGB(200,0,50));
DRAWTEXT_FIX(1,0.25,0.15,0,STRCAT(STRCAT('資金量能比 ',CON2STR(量能比,2)),' %')),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.50,0.00,0,'白K關(guān)注,,黃K買入,;紅K持股,青K持幣,;紫K觀望(減倉(cāng)),,藍(lán)K出局。'),COLORCYAN;
DRAWRECTREL(580,100,740,140,RGB(0,100,0));
DRAWRECTREL(580,100,660,140,RGB(0,200,50));
DRAWRECTREL(580,100,580+CONST(活躍度比*160/100),140,RGB(150,10,250));
DRAWTEXT_FIX(1,0.50,0.10,0,STRCAT(STRCAT('活躍度 ',CON2STR(活躍度比,2)),' %')),COLORYELLOW;
DRAWRECTREL(580,150,740,190,RGB(0,50,150));
DRAWRECTREL(580,150,740,190,RGB(0,200,50));
DRAWRECTREL(580,150,580+CONST(【量能飽和】*160/100),190,RGB(150,10,0));
DRAWTEXT_FIX(1,0.50,0.15,0,STRCAT(STRCAT('飽和度 ',CON2STR(【量能飽和】,2)),' %')),COLORYELLOW;

抓主升浪和短線
主升浪一

A:EMA(C,21)COLORBLUE,LINETHICK3;
B:=A<REF(A,1);
IF(B-1,A,DRAWNULL)COLORRED,LINETHICK3;
AA:=EMA(C,3) > EMA(C,21);
BB:=EMA(C,3) < EMA(C,21);
CC:= EMA(C,3) > EMA(C,8);
CC1:=EMA(C,3) < EMA(C,8);
DD:=CLOSE<OPEN;
STICKLINE(AA,H,L,0,0),COLOR007FFF;
STICKLINE(AA,O,C,3,1),COLOR007FFF;
STICKLINE(AA AND DD,O,C,3,0),COLOR007FFF;
STICKLINE(BB,H,L,0,0),COLORGREEN;
STICKLINE(BB,O,C,3,1),COLORGREEN;
STICKLINE(BB AND DD,O,C,3,0),COLORGREEN;
STICKLINE(BB AND CC,H,L,0,1),COLORF00FF0;
STICKLINE(BB AND CC,O,C,3,1),COLORF00FF0;
STICKLINE(BB AND CC AND DD,O,C,3,0),COLORF00FF0;
STICKLINE(AA AND CC1,H,L,0,0),COLORBLUE;
STICKLINE(AA AND CC1,O,C,3,1),COLORBLUE;
{WWW.LAOQIANZHUANG.COM_通達(dá)信股票指標(biāo)公式}
STICKLINE(AA AND CC1 AND DD,O,C,3,0),COLORBLUE;
買線:=MA(CLOSE,9),LINETHICK2;
賣線:=MA(CLOSE,20);
BU:=CROSS(買線,賣線);
SEL:=CROSS(賣線,買線);
DRAWTEXT(BU,L-0.1,'建倉(cāng)')COLORYELLOW;
DRAWTEXT(SEL,H+0.1,'空倉(cāng)');
A2:=(C-REF(C,1))/REF(C,1)*100<1.02;
A3:=H>MA(C,5)*1.12;
AAA:= A2 AND A3;
DRAWTEXT(AAA,H*1.05,'賣點(diǎn)'),COLORWHITE;
EMA13:=EMA(C,13),COLOR0000FF,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,'啟動(dòng)'),COLORYELLOW;
STICKLINE(AR6,H,L,3,0),LINETHICK2,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),O,C,3,1),LINETHICK2,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);
STICKLINE(CR6,O,C,3,1),LINETHICK2,COLORF00FF0;
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;
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,'加倉(cāng)'),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,'了結(jié)'),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);
DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.3,'推進(jìn)'),COLORFFC8FF;
STICKLINE(HR2 AND FILTER(HR2,10),O,C,3,1),LINETHICK2,COLORFFC8FF;
VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
VAR2:=CROSS(VAR1,0.9);
VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
VAR4:=CROSS(VAR3,0.9);
壓力:= REF(HIGH,BARSLAST(VAR2)), POINTDOT,COLOREA91B5;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2)),REF(HIGH,BARSLAST(VAR2)),2,1),COLOREA91B5,LINETHICK3;
支撐:= REF(LOW,BARSLAST(VAR4)), POINTDOT,COLOR00B4FF;
STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4)),REF(LOW,BARSLAST(VAR4)),2,1),COLOR00B4FF,LINETHICK3;
下檔線:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);
ARSV:=SMA(下檔線,3,1);
AK:=SMA(ARSV,3,1);
AD:=((3 * ARSV) - (2 * AK));
AJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);
ARSV24:=SMA(AJ12,3,1);
AK24:=SMA(ARSV24,3,1);
AD24:=((3 * ARSV24) - (2 * AK24));
撐:=IF(CROSS(AD24,AD),HIGH,REF(HIGH,BARSLAST(CROSS(AD24,AD))));
撐壓位:=IF(ISLASTBAR ,撐,DRAWNULL);
底底:=LLV(HIGH,30);
底:=IF(ISLASTBAR ,底底,DRAWNULL);
STICKLINE(ISLASTBAR ,撐壓位,撐壓位,100,1),LINETHICK1,COLORFFFFFF;
STICKLINE(ISLASTBAR ,底,底,80,1),COLOR00FF00,LINETHICK1;

主升浪2
RSV:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*200-100)/2;
K:SMA(SMA( RSV,3,1),3,1),LINETHICK2; 
D:MA(EMA(K,3),3),LINETHICK2; 
J:=3*K-2*D,COLORSTICK,LINETHICK3; 
STICKLINE(CROSS(K,D),K+33,K+2,0.5,0),COLORRED;


信號(hào)出現(xiàn),,最好第二交易日進(jìn)票,。那它給你帶來的收益是你不可想像
QQ_1:=C-REF(C,1);
QQ_2:=100*EMA(EMA(QQ_1,6),6)/EMA(EMA(ABS(QQ_1),6),6);
QQ_3:=CROSS(EMA(C,19),EMA(C,7));
QQ_4:=CROSS(EMA(C,7),EMA(C,19));
ZZ1:=L=LLV(L,BARSLAST(QQ_3)+1);
ZZ2:=LLV(L,BARSLAST(QQ_3)+1);
ZZ3:=H=HHV(H,BARSLAST(QQ_4)+1);
ZZ4:=HHV(H,BARSLAST(QQ_4)+1);
QQ_A:=DRAWLINE(ZZ1,ZZ2,ZZ3,ZZ4,0);
YY1:=H=HHV(H,BARSLAST(QQ_4)+1);
YY2:=HHV(H,BARSLAST(QQ_4)+1);
YY3:=L=LLV(L,BARSLAST(QQ_3)+1);
YY4:=LLV(L,BARSLAST(QQ_3)+1);
QQ_B:=DRAWLINE(YY1,YY2,YY3,YY4,0);
TTJ:=IF(QQ_B<REF(QQ_B,1) AND QQ_B=QQ_A,1,0);
一絕:STICKLINE(REF(TTJ,1)=0 AND TTJ>=1 AND CCI<-40 ,0,90,1,-1),COLORRED;
VAR1A:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2A:=SMA(ABS(LOW-VAR1A),13,1)/SMA(MAX(LOW-VAR1A,0),10,1);
VAR3A:=EMA(VAR2A,10);
VAR4A:=LLV(LOW,33);
VAR5A:=EMA(IF(LOW<=VAR4A,VAR3A,0),3);
洗盤:=IF(VAR5A<REF(VAR5A,1),VAR5A,0),COLORRED,LINETHICK0;
STICKLINE(VAR5A<REF(VAR5A,1),0,VAR5A/2,3.5,0),COLORLIBLUE;
STICKLINE(VAR5A<REF(VAR5A,1),0,VAR5A/2,0.5,0),COLORRED;
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) AND CLOSE<=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));
VAR19:=((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);
短進(jìn):=VAR19;
N7:=7;
VAR1AA:=REF(C,1);
VAR2AA:=SMA(MAX(C-VAR1AA,0),N7,1)/SMA(ABS(C-VAR1AA),N7,1)*1000;
VAR3AA:=DRAWLINE(VAR2AA>=HHV(VAR2AA,N7),VAR2AA,VAR2AA<=LLV(VAR2AA,N7),VAR2AA,1);
VAR4AA:=VAR2AA=VAR3AA;
VAR5AA:=VAR2AA<REF(VAR2AA,1);
PD1:=VAR4AA AND VAR5AA;
Q_3:=CROSS(EMA(C,19),EMA(C,7));
Q_4:=CROSS(EMA(C,7),EMA(C,19));
Z1:=L=LLV(L,BARSLAST(Q_3)+1);
Z2:=LLV(L,BARSLAST(Q_3)+1);
Z3:=H=HHV(H,BARSLAST(Q_4)+1);
Z4:=HHV(H,BARSLAST(Q_4)+1);
Q_A:=DRAWLINE(Z1,Z2,Z3,Z4,0);
Y1:=H=HHV(H,BARSLAST(Q_4)+1);
Y2:=HHV(H,BARSLAST(Q_4)+1);
Y3:=L=LLV(L,BARSLAST(Q_3)+1);
Y4:=LLV(L,BARSLAST(Q_3)+1);
Q_B:=DRAWLINE(Y1,Y2,Y3,Y4,0);
TJ:=IF(Q_B<REF(Q_B,1) AND Q_B=Q_A,1,0);
JDMD:=REF(TJ,1)=0 AND TJ>=1;
PD11:=PD1 AND JDMD;
PD7:=IF(PD1,SUM(JDMD,3),0);
PD8:=IF(PD7>0,0,1);
PD9:=PD1 AND PD8;
PD3:=IF(JDMD,SUM(PD1,3),0);
PD4:=IF(PD3>0,0,1);
PD5:=JDMD AND PD4;
PD6:=FILTER(IF(PD11,1,PD9 OR PD5),2);
抄底:PD6,NODRAW,COLOR00FFFF;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走勢(shì):CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK1;
STICKLINE(JDMD,走勢(shì),走勢(shì)+45,2,0),COLOR00FFFF;
賣吧:IF(PEAKBARS(3,15,1)=1,51,120),COLORGREEN,LINETHICK1;
DRAWTEXT(賣吧=51,100,'賣吧');
VAR2Q:=REF(LOW,1);
VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;
VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);
VAR5Q:=LLV(LOW,30);
VAR6Q:=HHV(VAR4Q,30);
VAR7Q:=IF(MA(CLOSE,58),1,0);
VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/999*VAR7Q;
MMM:=IF(VAR8Q>100,100,VAR8Q);
STICKLINE(MMM>0 AND MMM>REF(MMM,1),0 ,MMM,3.5,0 ),COLOR4444FF;
STICKLINE(MMM>0 AND MMM>REF(MMM,1),0 ,MMM,0.5,0 ),COLOR9999FF;
VARA1A:=EMA(EMA(CLOSE,13),13);
控盤:=(VARA1A-REF(VARA1A,1))/REF(VARA1A,1)*1000;
JJ:=DYNAINFO(11);
P:=55;S:=8;M1:=3;
財(cái):=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2;
神:=EMA(財(cái),M1),COLORGREEN,LINETHICK1;
BTJ1:=(C-JJ)/JJ<-0.03;
BTJ11:=(C-JJ)/JJ<-0.03;
STJ02:=控盤>0;
BTJ2:=控盤>REF(控盤,1) AND 控盤<-0.2;
BTJ3:=CROSS(財(cái),神) AND 財(cái)<-0.3;
BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);
莊:= BTJ11 AND BTJ2 AND BTJ3;
有莊:FILTER(莊,55),COLORWHITE;
DRAWTEXT(BTJ811,40,'↑莊'),COLORWHITE;


主力散戶線指標(biāo)公式
自己用過很多公式,就這個(gè)公式最經(jīng)典,!極力推薦,!
當(dāng)黃色主力線與綠色散戶線金叉時(shí),為買點(diǎn),!
=====主力散戶線===========

{短線:"KDJ.J"(5,3,3),COLORAAAAAA;}
散戶線: 100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)),LINETHICK2,COLOR00FF00;
RSV30:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
K30:=SMA(RSV30,5,1);
D30:=SMA(K30,3,1);
J30:=3*K30-2*D30; 主力線:EMA(J30,6),COLORYELLOW,LINETHICK2;
RSV21:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
K21:=SMA(RSV21,13,8);
趨勢(shì):CEILING(SMA(K21,13,8)),COLORRED,LINETHICK1;
0;20;50;80;100;

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn),。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式,、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙,。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多