小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

編輯通達(dá)信條件選股及警告公式

 martinstock 2011-02-13
編輯通達(dá)信條件選股及預(yù)警公式 
我頂 字號(hào):

 

重要的函數(shù)運(yùn)用:

一.STICKLINE

STICKLINE(DIFF<DEA,O,C,3,1),COLORF0F000;

當(dāng)滿足條件DIFF<DEA時(shí),在開(kāi)盤價(jià)和收盤價(jià)位置之間畫柱狀線,寬度為3,1不為0則畫空心柱.,COLORF0F000

STICKLINE(TJ,O,C,3,1),COLORRED;

當(dāng)滿足條件TJ時(shí),在開(kāi)盤價(jià)和收盤價(jià)位置之間畫柱狀線,寬度為3,1不為0則畫空心柱.,畫紅色

二.IF

{M1  5  2   1000  
M2   20  2  1000}
MA5:MA(CLOSE,M1);
MA10:MA(CLOSE,M2);
十日叉:IF(CROSS(MA5,MA10),MA5,DRAWNULL),CROSSDOT,COLORFFFFFF,LINETHICK2;

輸出MA5:收盤價(jià)的M1日簡(jiǎn)單移動(dòng)平均
輸出MA10:收盤價(jià)的M2日簡(jiǎn)單移動(dòng)平均
輸出十日叉:如果MA5上穿MA10,返回MA5,否則返回?zé)o效數(shù),CROSSDOT,COLORFFFFFF,LINETHICK2

 

 

三.DRAWICON

買線:=EMA(C,2);
賣線:=EMA(SLOPE(C,21)*20+C,42); 
BU:=CROSS(買線,賣線);
SEL:=CROSS(賣線,買線);
DRAWICON(BU,L-0.1,1);
DRAWICON(SEL,H+0.1,2);

STICKLINE(買線>=賣線,LOW,HIGH,0.0,1),COLORRED;
STICKLINE(買線>=賣線,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(買線<賣線,LOW,HIGH,0.0,1),COLORGREEN;
STICKLINE(買線<賣線,CLOSE,OPEN,2,1),COLORGREEN;
STICKLINE(BU,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(SEL,OPEN,CLOSE,2,0),COLORBLUE;

買線賦值:收盤價(jià)的2日指數(shù)移動(dòng)平均
賣線賦值:收盤價(jià)的21日線性回歸斜率*20+收盤價(jià)的42日指數(shù)移動(dòng)平均
BU賦值:買線上穿賣線
SEL賦值:賣線上穿買線
當(dāng)滿足條件BU時(shí),在最低價(jià)-0.1位置畫1號(hào)圖標(biāo)
當(dāng)滿足條件SEL時(shí),在最高價(jià)+0.1位置畫2號(hào)圖標(biāo)

 當(dāng)滿足條件買線>=賣線時(shí),在最低價(jià)和最高價(jià)位置之間畫柱狀線,寬度為0.0,1不為0則畫空心柱.,畫紅色
當(dāng)滿足條件買線>=賣線時(shí),在收盤價(jià)和開(kāi)盤價(jià)位置之間畫柱狀線,寬度為2,1不為0則畫空心柱.,畫紅色
當(dāng)滿足條件買線<賣線時(shí),在最低價(jià)和最高價(jià)位置之間畫柱狀線,寬度為0.0,1不為0則畫空心柱.,畫綠色
當(dāng)滿足條件買線<賣線時(shí),在收盤價(jià)和開(kāi)盤價(jià)位置之間畫柱狀線,寬度為2,1不為0則畫空心柱.,畫綠色
當(dāng)滿足條件BU時(shí),在開(kāi)盤價(jià)和收盤價(jià)位置之間畫柱狀線,寬度為2,0不為0則畫空心柱.,畫黃色
當(dāng)滿足條件SEL時(shí),在開(kāi)盤價(jià)和收盤價(jià)位置之間畫柱狀線,寬度為2,0不為0則畫空心柱.,畫藍(lán)色
輸出主力:收盤價(jià)的10日指數(shù)移動(dòng)平均,畫紅色

 

 下面的這種紅藍(lán)線與另外的一種紅藍(lán)線也有類似的地方,公式源碼為

中趨勢(shì)線:=MA(CLOSE,55),LINETHICK1,COLORGRAY;
短趨勢(shì)線:MA(CLOSE,25),COLORRED,LINETHICK3;
跌:IF(短趨勢(shì)線<REF(短趨勢(shì)線,1),短趨勢(shì)線,DRAWNULL),COLORGREEN,LINETHICK3;

 DRAWTEXT(CROSS(短趨勢(shì)線,C) AND INDEXC>MA(INDEXC,13) AND 短趨勢(shì)線>REF(短趨勢(shì)線 ,1)
     AND V<REF(V,1) AND 短趨勢(shì)線>中趨勢(shì)線 ,L*0.97,'買入'),COLORRED;

 其中的IF函數(shù)對(duì)應(yīng)的使用方法仍然為:假如某個(gè)條件成立則對(duì)應(yīng)的返回指定的值,否則返回?zé)o效數(shù),即:

         IF(條件一,指定值,無(wú)效數(shù));

而另外一個(gè)函數(shù)DRAWTEXT的使用方法為:滿足某個(gè)條件或多個(gè)條件時(shí),在指定的位置寫文字或畫圖標(biāo),即:

         DRAWTEXT(條件一,指定位置,畫圖標(biāo)或?qū)懳淖郑?nbsp;       其中的條件一既指單一的條件,也可以是組合的條件。

比如: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,'短線'),COLORFF66FF;

這就是一個(gè)組合條件,其中的CROSS(SK,SD)為條件一,

           (C-REF(C,1))/REF(C,1)>=0.03為條件二,

                         (V/MA(V,5)>2 為條件三,
                    C/REF(C,1)>0.035))為條件四,這幾個(gè)條件又共同組成了一個(gè)大的條件為:

    ((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))    可稱之為條件五,,簡(jiǎn)化后即成為DRAWTEXT(條件五,L*0.99,'短線'),COLORFF66FF;

 

 

 

