黄金线主图及选股器思路: 黄金线主图指标经常用到,无论是日线还是周线、分钟线,都可以很好的寻找其【未来趋势】,主要是日线和周K线,在判断趋势上比较有力,尤其是周K线,在相对底部出现黄K,一般未来至少1—2周都是位于黄K线上,呈多头趋势,但是需要对比几个附图指标作出判断,当然成交量也是一方面,个股的大趋势也是一个方面;就是没有选股指标,每天基本都是手动选股,比较烦,在此向论坛里面的各位大神请求,写一个关于本指标用于选股的公式,选股要求比较简单:K线出现黄色的股票(当日),可以用到所有周期,如果不行也需要日线和周线周期。 下面是指标的源代码: MID:=(3*CLOSE+LOW+OPEN+HIGH)/6; 牛线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16 *REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11 *REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5 *REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED; 马线:MA(牛线,6),COLORGREEN; MAA5:MA(C,5),COLORFF00FF,LINETHICK2; A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100; A4:=SMA(A3,3,1); A5:=SMA(A4,3,1); A6:=3*A4-2*A5; A7:=C-REF(C,1); A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6); 买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)); DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW; STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW; LC:=REF(CLOSE,1); RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3); MA15:=EMA(CLOSE,21); 日:=150;昨前:=3; 高1:=REF(HHV(H,日),昨前); 低1:=REF(LLV(L,日),昨前); H1:=高1-(高1-低1)*0.191; H2:=高1-(高1-低1)*0.382; H3:=高1-(高1-低1)*0.5; H4:=高1-(高1-低1)*0.618; H5:=高1-(高1-低1)*0.809; 顶:REFDATE(高1,DATE),COLORRED; 一:REFDATE(H1,DATE),COLORYELLOW; 二:REFDATE(H2,DATE),COLORMAGENTA; 三:REFDATE(H3,DATE),COLORWHITE; 四:REFDATE(H4,DATE),COLORGREEN; 五:REFDATE(H5,DATE),COLORYELLOW; 低:REFDATE(低1,DATE),COLORRED; 近底大笔成交买进,不含任何未来函数(顶尖财经 股票学院: http://58188.com) N:=5; P:=12; GJ:=(C+H+L+O)/4; BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; 明日阻力:=L+(GJ-L)+(C-L); 明日支撑:=L+(C-GJ); UPR:BBI+P*STD(BBI,N); DWN:BBI-P*STD(BBI,N); 下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RRRSV:=SMA(下档线,3,1); KKK:=SMA(RRRSV,3,1); DDDDD:=((3 * RRRSV) - (2 * KKK)); JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(JJ12,3,1); K24:=SMA(RSV24,3,1); D24:=((3 * RSV24) - (2 * K24)); VARQ3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; VARQ4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; VARQ5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100; VARQ6:=(VARQ3+VARQ4+VARQ5)/3; VARQ7:=EMA(VARQ6,5); {分析家公式网} 压力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)))),COLORFFFFFF; 底部:=LLV(HIGH,30),COLOR00FF00; 今日阻力:REF(明日阻力, 1),NODRAW; 今日支撑:REF(明日支撑, 1),NODRAW; ZB:=EMA(EMA(VARQ3,5),5)*3, COLORSTICK; VARQ8:=IF(VARQ6<=-20,10,0); VARQ9:=HHV(VARQ8,10); 压力位:IF(ISLASTBAR,压力2,DRAWNULL),NODRAW; 底部位:IF(ISLASTBAR,底部,DRAWNULL),NODRAW; 高:=REF(HHV(H,80),3); 低:=REF(LLV(L,80),3); VARQA:=IF(VARQ9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0); K:=EMA(VARQ7,5)*2, , COLORFF00FF; D:=EMA(K,5), , COLORWHITE; J:=K*3-D*2, ,COLORYELLOW; H19:=高-(高-低)*0.191; H38:=高-(高-低)*0.382; H中:=高-(高-低)*0.5; H61:=高-(高-低)*0.618; H80:=高-(高-低)*0.809; VARQB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10; HS:=VOL/CAPITAL*100, , COLORGREEN; DRAWTEXT(VARQ8=10 AND FILTER(VARQ8=10,5),LOW*0.93,'接近底部') COLORMAGENTA; 顶点:REFDATE(高,DATE),POINTDOT,COLORWHITE; 疯牛19.8:REFDATE(H19,DATE),POINTDOT,COLORYELLOW; 突破38.2:REFDATE(H38,DATE),POINTDOT,COLORMAGENTA; 平衡50:REFDATE(H中,DATE),POINTDOT,COLORRED; 回落61.8:REFDATE(H61,DATE),POINTDOT,COLORGREEN; 安全80.9:REFDATE(H80,DATE),POINTDOT,COLORBLUE; 低点:REFDATE(低,DATE),POINTDOT,COLORWHITE; DRAWTEXT(VARQA=20,LOW*0.95,'底部') COLORYELLOW; DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLORWHITE; DRAWTEXT(ISLASTBAR,疯牛19.8,'疯牛'),COLORYELLOW; DRAWTEXT(ISLASTBAR,突破38.2,'突破'),COLORMAGENTA; DRAWTEXT(ISLASTBAR,平衡50,'平衡'),COLORRED; DRAWTEXT(ISLASTBAR,回落61.8,'回落'),COLORMAGENTA; VARQE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VARQF:=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); 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); VARQ10:=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); VARQ11:=VARQF<REF(VARQ10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(VARQ11 AND COUNT(VARQ11,30)=1,LOW*0.95,'大资金活动'),LINETHICK1,COLORFF00FF; VARQ12:=(HIGH+LOW+CLOSE)/3; VARQ13:=(VARQ12-MA(VARQ12,14))/(0.015*AVEDEV(VARQ12,14)); VARQ14:=(VARQ12-MA(VARQ12,70))/(0.015*AVEDEV(VARQ12,70)); 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; VARQ15:=IF(VARQ13>=150 AND VARQ13<200 AND VARQ14>=150 AND VARQ14<200,10,0); VARQ16:=IF(VARQ13<=-150 AND VARQ13>-200 AND VARQ14<=-150 AND VARQ14>-200,-10,VARQ15); VARQ17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100; VARQ18:=100-ABS(VARQ17); VARQ19:=IF(VARQ18<90,VARQ18,100); DRAWICON(VAR19,L*0.98,1); DRAWICON(CROSS(LLV(AMOUNT/V/100,3),L) AND V>REF(V,3) AND C<O,O*1.1,2); MA6:EMA(C,6),LINETHICK2,COLORFFFF00; MA18:EMA(C,18),LINETHICK2,COLOR00FF00; DRAWBAND(MA6,RGB(155,50,50),MA18,RGB(0,100,50)); VARQ1A:=IF(VARQE>0,VARQE,0); VARQ1B:=IF(VARQ14>=200 AND VARQ13>=150,15,IF(VARQ14<=-200 AND VARQ13<=-150,-15,VARQ16))+60; VARQ1C:=VARQ1A>48 AND VARQ1B>60 AND VARQ19<100; WWWCHNMONEYCOM:=(((CLOSE -LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))* 100); 中:STICKLINE(MA6<MA18 AND MA6>REF(MA6,1) AND MA18<=REF(MA18,1),MA6,MA18,0.3,0),COLORCYAN; 长:STICKLINE(MA6>MA18 AND MA6>REF(MA6,1) AND MA18<=REF(MA18,1),MA6,MA18,0.3,0),COLORMAGENTA; 线:STICKLINE(MA6<MA18 AND MA6<REF(MA6,1) AND MA18>=REF(MA18,1),MA6,MA18,0.3,0),COLORBLUE; 买进:=CROSS(MA6,MA18) AND MA18>=REF(MA18,1); DRAWICON(买进,L*0.95,9); DRAWTEXT(CROSS(85,RSI),(HIGH * 1.02),'落袋'),COLORCYAN; DRAWTEXT(VARQ1C AND COUNT(VARQ1C,30)=1,LOW*0.95,'大笔成交') COLORWHITE; |
上一篇:通达信公式下载:双龙主图+小妖股
下一篇:通达信源码:底部买点+顶位