Functions for Trendlines / MAs within an EA

MQL4 Experts

Tâche terminée

Temps d'exécution 2 jours
Commentaires du client
well done!
Commentaires de l'employé
Thanks

Spécifications

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.




Dossiers :

Répondu

1
Développeur 1
Évaluation
(803)
Projets
1374
72%
Arbitrage
113
28% / 48%
En retard
342
25%
Travail
2
Développeur 2
Évaluation
(26)
Projets
45
29%
Arbitrage
2
0% / 50%
En retard
21
47%
Gratuit
3
Développeur 3
Évaluation
(30)
Projets
93
49%
Arbitrage
18
56% / 17%
En retard
38
41%
Gratuit
4
Développeur 4
Évaluation
(266)
Projets
540
50%
Arbitrage
55
40% / 36%
En retard
224
41%
Gratuit
5
Développeur 5
Évaluation
(647)
Projets
1295
67%
Arbitrage
84
26% / 49%
En retard
338
26%
Gratuit
6
Développeur 6
Évaluation
(2428)
Projets
3057
66%
Arbitrage
77
48% / 14%
En retard
340
11%
Travail
7
Développeur 7
Évaluation
(90)
Projets
159
61%
Arbitrage
40
18% / 63%
En retard
70
44%
Gratuit
8
Développeur 8
Évaluation
(13)
Projets
18
22%
Arbitrage
4
0% / 25%
En retard
5
28%
Gratuit
9
Développeur 9
Évaluation
(128)
Projets
206
49%
Arbitrage
29
28% / 48%
En retard
33
16%
Gratuit
10
Développeur 10
Évaluation
Projets
0
0%
Arbitrage
2
0% / 100%
En retard
0
Gratuit
11
Développeur 11
Évaluation
(1)
Projets
0
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
12
Développeur 12
Évaluation
(62)
Projets
140
46%
Arbitrage
19
42% / 16%
En retard
32
23%
Gratuit
13
Développeur 13
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
14
Développeur 14
Évaluation
(8)
Projets
9
0%
Arbitrage
6
0% / 100%
En retard
4
44%
Gratuit
Commandes similaires
SCALP MARTINCALE SPY TIMEFRAME 1MIN CANDLE - SHORT SIDE ONLY 1-SET RISK : A IS A VARIABLE (HOW MUCH $) 2-SET ATR(3) : SET THE TIME AT WHICH THE ATR SHOULD BE TAKEN, IF SET 933AM THEN THE ATR OF THE 1MIN CANDLE AT 933AM CANDLE WILL BE USED (ROUND AT 0.25 UP OR DOWN) *USE NEW YORK TIME 3-SET MAX NUMBER OF ENTRY : B IS A VARIABLE 4-SET RSI(14) / C IS A VARIABLE, IF RSI(14) > C = ORDERS OPEN 5-IF RSI(14) > C IS TRIGGERED
I WRITE a code i want to conect this for automatic trading through vps .and als advanced features for this code .i attached afile please watch .and give me perfect ea
Hello, I need a martingale and grid bot. The programmer must provide a test of about 5 minutes for the EA to see how it works and if everything is fine, it will be selected to make some modifications for personal use to that EA that you provide. If it has a lot of graphics or buttons. better It doesn't matter if the robot is bad, I'm more interested in its functionalities to use with my strategy
Hi Developer, I would like to create the Scalping EA based for Mt4 on the investing.com data https://www.investing.com/currencies/eur-usd-technical EA have timing to adjust time to trade. follow the broker time. From starting time to end time EA have a adjustable Lot size (0.01 incremental to 0.01) EA have a adjustable TP (1pip to 100pip incremental 1pip) EA have a adjustable SL (1pip to 100pip incremental 1pip) EA
Here is the Idea: I want a Semi Auto Trade Panel Manager EA that only activates when I press the BUY or SELL or BUY LIMIT or SELL LIMIT then the EA will do the rest : that includes the BUY STOP 0r SELL STOP and the hedging calculations according to below diagram. So overall , my only intervention is entering the lot size , hedge zone distance and TP ratio or entering the price for buy limit/sell limit then pressing
Hi, I'm looking for a martingale MT4 EA that performs a lot of trading volume per day. If you have the robot, you'll need to send me the demo so I can backtest it. Thank you very much
Hello potential Freelancers I’m very new to trading so please bear with me as I try to explain what ‘m looking for. I'm currently getting signals ( XAUUSD )sent to me and I’m looking to find a person who can look at the data either watch account live, or I send the trade history. The bot my provider is using makes 100’s of trades a day and does very well on average. I’m also looking to have the following features
we want to build a dashboard ea that would display on another chart key metrics : i will foward screeshot of what i want to dashboard to look like : the function i would need to get display are the following: 1. classified past performance ea by magic number ( with classic : total trade , total profit , return/dd , max dd (base on history) , ) 2. equity chart of performance if we click on a magic number we should
the task will be actually quiet simple , i need an active develloper to devellope out of 3 updates an ea STEP 1 (this job): make a classical pair trading ea , that can calculate correlation between assets and trade when the correlation diverge above a specified % the develloper that will postulate for the job will need : 1- to be ok to do the full project this job and the update following 2- very low arbitration , i
Hello, I want to create an EA that can be able to take and optimise trade bids using the trend tracker concept I have developed. The tracker will monitor the 2 lines in the below pictures and then start to activate bids once they cross each other and then be able to manage all bids afterwards towards the direction of the market by opening and closing them intermittently and profitably until the position at the other

Informations sur le projet

Budget
40 - 100 USD
TVA (19%): 7.6 - 19 USD
Total: 47.6 - 119 USD
Pour le développeur
36 - 90 USD