Stochastic + Tendency Channel Strategy correction

İş tamamlandı

Tamamlanma süresi: 7 gün
Müşteri tarafından geri bildirim
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.
Geliştirici tarafından geri bildirim
Buen trabajo, gracias por todo.

İş Gereklilikleri

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.


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(45)
Projeler
46
24%
Arabuluculuk
34
9% / 85%
Süresi dolmuş
10
22%
Serbest
2
Geliştirici 2
Derecelendirme
(72)
Projeler
80
10%
Arabuluculuk
38
8% / 58%
Süresi dolmuş
6
8%
Serbest
3
Geliştirici 3
Derecelendirme
(84)
Projeler
162
43%
Arabuluculuk
3
67% / 0%
Süresi dolmuş
5
3%
Çalışıyor
Yayınlandı: 1 kod
4
Geliştirici 4
Derecelendirme
(130)
Projeler
184
32%
Arabuluculuk
18
28% / 67%
Süresi dolmuş
27
15%
Serbest
Yayınlandı: 1 kod
5
Geliştirici 5
Derecelendirme
(206)
Projeler
333
35%
Arabuluculuk
66
12% / 58%
Süresi dolmuş
87
26%
Serbest
6
Geliştirici 6
Derecelendirme
(19)
Projeler
31
32%
Arabuluculuk
8
50% / 25%
Süresi dolmuş
3
10%
Çalışıyor
7
Geliştirici 7
Derecelendirme
(4)
Projeler
2
0%
Arabuluculuk
2
50% / 0%
Süresi dolmuş
0
Serbest
8
Geliştirici 8
Derecelendirme
(4)
Projeler
6
0%
Arabuluculuk
5
0% / 80%
Süresi dolmuş
2
33%
Serbest
9
Geliştirici 9
Derecelendirme
(294)
Projeler
469
39%
Arabuluculuk
101
41% / 24%
Süresi dolmuş
77
16%
Yüklendi
Yayınlandı: 2 kod
10
Geliştirici 10
Derecelendirme
(77)
Projeler
240
73%
Arabuluculuk
7
100% / 0%
Süresi dolmuş
1
0%
Serbest
11
Geliştirici 11
Derecelendirme
(69)
Projeler
146
34%
Arabuluculuk
13
8% / 62%
Süresi dolmuş
26
18%
Serbest
Yayınlandı: 6 kod
12
Geliştirici 12
Derecelendirme
(143)
Projeler
184
42%
Arabuluculuk
24
58% / 21%
Süresi dolmuş
12
7%
Çalışıyor
Benzer siparişler
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

Proje bilgisi

Bütçe
30 - 70 USD
Son teslim tarihi
to 15 gün