lib/tmt/commands/details.rb
# order chain p/l if adjustment & NOT closed (no fees)
# order chain p/l w/ total fees if closed
# nothing if open & NOT adjustment (would be duplicate of positon p/l)
order chain p/l if adjustment & NOT closed (no fees)
order chain p/l w/ total fees if closed
nothing if open & NOT adjustment (would be duplicate of positon p/l)
order chain p / l if adjustment & NOT closed ( no fees ) order chain p / l w / total fees if closed nothing if open & NOT adjustment ( would be duplicate of positon p / l )
def trade_pl_dollars
        return (trade.total_credit - trade.mark) * trade.multiplier * trade.contracts if trade.adjustment? && trade.open?
        return (((trade.total_credit - trade.mark) * trade.multiplier * trade.contracts) - (trade.fees + trade.order_chain_fees)) if trade.adjustment? && trade.closed?
        trade.points * trade.multiplier * trade.contracts - trade.fees if trade.closed? 
      end
def trade_pl_dollars return ( trade . total_credit - trade . mark ) * trade . multiplier * trade . contracts if trade . adjustment? && trade . open? return ( ( ( trade . total_credit - trade . mark ) * trade . multiplier * trade . contracts ) - ( trade . fees + trade . order_chain_fees ) ) if trade . adjustment? && trade . closed? trade . points * trade . multiplier * trade . contracts - trade . fees if trade . closed? end
order chain p/l if adjustment & NOT closed (no fees)
order chain p/l w/ total fees if closed
nothing if open & NOT adjustment (would be duplicate of positon p/l)
order chain p / l if adjustment & NOT closed ( no fees ) order chain p / l w / total fees if closed nothing if open & NOT adjustment ( would be duplicate of positon p / l )
# ok