You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, it is impossible to know why a position was closed or opened without clear logs explaining the reasons.
Also, a trade id to identify all trades is needed.
Code sample
self.buy(log="The position was opened")
self.sell(log="The position was opened")
self.position.close(log="The position was closed because???")
trade.sl(price=???, log="Take stop loss was reached")
trade.tp(price=???, log="Take profit was reached")
Enhancement description
Currently, it is impossible to know why a position was closed or opened without clear logs explaining the reasons.
Also, a trade id to identify all trades is needed.
Code sample
Additional info, images
No response