Very late in the day but this seems to be fixed.
GAT
It doesn't seem to be fixed on the latest version.
Code:
C:\pysystemtrade>git log
commit 95ce276859bfe6cf6c5220e052af708b2667976b
Author: rob@systematicmoney.org <rob@qoppac.com>
Date: Thu Jan 4 11:01:40 2018 +0000
version 16.1
The P&L for the next day after exchange holiday is still zero.
Code:
>>> system.data.daily_prices("GBP").tail(10)
2017-12-25 NaN <--- exchange holiday
2017-12-26 1.3431
2017-12-27 1.3440
2017-12-28 1.3479
2017-12-29 1.3557
2018-01-01 NaN <--- exchange holiday
2018-01-02 1.3628
2018-01-03 1.3547
2018-01-04 1.3586
2018-01-05 1.3597
Freq: B, Name: price, dtype: float64
>>> system.accounts.get_notional_position("GBP").tail(10)
2017-12-25 44.949005
2017-12-26 44.469445
2017-12-27 46.485309
2017-12-28 48.276678
2017-12-29 48.615382
2018-01-01 48.615389
2018-01-02 51.620324
2018-01-03 49.690158
2018-01-04 52.426681
2018-01-05 56.820880
Freq: B, dtype: float64
>>> system.accounts.pandl_for_instrument("GBP").tail(10)
Calculating pandl for instrument for GBP
Calculating buffered positions
2017-12-25 0.000000 <--- exchange holiday
2017-12-26 0.000000 <--- still zero
2017-12-27 308.806873
2017-12-28 1328.743155
2017-12-29 2992.167840
2018-01-01 0.000000 <--- exchange holiday
2018-01-02 0.000000 <--- still zero
2018-01-03 -3095.374570
2018-01-04 1488.347216
2018-01-05 410.335081