Important corrections to the TABLE_TRADE code.
Fixes risk, risk_percent and stoploss.