只開一倉,為什么 [開拓者 TB]
- 咨詢內容:
Params
Numeric ALength(4);
Numeric BLength(9);
Numeric CLength(18);
Vars
NumericSeries AMA;
NumericSeries BMA;
NumericSeries CMA;
Bool Condition1;
Bool Condition2;
Begin
If(!W_CallAuctionFilter()) Return;
AMA = Average(Close, ALength);
BMA = Average(Close, BLength);
CMA = Average(Close, CLength);
PlotNumeric("短線",AMA);
PlotNumeric("中線",BMA);
PlotNumeric("長線",CMA);
Condition1 = CrossOver(AMA[1],BMA[1]) AND AMA[1]>CMA[1] AND BMA>CMA;
Condition1 = CrossUnder(AMA[1],BMA[1]) AND AMA[1]<CMA[1] AND BMA<CMA;
if (MarketPosition != 1 And Condition1)
{
Buy(0,Open);
}Else
if (MarketPosition != -1 And Condition2)
{
SellShort(0,Open);
}
End - TB技術人員:
2個 Condition1
- TB客服: Condition1 = CrossUnder(AMA[1],BMA[1]) AND AMA[1]<CMA[1] AND BMA<CMA; 應該寫成: Condition2 = CrossUnder(AMA[1],BMA[1]) AND AMA[1]<CMA[1] AND BMA<CMA;
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容