I have overfill-message in my live-account and I do not understand how this can occur as there are not different conditions or trigger true the same moment.
Entry:
entryOrdermSa=EnterShort(30, "mSa");
entryOrdermSb=EnterShort(30, "mSb");
entryOrdermSc=EnterShort(30, "mSc");
Stops:
if (Position.MarketPosition == MarketPosition.Flat)
SetStopLoss("mSa", CalculationMode.Ticks, 10, false);
SetStopLoss("mSb", CalculationMode.Ticks, 10, false);
SetStopLoss("mSc", CalculationMode.Ticks, 10, false);
else if (Position.MarketPosition == MarketPosition.Short)
{ if (GetCurrentBid() <= Position.AvgPrice - (10*TickSize))
{
SetStopLoss("mSa", CalculationMode.Price, Position.AvgPrice+2*TickSize, false);
SetStopLoss("mSb", CalculationMode.Price, Position.AvgPrice+2*TickSize, false);
SetStopLoss("mSc", CalculationMode.Price, Position.AvgPrice+2*TickSize, false);
}
Why should there be an overfill?
Thank you
Tony
Comment