usd_linux

Trader
May 27, 2022
21
2
9
59
if this is the same then i have no idea what so ever cos its all good for me. i run mt5 under wine emulation
Post automatically merged:

no idea try
 

Trendy

Trader
Oct 3, 2019
35
9
19
74
if this is the same then i have no idea what so ever cos its all good for me. i run mt5 under wine emulation
Post automatically merged:

no idea try
No it will not work on MT4
Never mind I really appreciate your help.
I will try different broker later.
Maybe that will resolve the issue as I do not have any other version for MT4
Regards,
 

Enivid

Administrator
Staff member
Nov 30, 2008
18,607
1,366
144
Odesa
www.earnforex.com
Hello,

I have tried the suggested alternative method but same result.
The trades do not get closed at any stage.

I have attached a screen grab from the experts tab.
It might help in resolving the issue.

If it is not apparent to you then I will try an alternative broker.

Best Regards,
Do you have logging turned off (Log file name set to empty)?
If so, try entering some file name there (like "log.txt") and try again. There is a bug that might be preventing normal position closing when log file is disabled.
 

usd_linux

Trader
May 27, 2022
21
2
9
59
little tip for you. you might wanna grab auto trading scheduler. turn off algorithmic trading during 10.pm to midnight. if you have trouble with the spread increase etc. nice tool to have. i run a bot all day all night and i would get problems running it during these hours. you can dload it here. EA section. i like to grab pips during Asian session and i dont stay up that late normally. you can disable algo 9:45-00:15 set for every day brilliant ;)
 

Trendy

Trader
Oct 3, 2019
35
9
19
74
Do you have logging turned off (Log file name set to empty)?
If so, try entering some file name there (like "log.txt") and try again. There is a bug that might be preventing normal position closing when log file is disabled.
Yesssssss

Fixed.

It was as suggested all down to the log text file not applied.
Now works a treat.

Big thanks to Enivid you were spot on !

Also thanks to you guys for help and pointers given.
Regards,
 
  • 👍
Reactions: Enivid

Trendy

Trader
Oct 3, 2019
35
9
19
74
Hello Enivid,

Thanks to your previous support.
AP is now working very well
I have one outstanding issue regarding an alert for the "log.txt" file.

An error appears on screen that says the log file cannot be accessed / opened.
On checking the log file it is opened and the text is written to the file.
But despite this the error continues to be shown on the chart.

Have you any idea why I get this error display.?
I have tried different names for the log file and the different files get created in MT4 and as said above the files do get data written to them .

Regards,
 

Trendy

Trader
Oct 3, 2019
35
9
19
74
Are you using multiple instances of AP (on different charts) but with the same log file?
If not, then try changing the log file name to a single word, e.g. "logfile", and see if it helps.
Thanks for your suggestion.
I have renamed to "logfile" as suggested.

I am only using 1 x instance of the AD
But the issue still remains.

Have tried several brokers and the same fault is still there.

Files attached
 

Attachments

  • Log File capture_1.JPG
    Log File capture_1.JPG
    85.2 KB · Views: 2

Enivid

Administrator
Staff member
Nov 30, 2008
18,607
1,366
144
Odesa
www.earnforex.com
Thanks for your suggestion.
I have renamed to "logfile" as suggested.

I am only using 1 x instance of the AD
But the issue still remains.

Have tried several brokers and the same fault is still there.

Files attached
Are you on Windows or some other OS?

In the worst case, you can find the following line in the AccountProtector.mqh file:
MQL4:
if (LogFile < 1) Alert("Cannot open file for logging: ", filename, ".");
Comment it out or remove it completely and then recompile the AccountProtector.mq4 file (not the extension .mq4, not .mqh - edit .mqh, compile .mq4). This should help with the Alert, but it shouldn't be popping up in any case unless there is a real error opening/creating the file .
 

Trendy

Trader
Oct 3, 2019
35
9
19
74
Are you on Windows or some other OS?

In the worst case, you can find the following line in the AccountProtector.mqh file:
MQL4:
if (LogFile < 1) Alert("Cannot open file for logging: ", filename, ".");
Comment it out or remove it completely and then recompile the AccountProtector.mq4 file (not the extension .mq4, not .mqh - edit .mqh, compile .mq4). This should help with the Alert, but it shouldn't be popping up in any case unless there is a real error opening/creating the file .
I will give it a go.
Thanks
 

Trendy

Trader
Oct 3, 2019
35
9
19
74
I am using windows 7
I cannot find the line that you refer to in the .mqh file
Editor does not find it on search.
I take it you are referring to the file that I have just attached.
Regards,
 

Attachments

  • Account Protector.mq4
    16.2 KB · Views: 3

Trendy

Trader
Oct 3, 2019
35
9
19
74
I have now located the MQH file.
But I am unable to go any further as I cannot edit it.

I do not have the knowledge.
So I am appealing for help regarding this matter.

If someone could edit this for me and then pass on the correct file (with this line edited out)
I would really appreciate the effort.

I love the AP and it works well but I am stuck withe current log file issue
I am not a programmer.

Regards,
 

Enivid

Administrator
Staff member
Nov 30, 2008
18,607
1,366
144
Odesa
www.earnforex.com
I have now located the MQH file.
But I am unable to go any further as I cannot edit it.

I do not have the knowledge.
So I am appealing for help regarding this matter.

If someone could edit this for me and then pass on the correct file (with this line edited out)
I would really appreciate the effort.

I love the AP and it works well but I am stuck withe current log file issue
I am not a programmer.

Regards,
Try replacing with the attached file.
 

Attachments

  • Account Protector.mqh
    238.9 KB · Views: 3