下面是我的止损条件,要求到价成交,可我试了一下,都只能收盘成交,请问怎么解决?
stoppoint:=P1;//止损点
winpoint:=P2;//止赢点
floststopstartpoint:=P3;//浮动止损启动条件
floststoppoint:=P4;//浮动止损点
tradernint:=SS;//每次交易手数
...........
if c-enterprice>P2 then sell(1,ss,THISCLOSE);
if enterprice-c>P2 then sellshort(1,ss,THISCLOSE);
if enterprice-c>P1 then sell(1,ss,THISCLOSE);
if c-enterprice>P1 then sellshort(1,ss,THISCLOSE);
A:=hhv(h,enterbars+1);
B:=llv(l,enterbars+1);
if A>enterprice+P3 and c<=A-P4 then sell(1,ss,THISCLOSE);
if B<enterprice-P3 and c>=B+P4 then sellshort(1,ss,THISCLOSE);
还没回复吗
不是,图表和后台里 固定轮询和走完k都是二选一
http://www.weistock.com/bbs/dispbbs.asp?boardid=10&Id=9439
可以参照帖子里的方法代码实现 两种模式的混合