Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-25-2006, 03:14 AM
Junior Member
 
Join Date: Jul 2006
Location: Adelaide, Australia
Posts: 16
phampton is on a distinguished road
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
Attached Files
File Type: zip NewsTrackerV1_0.zip (22.2 KB, 66 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 08-25-2006, 09:27 AM
elihayun's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 396
elihayun is on a distinguished road
Quote:
Originally Posted by phampton
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
Great job. Very usefull routines. Thank you.
Eli
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trade at control points boostrade Expert Advisors - Metatrader 4 2 02-13-2007 12:28 PM
Control Points inwestorthc Setup Questions 1 10-18-2006 12:27 PM
NewsTracker to control EAs around newstime phampton Expert Advisors - Metatrader 4 0 08-25-2006 02:46 AM
Squelch Control Indicator cucurucu Suggestions for Trading Systems 4 02-09-2006 09:25 AM


All times are GMT. The time now is 10:53 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.