• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • 【股票投资】同花顺源码:主图解盘,警戒雷达,基础分割

    发布时间: 2020-04-11 13:29 首页:股票一点通>股票公式>同花顺公式> 阅读()
    主图解盘:

    DRAWGBK(C>0, RGB(0,0,00),RGB(0,0,0),0,'11',0);

    MA10:MA(C,10);
    MA60:MA(C,60);
    VAR6:=(( ABS((OPEN-CLOSE))/(HIGH-LOW))*VOL);
    VAR7:=(( (HIGH-IF((CLOSE>OPEN),CLOSE,OPEN))/(HIGH-LOW))*VOL);
    VAR8:=(( (IF((CLOSE>OPEN),OPEN,CLOSE)-LOW)/(HIGH-LOW))*VOL);
    VAR9:=IF(((VOL/CAPITAL)>0.001),1,EXP(ABS(LOG(((VOL/CAPITAL)*100)))));
    加仓:VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE>OPEN,NODRAW,colorred;
    减仓:VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE洗盘:VAR8>VAR6 AND VAR8>VAR7,NODRAW,colorwhite;
    高抛:VAR7>VAR6 AND VAR7>VAR8,NODRAW,colormagenta;
    地量:VAR9>2 AND VOLDRAWKLINE(H,O,L,C);
    TY:=C;
    A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
    A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
    前期高位:REF(H,BARSLAST(HD)), COLORFF00FF,POINTDOT,LINETHICK3;
    前期低位:REF(L,BARSLAST(LD)), colorgreen,POINTDOT,LINETHICK3;
    STICKLINE(加仓,O,C,1,0),colorred;
    STICKLINE(洗盘,O,C,1,0),colorwhite;
    STICKLINE(减仓,O,C,1,0),colorblue;
    STICKLINE(高抛,O,C,1,0),colormagenta;
    STICKLINE(地量,O,C,1,0),colorgreen;
    JJ:=(3*C+H+L+O)/6;
    VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;
    TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1);
    LJL:=FILTER(TJ1,5);
    STICKLINE(CLOSE,REF(LOW,BARSLAST(LJL)),REF(LOW,BARSLAST(LJL)),1,0),colorred;
    STICKLINE(CLOSE,REF(CLOSE,BARSLAST(LJL)),REF(CLOSE,BARSLAST(LJL)),1,0),coloryellow;
    STICKLINE(LJL,OPEN,CLOSE,1,0),coloryellow;
    DRAWTEXT_FIX(1,0.0,0.0,0,'蓝芯-主力低位深度洗盘或高位出货坚决'),colorblue,LINETHICK1;
    DRAWTEXT_FIX(1,0.00,0.06,0,'白芯-主力轻度洗盘'),colorwhite,LINETHICK1;
    DRAWTEXT_FIX(1,0.00,0.12,0,'棕芯-出现了近期相对地量'),colorgreen,LINETHICK1;
    DRAWTEXT_FIX(1,0.00,0.18,0,'粉芯-主力在做高抛低吸或低吸高抛'),COLORFF00FF,LINETHICK1;
    DRAWTEXT_FIX(1,0.00,0.24,0,'红芯-主力吸筹进货积极主动'),colorred,LINETHICK1;
    DRAWTEXT_FIX(1,0.00,0.3,0,'黄芯-主力吸筹进货强并且成交量出现黄金柱'),coloryellow,LINETHICK1;
    EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
    PL10:=ZIG(3,10);
    走强2:=BARSLAST(PL10ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);
    追2:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;
    追4:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3;
    DRAWTEXT(追2 OR 追4,LOW*0.978,'追'),coloryellow;
    PL5:=ZIG(3,5);
    EX1:=ZIG(3,5)=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
    EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
    EX2:=ZIG(3,10)=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
    PL20:=ZIG(3,20);
    EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
    EX3:=ZIG(3,20)=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
    PL40:=ZIG(3,40);
    走强1:=BARSLAST(PL5走弱1:=BARSLAST(PL5>REF(PL5,1));
    走弱2:=BARSLAST(PL10>REF(PL10,1));
    走强3:=BARSLAST(PL20走弱3:=BARSLAST(PL20>REF(PL20,1));
    {ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);}
    ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);
    DTJZ5:=IF(PL10DTJD5:=IF(PL10ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);
    ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);
    DTJZ10:=IF(PL20DTJD10:=IF(PL20DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'反弹低点'),colorlired;
    DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'反弹高点!'),colorliblue;
    DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'底'),coloryellow;
    DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'减仓'),COLORFFFF00;
    DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'----买'),COLOR0000FF;
    DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'短卖'),colorgreen;
    DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'----短买'),COLOR0000FF;
    DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'短卖'),colorgreen;
    DRAWTEXT(EN2 AND DTJZ10=1,L*0.96,'Ⅰ'),COLORFF00FF;
    DRAWTEXT(EX2 AND DTJD10=2,H*1.03,'Ⅱ'),COLORFF6000;
    DRAWTEXT(EN3 AND ZTJZ10=1,L*0.95,'Ⅲ'),coloryellow;
    DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.06,'①'),LINETHICK3,COLORFFFF00;
    DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.96,'②'),LINETHICK3,coloryellow;
    DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2,H*1.02,'清仓!'),LINETHICK3,colorwhite;
    DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.96,'④'),LINETHICK3,coloryellow;
    DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.95,'⑷'),coloryellow;
    EMA13:=EMA(C,13);
    EMA34:=EMA(C,34);
    EMA55:=EMA(C,55);
    EMA120:=EMA(C,120);
    CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;
    CR2:=V>MA(V,5)*0.6;
    CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;
    CR4:=ABS(EMA34-EMA55)/EMA55<0.03;
    CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);
    CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);
    DRAWTEXT(CR6,C*0.98,'风险'),colorwhite;




    警戒雷达:

    VAR11:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);

    VAR22:=SMA(ABS(LOW-VAR11),13,1)/SMA(MAX(LOW-VAR11,0),10,1);
    VAR33:=EMA(VAR22,10);
    VAR44:=LLV(LOW,33);
    VAR55:=EMA(IF(LOW<=VAR44,VAR33,0),3);
    主力进场:STICKLINE(VAR55>REF(VAR55,1),0,VAR55,3,0 ),COLORFF00FF;
    洗盘:STICKLINE(VAR55VAR1:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
    VAR2:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
    VAR3:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
    VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
    VAR5:=(VAR2+2*VAR3+3*VAR4)/6;
    VAR6:=MA(VAR5,3);
    提醒:STICKLINE(VAR6<=-6,0,-25,5,0),COLOR88B7EA;
    关注:STICKLINE(VAR6<=-8,5,25,7,0),colorwhite;
    {MACD:VAR6*5,COLORSTICK,LINETHICK2;}
    出击:STICKLINE(VAR6<=-10,80,100,5,0),coloryellow;
    警戒雷达:IF(VAR6<-6,21,0),LINETHICK3,COLORFF0099;
    引导雷达:STICKLINE(VAR6<=-10,65,35,4,0);
    K:SMA(VAR1,3,1),colorwhite,LINETHICK1;
    D:SMA(K,5,1),coloryellow,LINETHICK1;
    J:3*K-2*D,colormagenta,LINETHICK2;
    制导雷达:STICKLINE(VAR6<=-10,40,0,4,0),colorred;
    底:20,LINETHICK1,colorcyan;
    {入顶:80,LINETHICK1,colorcyan;}
    走强:50,LINETHICK1,colorwhite,DOTLINE;
    大顶:100,LINETHICK1,colorgreen;
    发射:STICKLINE(VAR6<=-10,80,30,3,0),colorgreen;
    导弹:STICKLINE(VAR6<=-10,80,60,3,0),colorwhite;
    XG:CROSS(底,警戒雷达);
    DRAWICON(XG,警戒雷达+15,1);
    L1:= H=HHV(H,20); D1:= BARSLAST(L1);
    L2:= L1 AND JL3:= L=LLV(L,20); D2:= BARSLAST(L3);
    L4:= L3 AND J>REF(J,REF(D2,1)+1);
    DRAWTEXT(L2,J,'↓顶'),colorgreen;
    {DRAWTEXT(L4,J,'↑底'),colorred;}
    DRAWICON(L4,J,11);
    DRAWLINE(L2,J,L4 AND BARSLAST(L2)<20,J,0),colorred,LINETHICK3;
    RSV:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
    KK:=SMA(RSV,2,1);
    DD:=SMA(KK,2,1);
    JJ:=3*KK-2*DD;
    RS:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    F:=100;
    K1:=RS>=100;
    K2:=RS<100;
    DRAWICON(CROSS(K1,K2),K1,25);




    基础分割(顶尖财经 股票学院: ):

    高J:IF(CURRBARSCOUNT<=20,REFDATE(HHV(H,30),DATE),DRAWNULL),colorwhite,DOTLINE;

    低J:IF(CURRBARSCOUNT<=20,REFDATE(LLV(L,30),DATE),DRAWNULL),colorwhite;
    分割点1:IF(CURRBARSCOUNT<=10,高J-(高J-低J)*0.382,DRAWNULL),colorwhite,DOTLINE;
    分割点2:IF(CURRBARSCOUNT<=10,高J-(高J-低J)*0.618,DRAWNULL),colorwhite,DOTLINE;
    P1:=IF(BARSLAST(CURRBARSCOUNT=2),1,0);
    DRAWTEXT(P1,分割点1,' 0.382'),coloryellow;
    DRAWTEXT(P1,分割点2,' 0.618'),coloryellow;
    DRAWTEXT(P1,低J,' XO'),coloryellow;
    G:=YEAR AND MONTH AND DAY;
    TRR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
    ATRR:=MA(TRR1,13);
    VARR1:=REF(CLOSE,1)-REF(ATRR,1);
    LSX:HHV(VARR1,13),LINETHICK2,colorwhite;
    LSX1:IF(C>=LSX,LSX,DRAWNULL),colorred,DOTLINE,LINETHICK2;
    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);
    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);
    STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),2,1),colorred;
    VARD:=CLOSEVARE:=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);
    STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),2,0),COLORFFCC66;
    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;
    STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,1),coloryellow;
    VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;
    STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,1.8),COLOR00FF00;
    STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2.6,0),COLOR00FFFF;
    STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR00C8FF;
    STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR10ECFF;
    STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.6,0),COLOR00D900;
    STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR93FFD1;
    STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR93FF22;
    STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR24FF22;
    基础值:=IF(CREF(L,2),REF(C,2),IF(C>REF(C,1),C,REF(C,1)));
    TOWER:=IF(VAR1A,REF(基础值,1),基础值);
    DRAWICON(VAR19=1,L*1.005,13);
    DRAWICON(VAR1A=1,H*1.01,39);
    DRAWNUMBER(VAR19,L*0.995,TOWER),COLORFFFFFF;
    DRAWNUMBER(VAR1A,H*1.01,TOWER),colorgreen;

    特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。

    网站首页-股票知识--股票公式-散户炒股-问答百科--缠中说禅-概念股

    未经本站书面特别授权,请勿转载或建立镜像

    Copyright @ 2020 All Rights Reserved.版权所有 XMl地图
    Baidu
    map