Need an Expert Advisor for MT4 based on multiple standard moving averages

MQL4 Эксперты

Работа завершена

Время выполнения 9 дней
Отзыв от исполнителя
Good customer. Very clear task description.
Отзыв от заказчика
Elena coded an EA for me. Great communication, finished ahead of deadline and the EA met my requirements on the first try. Excellent Developer.

Техническое задание

Trading Idea

It is a simple daily break-out system, based on how far price has been moving away from the opening price each day.

This EA is to be based on three moving averages to develop a trade signal. The moving averages operate on daily OHLC values. A value is calculated from the moving averages that establishes a buy limit price and sell limit price for the day. The buy limit is above the opening price and the sell limit is below the opening price. These limit values are not sent to the broker as limit orders, but held by the EA until the buy/sell trigger occurs then market orders sent to broker.

The buy and sell triggers will come from the closing price of the last bar. The timeframe of the bar is dependent on the chart that the EA is attached to.If either limit is triggered during that day and a position is opened, a trailing stop will be used to close the position. The trailing stop will always move based on close of 1 minute bars. If the position is not closed by the trailing stop, the EA is to close the order at the end of the day. It is possible that both buy and sell limits will be hit in a day, but the stop loss will be between them so there will only be one open position at a time.

The Indicators

  1. MA_Open is the moving average of the daily open prices
  2. MA_High is the moving average of the daily high prices
  3. MA_Low is the moving average of the daily low prices
  4. Avg_Up = MA_High - MA_Open
  5. Avg_Down = MA_Open - MA_Low
  6. Excursion = Max(Avg_Up, Avg_Down)
  7. Threshold = Excursion*Multiplier
  8. Buy_Limit = the opening price for the current day plus the value of Threshold
  9. For example, if the opening prices for today is 1.20000 and Threshold = 0.00500 then Buy_Limit = 1.20500.
  10. Sell_Limit = the opening price for the current day minus the value of Threshold
  11. For example, if the opening prices for today is 1.20000 and Threshold = 0.00500 then Sell_Limit = 1.19500.
  12. The Moving Averages are to share the following input variables so that each moving average has the same parameter values exept of the price they operate on (open, high, low).
  13. MA_Period : Default = 10
  14. MA_Shift : Default = 0
  15. MA_Method : Default = Simple
  16. Multiplier is to be set by user : Default = 1.0
Variables Avg_Up and Avg_Down, Excursion, Threshold , Buy_Limit and Sell_Limit are set by the EA and have no user defined parameters.


Rules to Open a New Position

  1. Check for pending orders and open positions. Only place an order to open when no pending orders or open positions exist. There is to be at most one open position at any time.
  2. Place a buy-to-open marked order when the closing price of the most recent 1-minute bar is greater than Buy_Limit.
  3. Place a sell-to-open market order when the closing price of the most recent 1 minute bar is less than Sell_Limit.

Rules to Close a Position

  1. Use a trailing stop loss at a Threshold*Tstop_Modifier
  2. Default value for input variable Tstop_Modifier = 1.0

    1. For example, if a buy order was executed at 1.20500, Threshold is 0.00500, and Tstop_Modifier = 0.5 then the initial value of the trailing stop is to be set at 1.20500 – (0.00500*0.5) = 1.20250

  3. The Trailing Stop is to be limited by input variable Max_SL : Default value = 50. Units are pips. Meaning that the stop loss price will always be 50 pips (the value of Max_SL) or less from the opening trade execution price.
  4. The trailing stop is to be moved based on the closing price of one-minute bars.
  5. Stop Loss cannot be moved towards the loss direction, i.e. the Stop Loss value cannot be increased.
  6. Close the open position using a market order when the close price of the most recent 1 minute bar crosses the stop loss.
  7. Before sending an order to close a position, check the following
    1. There is an open position
    2. The type of position (long or short)
    3. That the order type is the correct type to close close open position
  8. Only send a Market Sell order when there is an open long position and

  9. Only send a Market Buy order when there is an open short position

Other Inputs

  1. MagicNumber : Default = 88991

  2. Lot_Sizing : Menu of Fixed or Proportional. Default to be Fixed

  3. Fixed_Lots : Default = 0.1. This is the number of lots to be bought and sold

  4. Proportional_Pct : Default = 2.0. This is the percent of the account balance to be used as initial margin for the position. Lots are to be calculated from this value, the account balance and the margin required.

Graphical

The following will show on the chart and in the visualization of back tests.

  1. Green solid thin lines at Buy_Limit and Sell_Limit prices for the day

  2. Red solid thin lines at the trailing stop

  3. Green up arrow where buy orders are placed

  4. Red Down arrow where sell orders are placed

  5. Green dashed thin lines between the buy-to-open order and the sell-to-close order

  6. Red dashed thin lines between the sell-to-open order and the buy-to-close order

Error Handling

I don’t know. Apply best practices.

Logging

The EA is to log the following events and values

  1. Order execution time and price

  2. Reason for closing position – “Closed on trailing stop”or “Closed on end of day”.

  3. If Threshold < Threshold_Min

  4. Any errors reported by the trading console or the broker

Other

If possible please keep the onTick actions to a minimum for faster backtesting. I tried to make it so that everything is done on 1 minute or daily values.

Thank you and please me know if you have questions.




Откликнулись

