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

MQL4 Experts

Trabalho concluído

Tempo de execução 9 dias
Comentário do desenvolvedor
Good customer. Very clear task description.
Comentário do cliente
Elena coded an EA for me. Great communication, finished ahead of deadline and the EA met my requirements on the first try. Excellent Developer.

Termos de Referência

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.




Respondido

1
Desenvolvedor 1
Classificação
(878)
Projetos
1390
67%
Arbitragem
117
32% / 42%
Expirado
215
15%
Livre
2
Desenvolvedor 2
Classificação
(15)
Projetos
21
38%
Arbitragem
3
33% / 33%
Expirado
4
19%
Livre
3
Desenvolvedor 3
Classificação
(780)
Projetos
1344
72%
Arbitragem
109
28% / 49%
Expirado
340
25%
Ocupado
4
Desenvolvedor 4
Classificação
(68)
Projetos
111
26%
Arbitragem
17
6% / 71%
Expirado
15
14%
Livre
5
Desenvolvedor 5
Classificação
(41)
Projetos
46
28%
Arbitragem
9
0% / 100%
Expirado
7
15%
Livre
6
Desenvolvedor 6
Classificação
(13)
Projetos
15
27%
Arbitragem
1
0% / 100%
Expirado
1
7%
Livre
7
Desenvolvedor 7
Classificação
(94)
Projetos
148
59%
Arbitragem
16
38% / 13%
Expirado
25
17%
Livre
8
Desenvolvedor 8
Classificação
(1)
Projetos
1
100%
Arbitragem
0
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
(8)
Projetos
13
85%
Arbitragem
1
0% / 100%
Expirado
0
Livre
10
Desenvolvedor 10
Classificação
(95)
Projetos
141
75%
Arbitragem
0
Expirado
2
1%
Trabalhando
11
Desenvolvedor 11
Classificação
(555)
Projetos
922
48%
Arbitragem
300
59% / 25%
Expirado
123
13%
Livre
12
Desenvolvedor 12
Classificação
(2039)
Projetos
2589
62%
Arbitragem
112
45% / 26%
Expirado
417
16%
Trabalhando
13
Desenvolvedor 13
Classificação
(259)
Projetos
533
50%
Arbitragem
55
40% / 36%
Expirado
224
42%
Carregado
14
Desenvolvedor 14
Classificação
(221)
Projetos
369
66%
Arbitragem
10
50% / 0%
Expirado
46
12%
Livre
15
Desenvolvedor 15
Classificação
(26)
Projetos
34
26%
Arbitragem
7
14% / 43%
Expirado
7
21%
Livre
Pedidos semelhantes
PROP FIRM EA 4500 - 7000 USD
Hi, i need a Expert Advisor, that can pass prop firm Challenges. A bit of martingale is OK (max. 8 levels) Profit 10% Max Drawdown (DD) 10% Max Daily Loss 4% All trades with SL NO trades during and after high impact news NO trades during Weekend Profitable backtest from eentire history Trades Forex (If you already have a finished EA, send me the BACKTEST I will only ENTERTAIN people with sample ea from previous
Hi, I need a mt5 EA that can track the balance and equity of my account, and show it by magic number also. Ideally it will be able to show the graph on a blank currency chart when the EA is loaded to it. It should also show some basic stats like "max DD%/$ today" "max DD%/$ yesterday" "max DD all time". Maybe we can have tick boxes for each magic number to add/remove them from the graph visual. Is this possible
Ciao, le caratteristiche del mio sistema di trading, sono le seguenti. In allegato il segnale di ingresso a mercato che l'expert dovrà fare su un time frame D1 o W1. Gli asset sono 28 e il segnale sarà BUY o SELL nella direzione del trend. Lavoro con leva 1/500 e ogni volta che l'expert entrerà a mercato, ho la necessità di generare una griglia a MARTINGALA di supporto alla direzione del trend. La gestione delle
An expert in trading i desire something that will make a change in trading industry,something that will be of help to all the Forex trading beginners.Because that's my aim,an aim to help all those that do struggle to trade Forex. many traders be it professionals or non professionals sometimes do struggle to make daily profits,so i thought and said,why not help them
I have a task for creating an EA, which will trade based on predefined levels. Also having time-trigger and time restriction. 1.Let me first mention that expected time for this task is about 10-18days for total completion and payment confirmation. I have right now small windows of time during the day when I could pay attention to this EA. But honestly, I believe we shall manage for 4-5 days+ 3-5 working days of
I'm looking for someone who has experience in takepropips management and Donchian Indiciator, I need settings that automatically take over signals trading It is important that someone already uses the software, as it is very complex
Hello, I am seeking a skilled developer experienced in MetaTrader 5 (MT5) programming to assist me in converting an existing MetaTrader 4 (MT4) Expert Advisor (EA) to MT5. only professional to apply
I need a very good programer a developer that's perfect in building a Telegram signal copy trade Bot very well, that has done about 100 project successfully, please if you don't know how to build this telegram signal copy trade bot don't apply for this project, if you know that you will not start quickly don't apply. I want you to build me a smart Telegram signal copy trade Bot that has subscriber dashboard, that
المطلوب تحويل استراتيجية مكونة الموفينجات الى اكسبيرت تداول ألى او نصف ألى بتم تحديد ذلك من الاعدادات مسبقا 1-الاكسبيرت يدخل تحديدا 3 انواع من الصفقات مع الاتجاه كل صفقة بشروط محددة عن طريق استخدام موفينج او اكثر من الموفينجات 2-ويدخل ايضا صفقتين ضد الاتجاه كل صفقة لها شروط محدده ايضا عن طريق استخدام موفينج او اكثر من الموفينجات 3-الموفينجات التى تتكون منها الاستراتيجية هى واحده فقط ولكن يتم توظيف احدهما او اكثر على
Hello i need to be able to create an EA / Indicator that when a trade reaches TP a screenshot is taken of the history of that trade showing the open price, TP and the profit amount, i then need this screenshot to be sent to Telegram

Informações sobre o projeto

Orçamento
50 - 150 USD
Desenvolvedor
45 - 135 USD