欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 每笔交易盈利为红色 亏损为绿色怎么写?

   

欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。    


  共有3300人关注过本帖树形打印复制链接

主题:每笔交易盈利为红色 亏损为绿色怎么写?

帅哥哟,离线,有人找我吗?
qq代人发帖
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:18691 积分:0 威望:0 精华:0 注册:2013/7/15 9:22:16
每笔交易盈利为红色 亏损为绿色怎么写?  发帖心情 Post By:2013/11/13 10:39:38    Post IP:58.246.57.26[只看该作者]

请教:每笔交易盈利为红色 亏损为绿色怎么写?

 回到顶部
帅哥哟,离线,有人找我吗?
jinzhe
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2013/11/13 10:41:09    Post IP:58.246.57.26[只看该作者]

这个红色和绿色在什么地方体现出来?


金字塔—专业程序化交易量化投资平台

客户服务部

----------------------------------------------------------- 欢迎您参加我公司的技术培训,具体培训需求请发邮件到service@weistock.com

您的宝贵建议或者投诉,请发往邮箱:weiwei@weistock.com

 回到顶部
帅哥哟,离线,有人找我吗?
carl9186
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:论坛游民 帖子:178 积分:848 威望:0 精华:0 注册:2012/5/22 8:03:16
  发帖心情 Post By:2013/11/13 14:14:34    Post IP:123.120.60.29[只看该作者]

开仓,平仓的连线

 


 回到顶部
帅哥哟,离线,有人找我吗?
jinzhe
  4楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2013/11/13 14:26:32    Post IP:58.246.57.26[只看该作者]

drawline(holding>0 and c-enterprice>0,c,holding=0,c,0,colorred);
drawline(holding>0 and c-enterprice<0,c,holding=0,c,0,colorgreen);
drawline(holding<0 and c-enterprice>0,c,holding=0,c,0,colorred);
drawline(holding<0 and c-enterprice<0,c,holding=0,c,0,colorgreen);


金字塔—专业程序化交易量化投资平台

客户服务部

----------------------------------------------------------- 欢迎您参加我公司的技术培训,具体培训需求请发邮件到service@weistock.com

您的宝贵建议或者投诉,请发往邮箱:weiwei@weistock.com

 回到顶部
帅哥哟,离线,有人找我吗?
jinzhe
  5楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:罗宾汉 帖子:46311 积分:50819 威望:0 精华:2 注册:2011/3/23 8:50:25
  发帖心情 Post By:2013/11/18 9:24:44    Post IP:58.246.57.26[只看该作者]

drawline(holding>0 and ref(holding<0,1) and c-enterprice>0,c,holding<0,c,0,colorred);
drawline(holding>0 and ref(holding<0,1) and c-enterprice<0,c,holding<0,c,0,colorgreen);
drawline(holding<0 and ref(holding>0,1) and c-enterprice>0,c,holding>0,c,0,colorred);
drawline(holding<0 and ref(holding>0,1) and c-enterprice<0,c,holding>0,c,0,colorgreen);
if cross(ma(c,5),ma(c,20)) then BEGIN 
sellshort(1,0,market);
buy(holding=0,1,market);
end

if cross(ma(c,20),ma(c,5)) then begin
sell(1,0,market);
buyshort(holding=0,1,market);
end

 

 

以简单的MA金死叉反手交易为范例的划线



金字塔—专业程序化交易量化投资平台

客户服务部

----------------------------------------------------------- 欢迎您参加我公司的技术培训,具体培训需求请发邮件到service@weistock.com

您的宝贵建议或者投诉,请发往邮箱:weiwei@weistock.com

 回到顶部