• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 10:15pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 10:15pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

Can MT4/MT5 Brokers steal Indi/EAs? 33 replies

Help: Looking for MT5 version of MT4 ADR 2 replies

MT5 Code need: How to find marketwatch symbols automatically? 6 replies

Help me to re-Code multiple EAs into One 0 replies

Need Help for Converting slide show indicator for MT5 To MT4 1 reply

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 2
Attachments: Need help to code EAs for MT4 and MT5
Exit Attachments

Need help to code EAs for MT4 and MT5

  • Post #1
  • Quote
  • First Post: Dec 20, 2014 11:01am Dec 20, 2014 11:01am
  •  Pupsik
  • | Joined Jun 2014 | Status: Member | 70 Posts
Who wants to code this?

Hey guys! 3 questions to coders:

1. Is it possible to code the next kind of EA
and how much would you want to get for this job:
a. It has to be for mt5 and/or mt4.
b. It has to place market orders (not pending orders)
when a certain time's candle made a certain move.
c. It has to place SL, TP, Break even and trailing
(virtual and/or regular, but preferably it has to be
able to perform both)
d. It has to have maximun spread and maximum slippage
functions.
e. Everything needs to be adjustable of course

2. I'm attaching 2 straddle EAs. One is for mt4
and the other is for mt5. They are pretty similar but
the mt5 version has only about half of the functions of
the mt4's. Can the mt5's be adapted to become identical
to mt4's and how much will this job cost?

3. Can the mt4's EA from the 2nd question be manipulated
(or helped by other EA or whatever) to perform
market orders instead of pending orders? If it can then how
much will it cost.
Thanks
Attached Files
File Type: mq4 AmazingEA.mq4   44 KB | 478 downloads
File Type: mq5 Amazing-mt5.mq5   27 KB | 466 downloads
  • Post #2
  • Quote
  • Jul 12, 2018 10:30pm Jul 12, 2018 10:30pm
  •  anti-flash
  • Joined Jul 2018 | Status: ... | 259 Posts
Posted this also on the free coding thread.

I have an EMA cross Expert and I'm willing to put some additional rules into it, the problem is my coding skills are null.

Can you please tell me which mql4 functions should I use/learn to accomplish this:

1: Exit with an opposite EMA cross on the higher timeframe:

Let's say, the EA is taking setups on the 30M or 1H chart:

I want it to close all the trades it has opened before and stop trading if an exit cross signal is given in the 4H or D1 timeframe.

2: Maximum pips distance for new trades.

I want the EA to not take setups that are a 40 pips range from the last trade opened by it.

Let's say the Expert has just taken a buy setup on the EURUSD at 1.0800:

After that price goes up to 1.0820 and the Expert finds a setup, it should take this trade because there's only 20 pips distance between them.

Then If from there, the price goes up to 1.0865 and EA finds a setup, it should avoid it because there's now a 45 pips distance from the last trade.

Except if there's a buy setup below 1.0800 for example 1.0740, I do want it to take it, ignoring the previous 40 pips rule.

3: Pips distance from week open.

Let's say the Expert is taking buy setups on the USDCAD.

Let's imagine, the week open for this pair was 1.2400

I want the EA to take setups while price is between 1.2400-1.2500, then if the EA finds a setup above 1.2500, I want it to ignore it since price would be 100 pips greater than the week open.

Thank you very much in advance for your help

Good luck with your trades.

a-f
Toxic Flow for FX Brokers.
  • Post #3
  • Quote
  • Last Post: Jul 12, 2018 10:37pm Jul 12, 2018 10:37pm
  •  anti-flash
  • Joined Jul 2018 | Status: ... | 259 Posts
As I said, I found an EMAx EA and want to put some filters into it.

One is that I don't want the EA to open trades that are x pips above the current weekly open for buys or x pips below for sells.

I came up with an idea but as I know nothing about coding, my skills are very poor,so it didn't work.

Here it is the EMAx no exit EA code:


Inserted Code
 
//main signal
 
double SEma1=iMA(Symbol(),0,ShortEma,0,MODE_EMA,PRICE_CLOSE,i);
double SEma2=iMA(Symbol(),0,ShortEma,0,MODE_EMA,PRICE_CLOSE,i+1);
double LEma1=iMA(Symbol(),0,LongEma,0,MODE_EMA,PRICE_CLOSE,i);
double LEma2=iMA(Symbol(),0,LongEma,0,MODE_EMA,PRICE_CLOSE,i+1);
 
string SBUY="false";
string SSEL="false";
 
if(SEma1>LEma1 && SEma2<LEma2) SBUY="true";
if(SEma1<LEma1 && SEma2>LEma2)SSEL="true";}

Please tell me, what am I doing wrong, what else should I include, I know with a bit of help, I'll be able to accomplish this.

Thanks a lot in advance.
Toxic Flow for FX Brokers.
  • Platform Tech
  • /
  • Need help to code EAs for MT4 and MT5
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2021