而STICKLINE函數(shù)的使用方法則是當(dāng)滿足某一條件或組合條件時(shí),在指定的價(jià)格或數(shù)值之間畫寬度或高度為某一個(gè)值,典型的就是適用于K線的收盤開(kāi)盤和最高最低之間的寬度高度或者顏色的變化;

即:STICKLINE(DIFF<DEA,O,C,3,1),COLORF0F000;

其格式為:STICKLINE(某條件,O,C,3,1),COLORF0F000;

查看更多精彩圖片

 

 

 四:函數(shù)的相互嵌入使用

   函數(shù)中可以在包括函數(shù),比如:

多:EMA(C,3),COLORYELLOW;
空:EMA(C,5),COLOR00FF00;
均衡:EMA(空,5),COLORWHITE,;
VARF1:=COUNT(CROSS(多,均衡),2)=1;
VARF2:=COUNT(CROSS(空,均衡),2)=1;
ZAI:=FILTER(VARF1 AND VARF2,2);
DRAWTEXT(ZAI,均衡,' →◆●¤主升行情'),COLORFF00FF;
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);
DRAWTEXT(REF(VV3,1)>81 AND VV3<80,HIGH,' →◆●沽空↓'),COLORYELLOW;
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;

 

在這一段源碼中,最后一句滿足某條件中包含的IF語(yǔ)句中,(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),四個(gè)小的條件用 AND 組合為一個(gè)總的條件,如果簡(jiǎn)化的話,就是:

DRAWTEXT(IF(條件),特定值,符號(hào)),顏色;

 

 

 

 

 

下面這是運(yùn)用均線系統(tǒng)做的紅藍(lán)持股線,(主圖)

{N=3, 1,  100}
X1:(C*2+L+H+O)/5;
X2:EMA(X1,6);
X3:EMA(X2,5);
DRAWICON(CROSS(X2,X3),L*0.98,7);
DRAWICON(CROSS(X3,X2),H*1.02,8);
STICKLINE(X2>=X3,LOW,HIGH,0,1),COLORRED;
STICKLINE(X2>=X3,CLOSE,OPEN,3,2),COLORRED;

STICKLINE(X2<X3,LOW,HIGH,0,1),COLORGREEN;
STICKLINE(X2<X3,CLOSE,OPEN,3,2),COLORGREEN;
STICKLINE(CROSS(X2,X3),OPEN,CLOSE,3,1),COLORYELLOW;
STICKLINE(CROSS(X3,X2),OPEN,CLOSE,3,1),COLORBLUE;

查看更多精彩圖片

 

 漂亮的五彩K線:(紅線持股藍(lán)線持幣)

成本:(MA(CLOSE,60)+MA(CLOSE,70)+MA(CLOSE,90)+MA(CLOSE,108))/4,COLORRED,LINETHICK2;
二號(hào)線:EMA(C,25),COLORWHITE,LINETHICK2;
TYP:=(HIGH + LOW +2* C)/4;
均線:EMA(TYP,3),LINETHICK2,COLORWHITE;
角度:=ATAN((均線/REF(均線,1)-1)*100)*180/3.1416;
STICKLINE(角度>0,O,C,3,0),COLOR000099;{紅K線持股};
STICKLINE(角度>0,O,C,2,0),COLOR0000CC;
STICKLINE(角度>0,O,C,1.3,0),COLOR0000FF;
STICKLINE(角度>0,O,C,0.3,0),COLORCC66FF;
STICKLINE(角度<0,O,C,3,0),COLORFF6600;{藍(lán)K線持幣};
STICKLINE(角度<0,O,C,2,0),COLORFF9900;
STICKLINE(角度<0,O,C,1.2,0),COLORFFCC00;
STICKLINE(角度<0,O,C,0.2,0),COLORCYAN;
查看更多精彩圖片
查看更多精彩圖片

 

 

 

拼接的五彩K線及條件選股公式:(正在完善)

五彩買賣信號(hào):

二號(hào)線:EMA(C,25),COLORWHITE,LINETHICK2;

DIFF:=EMA(CLOSE,3);   DEA:=EMA(C,13);   MACD:=0.90*(DIFF-DEA);

TJ:=(DIFF>=DEA);
TJ1:=(DIFF>=0);

STICKLINE(TJ1 AND TJ,H,L,0,1),COLORRED;
STICKLINE(TJ1 AND TJ,O,C,3.5,1),COLORRED;
STICKLINE(DIFF<DEA,H,L,0,0),COLORF0F000;
STICKLINE(DIFF<DEA,O,C,3,1),COLORF0F000;

 

或者:

二線:EMA(C,25),COLORWHITE,LINETHICK2;
DIFF:=( EMA(CLOSE,3)-EMA(CLOSE,13)),COLORWHITE;
DEA:=EMA(DIFF,9),COLORF00FF0;
MACD:=0.90*(DIFF-DEA),COLORSTICK;
TJ:=(DIFF>=DEA);
TJ1:=(DIFF>=0);
STICKLINE(TJ,H,L,0,1),COLORRED;
STICKLINE(TJ,O,C,3,1),COLORRED;
STICKLINE(TJ1 AND TJ,H,L,0,1),COLORRED;
STICKLINE(TJ1 AND TJ,O,C,3,1),COLORRED;
STICKLINE(DIFF<DEA,H,L,0,0),COLORF0F000;
STICKLINE(DIFF<DEA,O,C,3,1),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,'短線'),COLORFF66FF;
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,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,3,0),LINETHICK3,COLORRED;

其圖中所示為:

查看更多精彩圖片
查看更多精彩圖片
查看更多精彩圖片
查看更多精彩圖片
查看更多精彩圖片

基本上看起來(lái)也很直觀,仔細(xì)分析,還是以25日均線為分界點(diǎn),上為持股,下為持幣,目前尚存的缺點(diǎn)是在盤整行情中,不能過(guò)濾掉小幅波動(dòng)時(shí)候的頻繁的買賣點(diǎn)的出現(xiàn)。

其實(shí)下面這種指標(biāo)源碼也聽(tīng)簡(jiǎn)單的:姑且稱其為買賣變色線:

