幫忙看一下,為什么沒信號,BOLL公式 [開拓者 TB]
- 咨詢內容: //滬膠指數,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技術人員: 自己頂一下
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 262069696 進行 有償 編寫!(不貴!點擊查看價格!)