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
等级
(2099)
项目
2668
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%
空闲
相似订单
Hey greetings, It my pleasure to met you . I need a MT4 develop that can develop an EA based on alert . If you are a professional MT4 programmer you can kindly bid for this project and let proceed
Hello, I want an ( EXPERT ADVISER that can run automated) that will use CCI as the main entry and ATR as the exit. When the CCI is greater than the custom value of 0, you buy and when the CCI is less than the custom value -0, you sell. ATR Exit - profit of 1.0 and exit as .05 (Please, let it be modifiable) The time frame can be 15 or 5 minutes (variable) EMA 20 DAYS OR 480 (can be disabled) Spread should not be more
Hi, I would like to create an EA similar to this link: https://www.mql5.com/en/market/product/33508?source=External#description Drawdown 5% Scalping! Ability to avoid big price drop that can hurt capital! stable! bid and ask price different is 0.5
Qwuick Fix 85+ USD
I need a couple options added to an existing EA. I’m in need of an input option to modify pending orders, ensures live positions are correlated with pending orders, and provide an oversight that EA is running smoothly. I also need a calendar feature added to an existing input option for scheduling trades. This project is a side project to do on your own time with a 3-day window due date on Sunday – Monday by next
I am looking for an experienced expert to develop an Expert Advisor based on my idea. We can discuss the details in private messages. Please apply only if you are available now, as I need this project completed within one day
Mt4/mt5 30 - 100 USD
i need a remote trade copier over internet for mt4 and mt5, i need the open source, its ok also from stratch or if you have someone available please share some screen or other about it
THERE ARE FEW MODIFICATION IN PARAMETER LIKE ORDER PLACEING, ORDER CREAT AFTER STOP LOSS HITTING,STOP LOSS TRAILING AND EXIT FROM THE TRADE. FEW OPTION WILL BE DELETED FROM THE FILE ATTACHED. REST ALL IS SAME
I am seeking to develop a small scalping robot in MQL5 that utilizes the "Trend Catcher with Alert" indicator. This indicator provides entry and exit signals, which I would like the robot to follow. Key Requirements: Entry Signals : The robot should enter a trade based on the signals generated by the Trend Catcher indicator. Exit Signals : The robot should exit trades according to the indicator's exit signals
Counter ea 30+ USD
MULTISTRATEGIST EA I have a problem with my ea that the account always blows up before the price has a chance to arrive so I want a program that will counter the trades the expert makes by identifying the magic numbers There is also a need for the functions of SL delay and taking Perciel and I can control how many of the commands I want to take like Perciel 40% or maybe 80% and follow the rest and maybe not take
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 My budget for this 80$ max

项目信息

预算
50 - 150 USD
开发人员
45 - 135 USD