Use rt buffer for close price pnl calcs

history_view
Tyler Goodlet 2022-08-30 11:48:49 -04:00
parent f79c3617d6
commit 97b074365b
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ class SettingsPane:
if size: if size:
# last historical close price # last historical close price
last = feed.shm.array[-1][['close']][0] last = feed.rt_shm.array[-1][['close']][0]
pnl_value = copysign(1, size) * pnl( pnl_value = copysign(1, size) * pnl(
tracker.live_pp.ppu, tracker.live_pp.ppu,
last, last,