Hi,
I am new to MQL4 programming but I have been able to create a very simple EA for an entry strategy I want to automate. The entry part of it works but I am having a problem limiting the number of orders the EA opens at once. When I first tested the EA it opened bunches of orders all on the same bar. I didn't want this.
Is there a function I can use to tell the EA to limit the number of orders it opens when the entry signal is triggered? I don't have a problem with multiple orders being open at at the same time, I just don't want more than one order to be opened at once on the same time bar.
I've looked on Google and on these boards and I haven't really found what I think I need. Can any one help or point me in the right direction? I don't need full code, I just need to know if there is a function out there that can do this for me and what it is.
Thanks.
I am new to MQL4 programming but I have been able to create a very simple EA for an entry strategy I want to automate. The entry part of it works but I am having a problem limiting the number of orders the EA opens at once. When I first tested the EA it opened bunches of orders all on the same bar. I didn't want this.
Is there a function I can use to tell the EA to limit the number of orders it opens when the entry signal is triggered? I don't have a problem with multiple orders being open at at the same time, I just don't want more than one order to be opened at once on the same time bar.
I've looked on Google and on these boards and I haven't really found what I think I need. Can any one help or point me in the right direction? I don't need full code, I just need to know if there is a function out there that can do this for me and what it is.
Thanks.
Rhoman