Stochastic + Tendency Channel Strategy correction

Auftrag beendet

Ausführungszeit 7 Tage
Bewertung des Kunden
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.
Bewertung des Entwicklers
Buen trabajo, gracias por todo.

Spezifikation

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.


Bewerbungen

1
Entwickler 1
Bewertung
(37)
Projekte
40
25%
Schlichtung
20
15% / 75%
Frist nicht eingehalten
8
20%
Überlastet
2
Entwickler 2
Bewertung
(67)
Projekte
74
7%
Schlichtung
32
9% / 56%
Frist nicht eingehalten
6
8%
Frei
3
Entwickler 3
Bewertung
(56)
Projekte
83
22%
Schlichtung
1
100% / 0%
Frist nicht eingehalten
1
1%
Beschäftigt
4
Entwickler 4
Bewertung
(129)
Projekte
182
31%
Schlichtung
16
31% / 63%
Frist nicht eingehalten
27
15%
Arbeitet
5
Entwickler 5
Bewertung
(195)
Projekte
317
35%
Schlichtung
64
13% / 56%
Frist nicht eingehalten
82
26%
Frei
6
Entwickler 6
Bewertung
(12)
Projekte
17
12%
Schlichtung
6
33% / 17%
Frist nicht eingehalten
3
18%
Beschäftigt
7
Entwickler 7
Bewertung
(4)
Projekte
2
0%
Schlichtung
2
50% / 0%
Frist nicht eingehalten
0
Frei
8
Entwickler 8
Bewertung
(4)
Projekte
6
0%
Schlichtung
5
0% / 80%
Frist nicht eingehalten
2
33%
Frei
9
Entwickler 9
Bewertung
(251)
Projekte
402
38%
Schlichtung
82
41% / 20%
Frist nicht eingehalten
70
17%
Arbeitet
10
Entwickler 10
Bewertung
(53)
Projekte
156
69%
Schlichtung
4
100% / 0%
Frist nicht eingehalten
1
1%
Arbeitet
11
Entwickler 11
Bewertung
(66)
Projekte
143
34%
Schlichtung
11
9% / 55%
Frist nicht eingehalten
26
18%
Arbeitet
12
Entwickler 12
Bewertung
(119)
Projekte
152
43%
Schlichtung
20
55% / 20%
Frist nicht eingehalten
7
5%
Arbeitet
Ähnliche Aufträge
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
Historical 1 min data 30 - 1000 USD
I need 1min historical canfle data based on Tradingviwe UI from Oanda broker. for gold, bitcoin, ……). Data should from tradingviwe UI and also base on OANDA. Tradingviwe only show 20000 candle but i need far further data Who can help me
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
I need you to convert my tradingview pinescript to mt4, I have just $10 for it now, But i am going to give you more work later on cause i still have more work i am going to need you to work on for me, and i will be paying with crypto, Thank You
Hello, I am in need of an expert to help me convert my tradingview pinescript to mt4, I will attach the file, But for now, I only got $15 for this project and the only payment method I can use right now is crypto, I will send it to you through crypto, Also I need someone that is ready to work because I still have lot of projects I will need him to do for me
Hi, Use MQL5 connect to only one binance websocket API: binance.com/stream?streams=btcusdt@aggTrade and get the returned data successfully(you no need process returned data). MUST use this MQL library to connect binnace: https://www.mql5.com/en/articles/8196 Source code need Related binance websocket document: https://binance-docs.github.io/apidocs/spot/en/#websocket-market-streams Thanks
Hi, I want a custom indicator to be coded based on 2 default Indicators. Add alerts for signals and news filter alerts to be sent through metaquotes id, email and phone. Popup alerts for pc/laptop as well. I would like it to have a display panel that logs the trade history and a buy/sell button with risk % based on balance and equity, fixed lots and some other features
Hello I am looking for a developer to help me do modification on my custom ninjatrader 8 strategy and also backtest it in other to work perfectly your expertise is highly needed for this project Kindly reach out to me and let get started on the project Thanks
Hello I'm in possesion of a straightforward MT% Expert AdvisorThat I want to convert into DXTrade. Are you able to do this conversion? Kindly let me know if the fil atached will be enough

Projektdetails

Budget
30 - 70 USD
Für die Entwickler
27 - 63 USD
Ausführungsfristen
bis 15 Tag(e)