You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
RJo:
Having said that, I have yet to see a functional ex4 with a defective mq4 from SB.
Ah, so... computers are the best at trading and therefore the human should be dispensed with.
No.... computers are the best at Automated Trading ;)
You have posted defective mql4 code . . . looks like Molanis is no better than EA Builder.
"Defective" relative to the ex4 file, as in the ex4 being more functional than the mq4. As stated in my first post, I'm not a coder. Yeesh. Thanks for your specific diagnosis. Oh yeah... you didn't have one.
"Defective" relative to the ex4 file, as in the ex4 being more functional than the mq4. As stated in my first post, I'm not a coder. Yeesh. Thanks for your specific diagnosis. Oh yeah... you didn't have one.
Why don't we start to program in assembler? We can control everything in the lowest level available (after machine code). Yes, it takes more effort to learn that, but we will surely get so small and super optimized code! This is soooooooo amazing, don't you think, people?
deVries, Molanis is not my tool and I have never made EA's using it. But I see you are not a fan of EA Builders and I can advice you to never try to work with them. Just use MQL4/MQL5, this is not forbidden. There are people to like pink color the most, and people to like blue color the most. It was always been that way and it will continue to be.
Don't change my words.... Proof us that you can code correctly an Expert Advisor with using your tool I wrote. Still I mean that...
I Never wrote Molanis is your tool. If you google for EABuilders then you will find others. Maybe you are a user of the NoProgra Builder...
and you think it is a tool that can code correctly your EA's for MetaTrader4 then proof it with that builder.
But there are people that advise to use EABuilders or promote it to use them..
If you wanna promoot any product then be sure that product is good by proving it
And still I haven't seen someone succeed in doing that....
The big disadvantage of those tools is that there gonna be people thinking it is not needed to know the basics of mq4, when a tool can make your product
But they don't know what quality they get.... from that tool. Or they don't recognize errors in programs they can get (free or not free) using the internet
Thanks for your specific diagnosis. Oh yeah... you didn't have one.
I'll give you a specific example . . .
These 2 Functions call the same function twice . . CloseAllPositions, the first for Longs, the second for Shorts . . . why would it do that ? it does that to clean up the Orders it failed to close the first time that CloseAllPositions is run, why does it fail to close positions ? because the loop used to close these positions counts up and now down . . . and you already know why that fails as you have read the thread I created on this very subject.
So rather than understanding why some positions are left open the good folks over at Molanis have bodged a fix . . . call the same function a second time to tidy up after the first.
Thank you for posting Molanis code, RJo, I'll review it later - Molanis's lots calculation is very terrible. Think molanis / EA SB users are happy user, until they learn mql, and by then they will see Molanis/ EA SB from totally different point of view.
I think we better defend our money first than defend Molanis/EA SB - or our decision to use one. ;).
Indi:
Thank you for posting the codes ....
As good as WHRoeder is in pointing out errors so quickly I'm not and it has no sense to say it again
But if you don't know how to code you can do something else you see here....
.
I did a test to see the behavior of the indicator and that gives also some kind of warning made two pictures
Testing on 1 Minute (makes the EA don't trade) starting 1 jan 2012
You see the behavior before test of the indicator in this pictore
And the behavior when the test starts
This behavior you will also see if you place in the test an EA that is not using the indicator
.
Looks like a total different behavior This Is also a warning to take a closer look to the code or the behavior of the indicator before you gonna use it
.
It looks like this code of the indicator is not made by Molanis because it begins with.....
Think the error of this indicator is that it calculates future
When " i = 0 " then " i-1 " is future.....Ichi_Cloud_EA.mql4 in no particular order
Being most concerned with #10, I investigated it first. I was in the middle of writing a giant support request to Molanis when I found this:
Slippage as used in the EA's code is an external integer variable (extern int).
"Before the execution of init() external variables will get values setup by a user in the settings toolbar and at the execution of init() external variables will have new values set by a user. Thus new values of external variables become valid from the moment of a new session (init - start - deinit) of an Expert Advisor that starts from the execution of init()." (https://book.mql4.com/variables/types).
So it appears that... while global variables are generally ignored in favor of old values at execution of init(), external variables are updated at execution of init(). Slippage remains set at 3 (or whatever I set this to) no matter how many times I change charts. I believe this is how the EA is designed to operate.
So it appears that... while global variables are generally ignored in favor of old values at execution of init(), external variables are updated at execution of init().
Slippage remains set at 3 (or whatever I set this to) no matter how many times I change charts. I believe this is how the EA is designed to operate.
WRONG Did you even bother to READ the link you posted (https://book.mql4.com/variables/types) it says "Global variables are initialized only once before stating the execution of special functions."
Global and static variable are set when the EA is LOADED not during the deinit/init cycle.
Add a print statement just after the Slippage = Slippage * 10 and run it and change charts or time frames and look in the log if you don't want to believe the documentation of us..