幫忙看一下,為什么沒信號,BOLL公式 - TradeBlazer公式 [開拓者 TB]
作者:
開拓者 TB 來源:
cxh99.com 發(fā)布時間:2012年05月28日 點擊數(shù):
【
收藏到本網(wǎng)的會員中心】
- 咨詢內(nèi)容:
//滬膠指數(shù),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技術(shù)人員:
自己頂一下