请老师给写条代码 [文华财经]
-
咨询内容:
1、在DIFF大于0和DEA大于0条件下,RSI1上穿RSI2时,当根K线粉色,并在底部显示向上箭头符号并发出警报
1、在DIFF小于0和DEA小于0条件下,RSI1下穿RSI2时,当根K线绿色,并在顶部显示向下箭头符号并发出警报
来源:程序化99
-
文华技术人员:
参考:
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26); DEA :=EMA(DIFF,9); LC := REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100; RSI2:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100; DRAWCOLORKLINE(DIFF>0&&DEA>0&&CROSS(RSI1,RSI2),RGB(255,128,192),0); DRAWCOLORKLINE(DIFF<0&&DEA<0&&CROSSDOWN(RSI1,RSI2),COLORGREEN,0); DRAWICON(DIFF>0&&DEA>0&&CROSS(RSI1,RSI2),L,4); DRAWICON(DIFF<0&&DEA<0&&CROSSDOWN(RSI1,RSI2),H,5); DIFF>0&&DEA>0&&CROSS(RSI1,RSI2),SOUND(''; DIFF<0&&DEA<0&&CROSSDOWN(RSI1,RSI2),SOUND('';来源: WWW.CXH99.COM
-
文华客服:
阳K底下显示的标记踩在K线上了,麻烦帮挪到K线下方去。谢谢
-
网友回复:
参考:
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26); DEA :=EMA(DIFF,9); LC := REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100; RSI2:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100; DRAWCOLORKLINE(DIFF>0&&DEA>0&&CROSS(RSI1,RSI2),RGB(255,128,192),0); DRAWCOLORKLINE(DIFF<0&&DEA<0&&CROSSDOWN(RSI1,RSI2),COLORGREEN,0); DRAWICON(DIFF>0&&DEA>0&&CROSS(RSI1,RSI2),L-10,4); DRAWICON(DIFF<0&&DEA<0&&CROSSDOWN(RSI1,RSI2),H,5); DIFF>0&&DEA>0&&CROSS(RSI1,RSI2),SOUND(''; DIFF<0&&DEA<0&&CROSSDOWN(RSI1,RSI2),SOUND('';
可以调整标红处数字自行调整距离K线距离。
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容