Rss & SiteMap

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

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

标题:老师 请问盈利10个点平仓

1楼
liwei 发表于:2017/3/23 15:48:25
老师 请问图表系统想设置盈利10个点就平仓 怎么写  谢谢
2楼
qq代人发帖 发表于:2017/3/23 16:01:04
if c-enterprice>=10 and holding>0 then begin
sell();
end
if enterprice-c>=10 and holding<0 then begin
sellshort();
end
3楼
liwei 发表于:2017/3/28 9:24:55
老师 按照以上写法怎么做不到10个点平仓 有时100多个有时几十个点平仓 新图表系统 请问是不是我什么地方没有搞对?
4楼
jinzhe 发表于:2017/3/28 9:31:19
这个几十一百多是按照实际的情况做判断的吗?
5楼
liwei 发表于:2017/3/28 9:36:08
是测试的结果
6楼
liwei 发表于:2017/3/28 9:36:48
测试以前  不是实盘或者模拟操作
 
7楼
jinzhe 发表于:2017/3/28 9:44:04
贴你的测试结果以及平仓代码
8楼
liwei 发表于:2017/3/28 10:08:24

图片点击可在新窗口打开查看此主题相关图片如下:1.jpg
图片点击可在新窗口打开查看
9楼
jinzhe 发表于:2017/3/28 10:16:34

也就是说你一定要定死10个点止盈?多1点也不行?

10楼
liwei 发表于:2017/3/28 10:17:02
if D9<=0 then begin

sellshort(1,holding,thisclose),orderqueue;
buy(holding=0,ss,thisclose),orderqueue;
end

if D9>0 then begin

sell(1,holding,thisclose),orderqueue;
buyshort(holding=0,ss,thisclose),orderqueue;
end
if c-enterprice>=10 and holding>1 then begin 


end

if enterprice-c>=10 and holding<1 then begin 
end
共20 条记录, 每页显示 10 条, 页签: [1] [2]


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