View Single Post
  #5 (permalink)  
Old 05-24-2007, 09:24 AM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 16,260
Blog Entries: 105
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
News indicators

This is information about News indicator and the settings.
Additional information you may find on the following threads:
- WebGet - Asynchronous Downloading v.3;
- NEW Forex Calendar.
Please post all your questions to those above mentioned threads.

1. Files.
There are 3 files:
- ForexTSD_Calendar_v1.5 (indicator);
- WebGet.mqh;
- WebGet.dll.

2. How to install the indicator.
Please note: this indicator is not working with old build of Metatrader so please check your build.

- Place ForexTSD_Calendar_v1.5 file to \indicators folder (for example: C:\Program Files\Metatrader4\experts\indicators).
- Place WebGet.mqh file to \include folder (for example: C:\Program Files\Metatrader4\experts\include).
- Place WebGet.dll file to \libraries folder (for example: C:\Program Files\MetaTrader4\experts\libraries).

And please check the following:
- confirm DLL function call should be off in the Tools menu of Metatrader.
- Allow Enable Expert Advisors and Allow live trading should be on in Tools menu of Metatrader.
- Allow DLL import and Allow external experts import should be on in Tools menu of Metatrader and in indicator's settings as well.

Compile the indicator in MetaEditor.

3. Settings.

Code:
CalendarName = "ForexTSD";
It is the name of the file which indicator is downloading from forex calendar.

Code:
CalendarID  =  4; // Calendar's ID on calendar.forex-tsd.com
It is calendar ID. Please look at previous posts for the explanation.

Code:
UseStartDate = false; 
StartDate  = D'2007.04.10';
I did not test this options. I am getting the news for the week so it's fine.

Code:
AlertMode = false;
AlertTimeGap =  1; // Time Gap between News Time and Alert Time in min
Code:
DisplayLine  = false; // Display Line Option (Visualization mode) 
DisplayText = false; // Display Text Option (Visualization mode)
If you want to disblay text or lines on the chart so swich it on.

Code:
cFilter = " Currency Filter ";
USD = true;
EUR = true;
GBP = true;
JPY =  true;
AUD  =  true;
CAD  = true;
CHF  = true;
NZD  =  true;
It is the currency filter. If you are attaching this indicator to EURUSD chart and don't want to see news events for USDJPY so switch JPY to false for example.

Code:
rFilter = " Rating Filter ";
MaxRating =  3;
MinRating = 1;
It is the rating filter. If you ant to see the news events with rating=3 only (high impact) so set MinRating to 3 and MaxRating to 3 as well.
See previous posts for more explanation about the rating.

4. How it works.

This indicator is downloading calendar from forex-tsd calendar tool as excel file to /files folder (for example: C:\Program Files\Metatrader4\experts\files).

If you use ID=4 (ID of the calendar) so it is my forex calendar.
Indicator is using this excel file to show the news events. New file is downloading automatically every week in the beginning of the week when first ticks coming.

------------------

ForexTSD_Calendar_v1.5 indicator with pivots and some comments is on this post.
Attached Files
File Type: zip ForexTSD_Calendar_v1.5.zip (47.2 KB, 1631 views)

Last edited by newdigital; 04-02-2008 at 08:52 AM.
Reply With Quote