VAR11:MA(C,14),COLORRED;
上升通道:IF(VAR11>REF(VAR11,1),VAR11,DRAWNULL),LINETHICK3,COLORRED;
下降通道:IF(VAR11<REF(VAR11,1),VAR11,DRAWNULL),LINETHICK3,COLORGREEN;
DIFF:=( EMA(CLOSE,2)-EMA(CLOSE,25)),COLORWHITE;
DEA:=EMA(DIFF,189),COLORF00FF0;
MACD:=0.90*(DIFF-DEA),COLORSTICK;
TJ:=(DIFF>=DEA);
TJ1:=(DIFF>=0);
STICKLINE(DIFF<DEA,H,L,0,1),COLORF0F000;
STICKLINE(DIFF<DEA,O,C,3,1),COLORF0F000;
STICKLINE(TJ,H,L,0,1),COLORRED;
STICKLINE(TJ,O,C,3,1),COLORRED;

查看更多精彩圖片

查看更多精彩圖片

 出現(xiàn)的問(wèn)題仍然是在盤整行情中買賣信號(hào)頻繁?,F(xiàn)在需要討論的是在源碼中引入量能,比如我觀察了很多大牛股暴漲啟動(dòng)前當(dāng)日的成交量突破89日均線而且5日30日均線向上金叉是行情啟動(dòng)的明確信號(hào),現(xiàn)在需要的就是引入此中情況的源碼。

 

 


 

 

 

 需要的素材:

1.

一劍封喉:=((CROSS(CLOSE,MA(CLOSE,13)) AND CROSS(CLOSE,MA(CLOSE,34))) AND CROSS(CLOSE,MA(CLOSE,55)));
  A1:=(((CLOSE - LLV(LOW,22)) / (HHV(HIGH,22) - LLV(LOW,22))) * 100);
  A2:=(((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100);
  A:=((3 * SMA(A1,5,1)) - (2 * SMA(SMA(A2,5,1),3,1)));
  YNGS:=(一劍封喉 AND (A < 30)),LINETHICK0;
  DRAWICON((一劍封喉 AND (A < 30)),(LOW * 0.99),1);
  DRAWTEXT((一劍封喉 AND (A < 30)),(LOW * 0.99),' ←兔子封喉'),COLORYELLOW;

動(dòng)態(tài)翻譯的結(jié)果為:

一劍封喉賦值:((收盤價(jià)上穿收盤價(jià)的13日簡(jiǎn)單移動(dòng)平均 AND 收盤價(jià)上穿收盤價(jià)的34日簡(jiǎn)單移動(dòng)平均) AND 收盤價(jià)上穿收盤價(jià)的55日簡(jiǎn)單移動(dòng)平均)
A1賦值:(((收盤價(jià) - 22日內(nèi)最低價(jià)的最低值) / (22日內(nèi)最高價(jià)的最高值 - 22日內(nèi)最低價(jià)的最低值)) * 100)
A2賦值:(((收盤價(jià) - 27日內(nèi)最低價(jià)的最低值) / (27日內(nèi)最高價(jià)的最高值 - 27日內(nèi)最低價(jià)的最低值)) * 100)
A賦值:((3 * A1的5日[1日權(quán)重]移動(dòng)平均) - (2 * A2的5日[1日權(quán)重]移動(dòng)平均的3日[1日權(quán)重]移動(dòng)平均))
YNGS賦值:(一劍封喉 AND (A < 30)),LINETHICK0
當(dāng)滿足條件(一劍封喉AND(A<30))時(shí),在(最低價(jià)*0.99)位置畫1號(hào)圖標(biāo)
當(dāng)滿足條件(一劍封喉AND(A<30))時(shí),在(最低價(jià)*0.99)位置書寫文字,畫黃色

查看更多精彩圖片

查看更多精彩圖片

2.

LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(EMA(EMA(CLOSE,13),50)>EMA(EMA(CLOSE,13),50*3)
       AND CROSS(84,RSI), HIGH*1.02,'←風(fēng)險(xiǎn)'),COLOR00FF33;
DRAWTEXT(EMA(EMA(CLOSE,13),50)<EMA(EMA(CLOSE,13),50*3)
       AND CROSS(80,RSI), HIGH*1.02,'←風(fēng)險(xiǎn)'),COLOR00FF33;
AAA:=(MA(CLOSE,13)+MA(CLOSE,17))/2;
CCC:=(STD(CLOSE,13)+STD(CLOSE,17))/2;
BBB:=AAA+2.1*CCC;
DDD:=AAA+0.72*CCC;
ZZZ:=IF(CCC>1.88,MA(DDD,3),DDD);
DRAWTEXT(CLOSE>=1.09*REF(CLOSE,1),CLOSE,'漲停啦,'),COLORYELLOW;

LC賦值:昨收
RSI賦值:收盤價(jià)-LC和0的較大值的6日[1日權(quán)重]移動(dòng)平均/收盤價(jià)-LC的絕對(duì)值的6日[1日權(quán)重]移動(dòng)平均*100
當(dāng)滿足條件收盤價(jià)的13日指數(shù)移動(dòng)平均的50日指數(shù)移動(dòng)平均>收盤價(jià)的13日指數(shù)移動(dòng)平均的50*3日指數(shù)移動(dòng)平均ANDCROSS(84,RSI)時(shí),在最高價(jià)*1.02位置書寫文字,COLOR00FF33
當(dāng)滿足條件收盤價(jià)的13日指數(shù)移動(dòng)平均的50日指數(shù)移動(dòng)平均<收盤價(jià)的13日指數(shù)移動(dòng)平均的50*3日指數(shù)移動(dòng)平均ANDCROSS(80,RSI)時(shí),在最高價(jià)*1.02位置書寫文字,COLOR00FF33
AAA賦值:(收盤價(jià)的13日簡(jiǎn)單移動(dòng)平均+收盤價(jià)的17日簡(jiǎn)單移動(dòng)平均)/2
CCC賦值:(收盤價(jià)的13日估算標(biāo)準(zhǔn)差+收盤價(jià)的17日估算標(biāo)準(zhǔn)差)/2
BBB賦值:AAA+2.1*CCC
DDD賦值:AAA+0.72*CCC
ZZZ賦值:如果CCC>1.88,返回DDD的3日簡(jiǎn)單移動(dòng)平均,否則返回DDD
當(dāng)滿足條件收盤價(jià)>=1.09*昨收時(shí),在收盤價(jià)位置書寫文字,畫黃色

查看更多精彩圖片


 3.

SFF:=HIGH/REF(HIGH,1)<1 AND REF(HIGH,1)/REF(HIGH,2)<1  AND LOW/REF(LOW,1)>1 AND REF(LOW,1)/REF(LOW,2)>1 ;
DRAWTEXT(SFF,LOW*0.90,'金兔子:提醒你關(guān)注')COLORRED;

SFF賦值:最高價(jià)/昨日最高價(jià)<1 AND 昨日最高價(jià)/2日前的最高價(jià)<1  AND 最低價(jià)/昨日最低價(jià)>1 AND 昨日最低價(jià)/2日前的最低價(jià)>1
當(dāng)滿足條件SFF時(shí),在最低價(jià)*0.90位置書寫文字畫紅色

查看更多精彩圖片

4.啟動(dòng)線

啟動(dòng)線:SUM(EMA((C+L)/2,2),5)/10.158,COLORRED;
平衡線:LLV(SUM( EMA((C+L)/2,2),5)/10.158,4),COLORMAGENTA;
平臺(tái)線:LLV(SUM( EMA((C+L)/2,2),5)/10.158,10),COLORFFFFFF;
強(qiáng)弱線:EMA(啟動(dòng)線,21),COLORYELLOW;
STICKLINE(平臺(tái)線<啟動(dòng)線,啟動(dòng)線,平臺(tái)線,0.1,0),COLORFF972F;
STICKLINE(平衡線<啟動(dòng)線,啟動(dòng)線,平衡線,0.1,0),COLORRED;
M1:=WINNER( MA(CLOSE,1))*200;
M2:=WINNER(MA(CLOSE,20))*200;
VAR1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=LLV(LOW,5);
VAR6:=HHV(HIGH,5);
VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;
VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);
VAR9:=3*VAR7-2*VAR8;
VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VARB:=POW(MA(LOW,5),2)+MA(LOW,5);
VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;
VARE:=SMA(VARD,3,1)*1.5-100;
VARF:=SMA(VARE,3,1);
VAR10:=3*VARE-2*VARF;
VAR11:=(HIGH+LOW+CLOSE*2)/4;
VAR12:=EMA(VAR11,13);
VAR13:=STD(VAR11,13);
VAR14:=(VAR11-VAR12)*100/VAR13;
VAR15:=EMA(VAR14,5);
VAR17:=EMA(VAR15,13)+200-100;
VAR18:=EMA(VAR17,10);
VAR19:=3*VAR17-2*VAR18;
VAR1A:=VAR2+VAR7+VARE+VAR17;
VAR1B:=VAR3+VAR8+VARF+VAR18;
VAR1C:=VAR4+VAR9+VAR10+VAR19;
VAR1D:=(HIGH+LOW+CLOSE)/3;
VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));
VAR21:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4;
VAR23:=EMA(VAR22,24);
VAR24:=STD(VAR22,24);
VAR25:=(VAR22-VAR23)/VAR24*100;
VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));
VAR27:=EMA(VAR25,5);
VAR2A:=((VAR27+VAR26+VAR20)/3+165)/4;
VAR2B:=(EMA(EMA(EMA(VAR2A,15),10),5)-25)*2+VAR21;
VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;
VAR2D:=EMA(VAR2C,13);{13}
VAR2E:=(VAR2A+VAR2C)/2/1.1;    
AA:=EMA(VAR2E,3) ;
AA1:=EMA(AA,5);
AA2:=EMA((VAR2B+VAR2D)/2,2);
HH:=MAX(AA,MAX(AA1,AA2))-MIN(AA,MIN(AA1,AA2));
買:=(CROSS(AA,AA1) AND HH<5 AND AA<2),COLORRED,NODRAW;
DQ:=AA<10 AND AA2<10 AND AA1<10;
買點(diǎn):=(DQ=1 AND HH>REF(HH,1) AND REF(HH,1)<REF(HH,2)),COLORYELLOW,NODRAW;
STICKLINE(AA<10 AND AA2<10 AND AA1<10,強(qiáng)弱線,平臺(tái)線,4,1);
STICKLINE(買點(diǎn)=1,強(qiáng)弱線,平臺(tái)線,3,0),COLORYELLOW;
STICKLINE(買=1,強(qiáng)弱線,平臺(tái)線,4,0),COLORRED;
查看更多精彩圖片

