MA trending

MQL5 Experts

Tâche terminée

Temps d'exécution 4 jours
Commentaires du client
Very good programmer. Fast and skilled

Spécifications

 Please, read everything first and pay attention in every detail before agree.


The purpose of this EA is to work with various time frames with several Moving Average.


The following is the parameters that the EA will set:


-- General Settings -- 

1) Lot (Number greater than 0 with 2 digits, ex: 25.50)

2) Take Profit (Number greater than 0 with 2 digits, ex: 25.50)

3) Stop Loss (Number greater than 0 with 2 digits, ex: 25.50)


-- Break Even settings --

4) Break Even Enable (True or False)

5) Break Even Level (Number greater than 0 with 2 digits, ex: 25.50)

6) Break Even Profit (Number greater than 0 with 2 digits, ex: 25.50)


-- Time allow to trade -- 

7) Start Time (00:00 to 23:59)

8) End Time (00:00 to 23:59)

9) Close Positions (True or False) ** Do not trade with a different time and If there is a trading going, close the position. So if the time is different that was set, independently if the trade is positive or negative profit (gain zone or loss zone), close it.


-- Sending Orders Type and settings -- 

10) Market Price (True or False) ** Send order as market price

11) Pending Order (true or false)

12) Pending order points (Any number with 2 digits, including negative numbers) **This is a number to sum or subtract of the last close price.

      Ex 1: BUY case. If the close price was 103.50 and the number that set was 2.5, so the EA will send a pending order with the price equal to 105.00 (Stop order)

      Ex 2:  BUY case. If the close price was 105.00 and the number that set was -5.00, so the EA will send a pending order with a price equal to 100.00 (Limit order)

13) Reversal Order (True or false) ** Send oposite order 


-- Time Frame 01 -- 

14) Time frame (All Time frame allowed in MT5 like, 1m, 5m, 30m, 1H, etc..)

15) MA 01 Period (Integer number greater than 0)

16) MA 01 Type (Simple, exponential, etc..)

17) MA 02 Period (Integer number greater than 0)

18) MA 02 Type (Simple, exponential, etc..)

19) MA 03 Period (Integer number greater than 0)

20) MA 03 Type (Simple, exponential, etc..)

21) Candle Trend (True or false) ** Will be explained later


-- Time Frame 02 -- 

22) Time frame (All Time frame allowed in MT5 like, 1m, 5m, 30m, 1H, etc..)

22) MA 01 Period (Integer number greater than 0)

24) MA 01 Type (Simple, exponential, etc..)

25) MA 02 Period (Integer number greater than 0)

26) MA 02 Type (Simple, exponential, etc..)

27) MA 03 Period (Integer number greater than 0)

28) MA 03 Type (Simple, exponential, etc..)

29) Candle Trend (True or false) ** Will be explained later


-- Time Frame 03 -- 

30) Enable (True or false)

31) Time frame (All Time frame allowed in MT5 like, 1m, 5m, 30m, 1H, etc..)

32) MA 01 Period (Integer number greater than 0)

33) MA 01 Type (Simple, exponential, etc..)

34) MA 02 Period (Integer number greater than 0)

35) MA 02 Type (Simple, exponential, etc..)

36) MA 03 Period (Integer number greater than 0)

37) MA 03 Type (Simple, exponential, etc..)

38) Candle Trend (True or false) ** Will be explained later


-- Condition to trade -- 

39) BUY Power Trend (Integer number, greater than 0, positive)

40) SELL Power Trend (Integer number, less than 0, negative)


HOW IT WORKS:

The EA will analyse the power of the market trend, basing on several Moving Averages and candle trend at different time frames. Each MA and candle trend of each time frame will generate a number like:

Bear trend = -1

Neutral = 0

Bull Trend = +1

The EA will sum all this number and decide to BUY or SELL.

For example, If the sum of the conditions is greater than 12, EA will Buy. And if the sum of the condition is less than -10, EA will sell.

