Sha256: f81ccbc45975efdf71f2292aaff85b9bed6efb25c686258166486655fabc82b6
Contents?: true
Size: 1.42 KB
Versions: 19
Compression:
Stored size: 1.42 KB
Contents
- pos = position - stock = pos.stock - nearest_strike = stock.last.round - u = pos.purse.unit # pixels per dollar .collapse-expand.d-flex{ id: "gameui-pos-#{pos.id}" } [<>] .maxwidth= render "/iro/positions/header", pos: pos .a = render "/iro/positions/header_#{pos.strategy.kind}", pos: pos .StockCoordinatesW .StockCoordinates{ style: "height: #{pos.q() * pos.purse.height}px " } .grid= render "/iro/stocks/grid_#{pos.strategy.long_or_short}", stock: stock, position: pos .Origin{ style: "left: #{ ( nearest_strike - stock.last )* u}px" } .label Last: #{pp_amount stock.last} - left = "#{ (stock.last - pos.inner_strike) * u}px" - width = "0px" .PositionW{ class: pos.strategy.kind, style: "left: #{left} ; width: #{width} " } .Position .RollGuide .PositionC - if pos.net_amount >= 0 .Net.NetPositive{ style: "width: #{ (pos.net_amount / 100) * u }px; right: 0" } .label net = pp_amount pos.net_amount - else .Net.NetNegative{ style: "width: #{ (-1 * pos.net_amount / 100) * u }px; left: 100%" } .label net = pp_amount pos.net_amount .Breakeven{ style: "width: #{ pos.begin_inner_price * u }px" } .label Breakeven: = pos.begin_inner_price
Version data entries
19 entries across 19 versions & 1 rubygems