今天发一个我自己用的一套做A股波段的指标。 波段操盘 N:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C)); STICKLINE(C>=MA(C,N),MA(C,N),MA(C,N*0.7),4,0),COLORMAGENTA; STICKLINE(C<MA(C,N),MA(C,N),MA(C,N*0.7),4,0),COLORBLUE; DRAWKLINE(H,O,L,C); {**************************************************} 多空提示 {130波段} VAR1:=((CLOSE - LLV(LOW,15))/(HHV(HIGH,15) - LLV(LOW,15)))*(100); VAR2:=REVERSE(VAR1); VAR3:=SMA(VAR1,5,1); K:=SMA(VAR3,3,1); D:=SMA(K,3,1); DRAWTEXT(CROSS(K,D) AND MA(CLOSE,5)<CLOSE,D,'做多阶段'),COLORRED; DRAWTEXT(CROSS(D,K) AND MA(CLOSE,5),D,'做空阶段'),COLORGREEN; STICKLINE((K >= D),K,D,6,0),COLOR0000A8; STICKLINE((K >= D),K,D,5,0),COLOR0000C0; STICKLINE((K >= D),K,D,4,0),COLOR0000E0; STICKLINE((K >= D),K,D,3,0),COLOR0000F0; STICKLINE((K >= D),K,D,2,0),COLOR0000D0; STICKLINE((K >= D),K,D,1,0),COLOR8080FF; STICKLINE((K <= D),K,D,6,0),COLOR008800; STICKLINE((K <= D),K,D,5,0),COLOR009900; STICKLINE((K <= D),K,D,4,0),COLOR00AA00; STICKLINE((K <= D),K,D,3,0),COLOR00BB00; STICKLINE((K <= D),K,D,2,0),COLOR00CC00; STICKLINE((K <= D),K,D,1,0),COLOR00DD00; 极端底部线:10; 极端顶部线:90; {*******************************} 黑马 VAR1:="DMI.PDI"(12,6); VAR2:="DMI.MDI"(12,6); VAR3:=VAR1>65 AND VAR1>REF(VAR1,1); VAR4:=LLV(VAR1,0); VAR5:=BARSLAST(VAR4=VAR1); VAR6:=(0-REF(VAR2,4))/(VAR4-REF(VAR2,VAR5))>2; VAR7:=VAR1>REF(VAR1,1); VAR8:=VOL>2*MA(VOL,30); VAR9:="DMI.ADX"(12,6); VARA:="DMI.ADXR"(12,6); VARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04; VARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1); VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5))); VARF:=TROUGHBARS(3,15,1)<4; VAR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2); VAR11:=IF(VARF=1,50,0); VAR12:=CROSS(VAR2,VAR1) AND CROSS(VARA,VAR9); VAR13:=CROSS(VAR2,VAR1) AND CROSS(VAR9,VARA); VAR14:=VARB AND VARC AND VARD AND VAR10 AND VAR6 AND VAR7 AND VAR8*50; VAR15:=BARSLAST(CROSS(VAR2,VAR1)=1); VAR16:=BARSLAST(CROSS(VAR1,VAR2)=1); VAR17:=HHV(VAR1,VAR16); VAR18:=BARSLAST(VAR1=VAR17); 多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE; 0,COLORRED; STICKLINE(FILTER(VARF=1,5) AND 多空<-10,50,0,15,0),COLORF00FF0; STICKLINE(FILTER(VARF=1,5),50,0,8,0),COLORYELLOW; VAR19:=VAR3 OR VAR12 OR VAR13*100; VAR1A:=VAR13*100; DRAWTEXT(FILTER(VARF=1,3),25,'★黑马'),COLORRED ; STICKLINE(多空<-10,0,多空,0.85,0),COLORYELLOW; {*************************************} 箭指买卖 红尖顶买入: ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG (3,10),2), COLORRED,LINETHICK2; 绿尖顶卖出: ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG (3,10),2),COLORGREEN,LINETHICK2; DRAWTEXT(红尖顶买入=1,1,'入!'),COLORRED; DRAWTEXT(绿尖顶卖出=1,1,'出!'),COLORGREEN; {**************************************} 买卖点提示 VARV:=(2*C+H+L)/4; VARU:=LLV(LOW,30); VARA1:=HHV(HIGH,30); B:=EMA((VARV-VARU)/(VARA1-VARU)*100,8); B1:=EMA(B,5); STICKLINE(B-B1>0,B,B1,8,1),COLORRED; STICKLINE(B-B1<0,B,B1,8,1),COLOR00FF00; LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; 低吸:IF(CROSS(RSI,11),70,0),COLORWHITE,POINTDOT; STICKLINE(低吸,70,0,4,0),COLORWHITE; VAR7:=EMA(AMOUNT/VOL/100,3); VAR8:=EMA(VAR7,88); VAR9:=EMA(VAR7,88)*0.85; VARA:=VAR9*0.87; VARB:=LOW<VARA AND CLOSE>REF(CLOSE,1)*1.02; STICKLINE(FILTER(VARB,6),65,0,4,0),COLORFF00FF; 建仓3层:IF(FILTER(VARB,6),65,0),COLORFF00FF,POINTDOT; VARF:=(2*CLOSE+HIGH+LOW)/4; VA4:=LLV(LOW,34); VA5:=HHV(HIGH,34); VA6:=EMA((VARF-VA4)/(VA5-VA4)*100,6); VA7:=EMA(0.667*REF(VA6,1)+0.333*VA6,4); 出击:IF(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA6>VA7,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0),60,0),COLORYELLOW,POINTDOT; STICKLINE(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA6>VA7,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0),60,0,4,0),COLORYELLOW; A:=(3*CLOSE+LOW+OPEN+HIGH)/6; D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6) +13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12) +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ REF(A,20))/211; D2:=EMA(D1,2); D3:=EMA(D2,2); K1:=EMA(D3,2); 补仓位:IF(CROSS(D1,K1),55,0),COLOR0099FF,POINTDOT; STICKLINE(CROSS(D1,K1),55,0,4,0),COLOR0099FF; 多方趋势:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1) -3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1) -SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1) ,3,1),2,1); 天线:=78.89; STICKLINE(CROSS(天线,多方趋势),90,95,6,0),COLOR00FF00; VAR1:=REF(CLOSE,2); 操盘线: SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,COLORFFAA66; VAR2:=REF(CLOSE,1); VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100; 清仓逃: IF(操盘线< REF(操盘线,1) AND 操盘线>79,操盘线,0); DRAWTEXT(清仓逃 ,70 ,'★<-清仓逃'),COLORYELLOW,LINETHICK1; DRAWTEXT(88>0 AND REF(O,1)/REF(C,1)>1.04 AND REF(L,1)<=688 AND O>REF(C,1)AND C<REF(O,1)AND C/O>=1.01,L-L*0.02,'★<--波段底初现'),LINETHICK1; DRAWTEXT(C-O>=0 AND O/L>1.05 AND L<=LLV(L,20),L,'★<--波段底'),COLORBLUE,LINETHICK1; {***************************} 买卖点提示 VARV:=(2*C+H+L)/4; VARU:=LLV(LOW,30); VARA1:=HHV(HIGH,30); B:=EMA((VARV-VARU)/(VARA1-VARU)*100,8); B1:=EMA(B,5); STICKLINE(B-B1>0,B,B1,8,1),COLORRED; STICKLINE(B-B1<0,B,B1,8,1),COLOR00FF00; LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; 低吸:IF(CROSS(RSI,11),70,0),COLORWHITE,POINTDOT; STICKLINE(低吸,70,0,4,0),COLORWHITE; VAR7:=EMA(AMOUNT/VOL/100,3); VAR8:=EMA(VAR7,88); VAR9:=EMA(VAR7,88)*0.85; VARA:=VAR9*0.87; VARB:=LOW<VARA AND CLOSE>REF(CLOSE,1)*1.02; STICKLINE(FILTER(VARB,6),65,0,4,0),COLORFF00FF; 建仓3层:IF(FILTER(VARB,6),65,0),COLORFF00FF,POINTDOT; VARF:=(2*CLOSE+HIGH+LOW)/4; VA4:=LLV(LOW,34); VA5:=HHV(HIGH,34); VA6:=EMA((VARF-VA4)/(VA5-VA4)*100,6); VA7:=EMA(0.667*REF(VA6,1)+0.333*VA6,4); 出击:IF(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA6>VA7,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0),60,0),COLORYELLOW,POINTDOT; STICKLINE(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA6>VA7,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0),60,0,4,0),COLORYELLOW; A:=(3*CLOSE+ |
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!