請問,這一段沒有問題吧?謝謝 [開拓者 TB]
作者:
開拓者 TB 來源:
cxh99.com 發(fā)布時間:2012年07月14日 點擊數(shù):
【
收藏到本網(wǎng)的會員中心】
- 咨詢內(nèi)容:
本帖最后由 空空大師 于 2012-2-29 15:50 編輯
請問,這一段沒有問題吧?謝謝!!!
If(Time>0.091700 and Time<0.151200 And CrossOver(JC,RC1)) //開多條件
{
Buy(Lots,Close);
}
If(Time>0.091700 and Time<0.151200 And RC1>Open And RC1>Close And RC1>H And RC1>L) //平多倉條件1
{
Sell(Lots,Close);
}
If(Time>0.091700 and Time<0.151200 And 0.5*(H+L)-KJZ>6) //平多倉條件2
{
Sell(Lots,Close);
}
If(Time>0.150900) //平多倉條件3
{
Sell(Lots,Close);
}
If(Time>0.091700 And Time<0.151200 And CrossUnder(JC,RC2)) //開空條件
{
SellShort(Lots,Close);
}
If(Time>0.091700 and Time<0.151200 And RC2<Open And RC2<Close And RC2<H And RC2<L) //平空條件1
{
BuyToCover(Lots,Close);
}
If(Time>0.091700 and Time<0.151200 And KJZ-0.5*(H+L)>6) //平空條件2
{
BuyToCover(Lots,Close);
}
If(Time>0.150900) //平空條件3
{
BuyToCover(Lots,Close);
}
- TB技術人員:
還有這個,可以這樣寫嗎?謝謝
BuyToCover(A_SellPosition(),Q_AskPrice());
- TB客服: