I notice that when the "View" menu "Refresh" option is used on Trading Station, this seems to do a complete "reset" of the trading tables. This is causing an issue with one of my strategies.
Suppose the strategy has a trade open.
User uses View->Refresh
For a few moments, the trade tables are all blank (empty) and the strategy thinks it has no open position, so it can enter a trade
Result: 2 trades opened (one of them is a mistake, since the strategy should only open one per instrument max)
I checked the SDK and my code. The strategy is using the "host:execute ("isTableFilled", tableId)" function to check that the orders, offers and trades tables are all filled. This function is always returning true, even during a reset/refresh.
The help file for this function says...
Checks whether the table content is filled and ready to use.
The table can be not completely filled in case the strategy is started immediately after the login or when the user forces refresh of the tables.
The method returns true in case table is filled and ready to use and false in other case.
So, it seems that this function is not working correctly, since the tables where not filled, and yet it returns true. Please investigate, and fix this function or provide a workaround.