相關(guān)標(biāo)簽:
?
本指標(biāo)適合抄底及波段特征明顯個股,暴跌途中慎用!大牛:長線大牛股,目標(biāo)翻倍;中短牛:15天目標(biāo)10%-20%!以上信號結(jié)合RSI低位時用更加可靠,盤整市中信號偏多!當(dāng)大牛\中牛\短牛同一天出現(xiàn)時,果斷買入!源碼如下:N1:=5;N2:=10;STICKLINE(C>0,0,10,15,0),COLOR781816;LC:=REF(CLOSE,1);RSI5:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*10,COLORFF00FF,LINETHICK1;RSI10:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*10,COLOR00FFFF;cxh1:=C-REF(C,1);cxh2:=100*EMA(EMA(cxh1,6),6)/EMA(EMA(ABS(cxh1),6),6);MA5:=EMA(C,5);MA13:=EMA(C,13);UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),0),COLOR0000FF;DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),0),COLOR00FF00;BT:(LLV(cxh2,2)=LLV(cxh2,7) AND COUNT(cxh2<0,2) AND CROSS(cxh2,MA(cxh2,2))) ANDREF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);0,COLORFF00FF;10,COLORFF0000;STICKLINE(UP,0,0.2,3,0),COLOR0000FF;STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00;STICKLINE(BT,0,3,2,0),COLOR000088;STICKLINE(BT,0,3,1,0),COLOR0000CC;STICKLINE(BT,0,3,0.22,0),COLOR0000FF;DRAWTEXT(BT,3,'短牛'),COLOR0000FF;TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;STICKLINE(TJ1,0,2,3,0),COLOR880088;STICKLINE(TJ1,0,2,1.5,0),COLORAA00AA;STICKLINE(TJ1,0,2,0.8,0),COLORCC00CC;STICKLINE(TJ1,0,2,0.2,0),COLORFF00FF;DRAWTEXT(TJ1,2,'中牛'),COLORFF00FF;HR:=HHV(HIGH,55);HRY:=LLV(LOW,55);HRY11:=HR*HRY;HRY33:=SQRT(HRY11);TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;STICKLINE(TJ2,0,1,5,0),COLOR008888;STICKLINE(TJ2,0,1,2,0),COLOR00AAAA;STICKLINE(TJ2,0,1,1,0),COLOR00CCCC;STICKLINE(TJ2,0,1,0.2,0),COLOR00FFFF;DRAWTEXT(TJ2,1,'大牛'),COLOR00FFFF;ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);STICKLINE(ST,10,9,5,0),COLOR008800;STICKLINE(ST,10,9,2,0),COLOR00AA00;STICKLINE(ST,10,9,1,0),COLOR00CC00;STICKLINE(ST,10,9,0.2,0),COLOR00FF00;DRAWTEXT(ST,9,'賣'),COLOR00FF00;DRAWTEXT(CURRBARSCOUNT=89,9.5,'本指標(biāo)適合抄底及波段特征明顯個股,暴跌途中慎用!!'),COLOR0000FF;DRAWTEXT(CURRBARSCOUNT=89,8.7,'大牛:長線大牛股,目標(biāo)翻倍;中短牛:15天目標(biāo)10%-20%!!'),COLOR0078FF;DRAWTEXT(CURRBARSCOUNT=89,8.0,'以上信號結(jié)合RSI低位時用更加可靠,盤整市中信號偏多!!'),COLOR00FF00;DRAWTEXT(CURRBARSCOUNT=89,7.3,'當(dāng)大牛\中牛\短牛同一天出現(xiàn)時,果斷買入!!'),COLOR00FFFF;發(fā)現(xiàn)未來函數(shù)LLV!發(fā)現(xiàn)未來函數(shù)HHV!發(fā)現(xiàn)未來函數(shù)DRAWLINE!發(fā)現(xiàn)未來函數(shù)BARSLAST!發(fā)現(xiàn)未來函數(shù)SMA!分析這個公式有關(guān)的未來函數(shù)的討論:DRAWLINE函數(shù),高成功率指標(biāo)背后的風(fēng)險!一直以來都有很多的指標(biāo)號稱高成功率,且用未來函數(shù)檢測工具檢查,結(jié)果沒有任何未來函數(shù)。面對這樣的指標(biāo),眾多股市新手如獲至寶,可是實(shí)際操作起來卻屢屢受挫,信號常常發(fā)生偏移!我檢查了較多的高成功率的指標(biāo),發(fā)現(xiàn)它們基本都有一個特性:含有函數(shù)DRAWLINE()。早有前輩早已指出:DRAWLINE只是圖形上繪制直線段函數(shù),不是未來函數(shù)。這個說法沒有錯,DRAWLINE()本身姿勢圖形繪制直線段函數(shù),不是未來函數(shù)。那么,問題出在哪兒呢?問題在于把DRAWLINE返回值賦值給某變量。如ABC:DRAWLINE(HIGH>=HHV(HIGH,20),HIGH,LOW<=LLV(LOW,20),LOW,0);首先要說明的是,DRAWLINE(COND1,PRICE1,COND2,PRICE2,EXPAND)函數(shù)畫線有個特SE,COND1常常成立,但是只有COND2成立后才畫出線段。ABC:DRAWLINE這條賦值語句呢,在COND2未成立時,賦值是空的,但是如果后面COND2成立了,ABC就被賦值了,此時信號將發(fā)生偏移。這種特性完全就是未來函數(shù)!最常見的主圖名稱就是:區(qū)間買賣,魔鬼通道等等名字,問題就出現(xiàn)在以下的劃線代碼中:N1:=7;LC:=REF(CLOSE,1);X:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORYELLOW,LINETHICK1;魔鬼:=DRAWLINE(X>=HHV(X,N1),X,X<=LLV(X,N1),X,1),COLOR00FF00;魔王:=DRAWLINE(X>=HHV(X,N1),X,X<=LLV(X,N1),1,X),COLOR00FF00;TJ0:=X=魔王;TJ1:=X=魔鬼;TJ2:=X<REF(X,1);TJ3:=X>REF(1,X);JRS1:=DRAWICON(TJ1 AND TJ2,X,1);JRS2:=DRAWICON(TJ0 AND TJ3,X,2);DRAWICON(FILTER(JRS1>0,1),L*0.97,1);DRAWICON(FILTER(JRS2>0,1),H*1.02,15);以上的代碼如果對照歷史,成功率可以達(dá)到99.99%,并且99.99%是買在最低價,賣在最高價!如果真的這樣,你家比國庫的錢?
公式導(dǎo)入教程: 【通達(dá)信公式源碼導(dǎo)入方法教程】 【同花順公式源碼導(dǎo)入方法教程】 【大智慧新一代公式源碼導(dǎo)入方法教程】
?