| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
NewsTracker to control EAs around newstime
I've developed an include file that can be added to any EA that works on the shorter timeframes (eg 1M, 5M and 15M) to give them the opportunity to be out of the market during news events.
It has a detailed explanation of how it works included in the file, including the following suggestion on avoiding news: #include <NewsTrackerV1_0.mqh> string strNews; datetime NewsTime; // avoid buying if within 5 minutes of news event if (MyBuySignal && !NewsEvent(5,strNews,NewsTime)) DoMyBuying(); // close all positions if within 5 minutes of news event if (OpenOrders() && NewsEvent(5,strNews,NewsTime)) CloseOrDeleteAllOrders(); The NewsLoggerV1_0 EA that uses NewsTracker is also attached as another example. It creates records of news events and stores them in experts\files Copy NewsTrackerV1_0.mqh to experts\include and don't compile Copy NewsLoggerV1_0 files to experts Copy NewsItems.csv to experts\files and update with news events as they become known |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trade at control points | boostrade | Expert Advisors - Metatrader 4 | 2 | 02-13-2007 11:28 AM |
| Control Points | inwestorthc | Setup Questions | 1 | 10-18-2006 11:27 AM |
| NewsTracker to control EAs around newstime | phampton | Metatrader 4 | 1 | 08-25-2006 08:27 AM |
| Squelch Control Indicator | cucurucu | Suggestions for Trading Systems | 4 | 02-09-2006 08:25 AM |