I don't know why the error is triggered.
Code:
if(SomeCondition) {
EnterShortLimit(50000, GetCurrentBid(), "shortBreakOut");
SetProfitTarget("shortBreakOut", CalculationMode.Price, Open[barsAgo] - profitThreshold);
SetStopLoss(CalculationMode.Price, Open[barsAgo]);
}
I get the error: "Limit price can't be smaller than current bid. Affected Order: SellShort 50000 Limit @ 1.4371"
Isn't the current bid returned by GetCurrentBid()?

Comment