Description of Midnight EA

Forums Strategies and Expert Advisors Midnight EA Description of Midnight EA

  • This topic is empty.
Viewing 15 posts - 166 through 180 (of 383 total)
  • Author
    Posts
  • #4900
    Dominik
    Administrator

      @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.

      #4901
      101011001
      Spectator

        @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 ;)

        #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)”

          #4903
          101011001
          Spectator

            I think I know what’s happening the function WebRequest can take multiple calls. One is with 7 parameters and another with 9 parameters. You’re using the 9 parameters one with referrer. The one used in the example is 7 parameters which functions slightly differently. Referrer is replaced with headers in the 7 parameter version which allows you to change the User-Agent. ;)

            #4904
            Dominik
            Administrator

              @didom wrote:

              I think I know what’s happening the function WebRequest can take multiple calls. One is with 7 parameters and another with 9 parameters. You’re using the 9 parameters one with referrer. The one used in the example is 7 parameters which functions slightly differently. Referrer is replaced with headers in the 7 parameter version which allows you to change the User-Agent. ;)

              I’ll check it later (just out of curiosity :) ). Here you have version that will work with http and https for news from DailyFX and FF and also for time server. Whatever you put in allowed URLs (recommended is https) it will work for you.

              I created proxy on one of my Linux VPS and I added 2 parameters to connect to DailyFX and FF through this server. Use it only if necessary – if you can’t connect directly to news server. To use proxy you should add http://155.133.44.106 to allowed URLs.

              Regards!

              #4905
              101011001
              Spectator

                Awesome works a treat I’ll leave it testing for tonight. Or no I won’t it’s the weekend :P

                #4906
                mikegrand007
                Spectator

                  I am using the VPS server inside MT4 on MQL5 as they have great pings to exchange and only USD10.00 per month. The problem is since the news filter was added they don’t seem to trade. I have added the allow URLs on my local MT4 and synced everything bit I can’t see if they have been added to the MQL5 VPS? Using the MQL5 VPS is so quick and easy.

                  How do you guys update to the new versions? I have been removing the expert from all the charts then reapplying the new version to all charts. Is there a quicker way?

                  Can’t wait for the feature of changing the time of Midnight as it might to be nice to do 30 minutes after midnight to avoid rollovers.

                  #4907
                  orangeman
                  Spectator

                    @nuganics wrote:

                    I am using the VPS server inside MT4 on MQL5 as they have great pings to exchange and only USD10.00 per month. The problem is since the news filter was added they don’t seem to trade. I have added the allow URLs on my local MT4 and synced everything bit I can’t see if they have been added to the MQL5 VPS? Using the MQL5 VPS is so quick and easy.

                    How do you guys update to the new versions? I have been removing the expert from all the charts then reapplying the new version to all charts. Is there a quicker way?

                    Can’t wait for the feature of changing the time of Midnight as it might to be nice to do 30 minutes after midnight to avoid rollovers.

                    Just rename new file to match old one. Replace and restart terminal.

                    #4908
                    mikegrand007
                    Spectator

                      @nesebar wrote:

                      @nuganics wrote:

                      I am using the VPS server inside MT4 on MQL5 as they have great pings to exchange and only USD10.00 per month. The problem is since the news filter was added they don’t seem to trade. I have added the allow URLs on my local MT4 and synced everything bit I can’t see if they have been added to the MQL5 VPS? Using the MQL5 VPS is so quick and easy.

                      How do you guys update to the new versions? I have been removing the expert from all the charts then reapplying the new version to all charts. Is there a quicker way?

                      Can’t wait for the feature of changing the time of Midnight as it might to be nice to do 30 minutes after midnight to avoid rollovers.

                      Just rename new file to match old one. Replace and restart terminal.

                      Thanks nesebar

                      #4909
                      AlexToDJ
                      Spectator

                        Hi everyone,

                        I bought the Midnight EA on MQL5 and have registered here in order to get updates. I have downloaded the latest version (2.3b) but I can only find 4 .set files ( EURCHF, USDCHF, GBPUSD, AUDCAD). But according to some posts you are trading up to 16 pairs just now – so am I missing some other .set files not published here??

                        Many thanks,
                        David

                        #4910
                        estacio
                        Spectator

                          Is correct in WebRequest:
                          https://www.forexfactory.com/
                          https://time.is/
                          https://theinvestbay.com/
                          https://www.dailyfx.com/

                          Note: All URLs are with https

                          Is al OK?

                          #4911
                          calixto
                          Spectator

                            @nuganics wrote:

                            avoid rollovers.

                            Nice idea for upgrade EA

                            #4912
                            calixto
                            Spectator

                              @mlolo wrote:

                              Is correct in WebRequest:
                              https://www.forexfactory.com/
                              https://time.is/
                              https://theinvestbay.com/
                              https://www.dailyfx.com/

                              Note: All URLs are with https

                              Is al OK?

                              As I know everything should be http not https.

                              Current WebRequests shold be like below:
                              http://time.is/
                              http://www.dailyfx.com/

                              Other below are not used anymore http://theinvestbay.com/
                              http://www.forexfactory.com/

                              Dominik please confirm that is it proper setup.

                              #4913
                              Dominik
                              Administrator

                                Hi!

                                For both news servers and time server you can use both http and https in newest version, because I added both (http and https) to algorithms checking news and time. If you use http their sites redirect anyway to https, so it doesn’t change too much.

                                For “theinvestbay.com” you don’t need for now any URL, but http://theinvestbay.com is and will be always correct. If there will be any update checking anything on theinvestbay in future you should have http.

                                To last version I added my server for proxy (indirect) connection with news servers. So if your IP is blocked on FF or DailyFX server, but you want to use their news you can use connection through proxy and you should add to allowed URLs address: http://155.133.44.106 and that’s all.

                                Regards!

                                P.S. DaveSarge, all the remaining pairs are set to default parameters. I don’t recommend trading CHFJPY, GBPJPY and AUDNZD for now.

                                #4914
                                AlexToDJ
                                Spectator

                                  OK, perfect. Also, does the Automatic Select Sympol work for pairs with a sufix now? MY broker puts a dot at the end of the pair name e. USDCHF.

                                Viewing 15 posts - 166 through 180 (of 383 total)
                                • The topic ‘Description of Midnight EA’ is closed to new replies.