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
(45)
Projekte
46
24%
Schlichtung
34
9% / 85%
Frist nicht eingehalten
10
22%
Frei
2
Entwickler 2
Bewertung
(72)
Projekte
80
10%
Schlichtung
38
8% / 58%
Frist nicht eingehalten
6
8%
Frei
3
Entwickler 3
Bewertung
(84)
Projekte
162
43%
Schlichtung
3
67% / 0%
Frist nicht eingehalten
5
3%
Arbeitet
Veröffentlicht: 1 Beispiel
4
Entwickler 4
Bewertung
(130)
Projekte
184
32%
Schlichtung
18
28% / 67%
Frist nicht eingehalten
27
15%
Frei
Veröffentlicht: 1 Beispiel
5
Entwickler 5
Bewertung
(206)
Projekte
333
35%
Schlichtung
66
12% / 58%
Frist nicht eingehalten
87
26%
Frei
6
Entwickler 6
Bewertung
(19)
Projekte
31
32%
Schlichtung
8
50% / 25%
Frist nicht eingehalten
3
10%
Arbeitet
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
(294)
Projekte
469
39%
Schlichtung
101
41% / 24%
Frist nicht eingehalten
77
16%
Beschäftigt
Veröffentlicht: 2 Beispiele
10
Entwickler 10
Bewertung
(77)
Projekte
240
73%
Schlichtung
7
100% / 0%
Frist nicht eingehalten
1
0%
Frei
11
Entwickler 11
Bewertung
(69)
Projekte
146
34%
Schlichtung
13
8% / 62%
Frist nicht eingehalten
26
18%
Frei
Veröffentlicht: 6 Beispiele
12
Entwickler 12
Bewertung
(143)
Projekte
184
42%
Schlichtung
24
58% / 21%
Frist nicht eingehalten
12
7%
Arbeitet
Ähnliche Aufträge
Up down trader 40+ USD
Create an expert advisor for meta trader 5 which trades buy and sell alternatively. First trade buy, next trade sell. For example. If a trade of 0.01 lot is placed on a buy and the trade is won, then the next trade is 0.01 on a sell. If the sell trade is won, then the next trade is a buy at 0.01. If there is a loss, then the lot sizes increase by a specified value. eg. 0.025. If there is yet another loss, then the
I want to create an SMC bot base on ICT and Market structure,the bot must be able to keep adding on more positions while started.The bot must have a perfect risk management
So the things we need in algorithm of mql5 language EA in mt5 1. Depending on timeframe it can recognise the previous swing high and low 2. Timeframe is 5m,15m,1h,4h 3. It can recognise the basic Market bias that is market is bullish or bearish we can identify using (ema,rsi,basic smc bias,ict bias structure mapping) or use anything to find bias structure 4. EA should have option to change timeframe and change risk
require the development of a high-speed, fully automated trading Expert Advisor (EA) for MetaTrader 5 , optimized for live trading on both Deriv and Exness . The EA must be designed for fast execution, low latency, and reliability on real-money accounts , with full compatibility across broker-specific contract specifications, tick sizes, tick values, pricing formats, and volume rules. It should automatically detect
I want the Robots to execute buy/sell/TP/SL trades without me telling them to, Buy low Sell high Forex Pairs, I want to gain profit not lose profit, using INDICATORS, strategies, Expert Advisors, signals, Symbols, MA RSI, Awesome Accelerators', Algorithmic Trading and Scanners on real time data
Looking for a developer to make mobile MT5 with delayed charts can choose the day and will work exactly like normal metatrader, even lot size the profit and losses and everything can add capital etc
Pazuzu 30+ USD
generate or create me a python coded file that has mql5 language requirements for a trading bot under the following instructions. the bot must execute trades if necessary the bot must trade 24/7 the bot must trade gold and currency the bot must make unlimited profit hourly the bot must enter market with caution after market analysis of 98 percent of clear trade
Task: Modify "Moving Averages" EA – Add 3 professional features Current EA: Classic Moving Averages crossover (EMA 21 based), longs/shorts on XAUUSD/stocks Add these 3 features: 1. SELECTABLE TIMEFRAME (independent of chart) • input ENUM_TIMEFRAMES WorkTimeframe = PERIOD_H1, H2, H3, H4..... // M1, M5, M10,.... • All iMA(), Close[], Open[], High[], Low[] must use WorkTimeframe instead of current chart timeframe 2
I hope this message finds you well. I am looking to develop a custom Expert Advisor (EA) for MetaTrader 5 (MT5) and would like your assistance. Here is a detailed description of what I need: Trading Instrument: Cryptocurrencies (e.g., BTC/USD, ETH/USD) Trading Style: Scalping and intraday/day trading Short-term trades based on precise market timing Key Features Required: Time-Based Entry: The EA should allow me to
Technical Project Description: AI-Enhanced Adaptive Trading Expert Advisor I want to commission the development of a high-performance AI-powered Expert Advisor (EA) designed for MetaTrader 5 , optimized for indices (e.g., Volatility 75 Index) , gold (XAU/USD) , and crypto pairs (BTC/USD) . The EA should intelligently adapt to market volatility using machine learning or AI-based decision-making to refine its entry and

Projektdetails

Budget
30 - 70 USD
Ausführungsfristen
bis 15 Tag(e)