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
評価
(878)
プロジェクト
1390
67%
仲裁
117
32% / 42%
期限切れ
215
15%
2
開発者 2
評価
(15)
プロジェクト
21
38%
仲裁
3
33% / 33%
期限切れ
4
19%
3
開発者 3
評価
(787)
プロジェクト
1354
72%
仲裁
110
27% / 48%
期限切れ
340
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
評価
(555)
プロジェクト
922
48%
仲裁
300
59% / 25%
期限切れ
123
13%
取り込み中
12
開発者 12
評価
(2050)
プロジェクト
2602
62%
仲裁
113
44% / 26%
期限切れ
417
16%
仕事中
13
開発者 13
評価
(261)
プロジェクト
535
50%
仲裁
54
41% / 37%
期限切れ
224
42%
仕事中
14
開発者 14
評価
(221)
プロジェクト
369
66%
仲裁
10
50% / 0%
期限切れ
46
12%
15
開発者 15
評価
(26)
プロジェクト
34
26%
仲裁
7
14% / 43%
期限切れ
7
21%
類似した注文
DEAR DEVELOPERS, TO ANYONE WHO WOULD LIKE TO SHARE IN THEIR SUCCESS IIN TRADING AND DEVELPMENT OF PROFITABLE EA. I NEED A READY AN AUTOMATIC EA THAT I CAN USE ON MY LIVE TRADING ACCOUNT. THIS EXPERT ADVICE SHOULD TRADES ALL INSTRUMENTS AND CAN COMPUND PROFITS THAT CAN ATLEAST MAKE 100% ROI MONTHLY. AGAIN THIS SHOULD BE WORKABLE EA WITH PROVE OF STEADY RESULTS AND RELATIVE DRAWDOWN. THE EA SHOULD WORK ON VPS 24/7
I want to connect a bot to funding accounts (FTMO) if it is programmed from MetaTrader 4. Do you know if FTMO allows EAs to be connected to their private servers? Have you done this for FTMO before? What do you think is a better option in this case to program from mt4 or from Pinescript with the help of Pineconnector
Hello, I need someone to create a script with these parameters in Tradestation (EasyLanguage). Here's what I'm trying to achieve: STRATEGY: I will manually select and sell an OTM naked call. My goal is to let it expire OTM. However if price goes past the strike, this strategy will buy and sell 100 shares of the underlying to minimize risk that I have to buy/sell shares at a higher price. What I want EasyLanguage to
Simple Hedge Zone EA 30 - 50 USD
inputs : 1 - order factor type : initial contract size / net contract size initial order size : it mean the multiply on the initial position it mean if i open 1 lot and the factor is 2.0 the second order will be 2 and the third one it will be 4 net contract size : it mean the multiply on net contract opened like exposure , it mean if i open 1 lot and the factor is 2.0 the second order will be 3 because in the stage
Guten Tag, benötigt wird eine Software die Trades auf einem MT4 oder MT5 kopiert und auf die xStation übergibt: http://developers.xstore.pro/documentation/ Auf dem MT4/5 Chart muss ein Hinweis stehen und wie die aktuelle Verbindung ist. Einstellbar wie zum Beispiel: https://drive.google.com/file/d/1ltg83qnbj-FgWRrq4q-1r1NS-vL5b-jE/view?usp=drive_link Es reicht wenn man es in MT4/5 Settings einstellen kann. Es muss
hi i want to create an ea based on price action,moving avereges and fair value gaps. i want the robot to operate on london session and newyork session. i want the bot to identify gaps, fill them and open position after fill the gap on opposite direction. Also i want the robot to open a position after a bearish or bullish engulfing candle cross the 200 moving averages
Hello, I am looking for a skilled MQL4, MQL5 PROGRAMMER WHO IS CAPABLE OF CODING A WELL AUTOMATED EA FOR MT4 AND MT5, I NEED AN EA THAT RUN WELL AS BELOW streamlined version of MY strategy Price-Based Entry : The EA opens trades based on price movements, either buying or selling. Profitable Exit : Trades are closed when they reach a predefined profit target. If a trade starts moving into negative territory, the EA
I want to build a well performance mt4 indicator or trading view indicator for my strategy, please you must make sure you are a professional in building mt4 indicator or trading view indicator with serveral years of experience, so if you are kindly react to this and let talk more on how you will get my indicator working
EA development 30+ USD
HELLO there, am looking for some one that have serveral years of experience in developing a well performance EA, that can use both mt4, mt5 platform for development, please you most be an expert in the coding of EA , THANK YOU
All rights published by the owner. Its about experience and expert advisors may not be 100% accurate but they will assist you placing or execute trades when you are busy for you not to miss entries. Its a component of mixed confluence of strategies as it fit in my trading style

プロジェクト情報

予算
50 - 150 USD
開発者用
45 - 135 USD