- Search Crypto Craft
- pah replied Jan 25, 2025
I almost missed your solution, did you edit your post and add that later? So one MT4 runs the EA's and Trade manager which runs until your stop time then the second MT4 can take over and close out any trades left over by the first one? That sounds ...
EA that closes/disables trading
- pah replied Jan 23, 2025
I understand. I would have to disagree on the best option being to switch profiles. It is unreliable so it's risky. I have an idea for something more robust. Changing templates is reliable and safe and could be applied as follows (this would need a ...
EA that closes/disables trading
- pah replied Jan 23, 2025
If Universal Manager is closing everything at 23:37, what was left over that needed closing by the CloseOnTimes (at 23:40) but wasn't? I'm confused by your explanations, sorry about that but I'm not fully understanding what's happening.
EA that closes/disables trading
- pah replied Jan 23, 2025
Do you mean 4 different sessions of MT4 connecting to 4 different MT4 servers. If so, that should work fine. You say that one of them left 10 trades open but when you manually closed them the button was red. If the EA disabled the button (which ...
EA that closes/disables trading
- pah replied Jan 23, 2025
The profile switching is achieved by sending mock keystroke combinations and can be fragile depending on whether there is any other keyboard use or connectivity issues, OS status, etc. The one I sent you relies on sending a targeted windows message ...
EA that closes/disables trading
- pah replied Jan 22, 2025
A more reliable solution would be if you are able to specify which trades must be left open (magic number, order type, in profit/loss, etc) and the criteria could be added to the CloseOnTime EA. I had a look at the profile switch and I can see why ...
EA that closes/disables trading
- pah replied Jan 20, 2025
Well that's odd because I adapted it from the file you uploaded called CloseOnNewsEAv2.1.mq4. It will also require the file OrderReliable.mqh to be saved in your MQL Include folder which deals with closing of trades. I assumed you had this because ...
EA that closes/disables trading
- pah replied Jan 19, 2025
Just search the forum or google "Trade Manager EA". There are dozens of them around. Regards.
I will code your EAs and Indicators for no charge
- pah replied Jan 18, 2025
It's not really clear what you're asking or explaining. If your trade is up at 120 with SL at 110 you do have +10 locked in if your open price was 100. You should probably put your code (EA?) in the tester or on demo to check the values are printing ...
negative risk and net balance
- pah replied Jan 18, 2025
You can try this. I haven't checked anything regarding closing trades, you should test it on a demo a/c to satisfy yourself it works as expected. Regards.
EA that closes/disables trading
- pah replied Jan 18, 2025
Well, I'm surprised. Must be that AutoTrading button only prohibits interaction with the server but EA can still run locally. I might strip out the useful bits and make the EA later on just out of curiosity. I'll post back later. Regards.
EA that closes/disables trading
- pah replied Jan 18, 2025
Courtesy of ChatGPT with a few suggestions. Might be an interesting starting point. Regards.
I'll code your Expert advisor for free
- pah replied Jan 17, 2025
Just a thought if you're still having issues with this. Have you tried creating objects in a different order? Optionally, if not all code is available to you, adding indis or EA in a different order. All things being equal with Z orders (0 in this ...
I will code your EAs and Indicators for no charge
- pah replied Jan 17, 2025
I think the problem you will find in trying to do it that way is that once AutoTrading is disabled, such an EA responsible for turning it back on will itself be disabled. I think a more robust solution would be to incorporate the timings & closing ...
EA that closes/disables trading
- pah replied Jan 16, 2025
It is decompiled (stolen) code, you won't get it fixed by any reputable coder. Regards.
I will code your EAs and Indicators for no charge
- pah replied Jan 16, 2025
That would just be the 10 SMA on Median Price, ( High + Low ) / 2 Regards
I will code your EAs and Indicators for no charge
- pah replied Dec 30, 2024
If you save it in your indicators folder and rename it to MTF_Candle_MT5.mq4 it will compile and seems to run just fine here on MT4... Regards, Paul.
Need help with converted code
- pah replied Dec 30, 2024
The following line of code is a problem in the ManageTrade() section as it won't trigger the setting of BE until it reaches TP anyway (RR 1:3) but it does work if you check for profit > risk without multiplying by RRR. //if (profit >= ...
Move Stop Loss To Break Even EA
- pah replied Dec 29, 2024
You don't appear to be adding the magic number when placing the order. The management routine won't find anything... Are you sure the order isn't just being closed when it hits your SL or TP.
Move Stop Loss To Break Even EA