最新更新 - 网站地图 -
您的当前位置:首页 > 股票公式 > 公式技巧 > 将抄底做出选股

将抄底做出选股

来源:网络 点击: 时间:2022-12-24 08:46:44

编写要求:

地线:MA(REF(LLV(C,30),1),2),COLORRED,LINETHICK3; 天线:MA(REF(HHV(C,30),1),2),COLORGREEN,,LINETHICK3; N5:=7; LC:=REF(CLOSE,1); X:=SMA(MAX(CLOSE-LC,0),N5,1)/SMA(ABS(CLOSE-LC),N5,1)*100,COLORYELLOW,LINETHICK1; 卖出:=DRAWLINE(X>=HHV(X,N5),X,X<=LLV(X,N5),X,1),COLOR00FF00; 买入:=DRAWLINE(X>=HHV(X,N5),X,X<=LLV(X,N5),1,X),COLOR00FF00; TJ0:=X=买入; TJ1:=X=卖出; TJ2:=XREF(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); 动态止损度:=5; 黑:=0;{下跌通道黑色K线开关} 离L:=0;{乖离提示开关} 提示:=0;{买卖文字提示开关} 布林M:=0;{开关} MMA:=0; 五:MA(CLOSE,5),COLORWHITE; 十:MA(CLOSE,10),COLOR00FFFF; M18:=MA(CLOSE,18),COLORRED; M55:=MA(CLOSE,55),COLOR333333; 离基:=五; 离O:=离基*1.20,COLOR555555; 离A:离基*1.15,COLORRED; 离B:离基*1.10,COLORD9D919; 离C:离基*0.90, COLORFF240E LINETHICK2; 离D:离基*0.865,COLOR333333; EXP50:=EXPMA(CLOSE,50),COLORGREEN; MA25:=MA(CLOSE,25),COLORMAGENTA,LINETHICK2; M25:IF(MA25>=REF(MA25,1),MA25,DRAWNULL),COLORMAGENTA,LINETHICK3; M025:IF(MA25REF(C,1),CONST(C)),COLOR0000AA,LINETHICK1; 跌:PLOYLINE(C=1.09; BA:=CLOSE/REF(C,1)>=1.09; DRAWKLINE(H,O,L,C); STICKLINE(AA,O,C,2.5,1),COLORYELLOW; MA1:=MA(CLOSE,5),COLORRED; MA2:=MA(CLOSE,10),COLORYELLOW; MA3:=MA(CLOSE,20),COLOR770077; E50:=EXPMA(CLOSE,50),LINETHICK1,POINTDOT,COLORLIGREEN; E100:=EXPMA(CLOSE,100),POINTDOT,COLORGRAY; {MA60:=MA(C,60),COLOR007700;} {周:IF( MMA=1 ,MA2,DRAWNULL),COLORYELLOW,LINETHICK1; 月:IF( MMA=1 ,MA3,DRAWNULL),COLORWHITE,LINETHICK1; 季:IF( MMA=1 ,MA4,DRAWNULL),COLORGREEN,LINETHICK1;} {IF(C>E50 ,E50,DRAWNULL),COLOR00FF00,LINETHICK1;} IF(CONST(α>β) AND DYNAINFO(7)>0,DYNAINFO(7),DRAWNULL),COLOR000088,LINETHICK1; IF(CONST(α<=β)AND DYNAINFO(7)>0 ,DYNAINFO(7),DRAWNULL),COLOR008800,LINETHICK1; IF(CONST(α>β) AND DYNAINFO(7)>0 AND DYNAINFO(7)>=高*0.99,DYNAINFO(7),DRAWNULL),COLOR000088,LINETHICK1; IF(CONST(α<=β)AND DYNAINFO(7)>0 AND DYNAINFO(7)<=低*1.01 ,DYNAINFO(7),DRAWNULL),COLOR008800,LINETHICK1; N1:=12; N2:=26; N3:=9; DIFF:=(EMA(CLOSE,N1) - EMA(CLOSE,N2)); DEA:=EMA(DIFF,N3); MACD:=(2 * (DIFF - DEA)); MACD2:=MACD; SARH:=CLOSE>SAR(4,2,20); {IF(C=REF(五,1) ,离A,DRAWNULL),COLOR0000FF,LINETHICK1; IF(五>=REF(五,1) ,离B,DRAWNULL),COLOR0000FF,LINETHICK1; IF(五<=REF(五,1) ,离C,DRAWNULL),COLOR00FF00,LINETHICK1; IF(五<=REF(五,1) ,离D,DRAWNULL),COLOR00FF00,LINETHICK1;} 五V:=MA(V,5); {IF(五V>=REF(五V,1) ,离A,DRAWNULL),COLOR0000FF,LINETHICK1; IF(五V>=REF(五V,1) ,离B,DRAWNULL),COLOR0000FF,LINETHICK1; IF(五V<=REF(五V,1) ,离C,DRAWNULL),COLOR00FF00,LINETHICK1; IF(五V<=REF(五V,1) ,离D,DRAWNULL),COLOR00FF00,LINETHICK1;} {IF(五REF(MACD,1) AND CROSS(C,MA3) AND 提示=0 ,L,1);} {DRAWICON(REF(C>MA3 AND 提示,1) AND CROSS(MA(C,5),C),H,2);} N:=14; M:=6; HD :=HIGH-REF(HIGH,1); LD :=REF(LOW,1)-LOW; DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N); DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N); PDI:=DMP*100/TR; MDI:=DMM*100/TR; ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M); ADXR:=EXPMEMA(ADX,M); DMIJX:=CROSS(PDI,MDI) AND C>O ; {STICKLINE(DMIJX,H,L,0,1),COLORYELLOW; STICKLINE(DMIJX,O,C,2.7,0),COLORYELLOW;} {DRAWICON(DMIJX AND 提示=0,L,1);} {DRAWTEXT(H>离A,离A/0.99,'★'),COLORYELLOW;} 头上边:=MAX(O,C),NODRAW; 头下边:=MIN(O,C),NODRAW; 垂头:=ABS(O-C),NODRAW;{垂头} 长针:=(头下边-L),NODRAW;{长针} 垂:=长针/垂头>2 AND (H-头上边)<=长针 AND LMA(CLOSE,5)*1.07 AND ISLASTBAR AND 提示,H*1.01,'离!'),COLORGREEN,LINETHICK2; DRAWTEXT(LMA(CLOSE,5) AND 提示=0 AND HMACD AND MACD>0; DRAWTEXT(REF(EVERY(MACD红缩,3),1) AND MACD>REF(MACD,1) AND C>MA(C,22) AND 提示=0,L/1.02,'启动'),COLORWHITE; } {////MACD反身向上2////} {MACD红缩2:=REF(MACD,1)>MACD AND MACD>0; DRAWTEXT(REF(EVERY(MACD红缩2,2),1) AND MACD>REF(MACD,1) AND C>MA(C,22) AND EVERY(DIFF>0,3) AND 提示=0,L/1.02,'起动'),COLORWHITE; } {突破买进(源码)} {DRAWTEXT(DYNAINFO(7)>0 AND ISLASTBAR ,HIGH,'("DYNAINFO(7)")');} 上5日:=REF(EVERY(CMA1,4),1) AND CROSS(MA1,C); DRAWICON(破5日,H,2); DT:=REF(CLOSE/REF(C,1),1)<=0.95; DRAWTEXT(AA AND DT AND CURRBARSCOUNT<60 ,H,'急挖坑'),COLORGREEN; SC1:=MACD.MACD<0; SC2:=CROSS(十,五); SC3:=MA(V,5)0; JC2:=CROSS(五,十); JC3:=MA(V,5)>MA(V,10); JC:=JC1 AND JC2 AND JC3 ; DRAWTEXT(JC AND CURRBARSCOUNT<20 ,LLV(L,5),'后金叉'),COLORYELLOW; {ZS:=CROSS(DMI.ADXR,DMI.ADX); DRAWTEXT(ZS AND CURRBARSCOUNT<10 ,HHV(H,5),'转势'),COLORRED;} {IF(五REF(H,1); DRAWTEXT(SQK AND CURRBARSCOUNT<20 ,L,'□□□□□□□□□□□□'),COLORRED;}; DRAWTEXT(CROSS(H,离B) AND CURRBARSCOUNT<10 ,HHV(H,3),'减仓'),COLORYELLOW; DRAWTEXT(CROSS(H,离A) AND CURRBARSCOUNT<10 ,HHV(H,3),'空仓'),COLORYELLOW; DRAWTEXT(CROSS(离C,L) AND CURRBARSCOUNT<1000 ,LLV(L,3)*0.95,'抄底'),COLORYELLOW; DRAWTEXT(CROSS(离D,L) AND CURRBARSCOUNT<1000 ,LLV(L,3)*0.91,'全仓买进'),COLORRED; DRAWTEXT((C

解答:

?CROSS(MA(CLOSE,5)*0.90,L);

?

    Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号

    免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!

    Top