只開一倉(cāng),為什么 [開拓者 TB]
- 咨詢內(nèi)容:
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("長(zhǎng)線",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技術(shù)人員:
2個(gè) Condition1
- TB客服: Condition1 = CrossUnder(AMA[1],BMA[1]) AND AMA[1]<CMA[1] AND BMA<CMA; 應(yīng)該寫成: Condition2 = CrossUnder(AMA[1],BMA[1]) AND AMA[1]<CMA[1] AND BMA<CMA;
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容