七天線:MA(CLOSE,7),coloryellow,linethick2;
一號線:eMA(CLOSE,144),color3399ff;
工作線:eMA(CLOSE,14),color9000F5,linethick2;
二號線:eMA(CLOSE,25);
三號線:eMA(CLOSE,318);
生命線:eMA(CLOSE,453),colorred,linethick2;
五號線:eMA(CLOSE,550),colorFFFF37;
六號線:eMA(CLOSE,610);
七號線:eMA(CLOSE,730);
八號線:eMA(CLOSE,888),colorF00FF0;
九號線:eMA(CLOSE,99),color53ff53;
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
DEA:=EMA(DIFF,9);
MACD:=0.90*(DIFF-DEA);
tj:=(diff>=dea);
tj1:=(diff>=0);
stickline(tj,h,l,0.5,0),COLORyellow;
stickline(tj,o,c,4,0),COLORyellow;
stickline(tj1 and tj,h,l,0.5,0),colorf00ff0;
stickline(tj1 and tj,o,c,4,1),colorf00ff0;
stickline(diff<dea,h,l,0.5,0),colorf0f000;
stickline(diff<dea,o,c,4,0),colorf0f000;
Var1:=(CLOSE*2+HIGH+LOW)/4;
SK:= EMA(Var1,13)-EMA(Var1,73);
SD:= EMA(SK,2);
drawtext((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)) ,l*0.99,'短線'),color53FF53;
stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),h,l,0.5,0),colorred;
stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),o,c,10,1),linethick3,colorred;
江恩理論重要法則:線上陰線買入,買錯了也要買;線下陽線賣出,賣錯了也要賣。
一號線:165(144)
新老莊家線二號線:25
幼黑馬線三號線:318
大黑馬線四號線:453 (生命線)
超黑馬線五號線:550
六號線:610
魔黑馬線七號線:730
奇黑馬線八號線:888
瘋黑馬線九號線:99
周線一號線:181(牛熊分界線)
二號線:272
三號線:33(發(fā)財線)
九號線:99
月線20,40,60,80,100,120,140
操盤線(EXPMA)參數(shù)設(shè)置:(17,50)和(17,453)
分鐘密碼線(全部周期):55,103,453
詳解:
1. 所有密碼線突破后都等回抽買入,否則放棄。
2. 任何價位均線都是逐條突破,沒有規(guī)律的放棄。
3. 25日線突破四天不破可陰線時買入(越接近均線越好),操盤線一樣。其它均線回抽不破就可買。(股價當(dāng)天同時突破25天平均線和1號操盤線
4. 使用乾隆金典版軟件,日線要用“不除權(quán)”。(可以參考000725京東方除權(quán)后正好在453天均線受阻)
重要提示:線指平均線(任何一條)買入后有贏利也要賣出。不是指跌破平均線后再陽線賣出,如果全部這樣,那么你將不賺錢!但是跌破平均線,就請你一定要反抽陽線時賣出。
密碼線重要法則:必須按照嚴(yán)格的均線操作,當(dāng)?shù)颇骋痪€時,反抽時必須先拋出再說,要等到有效突破才能在回抽時陰線收盤不破時第二天買入,如抱有任何幻想,則需要付出金錢的代價。
操盤須知
(1)在國際和國家上有一種操盤鐵紀(jì)律:當(dāng)?shù)浦匾木€后,一定會有一個回抽確認(rèn)的過程;任何股票都要在嚴(yán)格的均線上操作,要在均線上陰線買入(即回抽),在均線下陽線賣出。
(2)除25天線外,任何沖線時的放量,都請先回避。
(3)當(dāng)股票第一次突破或破位的回抽都可參與,成功率非常高。第二次減半,依次類推。
(4)所有分鐘周期參數(shù)設(shè)置為:55,103,453。其中,五分鐘453線走勢越準(zhǔn)確,莊家越有實力。任何股票突破453線才會漲,反之就代表下跌開始。
(5)如何操作一支股票:
(A)用DMI指標(biāo),CCI或BOLL指標(biāo)抓底部;見《密碼線實戰(zhàn)制勝法》
(B)上沖時第一次碰(過)25日線時,先退出;
(C)股價再突破25日線后四天內(nèi)陰線碰25日線時買入,萬一下跌破25日線,反抽離場。(指收盤價)
(D)第一目標(biāo)是輔助線45天,然后碰99天線時(不能放量)同理先退出。等回到25日線再介入持有到144天線再退出?;爻?9天線是最后買入機(jī)會,一直到ADX,boll,cci指標(biāo)到位再全部退出。(中間的任何線都有可能成為頭部)。
在此基礎(chǔ)上,指標(biāo)公式中除江恩經(jīng)典的八條均線外,又加入了殷保華常用的7天線和14天工作線供參考。
1 資金趨勢:(主圖)
指標(biāo)由白色分水嶺、黃色做多趨勢線、粉色支撐線、綠色做空趨勢線及灰色阻力線組成,在平常的使用中我們主要關(guān)注綠色做空趨勢線在K線的上下來判斷買賣。
使用方法:當(dāng)K線位于綠色作空資金趨勢線下方時, 表示空方力量較強(qiáng),股價處于調(diào)整階段,可觀望;當(dāng)K線位于綠色的作空資金趨勢線上方,并且站穩(wěn)支撐線時,顯示股價處于強(qiáng)勢, 具有上漲潛力,可買進(jìn)。建議周線使用效果教好或結(jié)合其他指標(biāo)使用。當(dāng)K線位于綠色作空資金趨勢線下方時,表示空方力量較弱,股價處于調(diào)整階段。
Var1:=(HIGH+LOW+OPEN+CLOSE)/4;
分水嶺: MA(3*Var1-2*SMA(Var1,2,1),12),colorwhite;
上漲: IF(Var1>分水嶺,Var1,分水嶺),COLORYELLOW;
支撐: REVERSE(上漲)+2*分水嶺;
Var2:=IF(Var1<分水嶺,Var1,分水嶺);
Var3:=2*EMA(LLV(Var1,7),10)-Var1;
做空趨勢: 3*Var3-2*SMA(Var3,10,1),COLORGREEN;
阻力: REVERSE(Var2)+2*分水嶺,ColorFFFFFF;
2 資金指數(shù):
該指標(biāo)是軟件的精華所在,可以清楚的看出一只股票中主力及散戶的強(qiáng)弱關(guān)系。它由兩條趨勢線及三條水平線組成,紫色趨勢線代表市場主流金,綠色趨勢線代表非主流資金。指標(biāo)有三條水平線,從上自下數(shù)值分別為80、50、20。80以上為超強(qiáng)區(qū),20以下為超弱區(qū),50為強(qiáng)弱分水嶺(80—50為強(qiáng)勢區(qū),50—20為弱勢區(qū))。
使用方法: 當(dāng)主流資金擺脫非主流資金上攻,且上穿50,表示主力在投入資金,股價上漲。當(dāng)主流資金在80以上運行一段時間之后,向下穿越80,顯示主力減倉股價可能走弱。
主流資金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORRED,linethick2;
非主流資金:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),colorgreen,linethick2;
20,pointdot,colorf00ff0;
50,pointdot,colorgreen;
80,pointdot,colorwhite;
3 動能運行軌跡:
指標(biāo)有三條趨勢線,分別代表短期動能運行軌跡,中期動能運行和長期動能運行軌跡。并且還有四條水平線,最上方一條 較粗的線叫頂部線。對應(yīng)數(shù)值為90;上方第二條較細(xì)的線叫超買線,對應(yīng)數(shù)值為80;下方一條細(xì)線叫超賣線,對應(yīng)的數(shù)值為20;最下方一條較粗的線叫底部線;
使用方法:1、當(dāng)三條線在低位(超賣線之下)金叉向上, 并且多頭排列向上發(fā)散時,表示股價向上反彈的動能充足;反之,當(dāng)三條線在高位死叉向下,并且空頭排列時,表示股價上漲動能不足,將要產(chǎn)生調(diào)整。2、當(dāng)股價嚴(yán)重超跌時,底部線還會有三角行突起提示您可以逢低吸納。3、并且可以利用背離方法來研判大盤頂?shù)住?/p>
RSV:=(((CLOSE - LLV(LOW,33)) / (HHV(HIGH,33) - LLV(LOW,33))) * 100);
SMA(RSV,7,1);
SMA(SMA(RSV,7,1),4,1);
SMA(SMA(SMA(RSV,7,1),4,1),6,1);
(((CLOSE / COST(8)) <= 0.8) * 10);
20,POINTDOT;
80,POINTDOT;
4 機(jī)構(gòu)能量線:
指標(biāo)由兩條趨勢線及三條水平線組成,紅色趨勢線代表機(jī)構(gòu)作多能量,綠色趨勢線代表機(jī)構(gòu)作空能量。指標(biāo)有三條水平線,從上自下數(shù)值分別為80、50、20。80以上為超強(qiáng)區(qū),20以下為超弱區(qū),50為強(qiáng)弱分水嶺(80—50為強(qiáng)勢區(qū),50—20為弱勢區(qū))。
使用方法:作多能量線上穿做空能量線,稱之為金叉,金叉為股價走強(qiáng)信號,反之為死叉,表示股價將走弱。尤其是在50附近發(fā)生的金叉、死叉更具有指導(dǎo)意義。并且還要觀察機(jī)構(gòu)作多或作空能量線所處的位置來判斷是多頭行情還是空頭行情。
做多能量線: SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-8,COLORRED,LINETHICK3;
做空能量線: SMA((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100,2,1),COLORGREEN,LINETHICK3;
20,pointdot,colorf00ff0;
50,pointdot,colorgreen;
80,pointdot,colorwhite;
5 生命量能:
1、 指標(biāo)在10以下時(既資金處于弱勢區(qū)),無論是大盤還是個股,沒有操作能力的投資者原則上不應(yīng)進(jìn)場操作(即空倉等待時機(jī));
2、 當(dāng)生命指數(shù)上穿10時,是大盤或個股轉(zhuǎn)強(qiáng)的時機(jī);
3、 當(dāng)小圓圈消失,則預(yù)示著大盤或個股有資金出逃,即將進(jìn)入調(diào)整;
4、 當(dāng)生命量能逐步萎縮、減少時,獲利機(jī)會減少,難度會增加,此時應(yīng)短線進(jìn)出,高拋低吸。
參數(shù):N=1,100,34
生命指數(shù):EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)/4,COLORRED;
Y1:if(生命指數(shù)>23.16,生命指數(shù),0),CIRCLEDOT;
10,pointdot,colorf00ff0;
21,pointdot,colorgreen;
6 交易機(jī)器人:
指標(biāo)由H1白色線及H2紅色線組成,當(dāng)H1大于H2時,呈紅色,表明有資金流入;當(dāng)H1小于H2時,呈現(xiàn)綠色,表明有資金流出,應(yīng)控制風(fēng)險。
使用方法:當(dāng)指標(biāo)由綠變紅時可進(jìn)場買進(jìn),反之,當(dāng)指標(biāo)由紅變綠時要賣出,注意當(dāng)股價橫向走向時,該指標(biāo)不管是紅色還是綠色,不建議買入,除非是其他指標(biāo)同時發(fā)出買入信號。
H1:EMA(SLOPE(CLOSE,34)*20+CLOSE,75),COLORYELLOW;
H2:EMA(CLOSE,8),COLORWHITE;
Var1:=H2-H1;
STICKLINE(Var1>=0,H2,H1,0.5,0),COLORRED;
STICKLINE(Var1<0,H2,H1,0.5,0), COLORGREEN;
7 博弈資金:
它能夠把市場的資金中那些是主力資金,那些是大戶游資,那些是散戶資金,清楚地分開。在上漲過程中我們只關(guān)注主力資金動向(黃色表示為主力),一旦黃色柱狀線放大,就是我們進(jìn)場之時。
換手:v*100/capital,LINETHICK0;
主力:ma(換手,4),COLORYELLOW,linethick2;
游資:ma(換手,9),COLORGREEN,linethick2;
大戶:ma(換手,17),COLORRED,linethick2;
散戶:ma(換手,34),COLORF2E9E7,linethick2;
警戒線:ma(換手,180),COLORFF00FF,linethick2;
STICKLINE(主力>0,0,主力,4,0),COLORYELLOW;
STICKLINE(游資>0,0,游資,4,0),COLORGREEN;
STICKLINE(大戶>0,0,大戶,4,0),COLORRED;
STICKLINE(散戶>0,0,散戶,4,0),COLORF2E9E7;
8 多空資金:
參數(shù): N=1,100,55
KS:=(C-MA(C,13))/MA(C,13)*(-100);
RKS:=REF(KS,1);
MLS:=RKS/KS>=1.23 AND RKS>=8 AND C/REF(C,1)>=1.02;
超跌:STICKLINE(KS>=8,H,L,0,1),colorwhite,linethick2;
反彈:STICKLINE(MLS=1,H,L,0,1),,linethick2;
STICKLINE(C>=O,C,O,8,0) ,COLORred;
STICKLINE(C<=O,C,O,8,0) ,COLORgreen;
STICKLINE(KS>=8,O,C,8,1),colorwhite,linethick2;
STICKLINE(MLS=1,O,C,8,1),,linethick2;
EMA(C,10),colorYELLOW;
EMA(KS/10+EMA(C,10),3),colorwhite;
上漲:EMA(C,10),coloryellow;
下跌:EMA(KS/10+EMA(C,10),3);
分水嶺:EMA(C,N),,LINETHICK2;
9 多空波段贏家:
用于研判大盤及個股短期趨勢及空間的指標(biāo)。它共有六根線,從上至下分別為獲利了結(jié)線、風(fēng)險線、回檔線、平衡線、反彈線和超跌線,每根線都代表不同的壓力和支撐。該指標(biāo)的靈活應(yīng)用可有助于投資者參與高拋低吸。
獲利了結(jié):EMA(EMA(EMA(HIGH,5),5),4)*1.15,COLORYELLOW;
風(fēng)險: EMA(EMA(EMA(HIGH,5),5),4)*1.1,ColorFFFFFF;
回檔: EMA(EMA(EMA(HIGH,5),5),4)*1.05,Color00FF00;
平衡: EMA(EMA(EMA(HIGH,5),5),4),ColorFF00FF;
反彈: EMA(EMA(EMA(HIGH,5),5),4)*0.95,Color808080;
超跌: EMA(EMA(EMA(HIGH,5),5),4)*0.9,colorblue;
{p1:=5;P2:=13;P3:=24;P4:=33;p5:=55;p6:=89;p7:=144;p8:=250}
MA1:MA(CLOSE,P1);
MA2:MA(CLOSE,P2),linethick2;
MA3:MA(CLOSE,P3),COLORYELLOW,linethick3;
MA4:MA(CLOSE,P4);
ma5:ma(close,p5),linethick2;
ma6:ma(close,p6);
ma7:ma(close,p7),,Color00FF80;
ma8:ma(close,p8);
DRAWICON(CROSS(MA1,MA3),MA1,1);
DRAWICON(CROSS(MA1,MA2),MA1,1);
DRAWTEXT(CROSS(MA1,MA3),low*0.98,'突破點'),COLORYELLOW;
N:=25;f1:=6;f2:=6;
UPPER:(1+f1/100)*MA(CLOSE,N),CIRCLEDOT,colorWHITE;
LOWER:(1-f2/100)*MA(CLOSE,N),CIRCLEDOT,colorWHITE;
MID:(UPPER+LOWER)/2,CIRCLEDOT,colorWHITE;
{n:1,999,25; m1:1,999,6; m2:1,999,6}
N1:=6;N2:=12;N3:=26;
UPPER:(1+M1/100)*MA(CLOSE,N),colorwhite;
LOWER:(1-M2/100)*MA(CLOSE,N),colorwhite;
MID:(UPPER+LOWER)/2,colorwhite;
MA13:MA(CLOSE,13),COLORFF00FF,LINETHICK2;
MA17:MA(CLOSE,17),COLORBLUE,LINETHICK2;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
{買賣}
買:IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0),COLORRED;
賣:IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0),COLOR00FF00;
DRAWTEXT(fil
STICKLINE(fil
STICKLINE(fil
DRAWTEXT(fil
STICKLINE(fil
STICKLINE(fil
{加倉}
加倉A:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
加倉B:=加倉A;{白K突破追漲要用}
DRAWTEXT(FIL
STICKLINE(FIL
STICKLINE(FIL
加倉:FIL
{注意}
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1),COLORFFFFFF;
D:=SMA(K,3,1),COLOR00FFFF;
J:=3*K-2*D,COLORFF00FF;
BDGD:=HHV(J,2)=HHV(J,8) AND J>80;
注意:IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0),COLORYELLOW;
DRAWTEXT(注意 AND 賣<>1,HIGH*1.02,'¤'),COLORYELLOW;
STICKLINE(注意 AND 賣<>1,HIGH,LOW,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(注意 AND 賣<>1,OPEN,CLOSE,4,1),COLORYELLOW,LINETHICK2;
{機(jī)構(gòu)建倉}
建倉區(qū)域:=((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)));
DRAWTEXT(建倉區(qū)域<5,LOW-0.03,'■'),COLORFF0033;
DRAWTEXT(建倉區(qū)域<5,LOW-0.03,'='),COLORWHITE;
機(jī)構(gòu)建倉區(qū):建倉區(qū)域<5,COLORFF0033;
{支撐與壓力線}
RSV1:=(c-LLV(low,13))/(HHV(h,13)-LLV(l,13))*100;
K1:=SMA(RSV1,3,1),COLORFFFFFF;
D1:=SMA(K1,3,1),COLOR00FFFF;
J1:=3*K1-2*D1,COLORFF00FF;
RSV2:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K2:=SMA(RSV2,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
支撐:IF(CROSS(J1,J2),L,REF(L,BARSLAST(CROSS(J1,J2)))),COLORRED,LINETHICK2;
壓力:IF(CROSS(J2,J1),H,REF(H,BARSLAST(CROSS(J2,J1)))),COLOR00FF00,LINETHICK2;
{白K突破追漲}
DRAWTEXT((CROSS(C,壓力) AND 加倉B<>加倉A) OR (CROSS(C,壓力) AND 買<>1),low-0.03,'↑'),COLORWHITE;
STICKLINE((CROSS(C,壓力) AND 加倉B<>加倉A) OR (CROSS(C,壓力) AND 買<>1),HIGH,LOW,0,1),COLORWHITE,LINETHICK2;
STICKLINE((CROSS(C,壓力) AND 加倉B<>加倉A) OR (CROSS(C,壓力)AND 買<>1),OPEN,CLOSE,4,1),COLORWHITE,LINETHICK2;
突破壓力位:IF((CROSS(C,壓力) AND 加倉B<>加倉A) OR (CROSS(C,壓力)AND 買<>1),1,0),COLORWHITE;
mj:=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) AND 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)*48;
mc:=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) AND 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)*(-47);
va1:=FIL
va2:=FIL
DRAWLINE(va2,hhv(h,5),va1,hhv(h,5),1),colorwhite,linethick2;
DRAWLINE(va2,llv(l,5),va1,llv(l,5),1),color00ff00,linethick2;
DRAWLINE(c=hhv(c,60),Hhv(h,3),c=hhv(c,30) and c<hhv(c,45),HHV(HIGH,3),1),coloryellow,linethick2;
DRAWLINE(c=LLV(c,60),LOW,c=LLV(c,30) and c>llv(c,45),LLV(LOW,3),1),colorffcc66,linethick2;
DRAWLINE(HIGH>=HHV(HIGH,60),HIGH,LOW<=LLV(LOW,60),HHV(HIGH,6),1),colorffcccc,linethick2;
DRAWLINE(LOW<=LLV(LOW,60),LOW,HHV(c,6)>=HHV(h,60),LLV(LOW,6),1),colorblue,linethick2;
va11:=HIGH>=HHV(HIGH,60);
v1:=(ref(va11,1)>0 and va11<1);
va12:=LOW<=LLV(LOW,60);
v2:=ref(va12,1)>0 and va12<1;
DRAWLINE(v1,HIGH,v2,HHV(HIGH,6),1),colorffff33,linethick2;
DRAWLINE(v2,LOW,v1,LLV(LOW,6),1),color0099ff,linethick2;
怎樣做一個CYC成本均線多頭排列的選股指標(biāo)?
CYC1:=0.01*EMA(AMOUNT,5 ) /EMA(VOL,5 ) ;
cYC2:=0.01*EMA(AMOUNT,13 ) /EMA(VOL,13 ) ;
CYC3:=0.01*EMA(AMOUNT,34 ) /EMA(VOL,34 ) ;
CYC∞:=DMA(AMOUNT/(100*VOL),VOL/(100*FINANCE(7)));
CYC1>CYC2 and CYC2>CYC3 and CYC3>CYC∞
1、股價近日第一次上穿布林線上軌或中軌選股公式;
2、股價近日第一次跌至布林線中軌或下軌的選股公式
答(恒悅):
1、MID :=MA(CLOSE,26);
UPPER:=MID + P*STD(CLOSE,2);
LOWER:=MID - P*STD(CLOSE,2);
LONGCROSS(c,UPPER or MID,n);{近n日股價第一次上穿布林線上軌或中軌}
2、MID :=MA(CLOSE,26);
UPPER:=MID + P*STD(CLOSE,2); p:0.1,10,2;n:3,15,8. c是收盤價
LOWER:=MID - P*STD(CLOSE,2);
LONGCROSS(LOWER or MID,c,n);{近n日股價第一次上跌至布林線中軌或下軌}
(1)SXM隨心買
VAR1:=ZIG(CLOSE,13);
買:IF(REF(VAR1,2)>REF(VAR1,1) AND VAR1>REF(VAR1,1),0,-70);
(2)子午線:
M;1,300,24,
A:1,300,5,
RSV:=((HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))*200)-125;
空方主力:SMA(RSV,A,1);
RSV1:=((CLOSE-LLV(LOW,M))/(HHV(HIGH,M)-LLV(LOW,M))*200)-105;
多方主力:SMA(RSV1,A,1);
WD:=CROSS(空方主力,-85);
WD1:=CROSS(空方主力,多方主力);
VAR1:=ZIG(CLOSE,13);
天:(WD OR WD1,0,80);
谷底:(WD OR WD1,0,-100);
頂部賣: IF(REF(VAR1,2)<REF(VAR1,1) AND VAR1<REF(VAR1,1),0,40);
底部買: IF(REF(VAR1,2)>REF(VAR1,1) AND VAR1>REF(VAR1,1),0,-70);
這是兩個通達(dá)信公式,轉(zhuǎn)換成大智慧公式
答 (股海一粟):
(1)SXM隨心買
VAR1:=ZIG(3,13);
買:IF(REF(VAR1,2)>REF(VAR1,1) AND VAR1>REF(VAR1,1),0,-70);
(2)子午線:
M;1,300,24,
A:1,300,5,
RSV:=((HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))*200)-125;
空方主力:SMA(RSV,A,1);
RSV1:=((CLOSE-LLV(LOW,M))/(HHV(HIGH,M)-LLV(LOW,M))*200)-105;
多方主力:SMA(RSV1,A,1);
WD:=CROSS(空方主力,-85);
WD1:=CROSS(空方主力,多方主力);
VAR1:=ZIG(3,13);
天:80;
0;
谷底:-100;
頂部賣: IF(REF(VAR1,2)<REF(VAR1,1) AND VAR1<REF(VAR1,1),0,40);
底部買: IF(REF(VAR1,2)>REF(VAR1,1) AND VAR1>REF(VAR1,1),0,-70);
我想要的是在主圖可見時的macd最大值,而且是最后一次。
答(恒悅):
v1:=BARSLAST(BARPOS=SYSPARAM(2));
v2:=BARSLAST(BARPOS=SYSPARAM(3));
v3:=ref(hhv(macd,v1-v2),v2);
DRAWNUMBER(macd=v3[datacount],macd,macd,3) ;
編個自動切線指標(biāo).
公式名稱:自動切線
公式類型:技術(shù)指標(biāo)
顯示區(qū)域:主圖
公式思路:以歷史最高價向右邊的每個峰頂最高價位置(峰頂定義為大于或等于5%的以高低 價計算的Z之轉(zhuǎn)向算一個波峰,但忽略最近的一組上升波段K線)畫切線,取其中傾斜角度最小 的一根切線.
公式結(jié)果:
全自動輸出一根以歷史高點為左支點,但忽略最近的一組上升波段K線,并包含其間 所有K線的切線.
編制參考:如圖 X位水平線,Y.Z.為切線.公式的結(jié)果應(yīng)得出Y線,屏蔽Z線.
答(靈如云):
v1:=hhv(h,0);
v2:=BARSLAST(h=v1);
v3:=datacount-v2;
v4:=datacount-PEAKBARS(4,5,1);
hh:=h;jj:=1;tm:=9999;
v5:=zig(4,5);
v6:=h=v5;
for i=v3[datacount] to datacount do begin
if v6=1 then begin
kk:=(v1[datacount]-hh)/jj;
end;
if kk<=tm and kk>0 then tm:=kk;
jj:=jj+1;
end;
DRAWSL(h=v1[datacount],h,-tm,0,0);
上公式想做個通道出來,方便選股。
v1:=hhv(h,0);
v2:=BARSLAST(h=v1);
v3:=datacount-v2;
v4:=datacount-PEAKBARS(4,5,2);
hh:=h;
jj:=1;
tm:=9999;
v5:=zig(4,5);
v6:=h=v5;
for i=v3[datacount] to v4[datacount] do begin
if v6=1 then begin
kk:=(v1[datacount]-hh)/jj;
bjj:=jj;
end;
if kk<=tm and kk>0 then begin
tm:=kk;
bj:=bjj;
end;
jj:=jj+1;
end;
DRAWSL(h=v1[datacount],h,-tm,0,0);
切線:LINEVALUE(h=v1[datacount],h,v2=bj-1,h,0,0),linethick0;
v7:=ref(h,BARSLAST(v2=bj-1));
B點:v7[datacount],linethick0;
v8:=llv(l-切線,v2);
v9:=BARSLAST(v8[datacount]<ref(v8,1));
DRAWSL(v9=0 and refx(v9,1)<>0,l,-tm,0,2);
de:切線-v8[datacount],linethick0;;
高低點劃線
公式類型:技術(shù)指標(biāo)
顯示區(qū)域:主圖
保密程度:公開
公式思路:在K線主圖上,利用系統(tǒng)參數(shù)(光標(biāo)函數(shù))編寫;在可見主圖的高點上,向下 畫角度線;在可見主圖的最低點,向上畫角度線(有點類似于江恩角度線),
答(靈如云):
INPUT:角度(15,1,60);
p1:=c-ref(c,1);
p2:=sum(abs(p1),0);
p3:=count(c>0,0);
k1:=p2/p3/角度;
x:=h=SYSPARAM(4);
X1:DRAWSL(x,h,-0.5*K1,0,0),COLORgreen;
X2:DRAWSL(x,H,-1*K1,0,0),COLOR00CCFF;
X3:DRAWSL(x,H,-2*K1,0,0),COLOR6666FF;
X4:DRAWSL(x,H,-4*K1,0,0),COLOR158牛股論壇www.g158.com 祝你股市成功!FCC;
X5:DRAWSL(x,H,-8*K1,0,0),COLOR33FFCC;
y:=L=SYSPARAM(5);
{一品CYS----一品茶緣優(yōu)化經(jīng)典指標(biāo)系列之六--CYS市場盈虧指標(biāo),大智慧副圖指標(biāo)}{飛狐無CYS指標(biāo),無法通過!}
CYS:((C-CYC(13))/CYC(13)*100-1)*10;
漲:CROSS(CYS,0),COLOR0000FF;
強(qiáng):CROSS(CYS,10),COLORYELLOW;
回:CROSS(10,CYS) AND CYS>0,COLORWHITE;
{以下設(shè)置副圖顯示方式}
STICKLINE(漲,0,50,4,0),COLORYELLOW;
DRAWTEXT(漲,30,'漲'),COLOR0000FF;
STICKLINE(強(qiáng),50,100,4,0),COLORFF00FF;
DRAWTEXT(強(qiáng),90,'強(qiáng)'),COLOR00FF00;
STICKLINE(回,0,30,4,0),COLORWHITE;
DRAWTEXT(回,20,'回'),COLOR00FF00;
STICKLINE(CYS>=10,50,80,4,0),COLORYELLOW;
STICKLINE(CYS>=50,80,100,4,0),COLORRED;
STICKLINE(CYS<=-100,-100,-120,4,0),COLORFF6600;
平衡:0,COLOR00FF00;
強(qiáng)勢:10,POINTDOT,COLORYELLOW;
風(fēng)險:50,POINTDOT,COLOR0000FF;
超跌:-100,POINTDOT,COLORFF6600;
CYS:C-CYC(13)/(CYC(13)*100-1)*10;
漲:CROSS(CYS,0),COLOR0000FF;
強(qiáng):CROSS(CYS,10),COLORYELLOW;
回:CROSS(10,CYS) AND CYS>0,COLORWHITE;
{以下設(shè)置副圖顯示方式}
STICKLINE(漲,0,50,4,0),COLORYELLOW;
DRAWTEXT(漲,30,'漲'),COLOR0000FF;
STICKLINE(強(qiáng),50,100,4,0),COLORFF00FF;
DRAWTEXT(強(qiáng),90,'強(qiáng)'),COLOR00FF00;
STICKLINE(回,0,30,4,0),COLORWHITE;
DRAWTEXT(回,20,'回'),COLOR00FF00;
STICKLINE(CYS>=10,50,80,4,0),COLORYELLOW;
STICKLINE(CYS>=50,80,100,4,0),COLORRED;
STICKLINE(CYS<=-100,-100,-120,4,0),COLORFF6600;
平衡:0,COLOR00FF00;
強(qiáng)勢:10,POINTDOT,COLORYELLOW;
風(fēng)險:50,POINTDOT,COLOR0000FF;
超跌:-100,POINTDOT,COLORFF6600;
va1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*100;
va2:=SMA(va1,9,1),colorwhite;
走勢線:SMA(va2,6,1),colorred;
va4:=3*va2-2*走勢線,colorff00ff;
撐壓線:wma((va2+走勢線+va4)/3,60),colorgreen;
Var1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
Var2:=SMA(Var1,3,1);
Var3:=SMA(Var2,3,1);
Var4:=SMA(Var3,3,1);
波:=Var3;
段:=Var4;
Var6:=CROSS(Var3,Var4) AND Var3<20;
DRAWTEXT(FILTER(Var6,10)=1,40,'抄底'),color00ff00;
STICKLINE(FILTER(Var6,10)=1,0,30,10,0),color4499ef;
Var7:=CROSS(Var4,Var3) AND Var3>80;
STICKLINE(FILTER(Var7,5)=1,80,100,10,0),colorffff00;
DRAWTEXT(FILTER(Var7,5)=1,70,'逃頂'),colorred;
Var8:=CROSS(Var2,Var3) AND Var3>80 AND Var3>Var4;
STICKLINE(Var8,85,100,10,0),colorgreen;
選股:if(var6>0,1,0),LINETHICK0;
90,colorblue;
bba:=(CLOSE-LLV(LOW,40))/(HHV(HIGH,40)-LLV(LOW,40))*100;
bba1:=sMA(bba,3,1),colorwhite;
bba2:=SMA(bba1,3,1),coloryellow;
bba3:=3*bba1-2*bba2,colorff00ff;
抄底1:if(SMA(MAX(CLOSE-bba3,0),5,4)/SMA(ABS(CLOSE-bba3),5,4),30,0),colorffff00;
RSV:=(c-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
K:SMA(RSV,3,1),colorwhite;
D:SMA(K,3,1),coloryellow;
J:3*K-2*D,colorff00ff;
if(cross(d,k) and k>80,30,100),coloryellow;
抄底:if(cross(k,d) and d<17,70,0),colorred;
bb:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
b1:=SMA(bb,24,1),colorwhite;
b2:=SMA(b1,12,1),coloryellow;
b3:=3*b1-2*b2,colorff00ff;
x:=b1-b2;
x1:=ref(x,1);
{波賣:if(cross(x1,x) and b1>b2 and c>ma(c,20) and b3>70,60,100);
bb1:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*100;
b4:=SMA(bb1,3,1),colorwhite;
b5:=SMA(b4,3,1);
波買:if(cross(b5,30) and b3>19,40,0); }
c1:=(cross(x1,x) and b1>b2 and c>ma(c,20) and b3>70) and (cross(d,k) and k>80);
c2:=(cross(x1,x) and b1>b2 and c>ma(c,20) and b3>70) and (CROSS(Var4,Var3) AND Var3>80);
c3:=(CROSS(Var4,Var3) AND Var3>80) and (cross(d,k) and k>80);
c4:if(c1 or c2 or c3,40,0),colorffccff,stick,linethick3;
DRAWTEXT(c4,42,'清倉'),color00ff00;
聯(lián)系客服