EA for indices needed. The market entry signal is based on one custom trend indicator (code is attached) and one of the default trend strength indicators of MT5.

MQL5 전문가

작업 종료됨

실행 시간 6 일
고객의 피드백
If you need a developer who clearly exceeds expectations and provides a great result, this is the guy you are looking for! Great result, I am very happy!!
피고용인의 피드백
Tank you so much

명시

Hi,

I need an Expert Advisor for MetaTrader 5. I would like to use this Expert Advisor for several index charts. The market entry signal is based on one custom trend indicator (code is attached) and one of the default trend strength indicators of MT5. The preferred timeframe is four hours, but this Expert Advisor should work for H1, M30 and M15 as well. The closing of positions is either made by a trailing stop, by another default indicator signal of MT5 or a signal of the custom indicator. I outlined the details below...

Looking forward to your responses!

Best regards,

SnakU



Trading strategy

  1. Signal to open a position
    • long position is opened if the following conditions are met:
      1. Both the slow and the fast trend line of the custom “Perfect Trend Line” indicator are below the close price of the completed previous (formed) candle.
      2. The value of the ADX indicator of the close price of the completed previous (formed) candle is greater than 25.
      3. The value of the of the ADX indicator of the close price of the current candle is higher than that of the ADX indicator of the close price the close price of the completed previous (formed) candle.
      4. No open long position already exists.

If all the conditions are met, a pending order is placed at the new candle. This is indicated in the attached picture 2.

    • short position is opened if the following conditions are met:
      1. Both the slow and the fast trend line of the custom “Perfect Trend Line” indicator are above the close price of the current candle.
      2. The value of the ADX indicator of the close price of the completed previous (formed) candle is greater than 25
      3. The value of the of the ADX indicator of the close price of the current candle is higher than that of the ADX indicator of the close price the close price of the completed previous (formed) candle.
      4. No open short position already exists.

If all the conditions are met, a pending order is placed at the new candle. This is indicated in the attached picture 2.

  1. Pending order parameter – part 1
    • The pending order uses the expiration parameter “Today” and the order type is “Buy Limit” or “Sell Limit”. The “Buy Limit” price is set at a fixed percentage below the close price of the last completed candle, the “Sell Limit” price is set at a fixed percentage above the close price of the last completed candle. The fixed percentage is an input variable called LimitPercent, with an initial value of 0.1%

Buy Limit is calculated as follows: Close price of last completed candle*(100-LimitPercent)/100

Sell Limit is calculated as follows: Close price of last completed candle*(100+LimitPercent)/100

  1. Pending order parameter – part 2
    • The pending order lot is calculated as a fixed percentage of the current account balance.

Lot = (Leverage/current ask or bid price) * (LotPercent / 100) * Account Balance where:

      1. Balance                 current account balance
      2. Leverage               leverage to calculate the margin required to open a position with a size of 1 lot, initialised by a default value of 20
      3. LotPercent             the percentage for the calculation of the lot, initialised by a default value of 10%

For example, when LotPercent = 10 %, a leverage of 20, a current account balance of 10,000 EUR and current ask/bid price is 13,724, the lot for DAX30 will be:

20/13,724*10/100*10,000=1.457

The obtained result is rounded off by the usual rules to the nearest correct tenth digit, in this case 1.46. If the calculated lot size is smaller than 0.1, the lot size should be rounded to 0.1.

The Ask price is used for long orders and the Bid price for short orders.

  1. Position modification – Stop Loss
    • The StopLoss (SL) is calculated as a fixed percentage of the current account balance and is added to the current position, using the price of this position.

SL = Price of the opened position -/+ (SLPercent/100)/Position’s lot

      1. Balance                  current account balance
      2. Position’s lot           as calculated under 2.      
      3. SLPercent              fixed accepted SL percentage
      4. “+” for short positions, “-“ for long positions

For example, when Position’s lot = 1.46, the current account balance = 10,000 EUR, the SL for a long/short position for DAX30 (assuming price of the opened position was 13,724) will be:

SL Long Position: 13,724-(0.02*10,000)/1,46=13,586.76

SL Short Position: 13,724+(0.02*10,000)/1,46=13,861.24

SL distance in both cases is (0.02*10,000)/1,46

  1. Position modification – Trailing Stop
    • The modification is done by using a fixed SL distance, the one that is calculated in 4.
    • If a long position is opened, the initial SL value is used as describe in 4.
    • If a short position is opened, the initial SL value is used as describe in 4.
    • Modifying the SL is done on a close price basis, taken from the completed previous (formed) candle, the current candle (uncompleted) is not used. Therefore, the modification should occur no more frequently than once in a candle.
    • Moving the SL is permitted only in the direction of profit of the position - up for long position and down for short position.
    • If you cannot set the SL at the level of the line, it should be set at the minimum allowable distance (but only if it complied with the previous rule of moving in the direction of the profit).
    • The trailing stop feature should be configurable (AllowTrailing = true/false parameter).

 

6.     Position closing

§  Closing of long positions should be done if one of the cases described below is true

1.     Case 1: A stop loss is touched as outlined in 3. and 4. If it is possible, this is only checked on an adjustable timeframe, i.e., 1 minute by the input parameter TimerTime, and not on every tick.

2.     Case 2: The MACD candle falls below the MACD signal line by more than a fixed percentage (Parameter name: LineOverrun), calculated as follows:

(Signal line value-MACD bar value)/(MACD bar value)>LineOverrun/100