5.極品選股

頂壓:HHV(MA(H,11),50),COLOR00FFFF;
短壓:HHV(MA(H,11),15),COLOR0090E0;
XL1:=LLV(MA(H,11),1);
趨勢(shì):IF(XL1>=短壓,短壓,XL1),COLORFFFFFF;
X1:=(3*C+H+L+O)/6;
X2:=EMA(X1,10);
X3:=REF(X2,1);
X4:=(REF(HIGH,1)+REF(LOW,1))/2;
X5:=MA(CLOSE,21)+2*STD(CLOSE,21);
X6:=REF(CLOSE,1);{出貨}
X7:=SMA(MAX(CLOSE-X6,0),7,1)/SMA(ABS(CLOSE-X6),7,1)*100;
X8:=CROSS(79,X7);
X9:=FILTER(X8,4);{40}
WZ1:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);{減}
WZ2:=POW(MA(LOW,5),2)+MA(LOW,5);
WZ3:=POW(MA(HIGH,5),2)+MA(HIGH,5);
WZ4:=(WZ1-LLV(WZ2,9))/(HHV(WZ3,9)-LLV(WZ2,9))*150+65;
DK:=SMA(WZ4,3,1)*1.5;
DD:=SMA(DK,3,1);
DJ:=3*DK-2*DD;
WZ5:= EMA(CLOSE,12) - EMA(CLOSE,26);
WZ6:= EMA(WZ5,9);
WZ7:= 2*(WZ5-WZ6);{50}
WZ8:= REF(WZ7,1);
WZ9:= CROSS(WZ8,WZ7) AND WZ8>0;
DRAWTEXT(WZ9 AND DJ>250,H,'←減'),COLORBCFF8B;
VAR11:=EMA(CLOSE,8);{起步}
VAR2:=EMA(VAR11,20);
VAR3:=CROSS(VAR11,VAR2);
VAR4:=VAR11<MA(CLOSE,120);
VAR5:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;{逃命}
VAR6:=SMA(VAR5,5,1);
VAR7:=SMA(VAR6,8,1);{60}
VAR8:=CROSS(VAR6,VAR7) AND VAR7<20;
VAR9:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR8;
VARA:=IF(CLOSE>1000,VAR8,VAR9);
起步:= VAR3 AND VAR4;
逃遁:= VARA;
STICKLINE(X2>X3,X2*0.98,X2,6,1),COLOR0000FF,LINETHICK2;
STICKLINE(X2<X3,X2*0.98,X2,6,1),COLORF10011,LINETHICK2;
WW1:= SUM( MA(C,10),9)/10.110,COLORYELLOW;
XX1:=MA(LOW,2)*0.96;
XX2:=MA(LOW,26)*0.85;
XX3:= REF(XX1,1)<XX2 AND REF(XX1,1)<XX1 AND REF(XX1,1)<REF(XX1,2);
VAR1:=INDEXC;
VAR12:=MA(VAR1,6);
VAR13:=MA(VAR1,24);
VAR14:=MA(VAR1,32);
VAR15:=MA(VAR1,62);
VAR16:=MA(VAR1,105);
VAR17:=VAR15<REF(VAR15,1) AND VAR6<REF(VAR16,1) AND VAR15<VAR6*0.98;
VAR18:=VAR14>VAR12*1.11 AND VAR13>VAR12*1.095;
VAR19:=VAR12>VAR1*0.95;
VAR111:=EMA(WINNER(CLOSE)*70,3);
VAR112:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
VAR113:=CLOSE/MA(CLOSE,40)*100<76;
VAR114:=CLOSE/MA(CLOSE,60)*100<74;
VAR115:=HIGH>LOW*1.051;
VAR116:=VAR115 AND COUNT(VAR15,5)>1;
VAR117:=VAR17 AND VAR8 AND VAR19 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE<OPEN)
AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND CLOSE>0.1 OR VAR16
AND (VAR113 OR VAR114) AND VAR112<20 AND VAR111<20
AND (WINNER(CLOSE*125/100)-WINNER(CLOSE))*100<7.5 OR TROUGHBARS(3,15,1)<4
AND CROSS(EMA(CLOSE,21)-EMA(CLOSE,8),EMA(EMA(CLOSE,21)-EMA(CLOSE,8),5));

