Functions for Trendlines / MAs within an EA

MQL4 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 2 días
Comentario del Ejecutor
Thanks
Comentario del Cliente
well done!

Tarea técnica

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.




Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(854)
Proyectos
1472
72%
Arbitraje
122
29% / 48%
Caducado
361
25%
Libre
Ha publicado: 3 artículos
2
Desarrollador 2
Evaluación
(26)
Proyectos
45
29%
Arbitraje
2
0% / 50%
Caducado
21
47%
Libre
3
Desarrollador 3
Evaluación
(30)
Proyectos
93
49%
Arbitraje
18
56% / 17%
Caducado
38
41%
Libre
4
Desarrollador 4
Evaluación
(271)
Proyectos
553
50%
Arbitraje
57
40% / 37%
Caducado
227
41%
Trabaja
5
Desarrollador 5
Evaluación
(647)
Proyectos
1295
67%
Arbitraje
84
26% / 49%
Caducado
337
26%
Libre
6
Desarrollador 6
Evaluación
(2678)
Proyectos
3429
68%
Arbitraje
78
49% / 14%
Caducado
343
10%
Libre
Ha publicado: 1 ejemplo
7
Desarrollador 7
Evaluación
(90)
Proyectos
159
61%
Arbitraje
40
18% / 63%
Caducado
70
44%
Libre
8
Desarrollador 8
Evaluación
(13)
Proyectos
18
22%
Arbitraje
4
0% / 25%
Caducado
5
28%
Libre
9
Desarrollador 9
Evaluación
(128)
Proyectos
206
49%
Arbitraje
29
28% / 48%
Caducado
33
16%
Libre
Ha publicado: 1 ejemplo
10
Desarrollador 10
Evaluación
Proyectos
0
0%
Arbitraje
2
0% / 100%
Caducado
0
Libre
11
Desarrollador 11
Evaluación
(1)
Proyectos
0
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
12
Desarrollador 12
Evaluación
(64)
Proyectos
145
46%
Arbitraje
21
38% / 24%
Caducado
32
22%
Libre
13
Desarrollador 13
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
14
Desarrollador 14
Evaluación
(8)
Proyectos
9
0%
Arbitraje
6
0% / 100%
Caducado
4
44%
Libre
Solicitudes similares
Experienced Trading Software Developer Needed – Multi-Platform Development Hello! I'm looking for an experienced developer to create a custom trading indicator and convert it into an automated trading bot for the following platforms: MT5 NinjaTrader 8 Quantower cTrader The plan is to develop the same indicator and trading bot for all four platforms, one after another. Project requirements: Custom trading indicator
un écosystème logiciel asynchrone multi-comptes dopé par un module de supervision par Intelligence Artificielle (Guardian AI). La solution assure le pilotage automatisé, le filtrage de marché en temps réel et le contrôle des risques pour 20+ comptes MetaTrader 4/5 (via MetaApi) et Deriv sur VPS Equinix NY4. vous aurez plus de detail dans les échanges
Order flow 30+ USD
Hi! I need an experience developer with order flow, volume delta, and futures scalping, and I wanted to ask you a few questions. Have you personally developed and tested fast-paced strategies for Gold Futures (GC), particularly those that enter during short-term price impulses and scale into positions as momentum builds? From your experience, what indicators or signals help you determine whether an impulse has enough
I am looking for an experienced MQL5 developer for the first milestone of a larger MetaTrader 5 project: a multi-symbol, multi-timeframe signal scanner with alerts. This milestone covers indicator integration only. There is no order placement or trade management at any stage. Scope of this milestone Read outputs from three custom indicators (provided as compiled files after selection and NDA) reliably via iCustom and
RA_BOT 2.0 36+ USD
//@version=4 study(title="UT Bot Alerts", overlay = true) // Inputs a = input(1, title = "Key Vaule. 'This changes the sensitivity'") c = input(10, title = "ATR Period") h = input(false, title = "Signals from Heikin Ashi Candles") xATR = atr(c) nLoss = a * xATR src = h ? security(heikinashi(syminfo.tickerid), timeframe.period, close, lookahead = false) : close xATRTrailingStop = 0.0 xATRTrailingStop := iff(src >
Andrew 50 - 200 USD
Hello, I am from Tanzania. I am looking for a professional MQL5 programmer from Tanzania who can help me develop and improve my automated MT5 trading robot. The project is called SMC XAVAGE AI, and it trades XAUUSD (Gold). I would like to discuss the project with you. Are you based in Tanzania? Would it be possible to arrange a meeting or a call? Thank you
Metafix 50 - 200 USD
Here is a professional specification you can send directly to your developer. # Project Requirements Specification: MetaTrader 5 Trading Robot Development ### 1. Project Overview I want to develop an automated Forex trading robot (Expert Advisor) for MetaTrader 5 (MT5). The robot should analyse the financial markets, identify trading opportunities, and execute trades automatically based on predefined strategies. ###
1. Platform: MT4 The EA required is not linked, neither depending on trading strategy nor trading signals nor indicators. 2. Initial order is a pending order (buy stop/ sell stop) and it is created manually. It is open for a specified symbol (pair) at a specified price with a specified S/L 3. Example: buy stop 0.1 lot GBPUSD @ 1.3085 WITH S/L @1.3075 Once target price is reached, pending order will
I am looking for an experienced trading software developer interested in building a long-term working relationship. Im a professional Trader, Coach and Mentor, I work with traders and Student who require customized trading solutions, including automated trading bots, Expert Advisors, custom indicators, trading strategies and other algorithmic trading tools. I am looking for a technically skilled developer who can
Salman serhal 30 - 100 USD
MT5 ICT XAUUSD Sell-Only Trading Robot with Fibonacci Confirmation I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5, specifically for trading Gold (XAUUSD). 1. Trading Strategy The robot must use the ICT trading methodology and focus on SELL trades only. The strategy should include: * Identify important resistance and premium zones. * Use Fibonacci retracement

Información sobre el proyecto

Presupuesto
40 - 100 USD