If it is possible, this is only checked on an adjustable timeframe, i.e., 1 minute by the input parameter TimerTime, and not on every tick.

3.     Case 3: The fast trend line value of the custom indicator “Perfect trend line” is higher than the current price, whereas the slow trend line value of the custom indicator “Perfect trend line” is lower than the current price

If it is possible, this is only checked on an adjustable timeframe, i.e., 1 minute by the input parameter TimerTime, and not on every tick.

Case 2 is illustrated in the attached picture 3 by the second arrow from the left (slow line = blue dotted line, fast line = red dotted line).

§  Closing of short positions should be done if one of the cases described below is true

1.     Case 1: A stop loss is touched as outlined in 3. and 4. If it is possible, this is only checked on an adjustable timeframe, i.e., 1 minute by the input parameter TimerTime, and not on every tick.

2.     Case 2: The MACD candle runs above the MACD signal line by more than a fixed percentage (Parameter name: LineOverrun), calculated as follows:

  (Signal line value-MACD bar value)/(MACD bar value)>LineOverrun/100

If it is possible, this is only checked on an adjustable timeframe, i.e. 1 minute by the input parameter TimerTime, and not on every tick.

3.     Case 3: The fast trend line value of the custom indicator “Perfect trend line” is higher than the current price, whereas the slow trend line value of the custom indicator “Perfect trend line” is lower than the current price.

If it is possible, this is only checked on an adjustable timeframe, i.e. 1 minute by the input parameter TimerTime, and not on every tick.Case 2 is illustrated below by the second arrow from the left (slow line = blue dotted line, fast line = red dotted line).

Case 2 is illustrated in the attached picture 4 by the second arrow from the left (slow line = blue dotted line, fast line = red dotted line).


  1. Miscellaneous
    • The information on the opening/closing of positions and of modifications of the SL should be stored in the Journal.
    • If there are any errors, it must print a message describing the error.
    • When I run the EA on a real account, it should create a button on the chart, which permits trading. The work should begin only after I click on it.
    • When I change an account, the EA should notify me about this and stop its work until a new launch is executed (an alternative - to ask the user whether it should continue its work).

 

8.     Summary of adjustable input parameters

    • Custom indicator “Perfect trend line”
      1. Fast length             Default value: 10
      2. Slow length            Default value: 20
    • MACD
      1. Fast EMA              Default value: 12
      2. Slow EMA              Default value: 26
      3. MACD SMA           Default value: 9
      4. Apply to                 Default value: Close
    • ADX
      1. Period                    Default value: 20
      2. ADX-Level             Default value: 25
    • Pending order
      1. LimitPercent           Default value: 0.1%
    • Volume lot
      1. LotPercent             Default value: 10%
    • Stop Loss
      1. SLPercent              Default value: 2%
      2. AllowTrailing           Default value: True
      3. TimerTime             Default value: 1min
    • TakeProfit
      1. LineOverrun           Default value: 5%


파일:

PNG
Picture1.png
90.0 Kb
PNG
Picture2.png
91.1 Kb
PNG
Picture3.png
114.2 Kb
PNG
Picture4.png
110.6 Kb

응답함

1
개발자 1
등급
(38)
프로젝트
50
10%
중재
1
0% / 0%
기한 초과
8
16%
무료
2
개발자 2
등급
(14)
프로젝트
19
11%
중재
1
0% / 100%
기한 초과
5
26%
무료
3
개발자 3
등급
(4)
프로젝트
5
0%
중재
5
0% / 80%
기한 초과
2
40%
무료
4
개발자 4
등급
(119)
프로젝트
169
38%
중재
9
78% / 22%
기한 초과
15
9%
무료
5
개발자 5
등급
(116)
프로젝트
137
36%
중재
15
13% / 67%
기한 초과
9
7%
무료
6
개발자 6
등급
(68)
프로젝트
111
26%
중재
17
6% / 71%
기한 초과
15
14%
무료
비슷한 주문
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
Hello Every one, Good day, I want from someone professional to create an EA is working on Mt5, This EA is working by depend on some indicators, and all those indicators must be working on MACD window, not on the chart, for more details please read my attached pdf file carefully. Many Thanks
I'm looking for an expert MQL5 developer that can create an EA that's based on my price action trading strategy with no indicators. The EA must analyze trades based on my price action rules, enter trades based on my price action rules, manage trades based on my price action rules and exit trades based on my price action rules
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
I need stochastic div (hidden &regular ea) that should perform task in all tf's ..divergence is a repaint stly so i want to use it with candlestick flips .. so bet for it
Hello, I have an indicator from a friend and I'd like to replicate it on my own TradingView or MT5 platform. Could you assist me with that?. Here is the link
so basically I have an EA(mql5), AI script(python), flask server and socket server both on python. Now this is an experimental script as I am trying to learn. However the EA is not entering any trades. How much would it cost for you to troubleshoot this for me? Thank you in advance
NEW FUNCTION 50+ USD
La idea es la siguiente, sería un EA semi automático. Yo como trader opero en zonas. En adelante las vamos a denominar ``zonas calientes´´. El EA debe que necesito debe operar conforme a 4 zonas calientes que yo configure en el mismo. ¿Qué hará el EA en cada una de esas zonas calientes que yo he configurado? En cada una de estas zonas el EA debe realizar hedging (crear un rango en el cual el EA entrara en sell o en

프로젝트 정보

예산
50 - 150 USD
VAT (19%): 9.5 - 28.5 USD
총: 59.5 - 178.5 USD
개발자에게
45 - 135 USD
기한
에서 10  20 일