Stochastic + Tendency Channel Strategy correction

Job finished

Execution time 7 days
Feedback from customer
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.
Feedback from employee
Buen trabajo, gracias por todo.

Specification

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.


Responded

1
Developer 1
Rating
(37)
Projects
40
25%
Arbitration
20
15% / 75%
Overdue
8
20%
Loaded
2
Developer 2
Rating
(67)
Projects
74
7%
Arbitration
32
9% / 56%
Overdue
6
8%
Working
3
Developer 3
Rating
(60)
Projects
91
26%
Arbitration
1
100% / 0%
Overdue
2
2%
Working
4
Developer 4
Rating
(130)
Projects
183
31%
Arbitration
16
31% / 63%
Overdue
27
15%
Free
5
Developer 5
Rating
(195)
Projects
317
35%
Arbitration
64
13% / 56%
Overdue
82
26%
Free
6
Developer 6
Rating
(13)
Projects
20
20%
Arbitration
6
33% / 33%
Overdue
3
15%
Working
7
Developer 7
Rating
(4)
Projects
2
0%
Arbitration
2
50% / 0%
Overdue
0
Free
8
Developer 8
Rating
(4)
Projects
6
0%
Arbitration
5
0% / 80%
Overdue
2
33%
Free
9
Developer 9
Rating
(251)
Projects
402
38%
Arbitration
82
41% / 20%
Overdue
70
17%
Loaded
10
Developer 10
Rating
(54)
Projects
159
69%
Arbitration
4
100% / 0%
Overdue
1
1%
Working
11
Developer 11
Rating
(66)
Projects
143
34%
Arbitration
11
9% / 55%
Overdue
26
18%
Working
12
Developer 12
Rating
(120)
Projects
154
43%
Arbitration
20
60% / 20%
Overdue
7
5%
Working
Similar orders
HELLO EVERY ONE AM LOOKING FOR SOMEONE WHO CAN CONVERT MY MT5 TO MT4 , I CURRENTLY USE MY EA ON MT5 , BUT I NEED TO USE ON MT4 ALSO. WAITING FOR SOMEONE WHO COVERT IT FOR ME THANKS
I Need A simple EA 50 - 100 USD
Hi, I look forward to have an EA with the following conditions below. Please check and give me your quote. I would like to have an Expert Advisor (EA) with the following parameters: 1- Order Placement from Dashboard: The EA should allow placing buy or sell orders directly from the dashboard. 2- Customizable Stop Loss (SL) and Take Profit (TP): I should be able to set the SL and TP in pips from the dashboard. 3-
Our firm is looking to create a GBP/USD + EUR/USD bot that trades on a 1H timeline, small gains and very minimal drawdown; 25%, 500:1 Leverage will be used. The bot will also target on average, four periods (4 hour hold time) or 0.18% gain on the trade (FX). No hedging via making trades in opposite direction. The bot has to be on a VPS. It must connect to our MT5 account. We need the same bot to then be able to
i want devloper to create indicator i have the script from https://usethinkscript.com/ i want to be create in mt4 # DESCRIPTION # This study plots H1, H2, etc. and L1, L2, etc. labels above or below # those signal bars based on Al Brooks' description of the setups. # DECLARATIONS declare upper ; # USER INPUTS input resetCountOnDTorDB = yes ; input barsBack = 10 ; # DEFINITIONS AND CALCULATIONS ## Variable List def
I want a fully automate and high risk management expert advisor that guarantee me double of any amount in my account monthly please. Please good programmers should apply and let’s get started
Would like to build an EA base on this Indicator Indicator : 1. EMA 5 2. EMA 8 3. EMA 13 BUY RULE EMA 5 and EMA 8 crossover EMA 13 from below SELL RULE EMA 5 and EMA 8 crossover EMA 13 from above Additional : ADDITIONAL : TP : adjustable SL : adjustable TF : adjustable Symbol : All Any advise to enhance my rule is really appreciated
I need an indicator for my secand chart tf i need experinced developer to built stochastulic indicator for my secand tf indicator. So bet for it have a great day
Ctrader bot 30 - 45 USD
Hello! I need a cTrader bot that can receive trading signals from tradingview via webhook URL, read the syntax from the tradingview message and place the trades on cTrader. Is that something you can do? Under which of your gigs would this fall under? Thank you! This is how we expect the trade syntax to work: https://www.loom.com/share/089e783466a64d3d99214e1dbb548b4c?sid=39125f96-3b47-4446-8d75-3706dceda3c4 -
Hello! I need a cTrader bot that can receive trading signals from tradingview via webhook URL, read the syntax from the tradingview message and place the trades on cTrader. Is that something you can do? Under which of your gigs would this fall under? Thank you! This is how we expect the trade syntax to work: https://www.loom.com/share/089e783466a64d3d99214e1dbb548b4c?sid=39125f96-3b47-4446-8d75-3706dceda3c4 - Please
My sample pack 30+ USD
Try good luck have fun enjoy 👍 I hope I'm doing it right after losing so much. If anyone can help out, it would be much appreciated. I really need this to work this time 🙏 👍

Project information

Budget
30 - 70 USD
For the developer
27 - 63 USD
Deadline
to 15 day(s)