When you have a position showing a profit you may want to add more trades to the position. The question is how to check that all of your existing trades have reached a minimum profit level before opening a new trade.
This video shows a series of functions to open new trades in a position if all existing trades have reached a specified minimum profit.
The key to this is a single function that scans all trades for the symbol/magic/type combination and returns a boolen indicating if all trades have reached minimum profit or not.
If you have a suggestion or request for a future tutorial you can leave details in our Topic Requests forum or vote for existing requests. Make sure the requests are clear and if you refer to a strategy somewhere leave a link to the strategy
https://orchardforex.com/requests
The code is available on GitHub:
https://github.com/OrchardForexTutorials/220306_scale_into_position