最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 同花顺的黄金分割主图指标

    正文概述    2024-04-14 07:51:24  

    九毛八公式指标

    公式模块:

    请编辑一个同花顺的黄金分割主图指标,非常感谢! //参数 n(1,500,130) 调整计算区间--竖线
    DRAWGBKLAST(CLOSE>0,STRIP(RGB(100,100,100),RGB(100,100,100),1));
    VERLINE(crOSS(ISNULL(REFX(&CLOSE,n)),0.5),2),COLOR00ffff;
    t1:=HHVBARS(H,n);
    t2:=LLVBARS(L,n);
    HH:=REF(H,t1);
    LL:=REF(L,t2);
    kk:=(HH-LL);
    HH1:=LL+KK*0.236;
    HH2:=LL+KK*0.382;
    HH3:=LL+KK*0.5;
    HH4:=LL+KK*0.618;
    HH5:=LL+KK*0.809;
    //----------------------------------------------------------------
    tt:=BARSCOUNT(CLOSE);
    x1:BacKSET(HH,tt),COLORFFffFF;
    x2:BACKSET(HH1,tt),COLORFFffFF;
    x3:BACKSET(HH2,tt),COLORFFffFF;
    x4:BACKSET(HH3,tt),COLORFFffFF;
    x5:BACKSET(HH4,tt),COLORFFffFF;
    x6:BACKSET(HH5,tt),COLORFFffFF;
    x7:BACKSET(LL,tt),COLORFFffFF;
    DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH,'```'+TOSTRING(HH,2)),COLORFFffFF;
    DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH1,'```'+TOSTRING(HH1,2)),COLORFFffFF;
    DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH2,'```'+TOSTRING(HH2,2)),COLORFFffFF;
    DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH3,'```'+TOSTRING(HH3,2)),COLORFFffFF;
    DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH4,'```'+TOSTRING(HH4,2)),COLORFFffFF;
    DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH5,'```'+TOSTRING(HH5,2)),COLORFFffFF;
    DRAWTEXT(ISNULL(REFX(&CLOSE,1)),LL,'```'+TOSTRING(LL,2)),COLORFFffFF;
    //------------------------------------------------------------------------------
    STICKLINE(CLOSE>0 ,CLOSE,OPEN,10,0),color000000;
    STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,9,0 ),COLOR999900;
    STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,8,0 ),COLORbbbb00;
    STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,6,0 ),COLORcccc00;
    STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,4,0 ),COLORdddd00;
    STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,2,0 ),COLOReeee00;
    STICKLINE(OPEN>CLOSE ,HIGH,LOW,2,0 ),COLORffff00;
    STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,9,0) ,COLOR000099;
    STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,8,0) ,COLOR0000bb;
    STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,6,0) ,COLOR0000cc;
    STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,4,0) ,COLOR0000dd;
    STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,2,0) ,COLOR0000ee;
    STICKLINE(CLOSE>=OPEN ,HIGH,LOW,2,0 ),COLOR000fFF;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 同花顺的黄金分割主图指标 加入收藏