Forex Forum > Strategies Zone > Trading Systems > System Coding >

Help Making Simple EA work! Please

Forum

 
LinkBack Thread Tools Search this Thread Display Modes

Help Making Simple EA work! Please
  #1 (permalink)  
Old 09-18-2012, 04:26 PM
Currency Trader
 
Join Date: Aug 2012
Posts: 2
sl89xx is on a distinguished road
Hello,

Is there a kind soul out there that can help me with getting this EA working? I found this indicator (ABC.mq4) on a forum and would like to make a EA out of it, a friend of mine tried to make one but it dosent work (ABC EA.mq4). The indicator is really simple it signals buy/sell situations using arrows and i would like the EA to open a trade at the exact time a buy or sell arrow appears with TakeProfit and StopLoss parameters defineable by the user (preferably in pips)

I attach both the EA and the indicator so hopefully you guys don't need to make the EA from scratch. All help is appreciated.

ABC.mq4
ABC EA.mq4

Thanks
Quote
  #2 (permalink)  
Old 01-01-2013, 09:31 PM
Forex Warrior
 
Join Date: May 2010
Posts: 254
master4x is on a distinguished road
It looks like a simple EA. Not coded the best but it will probably work if you were to use it on a non-ECN broker. This is probably why it is not working for you.
Quote
  #3 (permalink)  
Old 01-31-2013, 11:49 PM
Forex Trader
 
Join Date: Apr 2011
Posts: 48
skaboy is on a distinguished road
Quote:
Originally Posted by sl89xx View Post
Hello,

Is there a kind soul out there that can help me with getting this EA working? I found this indicator (ABC.mq4) on a forum and would like to make a EA out of it, a friend of mine tried to make one but it dosent work (ABC EA.mq4). The indicator is really simple it signals buy/sell situations using arrows and i would like the EA to open a trade at the exact time a buy or sell arrow appears with TakeProfit and StopLoss parameters defineable by the user (preferably in pips)

I attach both the EA and the indicator so hopefully you guys don't need to make the EA from scratch. All help is appreciated.

Attachment 11806
Attachment 11807

Thanks
there is a mistake in calling the indicator! replace these lines in the EA:
Quote:
double abc0 = iCustom(Symbol(),0,"ABC",0,1); double abc1 = iCustom(Symbol(),0,"ABC",1,1); with double abc0 = iCustom(Symbol(),0,"ABC",false,0,1); double abc1 = iCustom(Symbol(),0,"ABC",false,1,1);
Note the difference?..false. The indicator has it as an input. Good luck!

Last edited by skaboy; 01-31-2013 at 11:56 PM.
Quote
  #4 (permalink)  
Old 08-29-2013, 08:59 AM
Forex Trader
 
Join Date: Aug 2013
Location: remotely. travel a lot
Posts: 18
fxman74 is on a distinguished road
this EA is badly coded, you can only have 1 order Open on your entire MT4 account. maybe that is your issue.

You will need to change this if(abc0<1000 && i==0) to if(abc0<1000 && i < MaxTrades)

and put the Maxtrades as

Extern int Maxttrades = 10;
Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do You Have Profit Making Ea? WAI WONG MetaTrader and ZeroCode 28 03-22-2011 11:16 AM
Making Pips daily and how too. and this does work and its simple streetlight Indicators 11 01-16-2011 03:04 PM
Need a help making EA trenars System Coding 1 06-20-2009 03:55 PM
Making my first post to say... FilbertMcNoggin General Trading Talk 0 02-25-2009 11:17 AM
problem with making EA forextrader1111 MetaTrader and ZeroCode 0 12-04-2008 07:18 AM