以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  金字塔软件问题提交  (http://weistock.com/bbs/list.asp?boardid=2)
----  绘图问题:  (http://weistock.com/bbs/dispbbs.asp?boardid=2&id=75429)

--  作者:jason_shj
--  发布时间:2015/2/6 10:24:41
--  绘图问题:
如何画线,使得如果这次开平仓是盈利的,那么就画出入场点和出场点之间的连线,颜色为绿色,
如果亏损的话,显示为红色

--  作者:yukizzc
--  发布时间:2015/2/6 11:10:38
--  

if NUMPROFIT(1 )>=0 then DRAWLINE(holding<>0 ,c ,holding=0 ,c ,0 ,COLORGREEN );

if NUMPROFIT(1 )<0 then DRAWLINE(holding<>0 ,c holding=0,c ,0 ,COLORRED )


--  作者:惊弓之鸟
--  发布时间:2015/2/6 12:10:10
--  
GOOD