Stochastic + Tendency Channel Strategy correction

Tâche terminée

Temps d'exécution 7 jours
Commentaires du client
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.
Commentaires de l'employé
Buen trabajo, gracias por todo.

Spécifications

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.


Répondu

1
Développeur 1
Évaluation
(37)
Projets
40
25%
Arbitrage
20
15% / 75%
En retard
8
20%
Occupé
2
Développeur 2
Évaluation
(67)
Projets
74
7%
Arbitrage
32
9% / 56%
En retard
6
8%
Gratuit
3
Développeur 3
Évaluation
(56)
Projets
83
22%
Arbitrage
1
100% / 0%
En retard
1
1%
Chargé
4
Développeur 4
Évaluation
(129)
Projets
182
31%
Arbitrage
16
31% / 63%
En retard
27
15%
Travail
5
Développeur 5
Évaluation
(195)
Projets
317
35%
Arbitrage
64
13% / 56%
En retard
82
26%
Gratuit
6
Développeur 6
Évaluation
(12)
Projets
17
12%
Arbitrage
6
33% / 17%
En retard
3
18%
Chargé
7
Développeur 7
Évaluation
(4)
Projets
2
0%
Arbitrage
2
50% / 0%
En retard
0
Gratuit
8
Développeur 8
Évaluation
(4)
Projets
6
0%
Arbitrage
5
0% / 80%
En retard
2
33%
Gratuit
9
Développeur 9
Évaluation
(251)
Projets
402
38%
Arbitrage
82
41% / 20%
En retard
70
17%
Travail
10
Développeur 10
Évaluation
(53)
Projets
156
69%
Arbitrage
4
100% / 0%
En retard
1
1%
Travail
11
Développeur 11
Évaluation
(66)
Projets
143
34%
Arbitrage
11
9% / 55%
En retard
26
18%
Travail
12
Développeur 12
Évaluation
(119)
Projets
152
43%
Arbitrage
20
55% / 20%
En retard
7
5%
Travail
Commandes similaires
CGG EA 60+ USD
This robot has 4 simple rules. This EA requires an overlay that has 2 indicators with different scales in the same frame. The indicators are the CCI with channels and the CCG (1) both are custom indicators. I need this EA in 3 days and 3 days of testing
I’m looking for someone to convert the orderblock indicator from pinescript to mql5; and than code a EA based on that orderblock indicator, and also a fvg indicator ( that source code I will provide )
I want to find a Developer to perform this work and settle payments in this Application. I undertake not to communicate with Applicants anywhere else except this Application, including third-party messengers, personal correspondence or emails. I understand that violators will be banned from publishing Orders in the Freelance service
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
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
solve errors and debug my existing code to convert it into mq5 The task will be done remotely by anydesk More details will be given privately to better understand the task, already spoken previously by the developer
Has anyone tried to create an EA based on the black scholes model? A) Is it even possible for metatrader5? B) What need to be added as input? C) Which other statistical and mathematical models could work and how? D) Do you have know-how in statistical and mathematical models? Would like to see some results
I want to lock my indicators and my EAs in the data folder with a password because i am going to give my pc to a trader , the real names of the indicators also should be changed or covered on the screen so no one should go and find them online
Trade Entry Rule : 1 . New Arrow Higher or Lower Appear : Entry . (Range/Period: {Input}) After Entry Trailing Stop Trails { Trail Step (Input) } 2 . Lot Size { Input } 3 . Take Profit { Input } 4 . Max Number of Trades { Input } 5 . Total Number of Trades per Entry { Input } ---------------------------------------------------------------------------- 6 . Spread Filter { Input }
I need someone to help me convert my tradingview pinescript to mt4, my budget for this project is $20 and I need this done fast in two days, Also, I am going to need you to be able to build a new indicator because that's the nest project, But I need to know if you can do this first , Thank you

Informations sur le projet

Budget
30 - 70 USD
Pour le développeur
27 - 63 USD
Délais
à 15 jour(s)