1
Разработчик 1
Оценка
(879)
Проекты
1392
67%
Арбитраж
117
32% / 42%
Просрочено
215
15%
Работает
2
Разработчик 2
Оценка
(15)
Проекты
21
38%
Арбитраж
3
33% / 33%
Просрочено
4
19%
Свободен
3
Разработчик 3
Оценка
(807)
Проекты
1382
72%
Арбитраж
113
29% / 48%
Просрочено
343
25%
Свободен
4
Разработчик 4
Оценка
(68)
Проекты
111
26%
Арбитраж
17
6% / 71%
Просрочено
15
14%
Свободен
5
Разработчик 5
Оценка
(41)
Проекты
46
28%
Арбитраж
9
0% / 100%
Просрочено
7
15%
Свободен
6
Разработчик 6
Оценка
(13)
Проекты
15
27%
Арбитраж
1
0% / 100%
Просрочено
1
7%
Свободен
7
Разработчик 7
Оценка
(94)
Проекты
148
59%
Арбитраж
16
38% / 13%
Просрочено
25
17%
Свободен
8
Разработчик 8
Оценка
(1)
Проекты
1
100%
Арбитраж
0
Просрочено
0
Свободен
9
Разработчик 9
Оценка
(8)
Проекты
13
85%
Арбитраж
1
0% / 100%
Просрочено
0
Свободен
10
Разработчик 10
Оценка
(96)
Проекты
143
76%
Арбитраж
0
Просрочено
2
1%
Свободен
11
Разработчик 11
Оценка
(564)
Проекты
933
47%
Арбитраж
302
59% / 25%
Просрочено
125
13%
Загружен
12
Разработчик 12
Оценка
(2098)
Проекты
2667
62%
Арбитраж
114
46% / 25%
Просрочено
420
16%
Загружен
13
Разработчик 13
Оценка
(266)
Проекты
540
50%
Арбитраж
55
40% / 36%
Просрочено
224
41%
Работает
14
Разработчик 14
Оценка
(221)
Проекты
369
66%
Арбитраж
10
50% / 0%
Просрочено
46
12%
Свободен
15
Разработчик 15
Оценка
(26)
Проекты
34
26%
Арбитраж
7
14% / 43%
Просрочено
7
21%
Свободен
Похожие заказы
I want to develop a trade copier that copies trades from master account to client and also from client account to master account. It should be working on computer or VPS
Wirtschaftskalender 50 - 200 USD
1) Einbinden des Wirtschaftskalender ( https://www.mql5.com/de/economic-calendar ) 2) Unterschiedliche Gewichtung der Ereignisse erkennen (Farbe rot/orange/grau) 3) Je nach Gewichtung unterschiedliche Wartezeiten vor und nach dem Ereigniss Der Sourcecode muss dokumentiert sein. Die Bezahlung des vereinbarten Betrages läuft in 33% Schritten ab. 33% bei Vergabe 33% bei Endabnahme (Version 1.0) 33% nach Abgabe des
Hi, This is my demand: Enhancement to an existing robot with the ability to modify the main time frame and indicators settings. Buy/Sell Stops are placed depending on candle positioning and a positive/negative Bulls Power. Trades are supplemented after reaching 10 points of profit. The robot should also support a balance option for propfirm accounts, switchable to use real account balance when needed. I will send
algo trading application want to developed Prerequisites for ordering a trading robot Trading robots are programs, which operate according to underlying algorithms. An algorithm is a set of actions that need to be performed in response to certain events. For example, the most common task in algo trading is the identification of the "New bar" event . When the event occurs, the robot checks the emergence of trading
I have list of free indicators in tradingview and i would like to convert them into an mt4 ea, But the EA will have and work based on the indicators features The list of the are listed as follows :> 1. Market Structure Break And Order block. By EmreKb 2. Rainbow Adaptive RSI by LuxAlgo 3. Multiple MA (21,50,100) 4. SuperTrend Please don't apply if can't do this, So we won't ourselves time
Hi I do not know why but my other order have been deleted and it's not me... I do not know what i did wrong, let me explain again. I dont want you to crack a code or decompile. I want to create a scalper EA with the option I do ask. I had somebody built a EA called Drawdown manager for me that I do use to manage risk of any EA that I test and I have the built code. My problem is that I cannot back test this EA Fast
CHAPTER 1: BASICS 1.THE BASICS 1.1. EXPANSION AND RETRACEMENT Expansion =>occurs when there is an impulse movement towards a direction. Retracement => is the correction movement after an impulse movement. 1.2. FIBBONACCI RETRACEMENT USED TO DETERMINE THE END OF THE RETRACTION MOVEMENT, USUALLY THE PRICE RETRACTS TO 50% OR UNTIL OTE (0.62, 0.705, 0.79) BEFORE ANOTHER IMPULSE MOVEMENT OCCURS. 1.3. BMS - BREAK IN MARKET
Am looking for a developer who can convert an MT5 indicator into MT5 EA. I have the source code of the indicator and i want it modified a little to fit my parameters. Only developer with Smart Money Concept should get in touch. The developer will also add another MT5 indicator( this will be used to confirm entries and exit of orders. More details to follow
I want a program that automatically disables manual trade execution once a specified number of trades have already been placed. ie. After a total of 3 trades have been placed on that day, manual trade execution should be disabled. I want the program to also limit the amount of lots that can be traded in any given day. ie. Maximum of 15 standard lots in any given day. The program should disable manual trade execution
Currency Strength EA 30 - 80 USD
hi These ACS&Csdash indicators work in the same way but provide signals of different currency pairs. And Either of these two ACS indicators should be selected any one and set to trade. It provides signals of multiple currency pairs in the interface So the EA should work like that to trade multiple currency pairs on one chart. CsDash should analyze whether it is a strong signal to show on the dash board and make a

Информация о проекте

Бюджет
50 - 150 USD
Исполнителю
45 - 135 USD