Editing source code
-
Can someone edit my sources code outside of fxdreema and when it done. Can I import the ea back to fxdreema ?
-
You would lose the changes when importing back.
-
You can do what you want with the source code, but if you want to change the behavior of the EA from the source code, I think this is a waste of time.
You can import the EA back, but not because of its source code. The project data (blocks, connections, patameters and everything) is appended at the bottom in a comment section - this is what is the data that is imported. The MQL code does nothing when importing.
-
@roar wow. I was about to pay some one to fix some errors so I can upload it to mql5. But there is no point to that . If the changes will be loss
-
@ykmark Ah, you mean EA that is from somewhere else. Such EA does not contain that specific project data, written by fxDreema. Only EAs generated by fxDreema can then be imported back, and only because of that specific comment section at the bottom.
-
@fxDreema I worked on my EA for a long time but it giving me a errors in the journal tab : mismatched data errors. But it works fine at the same time. Can you check it for me?
-
@ykmark what kind of errors do you have? It may be possible to do everything in fxdreema
Edit: Data mismatch is about your history data, EA is fine
-
TesterGenerator mismatched data errors
-
@ykmark said in Editing source code:
TesterGenerator mismatched data errors
These errors have nothing to do with the EA. Try another EA, you will see them again. These errors are because of missing history data in some timeframes.
https://www.earnforex.com/guides/unmatched-data-error-in-mt4-strategy-tester/
-
@fxDreema no. No one knew how to fix it that why I went to look for help outside
-
@fxDreema what should I do then ?
-
Or, if you are talking about errors from the compiler, it sounds to me that these are not errors, but warnings. If the EA can be compiled and you can get the .ex4/.ex5 file, just check whether the EA is working correctly. Otherwise if they are real errors and you can't get .ex4/.ex5 file... well, they need to be fixed by someone who understands MQL
-
They are not a real errors. It can run on live account. But I can’t pass the test on mql5 so I can upload my EA into there platform.
-
Mql5 upload test is telling you about data mismatch error?
-
Yes . Also the funny thing is it will also say trade didn’t open on different pairs with different time frame. But my ea it working on everything too
-
Validation complete with errors
-
Well it sounds like mql5 company has poor history data and they dont accept your EA because of their own problems

I think this is a rare case when "try again later" is appropriate
-
They say . Get rid of the errors from your journal tab , so it can pass our test.
My ea already makes money on the real account . It crazy -
So these warnings (if they are warnings) are probably because of variable types that doesn't match perfectly. If you see here (https://www.mql5.com/en/docs/basis/types/integer/integertypes), different numeric types have different ranges of possible values. And sometimes when you try to assign value from one type to another, the range of possible values can be decreased, which is not a problem if the EA does not intend to use the whole range of values, but it's not a good practice to do that. That's why they are warnings, the compiler assumes that the programmer doesn't use the whole range of values and knows what he is doing, and just informs him that maybe there could be a problem.
-
@ykmark have you checked that the "data mismatch" is the only type of error?