雙均線交易系統源碼
作者:開拓者 TB 來源:cxh99.com 發布時間:2012年10月11日
- 咨詢內容: 關于雙均線交易系統的主要問題
- TB技術人員: Params
Numeric FastLength(5);
Numeric SlowLength(20);
Vars
NumericSeries AvgValue1;
NumericSeries AvgValue2;
Begin
AvgValue1 = AverageFC(Close[1] ,FastLength);
AvgValue2 = AverageFC(Close[1] ,SlowLength);
If(MarketPosition <>1 && AvgValue1> AvgValue2)
{
Buy(1,Close);
}
If(MarketPosition <>-1 && AvgValue1< AvgValue2)
{
SellShort(1,Close);
}
PlotNumeric("MA1",AvgValue1);
PlotNumeric("MA2",AvgValue2);
End
- TB客服: