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
I really want to help you, but your code is so messy and I don't know what exactly you are trying to accomplish...
Thanks Chad!
Below in the pic is what Im trying to achieve
Thanks @Joel Protusada for your code!
I'm trying to inject this on my code, but missing these parameter values when passing, are these defined with values? Also for "SurePips" ?
Thanks @Joel Protusada for your code!
I'm trying to inject this on my code, but missing these parameter values when passing, are these defined with values? Also for "SurePips" ?
That code is full of race conditions which could result in bugs. Since the order pool is a shared resource, you need to always iterate in reverse or use recursion due to the race conditions between multiple EAs and even raw market conditions. Order processing is [blocking] and can take seconds to complete; during which time orders can/will be added/removed by other EAs and TP/SL which will cause serious issues if you're iterating in the direction of the push-back/pop. It would also help to break down your logic into smaller reusable functions. Example:
That code is full of race conditions which could result in bugs. Since the order pool is a shared resource, you need to always iterate in reverse or use recursion due to the race conditions between multiple EAs and even raw market conditions. Order processing is [blocking] and can take seconds to complete; during which time orders can/will be added/removed by other EAs and TP/SL which will cause serious issues if you're iterating in the direction of the push-back/pop. It would also help to break down your logic into smaller reusable functions. Example:
Thanks @nicholi shen san!
I'm passing,
For
Hope this is fine! Also I'm working to fix bunch of OrderModify errors I'm getting.Thanks @Joel Protusada for your code!
I'm trying to inject this on my code, but missing these parameter values when passing, are these defined with values? Also for "SurePips" ?
I've been using this for more than 3 years already. No problem so far :)