how to calculate stragegy gain until LAST sell?
-
hi guys,
I'm using backtrader and just realized that it works nicely but sometimes, there is this situation:
the strategy will execute last buy but then, there is no last sell -> so it is hard to tell how successful was strategy in PNL.
is there any parameter or how to just compare starting cash with cash on end after last sell? so if after last sell, there is another one buy (but no other sell)-> to ignore that buy?
something like cheat on end or?
example:
start cash was = 250 000
last sell: 10 BTC for 50000 => 500 000 cash.
gain is 100% (500 000 vs 250 000)
but if there is another buy after last sell, like for 400 000, how to calculate PNL correctly? -
@marketmaker How active is the Backtrader community? It seems like there is two githubs and two issue lists on the site, plus this community.
-
@yourdatatalking
Hi man.. well, I'm asking very basic questions (I'm beginner) like how to program ema21 change of direction, but nobody is answering me.so there are 2 possibilities:
- algotrading is bullshit and everybody quit months ago
or - algotrading is earning billions of dollars and nobody will help you because it is you vs. them
now the billion dollar question is - which answer is the right one :)
- algotrading is bullshit and everybody quit months ago