kernc / backtesting.py

:mag_right: :chart_with_upwards_trend: :snake: :moneybag: Backtest trading strategies in Python.
https://kernc.github.io/backtesting.py/
GNU Affero General Public License v3.0
5.55k stars 1.07k forks source link

Is here a method to make the size of P/L triangle directly proportional to the P/L number? #937

Closed peilinnnnnn closed 1 year ago

peilinnnnnn commented 1 year ago
image

As you can see in the picture, the green triangle is smaller than the red one, but it has a larger P/L number. I'm wondering if there's a way to make the size of the P/L triangle directly proportional to the P/L number. If we can do that, it would help us analyze our strategy more accurately.

kernc commented 1 year ago

Size indicates (absolute) trade size. P/L is already indicated by the vertical offset, as the axis says.

peilinnnnnn commented 1 year ago

Size indicates (absolute) trade size. P/L is already indicated by the vertical offset, as the axis says.

I see, I understood, thanks!