Topics

Forum Topics not found

Replies

ronald1711
05 Mar 2014, 22:37

RE: RE:

Forex19 said:

Spotware said:

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: 

/forum/whats-new/1937

 

I modified the code and used PositionOnOpened, and it seems to work properly. 

Thanks.

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