Dislikedcome on man!
... so then you just check OrderOpenTime()!!!!! pump the relevant ticket data that meets the specific chart criteria (currency, timeframe), then just bubble-sort the array data per the OrderOpenTime()!
now you have orders that match the following required criteria...
the currency pair
the timeframe
and you have these listed in your array in the order that they are opened.
none of this requires you having these hand-made tables of different magic numbers for different pairs and timeframes and whatever other nonsensical thing...Ignored
What i am trying to do is to GET THE EA TO MANAGE! the trade and not confuse orders from the same pair and time frame, but since there are people like you around that dont take the time to read before they open there fricking mouth....i was under the impression that i would need a different magic number for each trade/time frame/pair to get my EA to manage the SL,TP,TSL...etc properly!
Thanks for making it easy to put another person in the ignore bin...
And you are really making things so much harder on your self trying to add all them lines of code when 2 simple lines would work!
Inserted Code
#define EAName " EXPERT ADVISOR BLAH BLAH BLAH"
Inserted Code
if (OrderType() <= OP_SELL && OrderSymbol() == Symbol() && OrderComment() == EAName)
Get it now "smart guy"?