Forex



Go Back   Forex Trading > Downloads > Expert Advisors - 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 04-04-2006, 04:44 AM
pikachucom's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 225
pikachucom is on a distinguished road
Can someone check if this EA is done correctly please !!

Hi all,

Can someone please quickly test this EA and let me know if this was done correctly and works on your MT4?

I cannot seem to get it to send me the ALERT EMAILS that it is programed to do.
All it is to do is send me an EMAIL when the Moving Averages cross (3&7 periods), and when the RSI crosses the 50% line with a period of 8.

See attachment

Thanks
BB
Attached Files
File Type: mq4 Email_RSI_MA_Alert.mq4 (2.8 KB, 32 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 04-04-2006, 05:35 AM
Nicholishen's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 531
Nicholishen is on a distinguished road
Quote:
Originally Posted by pikachucom
Hi all,

Can someone please quickly test this EA and let me know if this was done correctly and works on your MT4?

I cannot seem to get it to send me the ALERT EMAILS that it is programed to do.
All it is to do is send me an EMAIL when the Moving Averages cross (3&7 periods), and when the RSI crosses the 50% line with a period of 8.

See attachment

Thanks
BB
Are you using it on interbank servers?
__________________
"Anyone who has never made a mistake has never tried anything new." -Albert Einstein
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
  #3 (permalink)  
Old 04-04-2006, 05:37 AM
pikachucom's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 225
pikachucom is on a distinguished road
Yes I am. Interbank FX

I only want the EA to email me when these peramiters cross.

RSI (8) crosses 50% Line

Moving Average Simple Crossover
5 Period
3 Period

Using a 4 hour bar chart

thanks
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
  #4 (permalink)  
Old 04-04-2006, 07:50 AM
Nicholishen's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 531
Nicholishen is on a distinguished road
Talking

Quote:
Originally Posted by pikachucom
Yes I am. Interbank FX

I only want the EA to email me when these peramiters cross.

RSI (8) crosses 50% Line

Moving Average Simple Crossover
5 Period
3 Period

Using a 4 hour bar chart

thanks
It looks like the start function was ended prematurely, and the server address validation string needed to be changed from InterbankFX-Demo to InterbankFX-Demo Accounts. Try this:
PHP Code:
//+------------------------------------------------------------------+
//|                                           Email_Alert2_RSIMA.mq4 |
//|                                                    Eric Hamilton |
//|                                       http://www.interbankfx.com |
//+------------------------------------------------------------------+
#property copyright "Eric Hamilton"
#property link      "http://www.interbankfx.com"
#include <stdlib.mqh>

#define MAGIC 3333

//+---------------------------------------------------+
//|Indicators RSI, MA Crossover                               
//|          
//|                          
//+---------------------------------------------------+
extern int RSIPeriod=8;
extern int RSIPrice=PRICE_CLOSE;

extern int MAFastPeriod=3;
extern int MAFastShift=0;
extern int MAFastMethod=MODE_SMA;
extern int MAFastPrice=PRICE_CLOSE;
extern int MASlowPeriod=5;
extern int MASlowShift=0;
extern int MASlowMethod=MODE_SMA;
extern int MASlowPrice=PRICE_CLOSE;

bool runnable=true;
bool initialize=true;

datetime timeprev=0;

int init()
{
 return(
0);
}

int deinit()
{
 return(
0);
}

int start(){
//Runnable
   
if(runnable!=true)
      return(-
1);
  
//Init  
//   if(initialize==true){
  //    initialize=false;
  
   
if(!InterbankFXServer()){
      
runnable=false;
      return(-
1);
   }
//

 
//
//New Bar
//

   
if(timeprev==Time[0])
      return(
0);
   
timeprev=Time[0];
 
 
//
//Calculation
//
   
double
   fast01
=iMA(NULL,0,MAFastPeriod,MAFastShift,MAFastMethod,MAFastPrice,1);
   
double
   fast02
=iMA(NULL,0,MAFastPeriod,MAFastShift,MAFastMethod,MAFastPrice,2);
   
double
   slow01
=iMA(NULL,0,MASlowPeriod,MASlowShift,MASlowMethod,MASlowPrice,1);
   
double
   slow02
=iMA(NULL,0,MASlowPeriod,MASlowShift,MASlowMethod,MASlowPrice,2);

   
double 
   rsi01
=iRSI(NULL,0,RSIPeriod,RSIPrice,1);
   
double
   rsi02
=iRSI(NULL,0,RSIPeriod,RSIPrice,2);

//Long
   
if(fast01>slow01&&fast02<slow02){
      
SendMail("MA Cross Long","MAs crossed to go LONG "+TimeToStr(Time[0],TIME_DATE)+" "+TimeToStr(Time[0],TIME_MINUTES));
   }
   if(
rsi01>50&&rsi02<50){       
      
SendMail("RSI Cross Long","RSI crossed 50% to go LONG "+TimeToStr(Time[0],TIME_DATE)+" "+TimeToStr(Time[0],TIME_MINUTES));
   }
//Shrt
   
if(fast01<slow01&&fast02>slow02){
      
SendMail("MA Cross Shrt","MAs crossed to go SHORT "+TimeToStr(Time[0],TIME_DATE)+" "+TimeToStr(Time[0],TIME_MINUTES));
   }
   if(
rsi01<50&&rsi02>50){
      
SendMail("RSI Cross Shrt","RSI crossed 50% to go SHORT "+TimeToStr(Time[0],TIME_DATE)+" "+TimeToStr(Time[0],TIME_MINUTES));      
   } 


bool InterbankFXServer() {
   
Comment(ServerAddress());
   if(
ServerAddress()=="InterbankFX-Server"||ServerAddress()=="InterbankFX-Demo Accounts"||ServerAddress()=="66.114.105.89"){
     
// Comment("Server Matches");
      
return(true);
   }else{
      return(
false);
   }
}
//bool InterBanFXServer() 
__________________
"Anyone who has never made a mistake has never tried anything new." -Albert Einstein
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
  #5 (permalink)  
Old 04-04-2006, 05:13 PM
pikachucom's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 225
pikachucom is on a distinguished road
Thank you very much!

I will test it out asap and let you know if it worked. Funny thing is I worked with this with Steven there at InterbankFX! I guess his s dont work every time.

thanks
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
  #6 (permalink)  
Old 04-04-2006, 06:55 PM
Nicholishen's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 531
Nicholishen is on a distinguished road
Quote:
Originally Posted by pikachucom
Thank you very much!

I will test it out asap and let you know if it worked. Funny thing is I worked with this with Steven there at InterbankFX! I guess his s dont work every time.

thanks
Do you work for IBFX or did they just code this for you?
__________________
"Anyone who has never made a mistake has never tried anything new." -Albert Einstein
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
  #7 (permalink)  
Old 04-04-2006, 11:34 PM
pikachucom's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 225
pikachucom is on a distinguished road
I went into there Webinar they have tues through thurs.

And Steven is the moderator for the EA ones.

I dont work for them no....
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
Check this out!!! tznef Non Related Discussions 15 12-17-2007 09:16 AM
How to check for check for currency symbol tak145 Expert Advisors - Metatrader 4 1 05-12-2007 02:16 PM
Can someone please check this indicator? iboersma Metatrader 4 2 04-17-2006 03:09 PM


All times are GMT. The time now is 12:55 AM.



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