I need an EA for MT4 based on MACD cross and Moving Averages.

MQL4 Uzman Danışmanlar

İş tamamlandı

Tamamlanma süresi: 3 gün
Müşteri tarafından geri bildirim
Nuri delivered exactly what I asked. worked perfect!

İş Gereklilikleri

I need an EA for MT4 based on MACD cross and Moving Averages. Below is a detailed description of the proposed EA. There's also a BUY example attached for clarity.  This EA should work for for all time frames and symbols.


Global Variables

MacDFast    = Fast=12 //Fast EMA Period

MacDSlow    = Slow=26 //Slow EMA Period

MacDSource  = Close   // Applied Price

MacDSignal  = 9       //Signal Line Period

MacDRangeLong  = -4.5,-45.0 //MacD Range for BUY signal when macd cross signal line

MacDRangeShort =  4.5, 45.0 //Range for SELL signal when macd cross signal line

EMA1    = 100 //100 Exponential Moving Average

EMA2    = 125 //125 Exponential Moving Average

EMA3    = 200 //200 Exponential Moving Average

LotSize = 0.01 //Default lot size

AlertOnly  = 0 //When all conditions are met, trigger mt4 alert

TradeOnly  = 0 //When all conditions are met, trigger mt4 trade

TakeProfit = 0 //Take Profit variable is set when conditions are met

StopLoss   = 0 //Stop Loss variable is set when conditions are met

RiskReward = 1.5 //Default risk/reward ratio multiplier

Session    = 0 //0=All Sessions, 1=New York, 2=London, 3=Tokyo, 4=Sydney (User can select multiple sessions)

MutipleOrders = 0 //0=Open Order when conditions are met 1=Only open one order at a time, additional order cannot be opened

ATR = 14 //Average true range used in stop loss calculation


Long: At Candle open

    if (previous candle high and low > EMA1) && (previous candle high and low > EMA2) && (previous candle high and low > EMA3) 

      if (current candle open > EMA1) && (current candle open > EMA2) && (current candle open > EMA3) 

if (macd and signal line cross between MacDRangeLong)


        if(AlertOnly = 1 && TradeOnly  = 0)

(

  StopLoss  = Distance from price to ema2

  TakeProfit = (Distance from price to ema2) * RiskReward

  Alert("Buy at " + CurrentPrice + "Stop Loss " StopLoss + "Take Profit" + TakeProfit )

        )


if(AlertOnly = 0 && TradeOnly  = 1)

        (

  Buy Market Order

  LotSize = LotSize

  StopLoss  = Distance from price to ema2

  TakeProfit = (Distance from price to ema2) * RiskReward


  when ( price = 50% of TakeProfit )

       StopLoss  = break even + 5 pips

  when ( price = TakeProfit )

     Trailing Stop Loss = calculated by subtracting the current ATR value from the lowest-low of the given lookback period 

       )


Short: At Candle open

    if (previous candle high and low < EMA1) && (previous candle high and low < EMA2) && (previous candle high and low < EMA3) 

      if (current candle open < EMA1) && (current candle open < EMA2) && (current candle open < EMA3) 

if (macd and signal line cross between MacDRangeShort)


        if(AlertOnly = 1 && TradeOnly  = 0)

(

  StopLoss  = Distance from price to ema2

  TakeProfit = (Distance from price to ema2) * RiskReward

  Alert("Sell at " + CurrentPrice + "Stop Loss " StopLoss + "Take Profit" + TakeProfit )

        )


if(AlertOnly = 0 && TradeOnly  = 1)

        (

  Sell Market Order

  LotSize = LotSize

  StopLoss  = Distance from price to ema2

  TakeProfit = (Distance from price to ema2) * RiskReward


  when ( price = 50% of TakeProfit )

       StopLoss  = break even + 5 pips

  when ( price = TakeProfit )

     Trailing Stop Loss = calculated by adding the current ATR value to the highest-high of the given lookback period

       )


