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

MQL4 Experten

Auftrag beendet

Ausführungszeit 9 Tage
Bewertung des Entwicklers
Good customer. Very clear task description.
Bewertung des Kunden
Elena coded an EA for me. Great communication, finished ahead of deadline and the EA met my requirements on the first try. Excellent Developer.

Spezifikation

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.




Bewerbungen

1
Entwickler 1
Bewertung
(878)
Projekte
1390
67%
Schlichtung
117
32% / 42%
Frist nicht eingehalten
215
15%
Frei
2
Entwickler 2
Bewertung
(15)
Projekte
21
38%
Schlichtung
3
33% / 33%
Frist nicht eingehalten
4
19%
Frei
3
Entwickler 3
Bewertung
(782)
Projekte
1346
72%
Schlichtung
109
28% / 49%
Frist nicht eingehalten
340
25%
Beschäftigt
4
Entwickler 4
Bewertung
(68)
Projekte
111
26%
Schlichtung
17
6% / 71%
Frist nicht eingehalten
15
14%
Frei
5
Entwickler 5
Bewertung
(41)
Projekte
46
28%
Schlichtung
9
0% / 100%
Frist nicht eingehalten
7
15%
Frei
6
Entwickler 6
Bewertung
(13)
Projekte
15
27%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
1
7%
Frei
7
Entwickler 7
Bewertung
(94)
Projekte
148
59%
Schlichtung
16
38% / 13%
Frist nicht eingehalten
25
17%
Frei
8
Entwickler 8
Bewertung
(1)
Projekte
1
100%
Schlichtung
0
Frist nicht eingehalten
0
Frei
9
Entwickler 9
Bewertung
(8)
Projekte
13
85%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Frei
10
Entwickler 10
Bewertung
(96)
Projekte
142
75%
Schlichtung
0
Frist nicht eingehalten
2
1%
Frei
11
Entwickler 11
Bewertung
(555)
Projekte
922
48%
Schlichtung
300
59% / 25%
Frist nicht eingehalten
123
13%
Arbeitet
12
Entwickler 12
Bewertung
(2042)
Projekte
2592
62%
Schlichtung
112
45% / 26%
Frist nicht eingehalten
417
16%
Arbeitet
13
Entwickler 13
Bewertung
(259)
Projekte
533
50%
Schlichtung
54
41% / 37%
Frist nicht eingehalten
224
42%
Arbeitet
14
Entwickler 14
Bewertung
(221)
Projekte
369
66%
Schlichtung
10
50% / 0%
Frist nicht eingehalten
46
12%
Frei
15
Entwickler 15
Bewertung
(26)
Projekte
34
26%
Schlichtung
7
14% / 43%
Frist nicht eingehalten
7
21%
Frei
Ähnliche Aufträge
My trading platform is showing some list of error and i want want to add some features to correct the Error. I need an Expert in this field with Experience to fix the issues for me Below is the Source File
I need smart, professional, and fast programmer for doing this project quickly, that have experience in EA with minimum 500 projects finish, and have good review and reputation from their client Share your link review, if you not qualified, dont apply! I will bidding the programmer from experience, review, reputation, price, and days working My EA using Moving Average, Average True Range, and using consecutives
Need a programmer to build an EA to do BUY/SELL based on indicator alerts. I dont have a source file of indicator but i have a alert file of indicator. If interested then please reply me back asap. thanks
Hi, I'm looking for an experienced developer to create an Expert Advisor for MT5 based on variable distance and size order openings. The developer must have already completed similar work. Thanks
The future of the traders be a good traders and patient and humble person faithful loyalty to your job and last be a professional traders and helping a dream of us how to trade and etc,,,,,,,,,,,,,,,,,🤑
Executed every minute when the condition is met Added 3 adjustable parameters 01 Number of orders per order: 0.1 OR 0.01 LOT 02 The upper limit of the number of buy (sell) orders: 5 OR 10 03 ADX start condition: UP OR DOWN I NEED OPEN CODE
I need a simple equity protection EA. This EA will automatically close all open position when a certain margin level % is reached. For example if an account margin level % reaches 500% the EA must close all current opened positions automatically
HFT Scalper EA needed 50 - 500 USD
Overview Develop a high-frequency trading scalper EA for Forex markets Goal: exploit small price movements for rapid profits Key Requirements Trading Strategy Scalping strategy: buy/sell quickly to capture small price movements Use technical indicators (e.g., Moving Averages, RSI) to identify trading opportunities Risk Management Set stop-loss and take-profit levels Implement risk-reward ratio (e.g., 1:2) Order
Boa noite. Preciso de um robô baseado em latência HFT que replique as operações do mt4 nas corretoras de opções binárias. Precisa funcionar em todas as moedas e em todos os tempos. Precisa funcionar principalmente nas corretoras Quotex e Iq option. Ajustável: Quantidade de lotes, stop loss e estop ganhos. Uma área de logins e senha é necessária. tbm um trabalho , pois preciso comercializar o software após os testes
Will handle over the code as soon you are ready :) I have written a more or less simple MT5 EA, which is copying realtime from another MT5 terminal on the same computer. One terminal act as master and the other as slave. Its file absed, means, the master saves his trades into file and the slave copies it from the file

Projektdetails

Budget
50 - 150 USD
Für die Entwickler
45 - 135 USD