Pip distance from moving average indicator

MQL4 Indicadores

Termos de Referência

Hello,


I need an indicator that draws two lines (or dots) on the chart, one above and one under the last price and moving average crossing.

Parameters:

- usual Moving average parameters(Period, Method, Apply to)

- numbers of candles we analize backwards (PARAM1)

- numbers of maximum distances to average (PARAM2)

- color for 2 lines


The distance of the lines from the last closed calndle will be calculated as follows:

1.) go back PARAM1 candles and calculate all maximal price distances for long and short (closing price above and under the moving average) from the moving average. A distance is defined as the maximal candle closing distance between the price and moving average between two price and moving average crosses. Please take a look at the attached prictures. The blue triangles show the price and moving average crossings. The white lines are the maximal distances between those crossings.

2.) Calcualte the average of the highest distances given by PARAM2

3.) draw a line above and one under the last price and moving average crossing for each following candle until the price and moving average crosses

4.) calculate and draw again, if the price crosses the moving average


Example:

Step 1.) we go back 1000(PARAM1) candles and analize the maximul distances and we get this distances:

- 10 pips

- 20 pips

- 30 pips

- 40 pips

- 50 pips

2.) if PARAM2 = 3, we take the 3 highest distance and build the simple average : (30 + 40 + 50) / 3 = 40


3.) Draw the two lines ( can be also dots like Parabolic SAR)



Arquivos anexados:

JPG
Distance.JPG
125.7 Kb

Respondido

1
Desenvolvedor 1
Classificação
(5)
Projetos
9
0%
Arbitragem
5
20% / 20%
Expirado
1
11%
Livre
2
Desenvolvedor 2
Classificação
(117)
Projetos
138
41%
Arbitragem
30
7% / 77%
Expirado
17
12%
Livre
3
Desenvolvedor 3
Classificação
(6)
Projetos
8
13%
Arbitragem
1
0% / 100%
Expirado
0
Livre
4
Desenvolvedor 4
Classificação
(45)
Projetos
59
14%
Arbitragem
31
26% / 52%
Expirado
35
59%
Livre
5
Desenvolvedor 5
Classificação
(23)
Projetos
45
20%
Arbitragem
24
29% / 46%
Expirado
12
27%
Livre
6
Desenvolvedor 6
Classificação
(36)
Projetos
45
47%
Arbitragem
5
40% / 60%
Expirado
9
20%
Livre
7
Desenvolvedor 7
Classificação
(550)
Projetos
827
73%
Arbitragem
15
53% / 13%
Expirado
193
23%
Trabalhando
8
Desenvolvedor 8
Classificação
(135)
Projetos
193
42%
Arbitragem
17
29% / 59%
Expirado
28
15%
Livre
9
Desenvolvedor 9
Classificação
(564)
Projetos
933
47%
Arbitragem
302
59% / 25%
Expirado
125
13%
Carregado
Pedidos semelhantes
I need a programmer for converting a MetaTrader indicator into ea for TradeLocker. Additionally, I would like to have a new EA built in TradeLocker that mirrors the logic of the original MetaTrader, including the specific rules and conditions I need. Please contact me only if you have prior experience converting scripts from MetaTrader to TradeLocker
I need to make several modifications to an EA (Expert Advisor) and would appreciate it if you could provide your most competitive quote for these edits. Please let me know your best price for completing these changes, as I’m looking to get this done promptly and effectively. Thank you
hello here am looking for someone that can assist me in removing validation form my demo file and if anyone is interested dm the for more details i will be waiting to get any reply by some on that can assist me with this
A green point should be added at the Low point of candlesticks in the oversold zone—it is the L point. If there is at least one L point between two H points, search for a LL point in the interval between two H points. The candlestick with the lowest Low price will be the LL point. Generally, the LL point is not necessarily an L point. Search for candlesticks with the lowest Low price. If there is at least one H point
Trading robots are programs, which operate according to underlying algorithms. An algorithm is a set of actions that need to be performed in response to certain events. For example, the most common task in algo trading is the identification of the "New bar" event. When the event occurs, the robot checks the emergence of trading signals and acts accordingly. Before you decide to program or order a trading robot, you
RRB 50 - 400 USD
The overbought zone is determined as candlesticks, at which the indicator value Value > Lmax (Lmax=-20). The oversold zone is determined as candlesticks, at which the indicator value Value < Lmin (Lmin=-80). The values of Lmax and Lmin should be included in indicator parameters. A yellow point should be added at the High point of candlesticks in the overbought zone—it is the H point. A green point should be added at
At bot 30+ USD
Help me to trade create orders for me and analyze the markets and decide when is a good time to buy or sell. Determine which pairs are best to use to trade with and indicate trading signals to me
Fair Value Gap Scanner 30 - 100 USD
Hi, Greetings. Can somebody revert with an offer to code a FVG Scanner across Forex Pairs / Time Frame Selection / Alert please in order to support a Trading Strategy where entries are considered with the market direction confluence such as a Half Trend / Semafor Indicator. Look forward to hear back. Kind Regards. Anton
Project Description : I need an experienced programmer to convert the TradingView indicator "CURRENCY STRANGHT CHART by boitoki" into a MetaTrader 5 (MT5) format. The indicator should function identically to the original and be fully compatible for integration into an Expert Advisor (EA) on MT5. Requirements : Convert "TTD Middle Right Normal" from TradingView to a .mq5 file for MT5. Ensure all indicator features and
Project Description : I need an experienced programmer to convert the TradingView indicator "RSI BARS" into a MetaTrader 5 (MT5) format. The indicator should function identically to the original and be fully compatible for integration into an Expert Advisor (EA) on MT5. Requirements : Convert "TTD Middle Right Normal" from TradingView to a .mq5 file for MT5. Ensure all indicator features and visual signals are

Informações sobre o projeto

Orçamento
30+ USD
IVA (19%): 5.7 USD
Total: 35.7 USD
Desenvolvedor
27 USD