View Single Post
  #8 (permalink)  
Old 05-24-2007, 09:28 AM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 16,320
Blog Entries: 106
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
how to create/update your calendar atomatically directly from your Metatrader

1. View the calendars.
2. Registration.
3. Once you registered you may start to create your calendar.
It is the same with post #2 of this thread.

5. Files.
There are 4 files:
- ForexTSD_Send indicator;
- WebGet.mqh;
- WebGet.dll;
- excel file (Test14.csv in our case).

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

- Place ForexTSD_Send indicator 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).
- Place excel file to \files folder (for example: C:\Program Files\Metatrader4\experts\files).

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.

7. Settings.

Code:
User = newdigital;
It is username you selected during the registration in calendar tool: see post #2 of this thread about registration.
Change newdigital to your selected username.

Code:
Password = ;
It is password you selected during the registration in calendar tool: see post #2 of this thread about registration.

Code:
CalendarID = 15;
It is your calendar ID. Please look at post #3 of this thread for the explanation.

Code:
SendPeriod = 5;
Indicator will send the signals with periodicity of SendPeriod (5 min by default). Please note that every signals written in your excel file will be repeated every SendPeriod minutes. For example, of you wrote buy for USDCHF so it will be many buy orders. So it is the better to attach the indicator to the chart, wait untill all the signals will be sent and deattach it. Or edit your text file every time with the same periodicity (SendPeriod). Or just use more high SendPeriod. Just my experiance.

Code:
Public = 1;
It is public (1) or private (0) signals. 1 is true and 0 is false in mql4 programming language. So if you selected Public to be 1 so it is the same as Public=true (means - public signal). About public and private signals please read post #4 of this thread.

Code:
FileName =Test14.csv;
It is the name of your excel file. It may be any name but make sure that name you wrote in the settings here are fully correspondent with the real name of your excel file which you placed to /files folder.

8. How it works.
This indicator is sending the forex signals from excel file to forex-tsd calendar tool. When the signal was sent so you will see the message about it (see image attached).

9. Creating signal calendar using ForexTSD_Send indicator.

First of all you need to read this one from post #3 of this thread: 4. Creating your calendar by signals.
Once you are comfortable with creating the signal calendar manually so you may automate this process.

To send a signals you need to have it, right? In this case you need to edite excel file (Test14 attached in our case).

Code:
04.06.2007;08:10:00;USDCHF;Buy;1;1.2300;0;0;1;D1 timeframe
It is date and time.

Code:
04.06.2007;08:10:00;USDCHF;Buy;1;1.2300;0;0;1;D1 timeframe
It is pair.

Code:
04.06.2007;08:10:00;USDCHF;Buy;1;1.2300;0;0;1;D1 timeframe
It may be Buy, or Sell, or BuyStop, or SellStop, or BuyLimit, or SellLimit.

Code:
04.06.2007;08:10:00;USDCHF;Buy;1;1.2300;0;0;1;D1 timeframe
It is the impact. Please note that for this signal sender indicator we have the following:
high impact =0;
medium impact=1;
low impact=3.
In Newstrader EA, News indicator and in SegnalTrader you have exact opposite: high impact=3, medium impact=2 and low impact=1. Please don't confused with it.

Code:
04.06.2007;08:10:00;USDCHF;Buy;1;1.2300;0;0;1;D1 timeframe
It is price to open the order. If you select to use the settings of the SignalTrader EA (UseExtSets=0) so the price does not matter in this case as EA will open the order according to the time.

Code:
04.06.2007;08:10:00;USDCHF;Buy;1;1.2300;0;0;1;D1 timeframe
It is stop loss value (price). If you select to use the settings of the SignalTrader EA (UseExtSets=0) so this external stop loss value does not matter in this case as EA will open the order according stop loss in the settings.

Code:
04.06.2007;08:10:00;USDCHF;Buy;1;1.2300;0;0;1;D1 timeframe
Take profit value (price). If you select to use the settings of the SignalTrader EA (UseExtSets=0) so this external take profit value does not matter in this case as EA will open the order according take profit value in the settings.

Code:
04.06.2007;08:10:00;USDCHF;Buy;1;1.2300;0;0;1;D1 timeframe
It is Comments in the calendar (go to your calendar to see it). It does not work now so keep it by default as 1.

Code:
04.06.2007;08:10:00;USDCHF;Buy;1;1.2300;0;0;1;D1 timeframe
It is description (go to your calendar to see view description).

If you have more signals to write so use excel file attached as an example.
Then go to your calendar and you may see your signal posted.

We may automate creation of forex calendar as well using this indicator.
Attached Files
File Type: zip SignalSender.zip (99.3 KB, 601 views)

Last edited by newdigital; 07-06-2007 at 06:15 PM.
Reply With Quote