Page 6 of 41 FirstFirst ... 4 5 6 7 8 16 ... LastLast
Results 51 to 60 of 404
Like Tree30Likes

NewsTrader EA

This is a discussion on NewsTrader EA within the Trading tools forums, part of the Trading Forum category; Originally Posted by motley Hi Igor, I'm still trying to modify the ea that I downloaded from this topic because ...

      
   
  1. #51
    igorad
    Guest
    Quote Originally Posted by motley View Post
    Hi Igor, I'm still trying to modify the ea that I downloaded from this topic because I like it a lot and I like the possibility to make a backtest. Would you help me modify it? I need it to trade after the bar where the news has been released is closed so that it can put a buy stop and a sell stop order over the top and under the minimum of the closed bar.
    I can't find a way to change the folllowing code to tell the ea to consider the last news release time.
    Code:
    datetime TimeToOpen()
    {
       int i;
       double procTime;
       datetime result;
          
       if(ECN_Mode) procTime = OrderDuration; else procTime = ProcessTime;
       
       for (i=0;i<=NewsNum;i++)
       { 
       datetime oTime = (datetime)(dt[i] - TimeGap*60);
       
          if(TimeCurrent() >= oTime && TimeCurrent() <= oTime + procTime*60 && oTime >= pEventTime)
          {
          result = oTime; 
          break;
          }
       }
          
       return(result);
    }
    //-----
    bool IsNewEvent()
    {
       bool result = false;
            
       for (int i=0; i < NewsNum; i++)
       { 
       datetime oTime = (datetime)(dt[i] - TimeGap*60);
       
          if(TimeCurrent()>= oTime && oTime > pEventTime)
          {
          result     = true; 
          pEventTime = oTime;
          break;
          }
       }
       return(result);
    }
    Thank you for this great EA
    Hi motley,

    Please check out the updated NewsTrader EA according to your needs.

    Regards,
    Igor

  2. #52
    igorad
    Guest
    Important: Please download the fixed versions v5.95 600+ because of changing the DailyFX Calendar html format.

  3. #53
    Junior Member
    Join Date
    May 2015
    Posts
    1
    Thanks good job on this EA, but the problem I run with Live account Always said on v5.95 "out of range" and does not load anything, but the other side v5.9 worked on demo but on live static worked but does not read any news ( running with same broker ) I tried both with VPS or just regular connection PC. Any idea whats going on or just running only for demo.

    THX

  4. #54
    igorad
    Guest
    Quote Originally Posted by stevanus View Post
    Thanks good job on this EA, but the problem I run with Live account Always said on v5.95 "out of range" and does not load anything, but the other side v5.9 worked on demo but on live static worked but does not read any news ( running with same broker ) I tried both with VPS or just regular connection PC. Any idea whats going on or just running only for demo.

    THX
    Hi stevanus,

    I suppose it happens because the EA does not see the calendar files. To check the calendar please set PrintInLog=true and you should see the news events in the Experts tab. If something is wrong then you will see nothing and/or there will be some error messages(eg."array out of range"). If it happens then please check out files in the calendar directory (eg. DailyFX News or ForexFactoryNews).

    Also please upload your settings(.set file) it should help us solve your problem.

    Regards,
    Igor

  5. #55
    Administrator newdigital's Avatar
    Join Date
    Feb 2013
    Posts
    10,477
    Blog Entries
    2957
    Follow newdigital On Twitter Add newdigital on Facebook Add newdigital on Google+ Add newdigital on MySpace
    Add newdigital on Linkedin
    I traded USD - GDP yesterday on Friday and some pairs were profitable

    NewsTrader EA-1_1.png


    NewsTrader EA-1_2.png


    NewsTrader EA-1_3.png
    Premium Trading Forum: subscription, public discussion and latest news
    Trading Forum wiki || MQL5 channel for the forum
    Trading blogs || My blog

  6. #56
    Administrator newdigital's Avatar
    Join Date
    Feb 2013
    Posts
    10,477
    Blog Entries
    2957
    Follow newdigital On Twitter Add newdigital on Facebook Add newdigital on Google+ Add newdigital on MySpace
    Add newdigital on Linkedin
    for example - USDCAD (statement is attached):
    • 88 pips
    • 71.12 dollars
    Attached Files Attached Files
    Premium Trading Forum: subscription, public discussion and latest news
    Trading Forum wiki || MQL5 channel for the forum
    Trading blogs || My blog

  7. #57
    Administrator newdigital's Avatar
    Join Date
    Feb 2013
    Posts
    10,477
    Blog Entries
    2957
    Follow newdigital On Twitter Add newdigital on Facebook Add newdigital on Google+ Add newdigital on MySpace
    Add newdigital on Linkedin
    for USDCHF:
    • 17 pips
    • 18.98 dollars

    statement is attached
    Attached Files Attached Files
    Premium Trading Forum: subscription, public discussion and latest news
    Trading Forum wiki || MQL5 channel for the forum
    Trading blogs || My blog

  8. #58
    Junior Member
    Join Date
    May 2015
    Posts
    13
    newdigital, could you please explain in detail how to use this ea? Thank you in advance...

  9. #59
    Administrator newdigital's Avatar
    Join Date
    Feb 2013
    Posts
    10,477
    Blog Entries
    2957
    Follow newdigital On Twitter Add newdigital on Facebook Add newdigital on Google+ Add newdigital on MySpace
    Add newdigital on Linkedin
    Hi bazze,

    This is NewsTrader EA, trading news events (price of the pairs during news events):
    - EA is loading dailyfx calendar or calendar from forex-factory forum directly to MT4;
    - placing news events on the charts (and updating it - trading acccording to the settings.

    I used 5.92 version to trade NFP once in a month with this settings/template (stop loss 100; tp 100; trailing stop 15).

    Igorad is creating new versions because dailyfx website and ff forum are changed the data format for their calendars all the time so old versions stopped working - and Igorad creates new version which should work.

    For now - we are having 5.95 versions (look at first post of this thread to download and to install). This 5.95 version is using dailyfx calendar or ff forum calendar. EA is working when the market open (when the price is moved in MT4 by ticks) - means: EA does not work during the weekends.

    I had the difficulties with this latest 5.95 version yesterday before NFP so I asked Igorad to create two more versions (2 simplified versions):
    - for dailyfx calendar with my pre-defined settings;
    - for ff calendar with my pre-defined settings.
    Once he will create it so I will continuing to trade with this EA (I will explain more in details).
    Premium Trading Forum: subscription, public discussion and latest news
    Trading Forum wiki || MQL5 channel for the forum
    Trading blogs || My blog

  10. #60
    Junior Member
    Join Date
    May 2015
    Posts
    13
    Thanks.............But, I wonder: Shall we change something in the settings? Sorry, but I don't understand what to do with the history files? I have created a folder with this files who I have put in the "tester-files folder", but I only get error messages? Something about "array"...

Page 6 of 41 FirstFirst ... 4 5 6 7 8 16 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •