以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  请问A-B>0,显示黄数字,否则显示兰数字,怎么表达?  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=76465)

--  作者:雪球
--  发布时间:2015/3/14 8:48:13
--  请问A-B>0,显示黄数字,否则显示兰数字,怎么表达?
X:IF( A-B>0,( A-B ,COLORYELLOW),( A-B ,COLORBLUE)), PRECISION1,NODRAW,noaxis;
请问A-B>0,显示黄数字,否则显示兰数字,怎么表达?上面的公式好像通不过。

--  作者:jinzhe
--  发布时间:2015/3/16 9:06:08
--  

if a-b>0 then xx:x,coloryellow;

if a-b<=0 then xx1:x,colorblue;