You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
If you make the magic number unique to each order then you defeat the purpose of the magic number to allow the EA to track its own orders even after it restarts or crashes.
Anyway, the best solutions have already been given —
Anyway, the best solutions have already been given —
No, we have already explained that is not an appropriate solution, because of your misunderstanding of the proper use of the magic number. Please don't insist.
Lets see. My solution:
Your solution:
So, you ask — is that acceptable to me?
No, obviously not! It is inefficient, and needs much more code.
Why convolute and complicate things when something else is so much simpler?
Lets see. My solution:
Your solution:
So, you ask — is that acceptable to me?
No, obviously not! It is inefficient, and needs much more code.
Why convolute and complicate things when something else is so much simpler?
Yes, no problem! Several of my EAs, use multiple partial closes proportional to how the position progresses, with just a single magic number for all orders for that EA.
How do I do it? By simply applying normal logic and maths about the open positions (individually and as a batch), according to the strategy being used.
The art of efficiency is doing things in simple terms. Just keep things simple and clean.
Yes, no problem! Several of my EAs, use multiple partial closes proportional to how the position progresses, with just a single magic number for all orders for that EA.
How do I do it? By simply applying normal logic and maths about the open positions (individually and as a batch), according to the strategy being used.
The art of efficiency is doing things in simple terms. Just keep things simple and clean.