XL11:=EMA(CLOSE,10)/100;{70}
XL2:= MA((XL11-REF(XL11,10))/REF(XL11,10),3)*100;
XL3:= MA(XL2,3);
XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);
DRAWTEXT(IF(CROSS(3*XL4-2*SMA(XL4,3,1),8),87,0) AND X2>X3,L-0.1,'←●反彈'),COLORGREEN;
DRAWTEXT(IF(CROSS((VAR11-LLV(VAR1,4))/(HHV(VAR11,4)-LLV(VAR11,4))*4*25,87.5) AND
VAR1<40,87,0) AND X2>X3,L-0.2,'←●短買'),COLORFFBBD8;
DRAWTEXT(CROSS(VAR1,10) AND X2>X3,L-0.3,'←●買'),COLOR89B2FF;
DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW)/4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26)-EMA(EMA((CLOSE*2+HIGH+LOW)/
4,12)-EMA((CLOSE*2+HIGH+LOW)/4,26),2))*5.8,0.47),LOW,0) AND X2>X3,L-0.4,'←●加倉(cāng)'),COLORFF5ED8;{80}
LL1:=(EMA(CLOSE,3) - EMA(CLOSE,13));
LL2:=EMA(LL1,9);
LL3:=BARSLAST(CROSS(LL1,LL2));
LL4:=REF(LL3,LL3+1);
LL5:=LL2<REF(LL2,LL4);
變盤:=CROSS(LL1,LL2) AND LL5;

DRAWTEXT(起步>0,L,'★起步?'),COLOR00FF00;

STICKLINE(起步>0,C*1.05,C,7,0),COLORRED;
DRAWTEXT(逃遁>0,H*1.04,'●←逃'),COLOR7FFFD6;

查看更多精彩圖片

6.資金翻番

ZGD2:=CONST(ZGD);
ZDD:=LLV(L,90);
ZDD2:=CONST(ZDD);
{DRAWBAND(ZGD2,RGB(50,50,50),ZDD2,DRAWNULL);}
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;
青色觀望: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;
短買:VAR19,REF(CLOSE,1),REF(CLOSE,2),COLOR33AACC,NODRAW;
品紅離場(chǎng):VAR1A,REF(CLOSE,1),REF(CLOSE,2),COLORFF99FF,NODRAW;
急速超跌:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRAW;
上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;
月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;
日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;
STICKLINE(紅色持股,CLOSE,REF(CLOSE,1),5,0),COLOR0000FF;
STICKLINE(青色觀望,CLOSE,REF(CLOSE,1),5,0),COLORFFFF00;
STICKLINE(短買,REF(CLOSE,1),REF(CLOSE,2),5,0),COLOR33AACC;
STICKLINE(品紅離場(chǎng),REF(CLOSE,1),REF(CLOSE,2),5,0),COLORFF99FF;
STICKLINE(急速超跌,REF(CLOSE,1),C,5,0),COLORFFFFFF;
STICKLINE(C>=O,L,H,0,0),COLOR0000CC;
STICKLINE(C<O,L,H,0,0),COLOR999900;
STICKLINE(1,C,O,2.5,0),COLOR454500;
STICKLINE(1,C,O,2,0),COLOR555500;
STICKLINE(1,C,O,1.5,0),COLOR656500;
STICKLINE(1,C,O,1,0),COLOR757500;
STICKLINE(1,C,O,0.5,0),COLOR858500;
STICKLINE(C>=O,C,O,2.5,0),COLOR000045;
STICKLINE(C>=O,C,O,2,0),COLOR000085;
STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;
STICKLINE(C>=O,C,O,1,0),COLOR0000C5;
STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;
DRAWTEXT(VAR19,REF(CLOSE,1),'←短買'),COLOR33FFCC;
DRAWTEXT(VAR1A,REF(CLOSE,1)+0.1,'←離場(chǎng)'),COLORFF99FF;
MA3:=MA(CLOSE,3);
YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;
辰星線:(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);
IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR0000FF;
IF(辰星線>REF(辰星線,1),辰星線,DRAWNULL),LINETHICK2,COLOR0000FF;
IF(辰星線<REF(辰星線,1),辰星線,DRAWNULL),COLOR00FF00;
IF(牽牛線<REF(牽牛線,1),牽牛線,DRAWNULL),COLOR669933;

 查看更多精彩圖片

7.三底背離

A:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));   
B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);   
分水嶺:IF(MA(CLOSE,17)<B,B,MA(CLOSE,17)),COLORFF00FF,LINETHICK1;   
PMA:=分水嶺;   
DD:=分水嶺<REF(分水嶺,1);   
IF(DD,分水嶺,DRAWNULL),COLOR00FF00,LINETHICK1;   
操作線:分水嶺-(EMA(C,3)-分水嶺),COLOR00FFFF,LINETHICK1;   
S:=(PMA>操作線);   
IF(S,分水嶺,DRAWNULL),COLOR00FF00,POINTDOT,LINETHICK1;   
PM:MA(C,5),COLORFFFFCC,LINETHICK1;   
IF(PM>REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK1;   
IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED;   
IF(PM<REF(PM,1),PM,DRAWNULL),COLORFF9900,LINETHICK1;   
DRAWTEXT(CROSS(分水嶺,操作線),分水嶺-0.1,'三底背離');   
A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));   
B1:=REF(C,A1+1)>C AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA");   
DRAWTEXT(B1>0,L-0.02,'M底背離'),COLOR00FFFF;   
A2:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));   
B2:=REF(C,A2+1)>C AND REF("KDJ.K",A2+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D");   
DRAWTEXT(B2,L-0.10,'K底背離'),COLORFF00FF;   
A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));   
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2");   
DRAWTEXT(B3>0,L-0.18,'R底背離'),COLOR0000FF;   
C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));   
D1:=REF(C,C1+1)<C AND REF("MACD.DIF",C1+1)>"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF");   
DRAWTEXT(D1>0,H+0.16,'M頂背離'),COLOR00FF00;   
C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));   
D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K");   
DRAWTEXT(D2>0,H+0.08,'K頂背離'),COLORFFFFCC;   
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));   
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");   
DRAWTEXT(D3>0,H+0.04,'R頂背離'),COLORFF9900;

查看更多精彩圖片

8.轉(zhuǎn)向抄底

EMA13:=EMA(C,13),COLORWHITE;
EMA21:=EMA(C,21),COLORYELLOW;
EMA34:=EMA(C,34),COLORFF00FF;
EMA60:=MA(C,60),COLORFFCC66;
VAR2:=(2*CLOSE+HIGH+LOW)/4;
VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);
VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);
散戶:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;
莊家:=EMA(0.667*REF(散戶,1)+0.333*散戶,2)*VAR3;
DRAWTEXT(CROSS(散戶,莊家) AND 散戶<30,L-0.05,'←低吸'),COLORLIRED;
DRAWTEXT(CROSS(莊家,散戶) AND 散戶>70,H+0.05,'←高拋'),COLORGREEN;
DRAWICON(CROSS(散戶,莊家) AND 散戶<30,L-0.05,1);
DRAWICON(CROSS(莊家,散戶) AND 散戶>70,H+0.05,2);
VAR9:=CLOSE-REF(CLOSE,5);
VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);
VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);
賣出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);
DRAWICON(賣出<0,H+0.05,2); 買線:=EMA(CLOSE,2);
賣線:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
B1:IF(CROSS(買線,賣線),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;
S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;
S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;
A0:=(L+H+C*2)/4;
A1:EMA(A0,14)COLORBLUE,LINETHICK2;
A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;
看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};
逃頂:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORCYAN,{LINETHICK2};
買入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;
賣出空倉(cāng):IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3;
STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;
STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;
STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;
STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;
查看更多精彩圖片

查看更多精彩圖片

 9.絕路航標(biāo)   (通達(dá)信副圖)

VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;
B:SMA(VAR1,N,1);
VAR2:SMA(B,M,1);
絕路航標(biāo):IF(CROSS(B,VAR2) AND B<40,50,0);

N最小2最大100缺省7.        M最小2最大100缺省5.

 查看更多精彩圖片

這個(gè)指標(biāo)與漲停板還有一定的關(guān)聯(lián)。

 

10.準(zhǔn)備抄底

VAR1:=AMOUNT/VOL/7;
VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VAR3:=SUM(AMOUNT,N)/VAR1/7;
VAR4:=DMA(VAR2,VOL/VAR3);
抄底:(CLOSE-VAR4)/VAR4*100,COLORLIMAGENTA;
DRAWICON(CROSS(-1.65,抄底),抄底,1);

查看更多精彩圖片

11.紅藍(lán)線   (該指標(biāo)仍然是按照macd的數(shù)據(jù)變化出來(lái)的,仍然有不能過(guò)濾盤整時(shí)買賣點(diǎn)頻繁出現(xiàn)的現(xiàn)象)

 

二號(hào)線:EMA(C,25),COLORWHITE,LINETHICK2;
工作線:EMA(C,14),COLORYELLOW,LINETHICK2;
VAR1:=IF(DATE>=10201201,0,1);
VAR2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);
VAR3:=EMA(CLOSE,3);
VAR4:=(2*CLOSE+LOW+HIGH)/4*VAR1;
VAR5:=VAR2-VAR3;
風(fēng)險(xiǎn)線:=EMA(VAR4,45)*1.15;
必賣線:=EMA(VAR4,55)*1.3;
底線:=EMA(VAR4,40)*0.85;
鐵底線:=EMA(VAR4,88)*0.7,COLORRED;
成本線:=EMA(VAR4,55),COLORGREEN;
持倉(cāng):STICKLINE(VAR5>=0,C,O,3,0),COLORGREEN;
     STICKLINE(VAR5>=0,H,L,0,0),COLORGREEN;
