Stochastic + Tendency Channel Strategy correction

Trabalho concluído

Tempo de execução 7 dias
Comentário do 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.
Comentário do desenvolvedor
Buen trabajo, gracias por todo.

Termos de Referência

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.


Respondido

1
Desenvolvedor 1
Classificação
(37)
Projetos
40
25%
Arbitragem
20
15% / 75%
Expirado
8
20%
Ocupado
2
Desenvolvedor 2
Classificação
(67)
Projetos
74
7%
Arbitragem
32
9% / 56%
Expirado
6
8%
Livre
3
Desenvolvedor 3
Classificação
(56)
Projetos
83
22%
Arbitragem
1
100% / 0%
Expirado
1
1%
Carregado
4
Desenvolvedor 4
Classificação
(129)
Projetos
182
31%
Arbitragem
16
31% / 63%
Expirado
27
15%
Trabalhando
5
Desenvolvedor 5
Classificação
(195)
Projetos
317
35%
Arbitragem
64
13% / 56%
Expirado
82
26%
Livre
6
Desenvolvedor 6
Classificação
(12)
Projetos
17
12%
Arbitragem
6
33% / 17%
Expirado
3
18%
Carregado
7
Desenvolvedor 7
Classificação
(4)
Projetos
2
0%
Arbitragem
2
50% / 0%
Expirado
0
Livre
8
Desenvolvedor 8
Classificação
(4)
Projetos
6
0%
Arbitragem
5
0% / 80%
Expirado
2
33%
Livre
9
Desenvolvedor 9
Classificação
(251)
Projetos
402
38%
Arbitragem
82
41% / 20%
Expirado
70
17%
Trabalhando
10
Desenvolvedor 10
Classificação
(53)
Projetos
157
69%
Arbitragem
4
100% / 0%
Expirado
1
1%
Livre
11
Desenvolvedor 11
Classificação
(66)
Projetos
143
34%
Arbitragem
11
9% / 55%
Expirado
26
18%
Trabalhando
12
Desenvolvedor 12
Classificação
(119)
Projetos
152
43%
Arbitragem
20
55% / 20%
Expirado
7
5%
Trabalhando
Pedidos semelhantes
Forex robot Creator 30 - 50 USD
I would like my robot to open up to 2000 trades. It should be 90-97% accurate at all times. It should trade currency pairs, Indexes and Gold. It must analyze the chart automatically and it must be easy to be set up. It must not lose any money. Profitable all the way. I would like someone who is highly experienced to do the job. NB!! MOBILE ROBOT. It must have automated TP and SL
Looking to have made a HFT/EA for live cash account's for indices, metals and forex for MT5 3 separate EA’s. Must not have any losses. ( I have a few MT4 HFTs that just take profit no losses) so I need to have the same with this new MT5 HFT. (If you need a copy to see how it operates let me know) Please only reply if you can program this HFT I request or have one like I requested. All business and messages will be
Hey, I would like to run EA on muliple symbols and on each symbol can have different preset depending on strategy optimation. It should run on MT5. == I am a beginner in mql5, tried to write it on my own so some code exists, but open positions on the next opened bar, and trailing stop is fixed, not ATR based. It calculates SL as % of risk but doesn't work when position size is bigger than balance allows (so no max
Hey, im looking for a person who can create an my very own version of pineconnector, which should have all the option of pineconnector and it should be user-friendly without any complications
HI, I'm looking for an experienced person who can add buy/sell indications and Alerts on existing Pinescript along with little modification of the script and the script should connect to MT5 platform using pineconnector MT5 platform should excute trade instantly as based on the alerts/indications on tradingview script
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
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

Informações sobre o projeto

Orçamento
30 - 70 USD
Desenvolvedor
27 - 63 USD
Prazo
para 15 dias