K線顏色
作者:文華財經(jīng) 來源:cxh99.com 發(fā)布時間:2022年09月02日
-
咨詢內(nèi)容:
? 老師好!麻煩把標識“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.kzuj.com.cn
-
文華客服:
??老師,“B”?來源: www.kzuj.com.cn
-
文華客服:的K線沒有改,?來源: www.kzuj.com.cn
-
文華客服:麻煩改成黃色?來源: www.kzuj.com.cn
-
文華客服:吧,?來源: www.kzuj.com.cn
-
文華客服:標識“S”的K線變成藍色,這樣區(qū)分清楚一些。?來源: www.kzuj.com.cn
-
文華客服:謝謝!
?
-
網(wǎng)友回復:
?這樣看下
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);
?
-
網(wǎng)友回復:
?老師,“S”的K線?顏色太深,看不清楚,麻煩調(diào)成淺藍色如:??藍色?,謝謝!