Alex Go: full object names in an array ordered by proximity to price,
For that you are going to need a full, general sorting method:
Sort multiple arrays - MQL4 programming forum
Array or not to array - Trading Positions - MQL4 programming forum - Page 2
Or (object pointer) CList method:
pass
generic class data field - Swing Trades - MQL4 programming forum

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
hi
I put together this EA using code from this forum (mostly) and am trying to implement my strategy...the strategy is roughly https://www.mql5.com/en/code/7066 but the lines I intend to use are any of the following
...and, what I'm trying to accomplish is, since any number of the objects with the names above can be present on the chart, to Find all objects with 0 as 2nd character in name, place the full object names in an array ordered by proximity to price, and do the same where second character is 1.
ps. I am attaching a copy of my coding "endeavor" please advise, any tips/help/clues/ideas would be of great help, I'm sure, Thank You.