Query about attaching "order handles" to orders #1084
Unanswered
rupert4567
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to find out if I can in any way attach "order handles" to orders as is automatically done by the Forex Tester API, possibly by constructing a dictionary that will match up Order objects or Trade objects with order handles (which would just be integers or short strings). If there is a way of safely modifying the private attribute "tag" of the Order and Trade class from the main code, then that would be the solution, but I'm unclear at present whether that's safe. There's no method for modifying it, only for getting it, and ChatGPT and also my wife both advise against modifying an attribute which is labeled as private when no method is provided for modifying it. It would be helpful if I could get clear on whether this is a safe thing to do or not, or whether any other solution is available.
Beta Was this translation helpful? Give feedback.
All reactions