Build an EA using 2 Moving Average lines

MQL5 Uzman Danışmanlar

İş tamamlandı

Tamamlanma süresi: 3 gün
Müşteri tarafından geri bildirim
You completed very quickly and do what my expectation. Thank you
Geliştirici tarafından geri bildirim
Good job. Recommended user.

İş Gereklilikleri

Build an EA using 2 Moving Average lines

Name: MovingAverageEA

Source code: MT4, MT5 included.


SETTING

AssetItem:

- Current chart

MagicNumber:

- Default: 123456789

- User can change this number

MinLot:

- Minimum lot when making an order

- Default: 0.01

MaxLot:

- Maximum lot when making an order

- Default: 50

- Maximum value is 50

AccountCapital

- Default: 100$

- The money amount from the account

StopLoss

- Pip number.
- Default 20

Moving Average setting

MovingAverage_1

- MA1_Period: default = 10

- MA1_Shift:  default = 0

- MA1_Method: default = MODE_SMA

- MA1_Price: default = CLOSE_PRICE

MovingAverage_2

- MA2_Period: default = 1

- MA2_Shift:  default = -1

- MA2_Method: default = MODE_SMA

- MA2_Price: default = CLOSE_PRICE



Flow processing (please look at the picture to understand what I said)

- Only 1 order at the time

- MA2 cross up MA1, make a buy order. Close this order until the MA2 goes down MA1.

- MA2 goes down MA1, make a sell order. Close this order unitl the MA2 goes up MA1.

- Do not make 2 orders at the same time.

- If make a buy order, please close a previous sell order if exists.

- Before making a new order, EA has to re-calculate the volume

- Update stop loss processing: 
- Step 1: Get the maximum low/high price from 3 previous candlesticks to set the stop loss for buy/sell order.
- Step 2: calculate the stop loss number Math.abs(the price when making an order - price from step 1)
- Step 3: compare the value from step 2 with the [StopLoss] setting. use the bigger one
- Update the stop loss for the existing order when it moves to the next bar like the method above


Volume calculation

 - If account balance < [AccountCapital] => use [MinLot]

 - If Lot calculation > [MaxLot] => use [MaxLot] setting value
 
 Lot calculation use this form
 
 100$-200$ => 0.01

 200$-400$ => 0.02

 400$-800$ => 0.04

 800$-1600$ => 0.08

 1.600$-3.200$ => 0.16

 3.200$-6.400$ => 0.32

 6.400$-12.800$ => 0.64

 12.800$-25.600% => 1.28

 25.600$-51.200$ => 2.56

 51.200$-102.400$ => 5.12

 102.400$-204.800$ => 10.24

 204.800$-409.600$ => 20.48

 409.600$-819.200$ => 40.96

 > 819.200 => 50


Explain how to make a buy or sell


Dosyalar:

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(39)
Projeler
50
18%
Arabuluculuk
5
40% / 40%
Süresi dolmuş
0
Serbest
2
Geliştirici 2
Derecelendirme
(12)
Projeler
16
44%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
0
Serbest
3
Geliştirici 3
Derecelendirme
(56)
Projeler
92
62%
Arabuluculuk
0
Süresi dolmuş
4
4%
Serbest
4
Geliştirici 4
Derecelendirme
(482)
Projeler
511
53%
Arabuluculuk
10
60% / 20%
Süresi dolmuş
3
1%
Serbest
5
Geliştirici 5
Derecelendirme
(197)
Projeler
320
35%
Arabuluculuk
64
13% / 56%
Süresi dolmuş
83
26%
Serbest
6
Geliştirici 6
Derecelendirme
(8)
Projeler
11
0%
Arabuluculuk
11
18% / 73%
Süresi dolmuş
2
18%
Serbest
7
Geliştirici 7
Derecelendirme
(391)
Projeler
417
69%
Arabuluculuk
4
75% / 0%
Süresi dolmuş
2
0%
Yüklendi
8
Geliştirici 8
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
9
Geliştirici 9
Derecelendirme
(34)
Projeler
60
23%
Arabuluculuk
11
73% / 9%
Süresi dolmuş
3
5%
Serbest
10
Geliştirici 10
Derecelendirme
(10)
Projeler
13
8%
Arabuluculuk
3
67% / 33%
Süresi dolmuş
0
Serbest
Benzer siparişler
I need an EA that opens trades according to the crossover of Moving Averages. The EA is based on two Moving Averages MA1 and MA2: For every new candle the EA attempts to open a new position, according to the MA crossover direction: If MA1>MA2, open a BUY position If MA1<MA2, open a SELL position There is a limit for current open trades which is also set in the settings. If the number of open trades reaches that
Job Title: Experienced MT5 Developer Needed to Update MT5 EA PLEASE READ THE ENTIRE JOB DESCRIPTION BEFORE APPLYING Qualifications Required: * Minimum of 5 years of experience in coding Expert Advisors * Experience with at least 150 completed EA projects (must be visible on your profile) * Must have knowledge of both forex trading and coding, as these are different skills * Fluent in English (no translators) * Must
I have a fully coded TradingView indicator that I need updated to function as a strategy. This should include the ability to backtest the strategy using the TradingView strategy tester. The main task is to convert the existing indicator into a strategy format while maintaining its core functionality, but adapting it for automated trading logic and performance analysis. Please ensure that the strategy uses proper
I'm looking for professional developer for long term. Who have skill in Converting trading to MT4/5. Also have good knowledge of Algo. And response and deliver tools on time and at the top need good communication. That's all we need
budget of 500 usd I want to create a rsi bot for eur usd money is the least important thing I want it to look good if you are going to apply do it but send me at least 3 photos or screenshots of this type of work with rsi bot my goal level 50 sell level 20 buy that's all it must have its basic robot functions
I have simple EA i want to modify its parameters. If you are good at modifying EAs contact me for more details. I will issue the source code then you return after finishing without changing the buy or sell conditions
the code wasn't mine, i have got it somewhere on the web, but i like the performance of the EA, so i want to use it on mt5 platform. the given code based on price movements with ladder entry concept
* Advanced level dev only, NDA required * Hi, I have a multi timeframe, multiindicator expert that requires additional features added to it. First started development 5 years ago. Upgrading with new features. To be added Entry - Add Stochastic and CCI options for trade entry to be added to existing signal options. Add config options to existing menu Bulk Exit - Master switch for close all trades based on basket
I am developing a master EA that integrates several sub-EAs. The project is complex, and the documentation is thoroughly structured, spanning 50 pages with detailed step-by-step procedures. 1st sub-EA: This EA opens trades without using indicators. Instead, it opens a new trade based on the color or status of the last candle. For instance, if the last candle was green, a new buy trade is opened. 2nd sub-EA: This EA
Good Day I would like to order a trading robot. Pairs: XAUUSD (GOLD) EUR/USD USD/JPY The robot should be trading daily with TP/SL build in, would like to have trailing and stop loss, should execute up to 5 trades (preffarable setting choice) up to 10 trades Los sizes to be choise setting, must also trade major US vews events Like:US- PPI, CPI, NFP, Sales m/m and so on Must also show/display alert when opening

Proje bilgisi

Bütçe
50 - 100 USD
Geliştirici için
45 - 90 USD
Son teslim tarihi
from 1 to 3 gün