Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共5 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

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

1楼
qq代人发帖 发表于:2013/11/13 10:39:38
请教:每笔交易盈利为红色 亏损为绿色怎么写?
2楼
jinzhe 发表于:2013/11/13 10:41:09
这个红色和绿色在什么地方体现出来?
3楼
carl9186 发表于:2013/11/13 14:14:34

开仓,平仓的连线

 

4楼
jinzhe 发表于:2013/11/13 14:26:32
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);
5楼
jinzhe 发表于:2013/11/18 9:24:44

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金死叉反手交易为范例的划线

共5 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.01563 s, 3 queries.