通達(dá)信精進(jìn)終級主圖和陰陽雙線終極主圖(源碼)(附圖)
通達(dá)信精進(jìn)終級主圖和陰陽雙線終極主圖源碼如下: 一、用法: 1、當(dāng)天進(jìn)出價位均用白色線顯示,(只顯示當(dāng)天和變盤的那一天),其余時間表示趨勢未變。向上突破白色線進(jìn)入,向下破位白色線必出,必須嚴(yán)格執(zhí)行; 2、當(dāng)天發(fā)生變盤分別用黃色K線和綠色K線提示; 3、進(jìn)出價位分別用紅線和綠線表示,第二天顯示,未顯示之前請參考短白色線,與紅線和綠線價位一樣; 4、距離表示當(dāng)前價位距變盤的點(diǎn)數(shù),過高必回調(diào),過低必反彈;漲幅表示從介入位置開始以來的漲幅,跌幅表示從破位以來的跌幅,大家可以根據(jù)實際進(jìn)行抄底逃項; 5、紅虛線和綠虛線指向上和向下的幅度,與紅線和綠線是10%的比例遞增與遞減; 6、本指標(biāo)請配合成交量使用,在向上與向下趨勢中使用有較好的效果,能有效抓住主升段; 7、本指標(biāo)適于中小波段,不適用于上市不到20天的次新股和猴市(震蕩市); 8、本指標(biāo)源碼簡單,與個人理念相符,實際上就是以均線斜率反映趨勢; 9、本指標(biāo)與1-3號主圖不同的特質(zhì)就是標(biāo)明了進(jìn)出價位線,趨勢也很明顯,綠線下是空倉區(qū),紅線上是持股區(qū)。 二、源碼: A1:=EMA(C,14)COLORWHITE,LINETHICK1; A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW; 突破:REF(EMA(C,14),1),NODRAW; 距離:(C-突破)/突破*100,NODRAW; 出擊:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORRED,LINETHICK1; 休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORGREEN,LINETHICK1; 漲幅:IF(A1X>=0,(C-出擊)/出擊*100,DRAWNULL)NODRAW; 跌幅:IF(A1X<0,(C-休假)/休假*100,DRAWNULL)NODRAW; ♂10%:IF(H>=出擊*1.1,出擊*1.1,DRAWNULL),COLORRED,POINTDOT; ♂20%:IF(H>=出擊*1.2,出擊*1.2,DRAWNULL),COLORRED,POINTDOT; ♂30%:IF(H>=出擊*1.3,出擊*1.3,DRAWNULL),COLORRED,POINTDOT; ♀Ⅰ:IF(L<休假*0.9,休假*0.9,DRAWNULL),COLORGREEN,POINTDOT; ♀Ⅱ:IF(L<休假*0.8,休假*0.8,DRAWNULL),COLORGREEN,POINTDOT; ♀Ⅲ:IF(L<休假*0.7,休假*0.7,DRAWNULL),COLORGREEN,POINTDOT; STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW; STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN; STICKLINE(CROSS(A1X,0)OR CROSS(0,A1X),REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,2,0)COLORWHITE; STICKLINE(ISLASTBAR,REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,5,0)COLORWHITE;
附條件選股公式源碼: A1:=EMA(C,14); A1X:=(A1-REF(A1,1))/REF(A1,1)*100; CROSS(A1X,0); 三、友情提醒: 1、因個人用通達(dá)信軟件,對其它股軟不熟悉,因此只提供通達(dá)信源碼; 2、本指標(biāo)無未來函數(shù),系精進(jìn)1-3號主圖的基礎(chǔ)上完善與簡化; 3、進(jìn)一步的用法請自行體會,嚴(yán)格按規(guī)操作不會被套; 四、附圖:
再送上自用陰陽雙線終極版: A1:REF(EMA(C,14),1)COLORLIBLUE,LINETHICK1; A2:REF(EMA(C,25),1),COLORGREEN,CIRCLEDOT; 工距:(C-A1)/A1*100,NODRAW; 假距:(C-A2)/A2*100,NODRAW; 最大工距:HHV(工距,250),NODRAW; 最小工距:LLV(工距,250),NODRAW; A1X:=(EMA(C,14)-A1)/A1*100,NODRAW; A2X:=(EMA(C,25)-A2)/A2*100,NODRAW; 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; STICKLINE(CROSS(0,A1X),C,O,3,0),COLOR00CC00; STICKLINE(CROSS(0,A1X),C,O,1,0),COLOR66FF00; STICKLINE(A1X>=0,A1,A2,0,0)COLORRED; STICKLINE(A1X<0,A1,A2,0,0)COLORGRAY; ¥:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK2; ●:IF(A2X>=0,A2,DRAWNULL)COLORRED,CIRCLEDOT;
|
|
|