減倉(cāng):STICKLINE(VAR5<0,O,C,3,0),LINETHICK2,COLORRED;
STICKLINE(VAR5<0,H,L,0,0),LINETHICK2,COLORRED;
價(jià)值中樞:=(成本線+底線)/2,COLORFFFF00;
查看更多精彩圖片
查看更多精彩圖片


 

 12.單線變雙色

 

VAR1:MA(C,10),COLORRED;
上升:IF(VAR1>REF(VAR1,1),VAR1,DRAWNULL),COLORRED;
下降:IF(VAR1<REF(VAR1,1),VAR1,DRAWNULL),COLORGREEN;

 

 

 12.KDJ金叉:

1.低位金叉
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
CROSS(DIFF,DEA) AND DIFF<-0.1;

2.二次金叉
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;

3.底背離
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);

4.頂背離
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);

第二個(gè)公式編寫出來(lái)的選股公式如下:
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
MA250:=MA(CLOSE,250);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,8);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
A2:=BARSLAST(REF(CROSS(K,D),1));
B2:=REF(C,A2+1)>C AND REF(K,A2+1)<K AND CROSS(K,D);
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2);
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
C2:=BARSLAST(REF(CROSS(D,K),1));
D2:=REF(C,C2+1)<C AND REF(K,C2+1)>K AND CROSS(D,K);
C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
D3:=REF(C,C3+1)<C AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1);
IF(B1>0,1,0) OR IF(B2>0,1,0) OR IF(B3>0,1,0) OR IF(D1>0,1,0) OR IF(D2>0,1,0) OR IF(D3>0,1,0);

 

13.買賣點(diǎn)提示

莊籌:=WINNER(CLOSE)*100,COLORRED, LINETHICK2;
籌碼集中度:EMA(莊籌,20),COLORRED, LINETHICK1;
籌碼警戒線:EMA(籌碼集中度,5),COLORYELLOW, LINETHICK1;
籌碼生命線:EMA(籌碼警戒線,5),COLORBLUE, LINETHICK1;

A:=CROSS(籌碼集中度,籌碼警戒線);
B:=CROSS(籌碼警戒線,籌碼集中度);
DRAWICON(A,籌碼集中度-0.1,10);
DRAWICON(B,籌碼集中度+0.1,12);

 14.漲跌停K線

EMA10:EMA(C,10);
EMA20:EMA(C,20);
EMA30:EMA(C,30);
EMA60:EMA(C,60);
EMA120:EMA(C,120);
年線:EMA(C,250),COLORFFCC66;

C2:=REF(C,1);
漲停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(漲停,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(漲停,H,L,0,0),COLORYELLOW;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;

15.紅財(cái)神均線

MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
DRAWICON((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)),LOW*0.98,1) ;
DRAWICON((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)),HIGH*1.01,2);

VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR6:=(VAR3+VAR4+VAR5)/3;
VAR7:=EMA(VAR6,5);
ZB:=EMA(EMA(VAR3,5),5)*3, COLORSTICK;
VAR8:=IF(VAR6<=-20,10,0);
VAR9:=HHV(VAR8,10);

VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
K:=EMA(VAR7,5)*2, , COLORFF00FF;
D:=EMA(K,5), , COLORWHITE;
J:=K*3-D*2, ,COLORYELLOW;
VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;
HS:=VOL/CAPITAL*100, , COLORGREEN;
DRAWTEXT(VAR8=10 AND FILTER(VAR8=10,5),LOW*0.93,'接近底部') COLORMAGENTA;

DRAWTEXT(VARA=20,LOW*0.95,'底部') COLORYELLOW;


VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.95,'大資金活動(dòng)'),LINETHICK1,COLORFF00FF;

VAR12:=(HIGH+LOW+CLOSE)/3;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);
VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17);
VAR19:=IF(VAR18<90,VAR18,100);
VAR1A:=IF(VARE>0,VARE,0);
VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;
VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;
DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,LOW*0.95,'大筆成交') COLORWHITE;

17.操盤線

 N1:=3;
M1:=MA(C,5);
M2:MA(C,20),COLORGREEN;
均線變異:IF(M1>M2,M2,M1),COLOR0000FF;
VAR1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR6:=VAR3-VAR1;
Z:=MA(VAR6,N1);
STICKLINE(Z>=0 {AND ZZ=2},O,C,2,0),COLORRED;
STICKLINE(Z>=0 {AND ZZ=2},H,MAX(O,C),0,1),COLORRED;
STICKLINE(Z>=0 {AND ZZ=2},MIN(O,C),L,0,1),COLORRED;
STICKLINE(Z<0 {AND ZZ=1},O,C,2,1),COLORCYAN;
STICKLINE(Z<0 {AND ZZ=1},H,MAX(O,C),0,1),COLORCYAN;
STICKLINE(Z<0 {AND ZZ=1},MIN(O,C),L,0,1),COLORCYAN;
STICKLINE(Z>=0 AND M2>C,O,C,2,0),COLORBLUE;
STICKLINE(Z>=0 AND M2>C,H,MAX(O,C),0,1),COLORBLUE;
STICKLINE(Z>=0 AND M2>C,MIN(O,C),L,0,1),COLORBLUE;
STICKLINE(Z<0 AND M2<C,O,C,2,1),COLORYELLOW;
STICKLINE(Z<0 AND M2<C,H,MAX(O,C),0,1),COLORYELLOW;
STICKLINE(Z<0 AND M2<C,MIN(O,C),L,0,1),COLORYELLOW;
WW:=(MA(CLOSE,4)+MA(CLOSE,8)+MA(CLOSE,16)+MA(CLOSE,32))/4;
DRAWICON(CROSS(CLOSE,WW),LOW-0.002,1);
DRAWICON(CROSS(WW,CLOSE),HIGH+0.006,2);

18.

 

 

 

 

K線描述:

1.當(dāng)日收陽(yáng)   CLOSE>OPEN,            當(dāng)日收陰    close<open;

