Replies: 1 comment 1 reply
-
I suspect, since backtesting.py/backtesting/backtesting.py Lines 657 to 666 in 8c13d00 The properties are set to None here when the trade is closed: backtesting.py/backtesting/backtesting.py Lines 984 to 988 in 8c13d00 Please confirm. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems that under some conditions (that is when a trade is closed for hitting a sl) the very .sl property of the closed_trade item corresponding to the original closed trade is set to None.
I am trying to add info to closed trades in as far as the reason they got closed (strategy, tp, sl) - which i think is somehow useful when dealing with complex strategies, and I was trying to manipulate the closed_trades adding some attributes, but I noticed this strange behavior.
Is there a possible explanation ?
cheers
Beta Was this translation helpful? Give feedback.
All reactions