Hi MatPed,

My 2 cents/pesos/shillings/lire/whatever laugh :

When using Virtual Hedging it's the "Boss". The virtual trade will always be opened. That's how Virtual Hedging works. A real trade isn't attempted unless Virtual Hedging decides it's needed.

If you're talking the Z systems, I started a similar thread re. Hedge=5 and Margin=0. The result there was that Virtual Hedging takes precedence and real positions will be adjusted to match as time goes by, even if it means opening a new real trade even though Margin=0. So, if a real trade can't be entered, Virtual Hedging will still know that it's needed and attempt to fix it (on the real side) at a future bar.

If you're talking your own strategy, presumably via receiving the error message from the real side, or by a for(open_trades) loop, you can determine if virtual & real are out of sync, and then decide what to do. One of the choices would be to manually close virtual trade(s) as needed. But jcl will have to comment if there are any gotchas in manually closing virtual trades outside of Virtual Hedging's processes...

Regards.