Hello,

I implemented BrokerCommand for GET_TRADES in the broker API and called from Zorro at INITRUN:
int npos = brokerTrades(0);
printf("\nNumber of positions loaded: %d", npos);

However I do not get any opened trades when calling: for(open_trades).

I get the correct number of positions but I cannot modify the value of the argument dwParameters in my implementation of BrokerCommand as it is of type DWORD.
So I cannot pass the address of the first element of the TRADE array to Zorro.

I thought I could call brokerCommand on GET_TRADES directly and add the trades to Zorro internal trade list using the method enterTrade but I face the same issue on passing to Zorro the address of the first TRADE array element.
In the documentation I see 3 overloaded methods for brokerCommand but only one BrokerCommand in the broker API.

Moreover extern "C" functions cannot be overloaded so I cannot specialize BrokerCommand to pass this address Zorro.

Could you please tell me how to proceed?



Last edited by byakuren81; 03/06/22 14:24.