If there is a live order pool with 100 orders, 50 are short, 50 are long. How is it possible to find the most distant opened order? If analyzing the 50 short orders, which order has the smallest open price. If analyzing 50 long orders, which order has the largest open price. I was thinking of setting up an array of [number of orders x 2], [50 2].
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
- [ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3.
- positions management
c0d3:
If there is a live order pool with 100 orders, 50 are short, 50 are long. How is it possible to find the most distant opened order? If analyzing the 50 short orders, which order has the smallest open price. If analyzing 50 long orders, which order has the largest open price. I was thinking of setting up an array of [number of orders x 2], [50 2].
If there is a live order pool with 100 orders, 50 are short, 50 are long. How is it possible to find the most distant opened order? If analyzing the 50 short orders, which order has the smallest open price. If analyzing 50 long orders, which order has the largest open price. I was thinking of setting up an array of [number of orders x 2], [50 2].
Run through the OrderSelect() loop using OrderOpenTime() and OrderOpenPrice() ?
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