Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Query about attaching "order handles" to orders #1084

Unanswered
rupert4567 asked this question in Q&A
Discussion options

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.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /