Then when I re-enable automated trading, when prompted I "assign the initial chart position at the broker" to Long, to reflect my previous position. Then the problem arises: MC does not recognize the existing bracket orders, so it submits 2 new bracket orders with a new OCA group. I then have 2 targets and 2 stops, each pair sharing the same price, which will presumably mean I will get a -1 position rather than a flat position in the event that they are executed. This seems like a big problem. Is there anything I can do to prevent this? This is my bracket order code:
Code: Select all
SetProfitTarget( Target );
If BEonoff=true then SetBreakEven(BreakEven);
If TrailOnOff=false then setstoploss(stp);
If TrailOnOff=true and maxpositionprofit < TrailTrigger then setstoploss(stp);
If TrailOnOff=true then SetPercentTrailing(TrailTrigger,TrailPct);