開拓者 TB EMA均線交易系統(tǒng)源碼,僅供參考[開拓者公式]
- 咨詢內(nèi)容:
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
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容