Hi!
I have a strategy implemented in MQL-4, which one I will migrate to MQL-5, trying to use the corresponding APIs (if possible), I mean, not using the MQL-5 classes.
I’m not a trader and I have read some articles to understand the new concepts, and please correct me if I’m somehow wrong:
- Orders now are referred to in MQL-5 as pending orders
- Position is the sum of opened orders (profit or loss) in a certain asset. In my understanding, if I have two charts operating in GBPJPN, each of it under a different timeframe, the position in that asset will reflect the orders opened in both charts.
- Deal is the result of an “executed” position (partially or in its total).
What I need for instance is to know how I modify open orders TP and SL, the same way I do in MQL-4. In MQL-4 we navigate through the orders and check if it’s necessary to offset the values under certain conditions and criteria.
I hope my question is clear enough.
Looking forward for a return and appreciate your help a lot!
Best regards,