close position with some note #1298
                  
                    
                      silverwolf-x
                    
                  
                
                  started this conversation in
                Ideas
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to add reasons for the end of certain trades, for example, how do I tag the ending order of the buy trade from 2013-02-26, indicating that I ended the trade due to reason R, and write R into this order and trade.
My Hope:
when calling either self.position.close(reason="R") or self.trade.close(reason="R"), I want to update the tag of any canceled order to "R". This makes sense because, at that point, the order looks like this:
Since the order already contains a
parent_trade, updating the tag to "R" clearly indicates that the reason for closing the trade was "R".Additionally, it would be useful if trades included a new property:
close_reason(e.g.), which would display "R" in such cases.Beta Was this translation helpful? Give feedback.
All reactions