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.
Your code was "generated" by a machine, and not coded by you! Therefore it is safe to assume that you don't know how to code and any advice we give will not be understood due to lack of knowledge and skill in the matter.
So, you can either take some time to learn to code yourself, or if you are in a hurry, just go to the Freelance section and place a job request to fix your EA or better still, to code a new one to your exact specifications.
- We hate EA builder, fxDreema, EATree, etc.
- You couldn't be bothered to learn MQL4/5, therefor there is no common language for us to communicate.
- There are only two choices: learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem, but we are not going to debug your hundreds lines of code. You are on your own and will spend much longer than had you learned the language up front.
- EA builder makes bad code counting up while closing multiple orders.
- EA builder makes bad code Bars is unreliable (max bars on chart) volume is unreliable (miss ticks) Always use time. New candle - MQL4 forum
- EA builder makes bad code, not adjusting for 4/5 digit brokers, TP/SL and slippage.
- EA builder makes bad code, not adjusting for ECN brokers.
- EA builder makes bad code, not checking return codes.
- EATree uses objects on chart to save values - not persistent storage (files or GV+Flush.) No recovery (crash/power failure.)
- We hate EA builder, fxDreema, EATree, etc.
- You couldn't be bothered to learn MQL4/5, therefor there is no common language for us to communicate.
- There are only two choices: learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem, but we are not going to debug your hundreds lines of code. You are on your own and will spend much longer than had you learned the language up front.
- EA builder makes bad code counting up while closing multiple orders.
- EA builder makes bad code Bars is unreliable (max bars on chart) volume is unreliable (miss ticks) Always use time. New candle - MQL4 forum
- EA builder makes bad code, not adjusting for 4/5 digit brokers, TP/SL and slippage.
- EA builder makes bad code, not adjusting for ECN brokers.
- EA builder makes bad code, not checking return codes.
- EATree uses objects on chart to save values - not persistent storage (files or GV+Flush.) No recovery (crash/power failure.)
I already asked you to change this. It's not a good way to communicate with people.
Forum on trading, automated trading systems and testing trading strategies
EA Places Too Many Trades When Signal Gets Triggered
Alain Verleyen, 2017.09.04 17:32
I will ask you, please, to change the tone of your standard reply about EA builder, "hate", "bothered to learn", "no common language", etc...this is way to offensive and aggressive.
Thanks by advance.
Your Code is ok
If your code triggers too many orders you can limit the total amount of allowed orders, or when it happens because price is close or on top of the rule value you can add a x number of trades per bar function so that it will only place one trade every 1 hour(H1) or one every 4 hours(H4) and etc.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
It is an EMA20 based buy sell EA. But it opens positions frequently. I need to correct it. One position (per pair per time frame) only. And they must follow the TP/SL and TSL rules. Pls help.