以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  k线变色  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=144036)

--  作者:曹晓东
--  发布时间:2016/12/5 9:11:50
--  k线变色
stickline(barpos=datacount-22,c,o,10,0,COLORMAGENTA);
stickline(barpos=datacount-10,c,o,10,0,COLORMAGENTA);

--  作者:曹晓东
--  发布时间:2016/12/5 9:13:24
--  

stickline(barpos=datacount-22,c,o,10,0,COLORMAGENTA);
stickline(barpos=datacount-10,c,o,10,0,COLORMAGENTA);

 

当这两根k线阳线就是COLORMAGENTA, 阴线的时候变为其他颜色。帮忙改一下


--  作者:jinzhe
--  发布时间:2016/12/5 9:19:33
--  

stickline(barpos=datacount-22 and c>=O,c,o,10,0,COLORMAGENTA);
stickline(barpos=datacount-10 and c>=o,c,o,10,0,COLORMAGENTA);
stickline(barpos=datacount-22 and c<O,c,o,10,0,COLORwhite);
stickline(barpos=datacount-10 and c<o,c,o,10,0,COLORwhite);

[此贴子已经被作者于2016-12-5 9:29:31编辑过]

--  作者:曹晓东
--  发布时间:2016/12/5 10:23:54
--  

变色根据变色的那根k线是阴线还是阳线来决定,那根k线是阳线就变紫,那根k线是阴线就变蓝这样。


--  作者:jinzhe
--  发布时间:2016/12/5 10:38:42
--  

stickline(barpos=datacount-22 and c>=O,c,o,10,0,COLORMAGENTA);
stickline(barpos=datacount-10 and c>=o,c,o,10,0,COLORMAGENTA);
stickline(barpos=datacount-22 and c<O,c,o,10,0,COLOrblue);
stickline(barpos=datacount-10 and c<o,c,o,10,0,COLORblue);