Rss & SiteMap

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

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

标题:日K线公式加上1分钟K止盈如何写

1楼
雪球 发表于:2014/5/25 22:39:57

if datatype<>6 then
begin
drawtextex(1,1,50,950,'本程序使用日线周期,请切换到日线周期');
exit;
end

m1:= t0totime(timetot0(closetime(0))-60); //收盘前60秒平仓

if dynainfo(207)>opentime(1) and holding=0 and islastbar then
begin
buy(1,1,limitr,open+3*mindiff);
end

//止损50

if holding>0 and L<enterprice-50*mindiff and islastbar then
begin
sell(1,1,market);
end

if dynainfo(207)>m1 and holding>0 and islastbar then
begin
sell(1,1,market);
end


持仓:holding,linethick0;
资产:asset,noaxis;
可用现金:cash(0),linethick0;

 

 

上面为日k线公式,想加上1分钟K的移动止盈公式,请问老师如何写?
2楼
jinzhe 发表于:2014/5/26 9:21:55
这个做不到,跨周期引用也不好解决
3楼
雪球 发表于:2014/5/26 9:56:08
请老师跨周期的写下,我模拟盘测试下,才能搞清为什么不行。好吗?
4楼
jinzhe 发表于:2014/5/26 10:05:03

做不到

[此贴子已经被作者于2014/5/26 10:05:25编辑过]
5楼
雪球 发表于:2014/5/26 10:17:39
谢谢
共5 条记录, 每页显示 10 条, 页签: [1]


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