Dosyalar:

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(414)
Projeler
670
33%
Arabuluculuk
60
17% / 32%
Süresi dolmuş
113
17%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(3)
Projeler
5
0%
Arabuluculuk
0
Süresi dolmuş
3
60%
Serbest
3
Geliştirici 3
Derecelendirme
(514)
Projeler
776
63%
Arabuluculuk
33
27% / 45%
Süresi dolmuş
23
3%
Serbest
4
Geliştirici 4
Derecelendirme
(24)
Projeler
28
32%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
0
Serbest
5
Geliştirici 5
Derecelendirme
(15)
Projeler
17
6%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
1
6%
Serbest
6
Geliştirici 6
Derecelendirme
(248)
Projeler
444
34%
Arabuluculuk
56
36% / 38%
Süresi dolmuş
163
37%
Yüklendi
7
Geliştirici 7
Derecelendirme
(169)
Projeler
204
30%
Arabuluculuk
25
40% / 44%
Süresi dolmuş
12
6%
Serbest
8
Geliştirici 8
Derecelendirme
(126)
Projeler
151
48%
Arabuluculuk
6
83% / 17%
Süresi dolmuş
2
1%
Serbest
9
Geliştirici 9
Derecelendirme
(68)
Projeler
72
21%
Arabuluculuk
6
50% / 33%
Süresi dolmuş
1
1%
Serbest
10
Geliştirici 10
Derecelendirme
(66)
Projeler
143
34%
Arabuluculuk
10
10% / 60%
Süresi dolmuş
26
18%
Serbest
Benzer siparişler
Im looking for an coder to code an EA: Trade management 1. opening trades according to the indicator 2. trades settings to choose from like: open all trades according to the signal open only trade 1,2,3 or 4 % per trade ( example 50/30/20 of the lot settings, with 4 trades it would be for example 50/30/10/10) 3. SL/Trailing settings: Move SL to entry after hitting TP1/TP2 or TP3 moving SL by % keep the original SL
Hi I'm looking to have 2 of my pinescript strategies converted to MQL5 and was wondering if you could first give me a quote for the more simple strategy and then for both the simple and complex strategy together. The simple strategy is a MACD crossover type thing that uses a special EMA script that filters out some ranging price action and also fractal candles for the stop loss. The second strategy is market
I want grate robot for making profits that know when to start a good trade and close a trade and must be active all time to avoid lost of money
I have developed a very strong TradingView strategy in Pine Script but unfortunately, a third-party connector is requiired and in my opinion, I want a more direct connection. I am not brilliant at coding, but I have coded the majority of the MT5 code and I would like you to make sure that the MT5 code matches my TradingView script and executes the same way as the TradingView script that I will provide if you are
Mbeje fx 50+ USD
I like to own my robot that why I want to build my own.i like to be a best to every robot ever in the life to be have more money
I need an MT5 EA that can do the following: I have to give the EA a price in advance, when the price is reached the EA has to automatically place a buy stop or sell stop order 0.5 pips below or above the price. Is this possible
Dr Pattern 30+ USD
good day i need the service of the seaso coder to help me fix my ea The Job required 1 knowledge of Mt4 and Mt5 indicator coding 2. Telegram code 3. ability to code indicator to work on multiple Time frame combine to trade 4 Ability to Join two or three indicator on same ir different time frame if you have these skill please let chart i will discuss the details of the Job inside to you The required day including
Good day, I want someone to help me create a universal news filter with on/off switch, with start and end settings, and drawdown control with magic number of EAs, etc. Thanks
Hello, I am looking for a professional programmer to optimize my existing EA integrating it with ChatGPT to analyze currencies using various methods to make the right trading decisions. i want it to be an EA that can be trusted to carry trade with the help of chat gpt and also have a very low drawdown
Hello, I am looking for a professional programmer to create a trading expert on the MT4 platform, integrating it with ChatGPT to analyze currencies using various methods to make the right trading decisions. Further details will be provided to the applicants later

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD
Son teslim tarihi
from 1 to 5 gün