mikejasz: For mt5 I want to create an EA which continue to repeat a pending order if the previous one has hit stop loss. Say I put a buy or sell order in us30 at a certain price with stop loss and take profit specified. Market executes the order and the stop loss is hit. I want to have an EA that creates the exact same order the moment stop is hit. OR Is there an EA already available for this function?
I doubt there is already such an EA in the CodeBase, because a few years back I was tasked to develop such a solution for a customer that placed new pending orders for the ones that were triggered and closed (an Order repeater).
At the time, I created a MQL5 Service for that, instead of an EA, so that it would be multi-symbol and not require an open chart.
It was just short of 600 lines of code. It was not as simple as it first seemed when the customer requested it.
However, I can't share the code, nor am I available for hire any more.
You will either have to learn to code it yourself, or place a job request in the Freelance and have someone else code it for you.
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
Say I put a buy or sell order in us30 at a certain price with stop loss and take profit specified. Market executes the order and the stop loss is hit. I want to have an EA that creates the exact same order the moment stop is hit.
OR
Is there an EA already available for this function?