2.當(dāng)天高開(kāi)   open>ref(close,1);      當(dāng)天低開(kāi)    open<ref(close,1);

3.跳空高開(kāi)   open>ref(high,1);    跳空低開(kāi)    open<ref(low,1);

4.下影線     (MIN(0,C)-LOW)/LOW*100

5.上影線      (high-max(open,close))/max(open,close)*100

6.K線變色    當(dāng)漲幅大于5%時(shí),將主圖K線的實(shí)體的一半變?yōu)辄S色

             STICKLINE(c/ref(c,1)>1.05,(C+O)/2,10,1),COLORYELLOW

7.收盤價(jià)     當(dāng)收盤價(jià)收在7天均線之上,K線都為紅色,收盤價(jià)收在7天平均下,K線都為綠色

             STICKLINE(C>=MA(C,7),C,O,3,0),COLORRED;
             STICKLINE(C>=MA(C,7),H,L,0,1),COLORRED;
             STICKLINE(C<=MA(C,7),C,O,3,0),COLORGREEN;
             STICKLINE(C<=MA(C,7),H,L,0,0),COLORGREEN;
8.均線多頭排列   N  N1  N2  N3 日均線呈多頭排列  并且收陽(yáng)(條件選股公式)

            A1:=MA(CLOSE,N);
            A2:=MA(CLOSE,N1);
            A3:=MA(CLOSE,N2);
            A4:=MA(CLOSE,N3);
       CLOSE>A1 AND A1>A2 AND A2>A3 AND A3>A4 AND CLOSE>OPEN;
    

  或者是:   A1:=MA(CLOSE,N);
            A2:=MA(CLOSE,N1);
            A3:=MA(CLOSE,N2);
            A4:=MA(CLOSE,N3);
COUNT(A1>A2 AND A2>A3 AND A3>A4,3);     

該句的意思:統(tǒng)計(jì)3日中滿足A1>A2ANDA2>A3ANDA3>A4的天數(shù) 

 

9.均線空頭排列   (條件選股公式)

            A1:=MA(CLOSE,N);
            A2:=MA(CLOSE,N1);
            A3:=MA(CLOSE,N2);
             A4:=MA(CLOSE,N3);
     CLOSE<A1 AND A1<A2 AND A2<A3 AND A3<A4 AND CLOSE<OPEN;

或者是    A1:=MA(CLOSE,N);
          A2:=MA(CLOSE,N1);
          A3:=MA(CLOSE,N2);
          A4:=MA(CLOSE,N3);
  COUNT(A1<A2 AND A2<A3 AND A3<A4,3);

 

10.均線黏合  

A1:=MA(C,5);
A2:=MA(C,10);
A3:=MA(C,20);
A4:=MA(C,30);
AA:=(A1+A2+A3+A4)/4;
SX:=AA*(N/100)+AA;
XX:=AA-AA*(N/100);
BETWEEN(A1,SX,XX);

其中,A1,A2,A3,A4分別代表不同周期的均線。函數(shù)BETWEEN的意思是介于兩個(gè)數(shù)之間。N為黏合度,一般為2或3。也可使用這個(gè)公式:

MA1:=MA(C,5);
MA2:=MA(C,10);
MA3:=MA(C,20);
P1:=ABS(MA1-MA2)+ABS(MA2-MA3);
P1/C<M/100 AND MA1>REF(MA1,1) AND MA2>REF(MA2,1);

其中前三句是三根均線,P1是第一根均線減第二根均線的絕對(duì)值與第二根均線減第三根均線差的絕對(duì)值之和,最后一句是P1與收盤價(jià)的比值小于一定比率m%,該比率一般在2%以下,同時(shí)前兩根均線今日比昨日上翹。

 

11.通用的二次金叉公式

   MACD在零柱線以下二次金叉:

指標(biāo)線1:="MACD.DIFF";
指標(biāo)線2:="MACD.DEA";
低位二次金叉:COUNT(CROSS(指標(biāo)線1,指標(biāo)線2) AND 指標(biāo)線2<0,20)>=2 AND CROSS(指標(biāo)線1,指標(biāo)線2) AND 指標(biāo)線2<0;
DRAWTEXT(低位二次金叉,1,"MACD低位二次金叉");

 


          

 

 殺莊主圖指標(biāo)殺莊主圖指標(biāo)主圖:白刀進(jìn) 紅刀出    (非常重要,非常好用)

MA6:MA(C,6),COLOR0000FF;
MA18:MA(C,18),COLOR0096FF;
MA30:MA(C,30),COLOR00FF99;
MA60:MA(C,60),COLORFF00FF;
M250:MA(C,250),COLORRED,LINETHICK3;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),4,1)/SMA(ABS(CLOSE-LC),4,1)*100;
VAR27:=REF(CLOSE,1);
VAR28:=SMA(MAX(CLOSE-VAR27,0),5,1)/SMA(ABS(CLOSE-VAR27),6,1)*100;
VARA:=((AMOUNT)/(VOL))/(100);
VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
VARC:=((SUM(AMOUNT,7))/(VARA))/(100);
VARD:=DMA(VARB,(VOL)/(VARC));
VARE:=((CLOSE-VARD)/(VARD))*(100);
VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);
VARJ:=MA(VARE,20)+STD(VARE,20);
VARH:=(C+L+H)/3;
VARL:=EMA(VARH,6);
VARG:=EMA(VARL,5);
BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);
AA:=SMA(VARF,3,1);
VAR1:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);
VAR2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);
STICKLINE(VAR1,H,L,8,0),COLORFF00FF,LINETHICK2;{高位紅色}
STICKLINE(VAR1,H,L,3,0),COLORFF00FF,LINETHICK2;{高位紅色}
STICKLINE(VAR1,H,L,1,0),COLORFF00FF,LINETHICK2;{高位紅色}
STICKLINE(VAR2,H,L,8,0),COLORWHITE,LINETHICK2;{底位白色}
STICKLINE(VAR2,H,L,3,0),COLORWHITE,LINETHICK2;{底位白色};
STICKLINE(CROSS(VARL,VARG),H,L,2,1),COLORYELLOW;  

 

 

 


    本站是提供個(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)論公約

    類似文章 更多