EA will work only with "Close prices" to decide if send and order or not.


*** Conditions to find the trend number:

  *Candle Trend

    If close price = open price, number is 0

    If the Close price > open price, number is +1

    If the close price < open price, number is -1

   

  *Crossing and trend MA rules (Only for MA 01 and MA 02)

    If MA 01 > MA 02 -> +1

    If MA 01 < MA 02 -> -1

    If MA 01 = MA 02 -> 0


    MA 01 last price [Bar (0)] is greater than MA 01 previous last price [Bar (-1)], AND MA 02 last price [Bar (0)] is greater than MA 02 previous last price [Bar (-1)], AND close price (market price) is greater than MA 01 and MA 02, the number is +1, ELSE, number is 0 

    MA 01 last price [Bar (0)] is less than MA 01 previous last price [Bar (-1)], AND MA 02 last price [Bar (0)] is less than ma 02 previous last price [Bar (-1)], AND close price (market price) is less than MA 01 and MA 02, the number is -1, ELSE, number is 0 

   

   P.S.: So to confirm the bull trend, MA 01 must crossing up MA 02 and the direction of the both moving averange (MA 01 and MA 02) must be higher (up).To confirm bear trend, the conditions will be the oposite.


  *MA 03 rules

    IF the last price (market price) is greater than MA 03 AND MA 03 last price [Bar (0)] is greater than previous last price [Bar (-1)], number is +1, ELSE, numer is 0. 

    IF the last price (market price) is less than MA 03 AND MA 03 last price [Bar (0)] is less than previous last price [Bar (-1)], number is -1, ELSE, numer is 0. 

 

If every conditions are bull trend, the maximum number will be 15. If every conditions are bear trend, the minimum number will be -15.


EXAMPLE:


 Time Frame 01 = 2 minutes

  MA 01 and MA 02 crossing = +1

  MA 01 Trend = +1

  MA 02 Trend = 0

  MA 03 Trend = +1

  Candle Trend = -1

 

 Time Frame 02 = 5 minutes

  MA 01 and MA 02 crossing = +1

  MA 01 Trend = +1

  MA 02 Trend = +1

  MA 03 Trend = 0

  Candle Trend = +1

  

 Time Frame 03 = 20 minutes 

  Enable = True

  MA 01 and MA 02 crossing = 0

  MA 01 Trend = +1

  MA 02 Trend = +1

  MA 03 Trend = 0

  Candle Trend = +1

     

         *** SUM = 9.

 

 Suppose that I set -> BUY Power Trend = 8 -> It means that if the sum of the conditions is greater than 8, EA will send a Buy order

 Suppose that I set -> SELL Power Trend = -6 -> It means that if the sum of the conditions is less than -6, EA will send a Sell order

 Neutral will be a value less than 8 and greater than -6. (EA will do nothing)


SO in that example case, EA must to send a buy order, if the other conditions like, time set, are ok.


To help to understand the idea of the EA, I include an indicator that works very similar of what I want, but the indicator just change the colors. 

Red tons means bear. Green and Blue means bull. Yellow means neutral.

Répondu

