Rss & SiteMap

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

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

标题:在金字塔图表交易中,止盈如何写?

1楼
wy93222357 发表于:2015/7/24 15:47:20
请教各位老师:在金字塔图表交易中,有盘中出现盈利之后,不希望持仓由盈利转为亏损,止盈如何写?
2楼
jinzhe 发表于:2015/7/24 16:09:30

打算多少点止盈?

3楼
jinzhe 发表于:2015/7/24 16:11:17

那就以开多为例

if holding>0 and hhv(h,enterbars+1)>enterprice+1 and l<=enterprice+1 then sell(1,0,market);

表示盘中有盈利, 在价格跌倒盈利一个点的情况下,止盈

 

4楼
wy93222357 发表于:2015/7/27 10:09:11
谢谢!
5楼
wy93222357 发表于:2015/7/27 10:29:13

请教能不能这样写?在第8根棒之后,当市场价格低于1个点时。平仓止盈。

 

if holding>0 and hhv(h,8)>enterprice and  close-enterprice<=1  then sell(1,0,market);

6楼
jinzhe 发表于:2015/7/27 10:32:49

那就是

if holding>0 and hhv(h,enterbars+1)>enterprice+1 and l<=enterprice+1  and enterbars>8 then sell(1,0,market);

7楼
wy93222357 发表于:2015/7/27 10:48:56
哦,十分感谢!
8楼
wy93222357 发表于:2015/7/27 11:07:21

大师请教一下,enterprice是一个常量,enterprice+1>=1成了一个变量,怎么理解?close-enterprice<=1 比较好理解一点。

 

 

 

9楼
jinzhe 发表于:2015/7/27 11:11:12

按照高中的数学不等式的计算,

l<=enterprice+1 和l-enterprice<=1是一个意思

怎么就不能理解了

10楼
wy93222357 发表于:2015/7/27 14:19:24

if holding>0 and hhv(h,enterbars+1)>enterprice+1 and l<=enterprice+1  and enterbars>8 then sell(1,0,market);是不是可以换成以下写法:

 

if holding>0 and hhv(h,enterbars+1)>enterprice+1 and close- enterprice<=1 and enterbars>8 then sell(1,0,market);

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


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