指标编写学习论坛
标题:
股价站稳20和42日均线之上,K线用红色表示,且20和42日均线向上,20和42日均线就...
[打印本页]
作者:
admin
时间:
2016-5-7 12:48
标题:
股价站稳20和42日均线之上,K线用红色表示,且20和42日均线向上,20和42日均线就...
股价站稳20和42日均线之上,K线用红色表示,且20和42日均线向上,20和42日均线就用红色表示
正确答案:
x20:ma(c,20);
x42:ma(c,42);
STICKLINE(c>x20 and c>x42 ,CLOSE,OPEN,8,0),COLORRED;
STICKLINE(c>x20 and c>x42 ,HIGH,LOW,0.8,0),COLORRED;
STICKLINE(c<x20 and c<x42 ,CLOSE,OPEN,8,0),COLORgreen;
STICKLINE(c<x20 and c<x42 ,HIGH,LOW,0.8,0),COLORgreen;
partline(x20>=ref(x20,1),x20),colorred;
partline(x20<ref(x20,1),x20),colorgreen;
partline(x42>=ref(x42,1),x42),colorred;
partline(x42<ref(x42,1),x42),colorff6600;
欢迎光临 指标编写学习论坛 (http://www.shgm.net/)
Powered by Discuz! X3.2