修改一下指标颜色 [文华财经]
- 咨询内容: 老师请把macd数值颜色改一下,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';
-
文华技术人员:
参考:
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.CXH99.COM
-
文华客服:
老师不对呢,我指的是这个数值颜色
文件名:睿期大户室截图20220210205240.png -
网友回复:
参考:
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';
DRAWTEXT(BB&&S&&COUNT(S,BARSLASTCOUNT(BB))=1,DIFF,'空1';DRAWTEXT(BB&&S&&COUNT(S,BARSLASTCOUNT(BB))=2,DIFF,'空2';
来源:程序化99
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容