Thanks Alisa.
Trying to figure out if the library will work with external trade data. My model is written from scratch, modeled in Python so
I can easily output data needed by Pyfolio. I am trying to find documentation on the format needed to import into Pyfolio.
Any help is appreciated. Thanks!
I have trade data that in the following format currently:
Trade Type Num Date Side EntryPrice EntryTime unixEntry ExitPrice ExitTime PNL Unreal Dur Fund
'Trade Stats' 1 '08/30' 'long' 1.12095 '23:44:00' 1440992641 1.12261 '01:11:01' 16.6 -5.1 1.45 10016.6
'Trade Stats' 2 '08/30' 'short' 1.12174 '01:29:00' 1440998941 1.12205 '01:34:41' -3.1 -7.4 0.09 10013.5
'Trade Stats' 3 '08/30' 'short' 1.12289 '02:09:00' 1441001341 1.12318 '02:09:39' -2.9 -4.7 0.01 10010.6
'Trade Stats' 4 '08/30' 'short' 1.12345 '03:29:52' 1441006166 1.12391 '06:16:17' -4.6 -28.1 2.78 10006
'Unrealized Trade Stats' 1 '08/30' 'long' 1.12402 '06:34:05' 1441017241 1.12102 '11:30:01' -30 -43.5 4.93 10006
'Trade Stats' 5 '09/01' 'long' 1.12646 '02:03:01' 1441087381 1.12869 '06:07:01' 22.3 -4.4 4.07 10028.3
'Trade Stats' 6 '09/01' 'short' 1.12842 '06:24:01' 1441103041 1.1274 '09:02:05' 10.2 -48.2 2.63 10038.5