Visual Testing of the Profitability of Indicators and Alerts
Compiled commercial indicator. iCustom it OK. Paints 6 permanent indicators (+ in Data window). Sometimes indicates more than one trade on the same tick, and not only at the opening of a new bar.
EA misses duplicate trades. Likewise if I only trade at new bar. If I run on every tick, it places trades every tick infinitely.
I'm thinking that this must not be all that uncommon of a problem?
Programming techniques, algorithm, approaches &/or suggestions for this (common) EA task?
Thanks for any and all assistance (< 8)
Hi FourX
I was looking for an EA that opens a buy or sell trade trade immediately that price action touches or penetrates a SMA or EMA. I found a very nice EA called "price cross MA" but it does not open a trade immediately when price line touches the moving average. Nor can you set it to either open a sell trade or a buy trade depending whether you are expecting price to "bounce" off or whether you expect it to penetrate through the MA.
Do you perhaps know of an EA that opens a buy or sell (to be set by me) trade when price touches an SMA or EMA?
Thanks!
When you respond, you give the troll power. When you ignore the troll, he starves for attention and eventually dies.
I was looking for an EA that opens a buy or sell trade trade immediately that price action touches or penetrates a SMA or EMA. I found a very nice EA called "price cross MA" but it does not open a trade immediately when price line touches the moving average. Nor can you set it to either open a sell trade or a buy trade depending whether you are expecting price to "bounce" off or whether you expect it to penetrate through the MA.
Do you perhaps know of an EA that opens a buy or sell (to be set by me) trade when price touches an SMA or EMA?
Thanks!
As you can see from my postings, I am having such difficulties as well and cannot really help you. Have you looked at the 2 EAs that come with MQL4?
'Moving Average' and 'MACD Sample'
I do have one such program that utilizes OCO that does what it sounds like you want. However it is among the downloadable code that one gets with either the hard copy or eBook on MQL4 EA Programming. If you are a NuB and overwhelmed and intimidated by this massive, complex subject and don't know where to start this is an excellent. Even more experienced programmers wanting a foundation of reusable Functions() in an Include.mqh file that allows one to construct their own (basic) EAs very readily. It is well worth the very reasonable price for it and would likely be of considerable assistance to you. Good luck.
Hmmm all the soultions to the origional post can be found in the codebase and in forum posts - not looking is LAZY and probably the actions of a Troll.
I find locating (anything specific) here difficult, time consuming and laborious at best. So if I can find the information in a fraction of the time by someone that knows it sharing it with me, I will very gladly do so. My ego isn't so fragile and at stake that I am concerned about 'what I look like' and what others 'will think about me' not knowing the answer to questions that I don't by spend hours wandering around aimlessly lost rather than asking questions that I don't know the answers to that I need to know.
If you wish to contribute, then do so. If not, then don't and keep your immature, personal insults, attacks, slanderous statements that are defamation of character to yourself.
Hmmm all the soultions to the origional post can be found in the codebase and in forum posts - not looking is LAZY and probably the actions of a Troll.
Is a Thief and Troll Please do not feed the troll.
When you respond, you give the troll power. When you ignore the troll, he starves for attention and eventually dies.
it is you, whroeder, that is the troll.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Compiled commercial indicator. iCustom it OK. Paints 6 permanent indicators (+ in Data window). Sometimes indicates more than one trade on the same tick, and not only at the opening of a new bar.
EA misses duplicate trades. Likewise if I only trade at new bar. If I run on every tick, it places trades every tick infinitely.
I'm thinking that this must not be all that uncommon of a problem?
Programming techniques, algorithm, approaches &/or suggestions for this (common) EA task?
Thanks for any and all assistance (< 8)