以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://www.weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://www.weistock.com/bbs/list.asp?boardid=4) ---- 均线变色问题 (http://www.weistock.com/bbs/dispbbs.asp?boardid=4&id=67554) |
-- 作者:raul0708 -- 发布时间:2014/7/18 10:59:18 -- 均线变色问题 同一根均线,比如60均线,我想实现,上涨是红色,下跌是黑色怎么写,烦请版主指教 |
-- 作者:jinzhe -- 发布时间:2014/7/18 11:02:13 -- ma60:=(c,60); if ma60>ref(ma60,1) then ma60_1:ma60,colorred; if ma60<ref(ma60,1) then ma60_2:ma60,colorblack; |
-- 作者:raul0708 -- 发布时间:2014/7/18 11:13:33 -- 我在软件中用了调试“怎么是无效表达式”呢 |
-- 作者:pyd -- 发布时间:2014/7/18 11:15:55 -- 楼上笔误少些了ma ma60:ma(c,60); if ma60>ref(ma60,1) then ma60_1:ma60,colorred; if ma60<ref(ma60,1) then ma60_2:ma60,colorblack; [此贴子已经被作者于2014/7/18 11:16:24编辑过]
|
-- 作者:raul0708 -- 发布时间:2014/7/18 11:17:20 -- 解决了 谢谢 |
-- 作者:jinzhe -- 发布时间:2014/7/18 11:18:10 -- runmode:0; ma60:=ma(c,60); if ma60>ref(ma60,1) then ma60_1:ma60,colorred,linethick2; if ma60<ref(ma60,1) then ma60_2:ma60,colorblue,linethick2; |
-- 作者:raul0708 -- 发布时间:2014/7/18 11:21:12 -- 谢谢 |