Rss & SiteMap

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

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

标题:连续亏再开仓表述

1楼
a383623133 发表于:2016/4/8 10:02:20
请问公式如何表示连续亏十次然后再开仓?能否举个例子,谢谢
2楼
jinzhe 发表于:2016/4/8 10:10:26

variable:n=0;

if holding>0 and 平多条件 then begin

   sell(1,0,marektr);

   if numprofit(1)>=0 then n:=0;

   if numprofit(1)<0 then n:=n+1;

end 

 

if holding<0 and 平空条件 then begin

   sellshort(1,0,marektr);

   if numprofit(1)>=0 then n:=0;

   if numprofit(1)<0 then n:=n+1;

end 

 

然后开仓条件就是: n=10

3楼
a383623133 发表于:2016/4/8 10:28:58
if holding>0 and s then begin
   sell(1,0,marektr);
这段中的marektr这个无法识别?
4楼
jinzhe 发表于:2016/4/8 10:43:00
写错了,是marketr
5楼
a383623133 发表于:2016/4/8 13:38:42
还请教个问题:如何表述开仓价以信号后一根K线的开盘价委托?
6楼
jinzhe 发表于:2016/4/8 13:51:12

把marketr改成nextopen

 

[此贴子已经被作者于2016/4/8 13:51:23编辑过]
共6 条记录, 每页显示 10 条, 页签: [1]


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