Rss & SiteMap

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

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

标题:怎么截取盘中最高盈利值?

1楼
a383623133 发表于:2017/2/20 11:18:30
如题所问。
2楼
jinzhe 发表于:2017/2/20 11:26:53

a1:=ref(asset,todaybar);

最高盈利:hhv(asset-a1,todaybar);

3楼
a383623133 发表于:2017/2/20 11:39:51
我想要的是实际账户的盘中浮盈最高值
4楼
jinzhe 发表于:2017/2/20 13:14:35

if taccount(4)>extgbdata('fy') then extgbdataset('fy',taccount(4));

 

if time=closetime(0) then extgbdataset('fy',taccount(4));

 

 

extgbdata('fy')为所求值

不能用在图表交易里

5楼
a383623133 发表于:2017/2/20 14:07:44

想做到最高浮盈超过1000回撤到800就平仓,改怎么使用?

6楼
jinzhe 发表于:2017/2/20 14:15:52

if taccount(4)>extgbdata('fy') then extgbdataset('fy',taccount(4));

if taccount(4)<=extgbdata('fy')-200 then begin

   tsell(1,0,mkt);

   tsellshort(1,0,mkt);

end

 

if time=closetime(0) then extgbdataset('fy',taccount(4));

7楼
a383623133 发表于:2017/2/20 15:38:04
extgbdataset('fy',taccount(4));里的FY是不是只最高浮盈金额?如果是1000就是extgbdataset('1000',taccount(4));?
8楼
jinzhe 发表于:2017/2/20 15:55:42
以下是引用jinzhe在2017-2-20 13:14:35的发言:

if taccount(4)>extgbdata('fy') then extgbdataset('fy',taccount(4));

 

if time=closetime(0) then extgbdataset('fy',taccount(4));

 

 

extgbdata('fy')为所求值

不能用在图表交易里

extgbdata('fy')是最高值,如果最高盈利是1000那么extgbdata('fy')为1000

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


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