最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 同花顺顾比倒数副图源码

    正文概述    2024-05-04 04:41:51  

    以下是同花顺顾比倒数副图源码和截图


    同花顺顾比倒数副图源码:

       P1:=5;

       PH:=TROUGHBARS(2,P1,1);

       LL:=HHV(H,PH);

       TJ1:=LL=HIGHANDLL REF(LL,1);

       TS:=SUMBARS(TJ1,2);

       TJ:=PEAKBARS(2,P1,1)=1ANDTS

       警告灯:DRAWICON(TJ,HIGH*1.01+0.02,2);

       PL:=BARSLAST(TJ);

       支撑:STICKLINE(BARSLAST(TJ1),REF(LOW,BARSLAST(TJ1)),REF(LOW,BARSLAST(TJ1)),4,0),POINTDOT,COLOREA91B5;

       压力:STICKLINE(BARSLAST(TJ),REF(HIGH,PL),REF(HIGH,PL),4,0),POINTDOT,COLORYELLOW;

       TJ_2:=LOW REF(REF(LOW,TS),PL);

       DRAWTEXT(COUNT(TJ_2,PL+1)=1,HIGH*1.005,'↓'),COLORFF00FF;{//向下的箭头表示出局点}

       DRAWICON(BARSLAST(TJ1)=1,REF(LOW*0.995,BARSLAST(TJ1)),1);

       P:=21;

       WH1:=IF(L=LLV(L,P),L,DRAWNULL);

       WH2:=CONst(BArslAST(WH1!=DRAWNULL));

       WH3:=CONST(IF(WH2=0,H,REF(H,WH2)));

       WH4:=CONST(REF(BARSLAST(H WH3),WH2+1)+WH2+1);

       WH5:=CONST(IF(WH4=0,H,REF(H,WH4)));

       WH6:=CONST(REF(BARSLAST(H WH5),WH4+1)+WH4+1);

       进场:IF(CURRBARSCOUNT =WH2+21,CONST(IF(WH6=0,H,REF(H,WH6))),DRAWNULL),COLORRED;

       IF(CURRBARSCOUNT =WH2+1,IF(L=LLV(L,P),L,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORRED;

       DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),进场,'进场线'),COLORRED;

       超跌进场:IF(CURRBARSCOUNT =WH2+21,CONST(IF(WH4=0,H,REF(H,WH4))),DRAWNULL),COLORCB21BE;

       DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),超跌进场,'超跌进场线'),COLORCB21BE;

       H1:=IF(H=HHV(H,P),H,DRAWNULL);

       H2:=CONST(BARSLAST(H1!=DRAWNULL));

       H3:=CONST(IF(H2=0,L,REF(L,H2)));

       H4:=CONST(REF(BARSLAST(L H3),H2+1)+H2+1);

       H5:=CONST(IF(H4=0,L,REF(L,H4)));

       H6:=CONST(REF(BARSLAST(L H5),H4+1)+H4+1);

       止损:IF(CURRBARSCOUNT =H2+21,CONST(IF(H6=0,L,REF(L,H6))),DRAWNULL),COLORYELLOW;

       IF(CURRBARSCOUNT =H2+1,IF(H=HHV(H,P),H,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORBLUE;

       DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),止损,'止损线'),COLORYELLOW;

       止盈:IF(CURRBARSCOUNT =H2+21,CONST(IF(H4=0,L,REF(L,H4))),DRAWNULL),COLORCB21BE;

       DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),止盈,'止盈线'),COLORCB21BE;

       P:=21;

       WH1:=IF(L=LLV(L,P),L,DRAWNULL);

       WH2:=CONST(BARSLAST(WH1!=DRAWNULL));

       WH3:=CONST(IF(WH2=0,H,REF(H,WH2)));

       WH4:=CONST(REF(BARSLAST(H WH3),WH2+1)+WH2+1);

       WH5:=CONST(IF(WH4=0,H,REF(H,WH4)));

       WH6:=CONST(REF(BARSLAST(H WH5),WH4+1)+WH4+1);

       进场:IF(CURRBARSCOUNT =WH2+21,CONST(IF(WH6=0,H,REF(H,WH6))),DRAWNULL),colorred;

       IF(CURRBARSCOUNT =WH2+1,IF(L=LLV(L,P),L,DRAWNULL),DRAWNULL),CIRCLEDOT,colorred;

       DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),进场,'进场线'),colorred;

       超跌进场:IF(CURRBARSCOUNT =WH2+21,CONST(IF(WH4=0,H,REF(H,WH4))),DRAWNULL),COLORCB21BE;

       DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),超跌进场,'超跌进场线'),COLORCB21BE;

       H1:=IF(H=HHV(H,P),H,DRAWNULL);

       H2:=CONST(BARSLAST(H1!=DRAWNULL));

       H3:=CONST(IF(H2=0,L,REF(L,H2)));

       H4:=CONST(REF(BARSLAST(L H3),H2+1)+H2+1);

       H5:=CONST(IF(H4=0,L,REF(L,H4)));

       H6:=CONST(REF(BARSLAST(L H5),H4+1)+H4+1);

       止损:IF(CURRBARSCOUNT =H2+21,CONST(IF(H6=0,L,REF(L,H6))),DRAWNULL),coloryellow;

       IF(CURRBARSCOUNT =H2+1,IF(H=HHV(H,P),H,DRAWNULL),DRAWNULL),CIRCLEDOT,colorblue;

       DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),止损,'止损线'),coloryellow;

       止盈:IF(CURRBARSCOUNT =H2+21,CONST(IF(H4=0,L,REF(L,H4))),DRAWNULL),COLORCB21BE;

       DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),止盈,'止盈线'),COLORCB21BE;




    同花顺顾比倒数副图截图

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 同花顺顾比倒数副图源码 加入收藏