求助,為什么我寫(xiě)的語(yǔ)句平不了倉(cāng)呢?
作者:開(kāi)拓者 TB 來(lái)源:cxh99.com 發(fā)布時(shí)間:2018年04月05日
-
咨詢內(nèi)容:
if (Condition1)
? ? ? ? {
? ? ? ? ? ? ? ? if(A_SellPosition()>0)
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? BuyToCover(A_SellPosition(),Q_AskPrice);
? ? ? ? ? ? ? ? Commentary("QB="+Text(Q_AskPrice));
? ? ? ? ? ? ? ? SellShort(0,Q_BidPrice);
? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? Else if(A_SellPosition()==0&&A_BuyPosition()==0)
? ? ? ? ? ? ? ? SellShort(0,Q_BidPrice);
? ? ? ? }
每次都是開(kāi)倉(cāng)執(zhí)行,就是無(wú)法將模擬賬戶的倉(cāng)位平掉。