I've just got a problem which cannot resolve by myself. I'm using two Bars objects and process all the events (entering/exiting positions) within the context of the primary Bars:
protected override void OnBarUpdate()
{
if (BarsInProgress != 0) return;
}
I have no problem entering Short positions for the second Bars instrument: "entryOrder = EnterShort(1, aIQ, "IQ");" But CANNOT close those short positions by executing: "exitOrder = ExitShort(1, "", "");" It simply doesnt's work. Although it perfectly closes all the primary Bars positions. What would be the reason?
Thank you!

Comment