status.trade_status converted to a Switch/Case instead of if statements.

This fixes the bot failing to close trades that have ended.