Description of Midnight EA

Forums Strategies and Expert Advisors Midnight EA Description of Midnight EA

  • This topic is empty.
Viewing 15 posts - 151 through 165 (of 383 total)
  • Author
    Posts
  • #4885
    101011001
    Spectator

    v2.3 stuck on Connecting to DailyFX…

    Retrying: 10

    Tried both http://www.dailyfx.com and https://www.dailyfx.com

    #4886
    calixto
    Spectator

    @didom wrote:

    v2.3 stuck on Connecting to DailyFX…

    Retrying: 10

    Tried both http://www.dailyfx.com and https://www.dailyfx.com

    Upload screenshot from output log jurnal

    #4887
    Dominik
    Administrator

    @didom wrote:

    v2.3 stuck on Connecting to DailyFX…

    Retrying: 10

    Tried both http://www.dailyfx.com and https://www.dailyfx.com

    Where do you have VPS or dedicated server? What company? Do you have the same problem with Forex Factory? If yes, I think I can’t help, because your outgoing connection to these servers are somewhere blocked.

    P.S. as mayamak said, what is in Journal tab?

    #4888
    calixto
    Spectator

    @forexaddict413 wrote:

    One more question can we trade other pairs aside from the recommended setfiles of GBPUSD, EURCHF, USDCHF and AUDCAD?

    All pairs except GBPJPY, CHFJPY, AUDNZD

    #4889
    101011001
    Spectator

    What does the EURCHF checked (-1,-1) mean? I’m taking that as news update failed?

    #4890
    Dominik
    Administrator

    @didom wrote:

    What does the EURCHF checked (-1,-1) mean? I’m taking that as news update failed?

    It means that you don’t have connection to news server.

    #4891
    101011001
    Spectator

    Ok well that’s interesting and annoying at the same time. I’m assuming that MT4 uses .NET framework and then the native web client. I’m using windows xp as a system since I’ve got my own cluster to host off. SSD storage is still expensive so I went for XP at 5Gig instead of Windows 7 at 30+Gig. Now both dailyfx.com and forexfactory.com block IE 8 (by the looks of it) so maybe upgrading the IE on the box will change the web client libraries. I’ll try that and get back to you otherwise I’ll have to migrate MT4 to a linux based system.

    #4892
    Maksgauf
    Spectator

    Really nice results today +34 pips.

    Using the 4 .set files provided, then default settings for the other pairs. My news filter only excludes high impact trades and I didn’t trade the last two days due to speeches.

    #4893
    101011001
    Spectator

    Ok it’s been a long night. I think I worked it out. MT4 uses native wininet.dll library. You can call this directly or use it through the WebRequest function in MT4. I played about with a proxy to find out what requests were being made from MT4.

       res=WebRequest("GET",url,"User-Agent:MetaTrader 4 Terminal/4.1045 (Windows NT 6.3; x64)rn",timeout,post,result,headers);
    //--- Checking errors
    if(res==-1)
    {
    Print("Error in WebRequest. Error code =",GetLastError());

    This code basically spoofs the User-Agent to Windows 8.1 instead of XP. However the popup is being triggered on different terms. If GetLastError() (visible in the logs) comes back with 5203 then it’s the XP problem if it’s 4060 then it’s the fact you haven’t added it into MT4. Can you code that in so people don’t get confused?

    Next up the calls to DailyFX and ForexFactory should be https instead of http. The http call is redirected with a 302 anyway and you’re looking at https on the next call. So please change to https?

    The XP problem is due to the fact that the wininet.dll does not support TLS 1.2 which BOTH DailyFX and ForexFactory use and enforce. To test it on any system just run the internet explorer since it will use that same library as MT4 and browse either page.
    For reference see https://help.salesforce.com/articleView?id=Enabling-TLS-1-1-and-TLS-1-2-in-Internet-Explorer&type=1.
    If you need to test if TLS is enabled https://tls1test.salesforce.com/s/

    MT4 on Linux is emulated in Wine therefore it’s not the ideal setup. The only other option here is a reverse proxy to either of those sites using a Linux box with TLS 1.2. I noticed you scrape the data every 2minutes, does every EA do this or do they share the data? If they don’t then a reverse proxy with 1 minute cache would also tune down the amount of requests to those sites which probably have security set for multiple hits per minute. To make this work could you change the url in the code to be extern or another dropdown entry please (http://proxy.dom/ would be ideal I can redirect through hosts file)?

    I’ll turn the news off for now and test 2.3. Hopefully that clears up some people’s news issues.

    #4894
    101011001
    Spectator

    Got it working with a http://www.dailyfx.com host entry and stunnel. Think you can run it on windows as well if you are running into problems. If you change to https this will break for me and I’ll need the drop-down menu or url manual entry. Let me know if you need an stunnel configuration file.

    #4895
    Eroll Zach
    Spectator

    @mayamak wrote:

    All pairs except GBPJPY, CHFJPY, AUDNZD

    All you mean ALL, or just all 16 that were mentioned with first version?

    Also, can anyone recommend a good cent account where we can test scalping strategies? I use forex4you cent NDD but the spread during news or low volatility seems insane. For example, average 7-8, maximal 115 (based on Midnight EA info)

    #4896
    estacio
    Spectator

    Hi :-)

    I am testing version 2.3 and when it boots the EA gives connection error with http://www.dailfx.com/ or with http://theinvestbay.com/
    The error with both URLs appears even though I have them correctly.

    This way the EA is TRADIND BLOCKED (-1, -1)

    That could be happening?
    Thank you :-)

    #4897
    Finnance
    Spectator

    @mlolo wrote:

    Hi :-)

    I am testing version 2.3 and when it boots the EA gives connection error with http://www.dailfx.com/ or with http://theinvestbay.com/
    The error with both URLs appears even though I have them correctly.

    This way the EA is TRADIND BLOCKED (-1, -1)

    That could be happening?
    Thank you :-)

    The URL you typed in your post seems incorrect. Not sure if its the exact same URL that you input.

    #4898
    Dominik
    Administrator

    @didom wrote:

    Ok it’s been a long night. I think I worked it out. MT4 uses native wininet.dll library. You can call this directly or use it through the WebRequest function in MT4. I played about with a proxy to find out what requests were being made from MT4.

       res=WebRequest("GET",url,"User-Agent:MetaTrader 4 Terminal/4.1045 (Windows NT 6.3; x64)rn",timeout,post,result,headers);
    //--- Checking errors
    if(res==-1)
    {
    Print("Error in WebRequest. Error code =",GetLastError());

    This code basically spoofs the User-Agent to Windows 8.1 instead of XP. However the popup is being triggered on different terms. If GetLastError() (visible in the logs) comes back with 5203 then it’s the XP problem if it’s 4060 then it’s the fact you haven’t added it into MT4. Can you code that in so people don’t get confused?

    Next up the calls to DailyFX and ForexFactory should be https instead of http. The http call is redirected with a 302 anyway and you’re looking at https on the next call. So please change to https?

    The XP problem is due to the fact that the wininet.dll does not support TLS 1.2 which BOTH DailyFX and ForexFactory use and enforce. To test it on any system just run the internet explorer since it will use that same library as MT4 and browse either page.
    For reference see https://help.salesforce.com/articleView?id=Enabling-TLS-1-1-and-TLS-1-2-in-Internet-Explorer&type=1.
    If you need to test if TLS is enabled https://tls1test.salesforce.com/s/

    MT4 on Linux is emulated in Wine therefore it’s not the ideal setup. The only other option here is a reverse proxy to either of those sites using a Linux box with TLS 1.2. I noticed you scrape the data every 2minutes, does every EA do this or do they share the data? If they don’t then a reverse proxy with 1 minute cache would also tune down the amount of requests to those sites which probably have security set for multiple hits per minute. To make this work could you change the url in the code to be extern or another dropdown entry please (http://proxy.dom/ would be ideal I can redirect through hosts file)?

    I’ll turn the news off for now and test 2.3. Hopefully that clears up some people’s news issues.

    Hi. Thanks.

    Midnight uses WebRequest, because Metaquotes doesn’t allow to use calls to external dlls in products published on their market.

    Of course, I can override OS in WebRequest, same with user-agent if there is possibility that some server blocks connections from MetaTrader. And I’ll add two different errors descriptions, for 5203 and 4060. As you said, http calls to both services are rediected anyway to https with 302, so it’s not a problem to change it in code in new version of Midnight, it will be some miliseconds faster by the way :)

    From version 2.3 of Midnight news are checked only at first run (initialization of EA) and then once a day some time before trading. On previous version news were checked one time per hour (and on 2.1 one time per 30 min candle).

    You can write to me PM about this proxy that you would like to use, so we’ll discuss the details and I’ll add parametr to use it.

    Regards!

    P.S. Stats from Midnight users in attachment:

    #4899
    estacio
    Spectator

    @ciba wrote:

    @mlolo wrote:

    Hi :-)

    I am testing version 2.3 and when it boots the EA gives connection error with http://www.dailfx.com/ or with http://theinvestbay.com/
    The error with both URLs appears even though I have them correctly.

    This way the EA is TRADIND BLOCKED (-1, -1)

    That could be happening?
    Thank you :-)

    The URL you typed in your post seems incorrect. Not sure if its the exact same URL that you input.

    OK OK… great mistake :-)
    Thanx very much :-)

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