EA not fully listening to me
-
I've tried everything from having Booleans to check the conditions and signal the buys, re numbering the blocks, re arranging the blocks. Everything! its driving me crazy at this point
its taking trades that's not valid but its also taking the proper trades. I don't know if ive went wrong somewhere or if the codes right and it will run proper in live markets.
I have also downloaded tick data from Tick Data Suite and used that also. I don't know what to do to fix this issue
here is the share link: https://fxdreema.com/shared/GkrXLjlG
here is the most current EA build:0_1569862778327_yeet yall 3000 2.8.mq4 -
@scottpapetti Nice thread title
.. Maybe you have to shout at it 
One thing you may change is the candle IDs. You run your entry calculations once per bar (block). This candle usually just opened in the time the code is running and may not deliver reliable values.
Instead use candle ID1 where you use candle ID0 and shift all other occurances as well by 1.
For block 12 and following you might leave the ID0.The trailing stop of 5000 pips is for securiry reasons only? Or do your trade non-forex symbols?
The rest looks fine assuming that the custom indicators you use do not repaint.
-
@trader-philipps
Unfortunately my efforts to yell at it failedThe candle ID definitely helped with timing but I’m still finding trades that were taken that don’t meet the conditions.
- RSI below 50
- RSI < signal
- 5 < 13
It’s timing on entering is very good compared to before but now I’m stuck on what’s going wrong with these wrong trades.
Think I might have to start calling it names for it to listen better
Also I am still using tick data from Tick Data Suite, when i use MT4 data it is holding trades way past when a close should happen
-
@scottpapetti May you share the indicator, please? I might take a look.
-
@trader-Philipps
0_1569873531085_traders-dynamic-index.mq4I appreciate your help!
-
@scottpapetti Well, the signals I checked were all fine. All conditiones met by visual checking.
Do you have an example were it doesn't "listen" to you?
I did the ID change an also changed the Once per bar to the start of the flow.
Just for testing purposes I eleminated the AND block and lined all the conditions after each other. But results appear to be the same. Hence the AND block is not the issue.
-
@trader-philipps
Ill need to screen shot some examples and send you some when I get home
is the data from MT4 good enough to start doing live market tests?
like if everything checks out from the MT4 tester would it be fair to say it should hold up in live market data? -
@scottpapetti Well, first you need to be set with EA and settings. I don't see this, yet. Than you should do some long term back-tests over several years. If that is done you may think about forward testing on demo. And then sometimes use it on real account.
MT4 backtesting is not very reliable. I have tickdata from TDS2 which gives 90% quality, but it really depends how the EA works. With your EA I have some concerns about the different timeframes you use. M1 for exiting, M15 for most of the other stuff. Btw. what timeframe you intended it to run on? I chose M15 as most of the indicators use it.
Further I think you need to tweak the logic a bit. On flat market when EMAs are very close to each other trades get opened and closed directly after it.

Maybe you should include the opposite of your exit condition also as an entry condition?!
-
@trader-philipps
Thank you so so much for all your help, this project has been causing me a lot of grief so I’ve put it on hold for now to focus on my own Personal EA
this EA was for a friendI truly appreciate all you have done to help me, and I truly appreciate all you do for this forum and community!