Reply To: Description of Midnight EA

Forums Strategies and Expert Advisors Midnight EA Description of Midnight EA Reply To: Description of Midnight EA

#4902
Dominik
Administrator

    @didom wrote:

    @Dominik wrote:

    @Dominik wrote:

    Of course, I can override OS in WebRequest, same with user-agent if there is possibility that some server blocks connections from MetaTrader.

    I was too fast with this answer :) It’s not possible to override OS or user-agent in MT4 :) I forgot that in WebRequest I can only override referrer from “direct” to some other.

    Are you sure it doesn’t work? I tried it and it checked the server logs and was able to change the User-Agent using the code above. Just to clarify when you’re using WebRequest you are actually using wininet.dll through MT4 without calling it directly. Anyway the User-Agent was just a test and isn’t really needed. I thought I was being filtered on the User Agent but this is not the case. This is purely to do with TLS incompatibility in Windows XP. From your spreadsheet anyone connecting with User-Agent Windows NT 5.1 is using Windows XP which is where these problems start to appear.

    Will post back on today’s results later tonight ;)

    Yes, I checked it in logs on Apache. It doesn’t override anything. By the way, WebRequest has 9 parameters, but it doesn’t change anything. I’ll try once more in different way, but poor chances :)

    P.S. Referrer doesn’t want to be something else than referrer :) HTTP/1.1 200 262 “User-Agent:MetaTrader 4 Terminal/4.1045 (Windows NT 6.3; x64)” “MetaTrader 4 Terminal/4.1045 (Windows NT 10.0; x64)”