开拓者期货期权程序化系统交易论坛

标题: 求四周突破交易源码校对 [打印本页]

作者: hbxtxq77    时间: 2014-11-6 20:09:44     标题: 求四周突破交易源码校对

Params
Numeric Length1(5);
Numeric Length2(19);
Numeric Lots(1);
Vars
NumericSeries HiBand1;
NumericSeries LoBand1;
NumericSeries HiBand2;
NumericSeries LoBand2;
Begin
HiBand1 = highest(high[1],Length1);
LoBand1 = lowest(low[1],Length1);
HiBand2 = highest(high[1],Length2);
LoBand2 = lowest(low[1],Length2);
PlotNumeric("HiBand1",HiBand1);
PlotNumeric("LoBand1",LoBand1);
plotnumeric("HiBand2",HiBand2);
plotnumeric("LoBand2",LoBand2);

   if ( high[1] >= HiBand2[1])
{
  buy(Lots,o);
}
  if (  low[1] <= LoBand2[1] )
{
  SellShort(Lots,o);
}

End
作者: hbzz8888    时间: 2014-11-10 11:29:57

顶起




欢迎光临 开拓者期货期权程序化系统交易论坛 (http://bbs.tb18.net/) Powered by Discuz! X2