fix (pnl ui): Negate short avg cost when translating to avg price
This commit is contained in:
1 parent
1eb4ceba0a
commit
51b6d592d3
1 file changed
+2
-2
@@ -205,7 +205,7 @@ namespace bts.shell.pnl {
|
||||
u.start_long_pos,
|
||||
u.start_long_avg_cost,
|
||||
u.start_short_pos,
|
||||
u.start_short_avg_cost),
|
||||
-u.start_short_avg_cost),
|
||||
greeks = new() {
|
||||
delta = u.start_delta,
|
||||
gamma = u.start_gamma,
|
||||
@@ -219,7 +219,7 @@ namespace bts.shell.pnl {
|
||||
u.day_long_pos,
|
||||
u.day_long_avg_cost,
|
||||
u.day_short_pos,
|
||||
u.day_short_avg_cost),
|
||||
-u.day_short_avg_cost),
|
||||
greeks = new() {
|
||||
delta = u.day_delta,
|
||||
gamma = u.day_gamma,
|
||||
|
||||
Reference in new issue
Block a user