求四周突破交易源码校对
ParamsNumeric Length1(5);
Numeric Length2(19);
Numeric Lots(1);
Vars
NumericSeries HiBand1;
NumericSeries LoBand1;
NumericSeries HiBand2;
NumericSeries LoBand2;
Begin
HiBand1 = highest(high,Length1);
LoBand1 = lowest(low,Length1);
HiBand2 = highest(high,Length2);
LoBand2 = lowest(low,Length2);
PlotNumeric("HiBand1",HiBand1);
PlotNumeric("LoBand1",LoBand1);
plotnumeric("HiBand2",HiBand2);
plotnumeric("LoBand2",LoBand2);
if ( high >= HiBand2)
{
buy(Lots,o);
}
if ( low <= LoBand2 )
{
SellShort(Lots,o);
}
End 顶起
页:
[1]