We don't know what's happened with the broker until we're told. The broker likely has an event that informs your code that something happened to an order (filled, cancelled, rejected, etc). This needs to be communicated back to RightEdge and RightEdge updates internally and passes the information to the trading system that's currently running.
To see a real running broker plugin, we have released the source code to our Interactive Brokers plugin
I have finished the IBroker plugin.
I can submit a limit order successful in RE gui menu , and can find it in pending order,
when cancel order, the function CancelOrder returns true, and the order was removed from open orders,
in fact , it was cancelled in real broker, but it still in the "Pending Orders" tab in RE.
Any one knows the reason?
We need to write some code to manually delete it from "Pending Orders"?