您现在的位置:程序化交易>> 期货公式>> 文华财经>> 文华财经知识>>正文内容

K线颜色 [文华财经]

  • 咨询内容:   老师好!麻烦把标识“B”的K线变成显蓝色(空心实心不变),标识“S”的K线变成紫红色(空心实心不变)。谢谢!
     A1:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,3)+EMA((OPEN+HIGH+LOW+CLOSE)/4,6)+EMA((OPEN+HIGH+LOW+CLOSE)/4,9))/3;A2:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,5)+EMA((OPEN+HIGH+LOW+CLOSE)/4,10)+EMA((OPEN+HIGH+LOW+CLOSE)/4,20))/3;A3:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,7)+EMA((OPEN+HIGH+LOW+CLOSE)/4,14)+EMA((OPEN+HIGH+LOW+CLOSE)/4,28))/3;A4:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,9)+EMA((OPEN+HIGH+LOW+CLOSE)/4,18)+EMA((OPEN+HIGH+LOW+CLOSE)/4,36))/3;A5:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,11)+EMA((OPEN+HIGH+LOW+CLOSE)/4,22)+EMA((OPEN+HIGH+LOW+CLOSE)/4,44))/3;A6:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,13)+EMA((OPEN+HIGH+LOW+CLOSE)/4,26)+EMA((OPEN+HIGH+LOW+CLOSE)/4,52))/3;A7:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,21)+EMA((OPEN+HIGH+LOW+CLOSE)/4,34)+EMA((OPEN+HIGH+LOW+CLOSE)/4,68))/3;MA1:=FORCAST(A1,6);MA2:=FORCAST(A2,6);MA3:=FORCAST(A3,6);MA4:=FORCAST(A4,6);MA5:=FORCAST(A5,6);MA6:=FORCAST(A6,6);MA7:FORCAST(A7,6),COLORF00FF0,LINETHICK3;DIFF : =EMA(CLOSE,12) - EMA(CLOSE,26);DEA  := EMA(DIFF,9);DRAWCOLORLINE(MA7<REF(MA7,1),MA7,COLORGREEN,COLORRED),LINETHICK3;X:=BARSLAST(C>MA7&&MA7>REF(MA7,1)&&DIFF>DEA);XX:=BARSLAST(C<MA7&&MA7<REF(MA7,1)&&DIFF<DEA);
    DRAWTEXT(CROSS(XX,X),H,'B'),COLORYELLOW,FONTSIZE30;DRAWTEXT(CROSS(X,XX),H,'S'),COLORWHITE,FONTSIZE30;
    DRAWCOLORLINE(MA2<REF(MA2,1),MA2,RGB(0,255,0),RGB(255,0,255)),DOT;DRAWCOLORLINE(MA3<REF(MA3,1),MA3,RGB(0,255,0),RGB(255,0,255)),DOT;DRAWCOLORLINE(MA4<REF(MA4,1),MA4,RGB(0,255,0),RGB(255,0,255)),DOT;DRAWCOLORLINE(MA5<REF(MA5,1),MA5,RGB(0,255,0),RGB(255,0,255)),DOT;DRAWCOLORLINE(MA6<REF(MA6,1),MA6,RGB(0,255,0),RGB(255,0,255)),DOT;DRAWCOLORLINE(MA1<REF(MA1,1),MA1,RGB(0,255,0),RGB(255,0,255)),DOT;TOWERC:=FORCAST(EMA((3*CLOSE+2*OPEN+HIGH+LOW)/7,3),6);//WWW.CHNMONEY.COMDIRECTIONMAX:=MAX(REF(TOWERC,1),REF(TOWERC,1));DIRECTIONMIN:=MIN(REF(TOWERC,1),REF(TOWERC,1));DRAWCOLORKLINE(TOWERC>=REF(TOWERC,1)&&ISDOWN,COLORRED,0);DRAWCOLORKLINE(TOWERC>=REF(TOWERC,1)&&ISDOWN=0,COLORRED,1);DRAWCOLORKLINE(TOWERC<REF(TOWERC,1)&&ISDOWN,COLORGREEN,0);DRAWCOLORKLINE(TOWERC<REF(TOWERC,1)&&ISDOWN=0,COLORGREEN,1);
    MA60:MA(C,60);//MA120:MA(C,120);//MA250:MA(C,250);DRAWCOLORLINE(MA60>REF(MA60,1),MA60,COLORRED,COLORGREEN);//DRAWCOLORLINE(MA120>REF(MA120,1),MA120,COLORRED,COLORGREEN);//DRAWCOLORLINE(MA250>REF(MA250,1),MA250,COLORRED,COLORGREEN); 

     

     来源:程序化99

  • 文华技术人员: 请参考
    A1:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,3)+EMA((OPEN+HIGH+LOW+CLOSE)/4,6)+EMA((OPEN+HIGH+LOW+CLOSE)/4,9))/3; A2:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,5)+EMA((OPEN+HIGH+LOW+CLOSE)/4,10)+EMA((OPEN+HIGH+LOW+CLOSE)/4,20))/3; A3:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,7)+EMA((OPEN+HIGH+LOW+CLOSE)/4,14)+EMA((OPEN+HIGH+LOW+CLOSE)/4,28))/3; A4:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,9)+EMA((OPEN+HIGH+LOW+CLOSE)/4,18)+EMA((OPEN+HIGH+LOW+CLOSE)/4,36))/3; A5:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,11)+EMA((OPEN+HIGH+LOW+CLOSE)/4,22)+EMA((OPEN+HIGH+LOW+CLOSE)/4,44))/3; A6:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,13)+EMA((OPEN+HIGH+LOW+CLOSE)/4,26)+EMA((OPEN+HIGH+LOW+CLOSE)/4,52))/3; A7:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,21)+EMA((OPEN+HIGH+LOW+CLOSE)/4,34)+EMA((OPEN+HIGH+LOW+CLOSE)/4,68))/3; MA1:=FORCAST(A1,6); MA2:=FORCAST(A2,6); MA3:=FORCAST(A3,6); MA4:=FORCAST(A4,6); MA5:=FORCAST(A5,6); MA6:=FORCAST(A6,6); MA7:FORCAST(A7,6),COLORF00FF0,LINETHICK3; DIFF : =EMA(CLOSE,12) - EMA(CLOSE,26); DEA  := EMA(DIFF,9); DRAWCOLORLINE(MA7<REF(MA7,1),MA7,COLORGREEN,COLORRED),LINETHICK3; X:=BARSLAST(C>MA7&&MA7>REF(MA7,1)&&DIFF>DEA); XX:=BARSLAST(C<MA7&&MA7<REF(MA7,1)&&DIFF<DEA);
    DRAWTEXT(CROSS(XX,X),H,'B'),COLORYELLOW,FONTSIZE30;
    DRAWTEXT(CROSS(X,XX),H,'S'),COLORWHITE,FONTSIZE30;

    DRAWCOLORLINE(MA2<REF(MA2,1),MA2,RGB(0,255,0),RGB(255,0,255)),DOT; DRAWCOLORLINE(MA3<REF(MA3,1),MA3,RGB(0,255,0),RGB(255,0,255)),DOT; DRAWCOLORLINE(MA4<REF(MA4,1),MA4,RGB(0,255,0),RGB(255,0,255)),DOT; DRAWCOLORLINE(MA5<REF(MA5,1),MA5,RGB(0,255,0),RGB(255,0,255)),DOT; DRAWCOLORLINE(MA6<REF(MA6,1),MA6,RGB(0,255,0),RGB(255,0,255)),DOT; DRAWCOLORLINE(MA1<REF(MA1,1),MA1,RGB(0,255,0),RGB(255,0,255)),DOT; TOWERC:=FORCAST(EMA((3*CLOSE+2*OPEN+HIGH+LOW)/7,3),6);//WWW.CHNMONEY.COM DIRECTIONMAX:=MAX(REF(TOWERC,1),REF(TOWERC,1)); DIRECTIONMIN:=MIN(REF(TOWERC,1),REF(TOWERC,1)); DRAWCOLORKLINE(TOWERC>=REF(TOWERC,1)&&ISDOWN,COLORRED,0); DRAWCOLORKLINE(TOWERC>=REF(TOWERC,1)&&ISDOWN=0,COLORRED,1); DRAWCOLORKLINE(TOWERC<REF(TOWERC,1)&&ISDOWN,COLORGREEN,0); DRAWCOLORKLINE(TOWERC<REF(TOWERC,1)&&ISDOWN=0,COLORGREEN,1); DRAWCOLORKLINE(CROSS(XX,X)&&ISDOWN,COLORBLUE,0); DRAWCOLORKLINE(CROSS(XX,X)&&NOT(ISUP),COLORBLUE,1); DRAWCOLORKLINE(CROSS(X,XX)&&ISDOWN,COLORMAGENTA,0); DRAWCOLORKLINE(CROSS(X,XX)&&NOT(ISUP),COLORMAGENTA,1);
    MA60:MA(C,60); //MA120:MA(C,120); //MA250:MA(C,250); DRAWCOLORLINE(MA60>REF(MA60,1),MA60,COLORRED,COLORGREEN); //DRAWCOLORLINE(MA120>REF(MA120,1),MA120,COLORRED,COLORGREEN); //DRAWCOLORLINE(MA250>REF(MA250,1),MA250,COLORRED,COLORGREEN);

     

     来源: WWW.CXH99.COM

  • 文华客服:   老师,“B” 来源: WWW.CXH99.COM
  • 文华客服:的K线没有改, 来源: WWW.CXH99.COM
  • 文华客服:麻烦改成黄色 来源: WWW.CXH99.COM
  • 文华客服: 来源: WWW.CXH99.COM
  • 文华客服:标识“S”的K线变成蓝色,这样区分清楚一些。 来源: WWW.CXH99.COM
  • 文华客服:谢谢!

     

  • 网友回复:  这样看下
    A1:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,3)+EMA((OPEN+HIGH+LOW+CLOSE)/4,6)+EMA((OPEN+HIGH+LOW+CLOSE)/4,9))/3; A2:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,5)+EMA((OPEN+HIGH+LOW+CLOSE)/4,10)+EMA((OPEN+HIGH+LOW+CLOSE)/4,20))/3; A3:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,7)+EMA((OPEN+HIGH+LOW+CLOSE)/4,14)+EMA((OPEN+HIGH+LOW+CLOSE)/4,28))/3; A4:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,9)+EMA((OPEN+HIGH+LOW+CLOSE)/4,18)+EMA((OPEN+HIGH+LOW+CLOSE)/4,36))/3; A5:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,11)+EMA((OPEN+HIGH+LOW+CLOSE)/4,22)+EMA((OPEN+HIGH+LOW+CLOSE)/4,44))/3; A6:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,13)+EMA((OPEN+HIGH+LOW+CLOSE)/4,26)+EMA((OPEN+HIGH+LOW+CLOSE)/4,52))/3; A7:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,21)+EMA((OPEN+HIGH+LOW+CLOSE)/4,34)+EMA((OPEN+HIGH+LOW+CLOSE)/4,68))/3; MA1:=FORCAST(A1,6); MA2:=FORCAST(A2,6); MA3:=FORCAST(A3,6); MA4:=FORCAST(A4,6); MA5:=FORCAST(A5,6); MA6:=FORCAST(A6,6); MA7:FORCAST(A7,6),COLORF00FF0,LINETHICK3; DIFF : =EMA(CLOSE,12) - EMA(CLOSE,26); DEA  := EMA(DIFF,9); DRAWCOLORLINE(MA7<REF(MA7,1),MA7,COLORGREEN,COLORRED),LINETHICK3; X:=BARSLAST(C>MA7&&MA7>REF(MA7,1)&&DIFF>DEA); XX:=BARSLAST(C<MA7&&MA7<REF(MA7,1)&&DIFF<DEA);
    DRAWTEXT(CROSS(XX,X),H,'',COLORYELLOW,FONTSIZE30;
    DRAWTEXT(CROSS(X,XX),H,'',COLORWHITE,FONTSIZE30;

    DRAWCOLORLINE(MA2<REF(MA2,1),MA2,RGB(0,255,0),RGB(255,0,255)),DOT; DRAWCOLORLINE(MA3<REF(MA3,1),MA3,RGB(0,255,0),RGB(255,0,255)),DOT; DRAWCOLORLINE(MA4<REF(MA4,1),MA4,RGB(0,255,0),RGB(255,0,255)),DOT; DRAWCOLORLINE(MA5<REF(MA5,1),MA5,RGB(0,255,0),RGB(255,0,255)),DOT; DRAWCOLORLINE(MA6<REF(MA6,1),MA6,RGB(0,255,0),RGB(255,0,255)),DOT; DRAWCOLORLINE(MA1<REF(MA1,1),MA1,RGB(0,255,0),RGB(255,0,255)),DOT; TOWERC:=FORCAST(EMA((3*CLOSE+2*OPEN+HIGH+LOW)/7,3),6);//WWW.CHNMONEY.COM DIRECTIONMAX:=MAX(REF(TOWERC,1),REF(TOWERC,1)); DIRECTIONMIN:=MIN(REF(TOWERC,1),REF(TOWERC,1)); DRAWCOLORKLINE(TOWERC>=REF(TOWERC,1)&&ISDOWN,COLORRED,0); DRAWCOLORKLINE(TOWERC>=REF(TOWERC,1)&&ISDOWN=0,COLORRED,1); DRAWCOLORKLINE(TOWERC<REF(TOWERC,1)&&ISDOWN,COLORGREEN,0); DRAWCOLORKLINE(TOWERC<REF(TOWERC,1)&&ISDOWN=0,COLORGREEN,1); DRAWCOLORKLINE(CROSS(XX,X)&&ISDOWN,COLORYELLOW,0); DRAWCOLORKLINE(CROSS(XX,X)&&NOT(ISDOWN),COLORYELLOW,1); DRAWCOLORKLINE(CROSS(X,XX)&&ISDOWN,COLORBLUE,0); DRAWCOLORKLINE(CROSS(X,XX)&&NOT(ISDOWN),COLORBLUE,1);
    MA60:MA(C,60); //MA120:MA(C,120); //MA250:MA(C,250); DRAWCOLORLINE(MA60>REF(MA60,1),MA60,COLORRED,COLORGREEN); //DRAWCOLORLINE(MA120>REF(MA120,1),MA120,COLORRED,COLORGREEN); //DRAWCOLORLINE(MA250>REF(MA250,1),MA250,COLORRED,COLORGREEN);

     

  • 网友回复:  老师,“S”的K线 颜色太深,看不清楚,麻烦调成浅蓝色如:  蓝色 ,谢谢!

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

怎么收费,代编流程等详情请点击阅读!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容