The problem is that you use obsolete OnPositionOpened method with new ExecuteMarketOrder method. OnPositionOpened method works only if you create position using old trading API.
Instead of using OnPositionOpened method you need to subscribe to Positions.Opened event. But please keep in mind that it will be raised for all positions:
ronald1711
05 Mar 2014, 22:37
RE: RE:
Forex19 said:
Can you post the "new" working code here?
I'm also using this cbot and made some changes in so you can set the lotsize and lotstep size.
Thanks
Ronald
@ronald1711