Stochastic + Tendency Channel Strategy correction

Trabajo finalizado

Plazo de ejecución 7 días
Comentario del Cliente
This is the first job I have ever requested and the code provided does what I put in the requirements, I appreciate the effort. Good job.
Comentario del Ejecutor
Buen trabajo, gracias por todo.

Tarea técnica

The principle for this work is to create a code for MQL5 that uses the stochastic and a tendency channel.


The strategy that is required to be corrected is based on the next:


Buy condition:

1.-  There need to be an uptrend. Mainly in my strategy I use the CHOCH and BOSS (  I didn't programed this on the provided code. ) to determine in which direction is the price going and I mark a tendency channel using the 2 maximum values and 2 minimum values. If it matches with more maximum and minimum levels that’s better. See the example in the images added.

2.- The Stochastic shows a cross between %K and %D, where %K crosses from bellow to above %D, making a condition similar to this:

(KValue0 > 20 && DValue0 > 20 && KValue0 > DValue0 && KValue1 <= DValue1 && KValue2 < DValue2) And (KValue0 > 20 && DValue0 > 20 && KValue0 > DValue0 && KValue1 >= DValue1 && KValue2 < DValue2)  See the example in the following slides.

3.- The price should be between the lower and middle lines of the tendency channel.

Sell condition:

1.-  There need to be an downtrend.

2.- The Stochastic shows a cross between %K and %D, where %K crosses from above to bellow %D, making a condition similar to this:

(KValue0 < 80 && DValue0 < 80 && KValue0 < DValue0 && KValue1 >= DValue1 && KValue2 > DValue2) And (KValue0 < 80 && DValue0 < 80 && KValue0 < DValue0 && KValue1 <= DValue1 && KValue2 > DValue2)  See the example in the following slides.

3.- The price should be between the upper and middle lines of the tendency channel.


The position should be opened with the following:


Sell position:

-The STP (Stop Loss) should be 3 points bellow the lower minimum of the previous 4 candles.

-The TP (Take Profit) should be 2 times the distance of the STP – Actual Price. Example: STP=15+3 , TP= (15+3)*2=36

Sell position:

-The STP (Stop Loss) should be 3 points above the higher maximum of the previous 4 candles.

-The TP (Take Profit) should be 2 times the distance of the STP – Actual Price. Example: STP=15+3 , TP= (15+3)*2=36


I require that if the account loss 1.5% of its total, stop the tradings and notify me via email. Example: the account started the day with 10000 dlls, and 13 hours after it losses 150 dlls it stops


Note: In the documents I added a code I was working in to try and do these things, please check it and tell me if it can be reworked or what can we do.
Also I added some lines to prevent the opening of operations 2 or 3 candles after one was opened and other lines to close the positions when the conditions where met.

Please use these conditions or some similar to do the same. 



The code I provided does the following:

1.- It calls the stochastic, EMA and MACD indicators (the last two are for trend identification, if you have a better way to detect trends be free to modify it or improve the conditions)

2.-Creates a tendency Channel using the all the candles in the screen but it may or may not be the better way to adapt to the strategy described above, becouse the channel does not identify the changes of tendency that fast.
3.- Open and close orders, but it a lot of times does not open a position even if the conditions are met, so the code needs help there, and sometimes it does not open the correct type of order, so I changed the order type from buy and stop to buy stop and sell stop.

4.-It prevent the opening of operations 2 or 3 candles after one was opened and other lines to close the positions when the conditions where met.

5.- I added an example for the price detection of highest high and lowest low at the end of the code, but i couldn't implement the operation to obtain the correct value for TP (2 times the STP distance)

The examples I used were the basic ones, I don’t know a lot of ways to do a trading code since I am a Mechatronic Engineer and I don’t know a lot of the things of the MQL5 language. If you know a better way to do the code feel free to tell me.


If you require more examples of the strategy that I explained on top and shown on the images or need more details please notify me.


Han respondido

1
Desarrollador 1
Evaluación
(37)
Proyectos
40
25%
Arbitraje
20
15% / 75%
Caducado
8
20%
Ocupado
2
Desarrollador 2
Evaluación
(67)
Proyectos
74
7%
Arbitraje
32
9% / 56%
Caducado
6
8%
Libre
3
Desarrollador 3
Evaluación
(56)
Proyectos
83
22%
Arbitraje
1
100% / 0%
Caducado
1
1%
Trabajando
4
Desarrollador 4
Evaluación
(129)
Proyectos
182
31%
Arbitraje
16
31% / 63%
Caducado
27
15%
Trabaja
5
Desarrollador 5
Evaluación
(195)
Proyectos
317
35%
Arbitraje
64
13% / 56%
Caducado
82
26%
Libre
6
Desarrollador 6
Evaluación
(12)
Proyectos
17
12%
Arbitraje
6
33% / 17%
Caducado
3
18%
Ocupado
7
Desarrollador 7
Evaluación
(4)
Proyectos
2
0%
Arbitraje
2
50% / 0%
Caducado
0
Libre
8
Desarrollador 8
Evaluación
(4)
Proyectos
6
0%
Arbitraje
5
0% / 80%
Caducado
2
33%
Libre
9
Desarrollador 9
Evaluación
(251)
Proyectos
402
38%
Arbitraje
82
41% / 20%
Caducado
70
17%
Trabaja
10
Desarrollador 10
Evaluación
(53)
Proyectos
156
69%
Arbitraje
4
100% / 0%
Caducado
1
1%
Trabaja
11
Desarrollador 11
Evaluación
(66)
Proyectos
143
34%
Arbitraje
11
9% / 55%
Caducado
26
18%
Trabaja
12
Desarrollador 12
Evaluación
(119)
Proyectos
152
43%
Arbitraje
20
55% / 20%
Caducado
7
5%
Trabaja
Solicitudes similares
We are seeking a highly experienced Forex EA Developer for our MT4 platform. The ideal candidate must meet our following criteria: Language Proficiency: Must speak English fluently - no exceptions Must write in English proficiently - no exceptions Must understand English clearly - no exceptions Availability: Must work in the Eastern Standard Time (EST) zone Developer must be available full-time for this project with
Requirements All features of indicators, plus enter into trades (buy, sell) TP and SL according to the indicator [TP1 and TP2] Can make MT5 from MT4 indicator? Add trailing stop loss trading hours trading days Max spread Possibility of Multiple charts through one window Daily profit Target [yes/no]
hello... saya menginginkan EA GRID?AVERAGING dengan kondisi : > bisa meletakan sell&buy Limit pada nilai tertentu > bisa meletakkan sell&buy stop pada nilai tertentu > bisa melakukan order sell/buy limit/stop (sesuai setting) berdasarkan Nilai RSI > bisa membatasi jumlah order > ada fungsi TP dan SL > rangkuman hasil kerja EA selama mingguan terimakasih, semoga bisa bekerjasama dengan baik
I already have the EA completed. I just need to add 2 params and fix the feature (GV) to make sure that no order is missed for any reason. Maybe GV is not enough and need to add another feature
Need to create ea to trade in indian market by placing orders to Indian market platform through API form mqlHere's a basic outline of what script should include: Define Heikin Ashi candle pattern: Convert regular candles to Heikin Ashi candles. Order Execution: Execute orders on the open of the second candle after the signal is generated. Buy Call: When a buy call is generated, initiate a call option order. Set
I want the trade to trigger anytime it sees the opportunity on all time frames, sl tp should be automated and all trades should be trigger anytime on cpi news and etc
Добрый день. Мне нужно создать сигнального бота. У меня есть индикатор на Trading View, который выделяет точку интереса - спрос/предложение. (но я в нем не уверен, подойдет ли он для робота, возможно такой индикатор нужно будет написать). Нужно чтоб все зоны были экстримальные, то есть, если произойдет пробитие зоны то менялся тренд. Как я торгую? Индикатор выделяет зону. Мне нужно увидеть подтверждение в пределах
I need a trading bot 30 - 40 USD
I'm in need of a trading bot, based on 3 mt4 indicators, which are semafor alert, reversals and bluever.I want the signals produced by the indicators to be automated and run on mt5 platform, trade anything including synthetic indices and works on any time frame
Hi Dear Expert Developer, I want to make a Indicator as Candle pattern as below; 1.Inverted Hammer (Must as per My Drawing) with notification ( only H1,H4,DAY,WEEK time frame) if match with my drawing pattern 2.Hanging Man ( Must as per Drawing) with notification ( Only H1,H4, Day, Week time frame ) if match with my drawing pattern Example, I will apply this indicator on EURUSD H1 time frame and I have open only H1
I need someone to help me convert my tradingview pinescript to mt4, I only got $20 for this and I am gonna be giving you more works ahead, Also I will be paying with cryptocurrency cause my PayPal os not working here, Don't know why

Información sobre el proyecto

Presupuesto
30 - 70 USD
Para el ejecutor
27 - 63 USD
Plazo límite de ejecución
a 15 día(s)