Functions for Trendlines / MAs within an EA

MQL4 Experts

Trabalho concluído

Tempo de execução 2 dias
Comentário do cliente
well done!
Comentário do desenvolvedor
Thanks

Termos de Referência

Greeting Experts-Developer! I need some functions for an existing EA based on TrendLine indicator (below).

Please provide following functions for TL-indicator:

double calc_angle(){...} //calculates the "angle" of a TL by dividing (yE-yA)/bars


bool crossed(){...}//calculates, if two TLs are crossed within their length (for example the Question, if a 100 bars long TL and a 20 bars TL are crossing or not)

int crosses(int perio){...}//calculates how often a TL crosses a specific MA (for exemple a 100 bar long TL and eMA with perio 100 with Question: How often TL is crossing the eMA within the 100 bars.)

bool first_crossing_direction(int perio){...}//check, if the first crossing of an EA with the TL is positive or negative

bool last_crossing_direction(int perio){...}//check, if the last crossing of an EA with the TL is positive or negative

You can assume, that you can save the important results/ values within a global structure, which will be calculated for each new bar. Create a strucute, which contents all needed variables. Please remember, the TL-indicator depends from perio, shift,tf, ..., hence your functions also have to depend from these variables.




Arquivos anexados:

Respondido

1
Desenvolvedor 1
Classificação
(800)
Projetos
1371
72%
Arbitragem
112
29% / 48%
Expirado
341
25%
Trabalhando
2
Desenvolvedor 2
Classificação
(26)
Projetos
45
29%
Arbitragem
2
0% / 50%
Expirado
21
47%
Livre
3
Desenvolvedor 3
Classificação
(30)
Projetos
93
49%
Arbitragem
18
56% / 17%
Expirado
38
41%
Livre
4
Desenvolvedor 4
Classificação
(264)
Projetos
538
50%
Arbitragem
55
40% / 36%
Expirado
224
42%
Trabalhando
5
Desenvolvedor 5
Classificação
(647)
Projetos
1295
67%
Arbitragem
84
26% / 49%
Expirado
338
26%
Livre
6
Desenvolvedor 6
Classificação
(2422)
Projetos
3042
66%
Arbitragem
77
48% / 14%
Expirado
340
11%
Trabalhando
7
Desenvolvedor 7
Classificação
(90)
Projetos
159
61%
Arbitragem
40
18% / 63%
Expirado
70
44%
Livre
8
Desenvolvedor 8
Classificação
(13)
Projetos
18
22%
Arbitragem
4
0% / 25%
Expirado
5
28%
Livre
9
Desenvolvedor 9
Classificação
(128)
Projetos
206
49%
Arbitragem
29
28% / 48%
Expirado
33
16%
Livre
10
Desenvolvedor 10
Classificação
Projetos
0
0%
Arbitragem
2
0% / 100%
Expirado
0
Livre
11
Desenvolvedor 11
Classificação
(1)
Projetos
0
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
12
Desenvolvedor 12
Classificação
(62)
Projetos
140
46%
Arbitragem
19
42% / 16%
Expirado
32
23%
Livre
13
Desenvolvedor 13
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
14
Desenvolvedor 14
Classificação
(8)
Projetos
9
0%
Arbitragem
6
0% / 100%
Expirado
4
44%
Livre
Pedidos semelhantes
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
I have the bot just over half made, from another developer who let me down and decided they no longer wished to finish the project, so I have a basic example of the fundamentals of what it could look like, although multiple functions I require do not work, but I can show this to you on request. There are multiple features that I require, so please read the in depth requirement sheet on the attachment. Function: To
I need EA that works on MT5 to be able to do the following: - Can recognize Support/Resistance area - Can recognize VWAP direction. - Can recognize RSI. - Can recognize Double Top/bottom, Bullish/Bearish hammer candle, Bullish/bearish engulfing candle. - Ability to set Stoploss below/above support/resistance, but risk must be fixed at a certain price. - Stoploss
I want a program that will help calculate and enter the market on full margin for me. I just need to put in the price for entry, Stop loss and TP then it will calculate the lot sizes for entering the trade on full margin on Mt5

Informações sobre o projeto

Orçamento
40 - 100 USD
IVA (19%): 7.6 - 19 USD
Total: 47.6 - 119 USD
Desenvolvedor
36 - 90 USD