修改一下指標(biāo)顏色
作者:文華財(cái)經(jīng) 來源:cxh99.com 發(fā)布時(shí)間:2023年05月27日
-
咨詢內(nèi)容:
?老師請(qǐng)把macd數(shù)值顏色改一下,0以上用紅色表示,0以下用綠色表示謝謝
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);DEA? : EMA(DIFF,9);2*(DIFF-DEA),COLORSTICK;0軸線:COLORRED,LINETHICK2;J:=CROSS(DIFF,DEA);S:=CROSSDOWN(DIFF,DEA);AA:=DIFF<0&&DEA<0;BB:=DIFF>0&&DEA>0;DRAWTEXT(AA&&J&&COUNT(J,BARSLASTCOUNT(AA))=1,DIFF,'多1';DRAWTEXT(AA&&J&&COUNT(J,BARSLASTCOUNT(AA))=2,DIFF,'多2';
DRAWTEXT(BB&&S&&COUNT(S,BARSLASTCOUNT(BB))=1,DIFF,'空1';DRAWTEXT(BB&&S&&COUNT(S,BARSLASTCOUNT(BB))=2,DIFF,'空2';
?
?來源:程序化99
-
文華技術(shù)人員:
?
參考:
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);DEA? : EMA(DIFF,9);2*(DIFF-DEA),COLORSTICK;0軸線:COLORRED,LINETHICK2;J:=CROSS(DIFF,DEA);S:=CROSSDOWN(DIFF,DEA);AA:=DIFF<0&&DEA<0;BB:=DIFF>0&&DEA>0;DRAWTEXT(AA&&J&&COUNT(J,BARSLASTCOUNT(AA))=1,DIFF,'多1';DRAWTEXT(AA&&J&&COUNT(J,BARSLASTCOUNT(AA))=2,DIFF,'多2';DRAWTEXT(BB&&S&&COUNT(S,BARSLASTCOUNT(BB))=1,DIFF,'空1';DRAWTEXT(BB&&S&&COUNT(S,BARSLASTCOUNT(BB))=2,DIFF,'空2';
DRAWCOLORLINE(DIFF>0,DIFF,COLORRED,COLORGREEN);DRAWCOLORLINE(DEA>0,DEA,COLORRED,COLORGREEN);
?
?來源: www.weiqiv.net.cn
-
文華客服:
?老師不對(duì)呢,我指的是這個(gè)數(shù)值顏色
文件名:睿期大戶室截圖20220210205240.png
?
-
網(wǎng)友回復(fù):
?
參考:
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);DEA? : EMA(DIFF,9);2*(DIFF-DEA),COLORSTICK,NOTEXT;MACD1:IF(2*(DIFF-DEA)>0,2*(DIFF-DEA),NULL),COLORRED,NODRAW;MACD2:IF(2*(DIFF-DEA)<0,2*(DIFF-DEA),NULL),COLORGREEN,NODRAW;0軸線:COLORRED,LINETHICK2;J:=CROSS(DIFF,DEA);S:=CROSSDOWN(DIFF,DEA);AA:=DIFF<0&&DEA<0;BB:=DIFF>0&&DEA>0;DRAWTEXT(AA&&J&&COUNT(J,BARSLASTCOUNT(AA))=1,DIFF,'多1';DRAWTEXT(AA&&J&&COUNT(J,BARSLASTCOUNT(AA))=2,DIFF,'多2';
DRAWTEXT(BB&&S&&COUNT(S,BARSLASTCOUNT(BB))=1,DIFF,'空1';DRAWTEXT(BB&&S&&COUNT(S,BARSLASTCOUNT(BB))=2,DIFF,'空2';