幫忙看一下,為什么沒信號,BOLL公式
作者:開拓者 TB 來源:cxh99.com 發布時間:2012年09月17日
- 咨詢內容: //滬膠指數,5分鐘線,2月23日11:15分,為什么沒有賣開指令???
Params
Numeric Length(20);
Numeric Offset(2);
Vars
Numeric UpLine; //上軌
Numeric DownLine; //下軌
NumericSeries MidLine; //中間線
Numeric Band;
Numeric StartTime(09.00);
Numeric EndTime1(14.40);
Numeric EndTime(14.55);
Begin
MidLine = AverageFC(Close,Length);
Band = StandardDev(Close,Length,2);
UpLine = MidLine + Offset * Band;
DownLine = MidLine - Offset * Band;
PlotNumeric("UpLine",UpLine);
PlotNumeric("DownLine",DownLine);
PlotNumeric("MidLine",MidLine);
If(time>=StartTime/100&&time<EndTime1/100)
{
If(open>Close&&Close>=UpLine)
{
SellShort(1,Close);
}Else
If(Open>=Close&&Close[1]>=UpLine)
{
SellShort(1,Close);
}
}
//收盤平倉
If(Time>=EndTime/100)
{
sell(0,Close);
BuyToCover(0,close);
}
End
- TB技術人員: 自己頂一下