added is profitiable check
cast test trade to TwoLegTrade
use isProfitable member