Forex
Google

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-04-2006, 03:44 AM
pikachucom's Avatar
pikachucom pikachucom is offline
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, 25 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-04-2006, 04:35 AM
Nicholishen's Avatar
Nicholishen Nicholishen is offline
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!
Reply With Quote
  #3 (permalink)  
Old 04-04-2006, 04:37 AM
pikachucom's Avatar
pikachucom pikachucom is offline
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!
Reply With Quote
  #4 (permalink)  
Old 04-04-2006, 06:50 AM
Nicholishen's Avatar
Nicholishen Nicholishen is offline
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!
Reply With Quote
  #5 (permalink)  
Old 04-04-2006, 04:13 PM
pikachucom's Avatar
pikachucom pikachucom is offline
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!
Reply With Quote
  #6 (permalink)  
Old 04-04-2006, 05:55 PM
Nicholishen's Avatar
Nicholishen Nicholishen is offline
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!
Reply With Quote
  #7 (permalink)  
Old 04-04-2006, 10:34 PM
pikachucom's Avatar
pikachucom pikachucom is offline
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!
Reply With Quote
Reply


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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check this out!!! tznef Non Related Discussions 15 12-17-2007 08:16 AM
newdigital check !! Baba_master Expert Advisors - Metatrader 4 8 06-21-2007 04:23 PM
How to check for check for currency symbol tak145 Expert Advisors - Metatrader 4 1 05-12-2007 01:16 PM
Can someone please check this indicator? iboersma Metatrader 4 2 04-17-2006 02:09 PM


All times are GMT. The time now is 09:22 AM.