MQL5 EA Function to Calculate number of bars and the highest price between 2 points

MQL5 Experts

Job finished

Execution time 6 hours
Feedback from customer
Job well done. Developer available to address all issues that arose during demonstration. Great professionalism as well. Thanks for the service.

Specification

EMA Crossing

Any one to assist with the function at a minimum fee (See the attached pics)

Point A- Fast EMA crosses Slow EMA

Point B- The highest price before the Ask price retreats back to Slow EMA.

Point C-Ask price touches/crosses below Slow EMA.

What is required is a function that will

  • 1   Calculate the number of bars between Point A and Point C,
  • 2.   After calculating the number of bars, compares  if # of Bars > 3 and # of Bars < 25.
  • 3   If point 2 above is satisfied, then get the highest price between point C and point A i.e. point B
  • 4   Calculate the difference between Ask Price and the Highest Price B.

All these have to happen only if Fast EMA is greater than Slow EMA. You can use Fast EMA at 21 and Slow EMA at 50 but it should allow for different time setting. The function is to be integrated into a code that is being developed. I am still at a learning stage and battling with this function and need to get over it and get it done.

Please let me know how much you will charge and how long it will take. I will need test results to be sure if it is working.

Regards


Files:

Responded

1
Developer 1
Rating
(20)
Projects
19
11%
Arbitration
2
50% / 50%
Overdue
0
Working
2
Developer 2
Rating
(189)
Projects
244
61%
Arbitration
8
25% / 38%
Overdue
8
3%
Loaded
3
Developer 3
Rating
(196)
Projects
317
15%
Arbitration
20
40% / 35%
Overdue
16
5%
Loaded
4
Developer 4
Rating
(94)
Projects
115
37%
Arbitration
9
78% / 0%
Overdue
0
Working
5
Developer 5
Rating
(8)
Projects
8
13%
Arbitration
2
0% / 100%
Overdue
1
13%
Loaded
6
Developer 6
Rating
(143)
Projects
168
23%
Arbitration
7
29% / 43%
Overdue
4
2%
Working
7
Developer 7
Rating
(461)
Projects
521
33%
Arbitration
28
39% / 43%
Overdue
7
1%
Busy
8
Developer 8
Rating
(10)
Projects
25
28%
Arbitration
1
0% / 0%
Overdue
1
4%
Loaded
9
Developer 9
Rating
(38)
Projects
40
25%
Arbitration
23
13% / 70%
Overdue
8
20%
Loaded
10
Developer 10
Rating
Projects
1
0%
Arbitration
0
Overdue
0
Free
11
Developer 11
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(157)
Projects
174
43%
Arbitration
6
0% / 67%
Overdue
8
5%
Free
13
Developer 13
Rating
(60)
Projects
183
72%
Arbitration
4
100% / 0%
Overdue
1
1%
Free
14
Developer 14
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
15
Developer 15
Rating
(71)
Projects
80
10%
Arbitration
35
9% / 54%
Overdue
6
8%
Working
16
Developer 16
Rating
(2)
Projects
2
50%
Arbitration
0
Overdue
0
Free
17
Developer 17
Rating
(512)
Projects
773
63%
Arbitration
33
27% / 45%
Overdue
23
3%
Free
18
Developer 18
Rating
(15)
Projects
20
15%
Arbitration
0
Overdue
1
5%
Working
Similar orders
Sniper EA 70+ USD
I need some help to develop Sniper EA ZAR some one will know to create it please help Robot must trade all currency and any broker 1 to 5 trades daily
I am doing a project in fxdreema in which I am trying to make an EA that detects and draws the bos and choch and also allows the use of other indicators with buttons on the screen... but I can't get it to work correctly to detect the bos and choch and draw them on screen correctly
Telegram 30 - 79 USD
’m looking for a signal copier that automatically shares any position I open on my account through my phone directly to my Telegram channel. This tool should instantly send the details of each trade to the channel as soon as it's executed on my account
Trade methodology based on Red and Green lines entering Overbought / Oversold zone. Using confluence of Higher time frame a trade can enter when there is a strong slope angle. Designed to be an established trend scalping strategy on lower time frames. RSI and TSL must clearly cross, not just touch. Slope settings to be customisable see appropriate indicator for code. Attached indicators / EA · Synergy Traders
i want a forex robot that will read chats and enter trades on its oown. i want it to be able to use all trading strategies and partterns. good risky manegmemt, i want it to forcuse on Gold and and all major forex pairs. i want it to use stop loses and take profits as the market might change direction anytime. i want to work on both mt5 and mt4
I am doing a project in fxdreema in which I am trying to make an EA that detects and draws the bos and choch and also allows the use of other indicators with buttons on the screen... but I can't get it to work correctly to detect the bos and choch and draw them on screen correctly
Essa estratégia de trading automatizada foi desenvolvida para operar no par USD/JPY, utilizando médias móveis, RSI, e uma gestão de risco avançada com stop loss, take profit, trailing stop, e um sistema de análise de run-ups lucrativos. Vou explicar cada parte em detalhes: ### 1. **Identificação de Tendência:** - **Média Móvel Simples (SMA 200):** - A estratégia usa uma média móvel simples de 200 períodos
I need simple EA with not complex strategy and several custom parameters. I have example of the code. I have attached the example. Please reach me for more details. Thank you
I want you to create a strategy that has a 20 period moving average and 50 period moving average and takes buys if the 20 periods moving average is greater than the 50 period moving average and the stochastic RSI is below the 50 level and cross bullish. We want to exit our positions if price touches the 50 period moving average or if an opposing sell signal appears. For sells We want the 20 period moving averages to
Create an EA based on the below trading algorithm. Algorithm Details: • Currency Pair: XAUUSD (Gold) • Trigger Time: New York session start time • Sell Condition: Trigger a sell order if the price is above the price at the end of the Tokyo session on the same day. • Buy Condition: Trigger a buy order if the price is below the price at the end of the Tokyo session on the same day. Settings to Include: • Lot Size • TP

Project information

Budget
30 - 45 USD
For the developer
27 - 40.5 USD
Deadline
to 5 day(s)