Pip distance from moving average indicator

MQL4 Indicadores

Tarea técnica

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)



Archivos adjuntos:

JPG
Distance.JPG
125.7 Kb

Han respondido

1
Desarrollador 1
Evaluación
(5)
Proyectos
9
0%
Arbitraje
5
20% / 20%
Caducado
1
11%
Libre
2
Desarrollador 2
Evaluación
(117)
Proyectos
138
41%
Arbitraje
30
7% / 77%
Caducado
17
12%
Libre
3
Desarrollador 3
Evaluación
(6)
Proyectos
8
13%
Arbitraje
1
0% / 100%
Caducado
0
Libre
4
Desarrollador 4
Evaluación
(45)
Proyectos
59
14%
Arbitraje
31
26% / 52%
Caducado
35
59%
Libre
5
Desarrollador 5
Evaluación
(23)
Proyectos
45
20%
Arbitraje
24
29% / 42%
Caducado
12
27%
Trabaja
6
Desarrollador 6
Evaluación
(36)
Proyectos
45
47%
Arbitraje
5
40% / 60%
Caducado
9
20%
Libre
7
Desarrollador 7
Evaluación
(546)
Proyectos
823
73%
Arbitraje
15
53% / 13%
Caducado
193
23%
Libre
8
Desarrollador 8
Evaluación
(135)
Proyectos
192
42%
Arbitraje
17
29% / 59%
Caducado
28
15%
Libre
9
Desarrollador 9
Evaluación
(555)
Proyectos
922
48%
Arbitraje
300
59% / 25%
Caducado
123
13%
Libre
Solicitudes similares
Convert Trading View indicator to MT5. The source code is available for free on Trading View. Changing the colors of buffers used for each color must be allocated to separate buffers This is so that there is no difficulty in making a robot through the indicator need source file
I have the source code attached which is my attempt at merging / converting: Into MQL5 code, but instead of being an indicator I just need it to return the same values as the indicator. What I need help with: I need the values in the comments to return similar to the demo indicator below - currently it is showing values near the price, but would instead expect - values from -80 to 80 like the indicator How to test: -
Hello, I have a TMA dashboard and want to modify it. The dashboard tracks if price is above or below the TMA bands, and creates a signal based on the daily or weekly open. Changes: Replace 2 columns that track the daily and weekly open (with arrows) to track the previous Heiken Ashi candle instead(Up arrow for previous bullish candle, Down arrow for previous bearish candle. Correct the Dashboard signals since we are
EA is based on Zig Zag indicator and candlestick patterns and is not catching all valid trades due to Zig Zag limitations, lagging last leg or repainting I guess. Before I will select you please present me a solution for this issue. I am so sorry, but I haven't got time for an amateur programmers. I am searching a programmer for a longer co-operation
I'm looking for an experienced developer to make some modifications to my MT4 Currency Strength Table indicator. Key Requirements: - I would like to have the add on feature of delta or the difference of the strength of currencies displayed in the new table and showing as B or S of only the currency pair when the delta or difference arises. the delta will change values as the difference of strength of compared
I'm looking for an experienced developer to make some modifications to my MT4 Currency Strength Table indicator. Key Requirements: - I would like to have the add on feature of delta or the difference of the strength of currencies displayed in the new table and showing as B or S of only the currency pair when the delta or difference arises. the delta will change values as the difference of strength of compared
Hello! I want to create an exact replica of a momentum indicator (MQL4) that also uses Bollinger bands. See pics attached. I do not have source code. I generally take entry when mom candle exits BB. I will appreciate a push alert when this happens on candle close. Keep it simple, keep it accurate. Inputs I generally use are attached. I don't show the EMA lines on the indicator. To the developer that will support me
Hello there and how have you been !!I I need a developer who is ready to take up a project ..I would like to convert Ninjatrader indicator to Tradingview all the details about the project will be sent directly to you via the inbox…
Looking for a developer to create an MT4 indicator and an EA / Robot. Indicator-based strategy consisting of several moving averages, PSAR Indicator and Pinescript indicator called Coral Trend Indicator by LazyBear (pinescript source code will be provided and will need converting to MT4 code - 34 lines of code). Strategy to be an intra-day trading period on 5-minute timeframe for the European session but “Trading”
Modify EA 30+ USD
please make it work so the EA places the Trade once the indicators are on the same direction. say No3 SELL signal is showing but the trend is BUY, so once the trend changes to SELL then EA places the trade. like wise with MACD ZZ Level - Enable / Disable zTrend - Enable / Disable MACD - Enable / Disable also a Smart TP/SL (Enable/Disable) feature = for ones when the trend changes, then EA uses this indicator signal

Información sobre el proyecto

Presupuesto
30+ USD
IVA (19%): 5.7 USD
Total: 35.7 USD
Para el ejecutor
27 USD