ARIABLE:多累计=-2,空累计=-2,建仓量=1;
交易时间:=(time>091000 and time<101000)or(time>103500 and time<112500)or(time>133500 and time<140500)or(time>142500 and time<145000);
//交易时间:=(time>091000 and time<101000)or(time>103500 and time<112500)or(time>133500 and time<145000);
//多确认:=忽略
//空确认:=忽略
//买点:=忽略;
//止损点:=忽略;
if 多确认 then 多累计=-1;
if tstate=0 then 多累计=-2;
多累计=多累计+1;
if 多累计=-1 then 多累计=-2;
tbuy(交易时间 and 多累计>=1 and 买点,建仓量,lmt,dynainfo(34));
tsell(TSTATE=1,0,lmt,(TAVGENTERPRICE+2*mindiff));
if 止损点 then
begin
tcancel(1,0);
tsell(1,0,lmt,dynainfo(28));
end
说明:1,买入需要先‘多确认’条件出现,出现后1个周期以上‘买点’出现就买入
2,买入后自动下止赢单
3。价位回落到‘止损点’自动撤止赢单,和下买1的单
是日内交易的吗?这个
你这个多累计过不了关啊,变量是多少呢
这个只能是你模拟交易之后遇到了什么问题,才能一步步的把你公式进行完善掉.
这里只看你的一个代码雏形,是说明不了太多问题的
给你一个QQ群,做金字塔程式化交易的 84283179 当然不是官方的
有道理,谢谢版主