1
Développeur 1
Évaluation
(885)
Projets
1410
67%
Arbitrage
123
32% / 41%
En retard
217
15%
Gratuit
Publié : 1 code
2
Développeur 2
Évaluation
(54)
Projets
64
42%
Arbitrage
5
20% / 60%
En retard
4
6%
Gratuit
Publié : 1 code
3
Développeur 3
Évaluation
(1931)
Projets
3552
88%
Arbitrage
73
40% / 15%
En retard
268
8%
Gratuit
4
Développeur 4
Évaluation
(636)
Projets
1008
47%
Arbitrage
33
36% / 36%
En retard
99
10%
Travail
Publié : 6 codes
5
Développeur 5
Évaluation
(117)
Projets
138
41%
Arbitrage
30
7% / 77%
En retard
17
12%
Gratuit
6
Développeur 6
Évaluation
(61)
Projets
120
34%
Arbitrage
17
18% / 41%
En retard
51
43%
Gratuit
Commandes similaires
MT5 Trading EA — EMA/RSI Strategy with Risk Management and Trade Protection Hello, I'm looking for an experienced MQL5 developer to build a reliable Expert Advisor for MetaTrader 5 based on a simple trend-following strategy. My main priority is not adding as many features as possible. I want a clean, dependable EA that follows the specified rules consistently in both Strategy Tester and live/demo trading. 1. Trading
MT5 to DxTrade, MT5 to NinjaTrader 8, MT5 to Tradovate - Does anyone have a working copy trading system for this - like already existing system for any of this platforms, don’t want dev saying they will build one, I want copier already working - MT5 to DxTrade (Good), To Tradovate and NT8 might be complex as they are future based. That is why I asked for working system and code. Deliver demo - with a week limit if
To create a unique description that meets the freelance site's requirements, you can type the following: "I am looking for an experienced MQL5 developer to create a custom Forex Expert Advisor. The trading strategy should be based on a moving average crossover system, filtered by the Relative Strength Index indicator. The expert advisor needs to feature distinct strategy modules with adjustable settings for the
Mt5 35+ USD
//+------------------------------------------------------------------+ //| HedgingBasket_EA.mq5 | //| Copyright 2026, Trading Bot | //+------------------------------------------------------------------+ #property copyright "Trading Assistant" #property version "1.00" #include <Trade\Trade.mqh> CTrade trade; //--- Input parameters input group "=== Hedging Settings ===" input double InpLotSize = 0.01; // Lot Size for
Hi All, I am looking for a EA which makes good profit, If any having please share it for TEST, After proper TESTING only I will make the payment, no cheating no fraud, Please do not waste the time also
Custom MT5 Expert Advisor (EA) Development | MQL5 Automation Turn Your Trading Strategy into a Powerful Automated Trading System! Are you looking for a professional MT5 Expert Advisor developer to automate your trading strategy? I specialize in developing custom MetaTrader 5 (MT5) Expert Advisors and indicators using MQL5 , tailored to your trading rules, risk management preferences, and trading goals. Whether you
Mt5 to mt5 copier 30 - 50 USD
Hi Team i am looking for the copier, to copy trades to and mt5 broker where the EA Trading is Disabled. when we setup a market trade copiers, it alerts EA Trading is Disabled by the broker. can we develop the copy trading EA which and operate in this environment
Nayan4602 30+ USD
""" Market entry on EUR/USD with 0.01 lot, using the account that is ALREADY logged in inside the running MetaTrader 5 terminal. """ import MetaTrader5 as mt5 # ---------------- Config ---------------- SYMBOL = "EURUSD" LOT = 0.01 SIDE = "BUY" # "BUY" or "SELL" DEVIATION = 20 # max slippage in points MAGIC = 234000 SL_POINTS = 0 # 0 = no stop loss, 200 = 20 pips on a 5-digit feed TP_POINTS = 0 # 0 =
Hello, I’d like to develop an AI-powered analysis dashboard for , with a clear, easy-to-use design that works on mobile and web, or on the platform we agree on. I’d like it to include: Main dashboard: Show the market status, the latest data update, and the current signal, if available, including direction, entry price, stop loss, targets, and risk-to-reward ratio. AI signal explanations: Explain in clear language why
Scalping bort 30+ USD
GOLD SCALPING BOT STRATEGY Symbol: XAUUSD (Gold vs USD) Broker: Exness Account: Standard Starting Balance: $20 1. TIMEFRAME - Trend analysis: M15. - Entry timeframe: M5. - Trade only when the market has a clear direction. 2. INDICATORS - EMA 50 - EMA 200 - RSI 14 - Support and Resistance 3. BUY RULES The bot must open a BUY trade only when all these conditions are met: 1. EMA 50 is above EMA 200 on M15. 2. Price is

Informations sur le projet

Budget
100 - 200 USD
Délais
de 5 à 10 jour(s)