MACD金死叉標注文字
作者:文華財經 來源:cxh99.com 發布時間:2022年04月14日
-
咨詢內容:
?MACD只在零軸以上死叉,K線變黃色對應K線上面顯示文字"空"。零軸以下金叉K線變藍色,對應K線下面顯示文字"多 ,要求字稍大一點,不要遮擋K線。在3分鐘和15分鐘,1小時及日線均可顯示。以下哪個地方要改一下數據,謝謝!
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA? := EMA(DIFF,9);DRAWCOLORKLINE(CROSSDOWN(DIFF,DEA)&&DIFF>0&&DEA>0&&(PERIOD=2||PERIOD=3||PERIOD=7),COLORYELLOW,0);DRAWTEXT(CROSSDOWN(DIFF,DEA)&&DIFF>0&&DEA>0&&(PERIOD=2||PERIOD=3||PERIOD=7),H,'',COLORGREEN;DRAWCOLORKLINE(CROSS(DIFF,DEA)&&DIFF<0&&DEA<0&&(PERIOD=2||PERIOD=3||PERIOD=7),COLORBLUE,0);DRAWTEXT(CROSS(DIFF,DEA)&&DIFF<0&&DEA<0&&(PERIOD=2||PERIOD=3||PERIOD=7),L,'',COLORRED,VALIGN0;
?
?來源:程序化99
-
文華技術人員:
?請參考
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA? := EMA(DIFF,9);
DRAWCOLORKLINE(CROSSDOWN(DIFF,DEA)&&DIFF>0&&DEA>0&&(PERIOD=2||PERIOD=3||PERIOD=7||PERIOD=8),COLORYELLOW,0);
DRAWTEXT(CROSSDOWN(DIFF,DEA)&&DIFF>0&&DEA>0&&(PERIOD=2||PERIOD=3||PERIOD=7||PERIOD=8),H,'',COLORGREEN,FONTSIZE20;
DRAWCOLORKLINE(CROSS(DIFF,DEA)&&DIFF<0&&DEA<0&&(PERIOD=2||PERIOD=3||PERIOD=7||PERIOD=8),COLORBLUE,0);
DRAWTEXT(CROSS(DIFF,DEA)&&DIFF<0&&DEA<0&&(PERIOD=2||PERIOD=3||PERIOD=7||PERIOD=8),L,'',COLORRED,VALIGN0,FONTSIZE20;