Forum on trading, automated trading systems and testing trading strategies
Hello,
Please EDIT your post and use the SRC button when you post code.
Thank you.
Thank you I edited it
As long as it places those many orders just after the condition is met, then you should add return(0) or just return after the ordersend function
to stop opening more orders. Also, you need to show the code in some way (depends on the method you use) that the condition is met or a new bar
is opened, or, ...
Showing the code is the only way to solve such problem.
As long as it places those many orders just after the condition is met, then you should add return(0) or just return after the ordersend function
to stop opening more orders. Also, you need to show the code in some way (depends on the method you use) that the condition is met or a new bar
is opened, or, ...
Showing the code is the only way to solve such problem.
Thank Osama. I have attached the code where exactly should I place return (0)
Check out the example code on this page under the heading "Putting It All Together."
https://www.mql5.com/en/articles/496
Specifically, you probably want to use this line to see if a position already exists and act accordingly.
m_Position.Select(my_symbol)
Check out the example code on this page under the heading "Putting It All Together."
https://www.mql5.com/en/articles/496
Specifically, you probably want to use this line to see if a position already exists and act accordingly.
Thank you let me try that

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use