開拓者 TB EMA均線交易系統源碼,僅供參考[開拓者公式]
- 咨詢內容:
Params
Numeric Length1(10);
Numeric Length2(20);
Numeric Length3(30);
Numeric Length4(7);
Vars
NumericSeries XAvgValue1;
NumericSeries XAvgValue2;
NumericSeries XAvgValue3;
NumericSeries MA1;
Begin
PlotNumeric("EMA1",XAverage(Close, Length1));
PlotNumeric("EMA2",XAverage(Close, Length2));
PlotNumeric("EMA3",XAverage(Close, Length3));
MA1= AverageFC(Close,Length4);
PlotNumeric( "MA1" , MA1[5] );
If
(MarketPosition <>1 && XAvgValue1>XAvgValue2)
{
Buy(1,Open);
}
If
(MarketPosition <>-1 && XAvgValue1<XAvgValue2)
{
SellShort(1,Open);
}
PlotNumeric("PL",Portfolio_TotalProfit);
End
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 262069696 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容