EA to Close Trades Using Stochastic Indicator

İş Gereklilikleri

Hi. I would like an EA to close trades based on the stochastic indicator. The EA will only close trades that are open. It does not open new trades. 

The EA will be attached to a single chart. Every minute, it will check the M1 stochastic indicator data of all open trades with a specific magic number. This includes symbols whose chart the EA is not attached to. Close signal is triggered when the D-line (signal line) changes direction in the overbought or oversold region. 

Additionally, add a function to move stop loss to entry price when stochastic indicator D-line crosses 50.

Let D1 = D value of the most recent closed M1 candle,
D2 = D value of the 2nd most recent closed M1 candle

Close buy condition:
D2 > overbought level and D1 < D2

Close sell condition:
D2 < oversold level and D1 > D2

Move SL to entry conditions:
Buy: D2 < 50 and D1 > 50
Sell: D2 > 50 and D1 < 50

The settings for the stochastic indicator can be modified in the EA settings. Price field setting is fixed at Low/High.

EA settings:
- K Period
- D Period
- Slowing
- Method
- Overbought Level
- Oversold Level
- Move SL to Entry (True/False)
- Magic Number

See images for examples.

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(20)
Projeler
19
11%
Arabuluculuk
2
50% / 50%
Süresi dolmuş
0
Çalışıyor
2
Geliştirici 2
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
3
Geliştirici 3
Derecelendirme
(141)
Projeler
166
22%
Arabuluculuk
7
29% / 43%
Süresi dolmuş
4
2%
Çalışıyor
4
Geliştirici 4
Derecelendirme
(349)
Projeler
548
32%
Arabuluculuk
24
67% / 8%
Süresi dolmuş
16
3%
Çalışıyor
5
Geliştirici 5
Derecelendirme
(295)
Projeler
373
21%
Arabuluculuk
43
60% / 23%
Süresi dolmuş
44
12%
Meşgul
6
Geliştirici 6
Derecelendirme
(1)
Projeler
3
0%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
7
Geliştirici 7
Derecelendirme
(54)
Projeler
64
6%
Arabuluculuk
24
21% / 38%
Süresi dolmuş
4
6%
Çalışıyor
8
Geliştirici 8
Derecelendirme
(17)
Projeler
23
39%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
9
Geliştirici 9
Derecelendirme
(157)
Projeler
222
22%
Arabuluculuk
15
60% / 20%
Süresi dolmuş
1
0%
Meşgul
10
Geliştirici 10
Derecelendirme
(592)
Projeler
924
46%
Arabuluculuk
31
39% / 29%
Süresi dolmuş
93
10%
Çalışıyor
11
Geliştirici 11
Derecelendirme
(241)
Projeler
425
34%
Arabuluculuk
54
37% / 39%
Süresi dolmuş
155
36%
Çalışıyor
12
Geliştirici 12
Derecelendirme
(22)
Projeler
28
11%
Arabuluculuk
6
33% / 50%
Süresi dolmuş
4
14%
Yüklendi
13
Geliştirici 13
Derecelendirme
(69)
Projeler
79
9%
Arabuluculuk
34
9% / 56%
Süresi dolmuş
6
8%
Yüklendi
14
Geliştirici 14
Derecelendirme
(28)
Projeler
34
15%
Arabuluculuk
5
40% / 60%
Süresi dolmuş
5
15%
Serbest
15
Geliştirici 15
Derecelendirme
(3)
Projeler
3
0%
Arabuluculuk
3
33% / 33%
Süresi dolmuş
0
Serbest
16
Geliştirici 16
Derecelendirme
Projeler
1
0%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
0
Çalışıyor
17
Geliştirici 17
Derecelendirme
(1129)
Projeler
1431
62%
Arabuluculuk
21
57% / 10%
Süresi dolmuş
43
3%
Serbest
18
Geliştirici 18
Derecelendirme
(103)
Projeler
130
44%
Arabuluculuk
7
43% / 43%
Süresi dolmuş
7
5%
Serbest
19
Geliştirici 19
Derecelendirme
(50)
Projeler
94
29%
Arabuluculuk
3
33% / 0%
Süresi dolmuş
4
4%
Serbest
20
Geliştirici 20
Derecelendirme
(58)
Projeler
76
25%
Arabuluculuk
9
33% / 56%
Süresi dolmuş
8
11%
Çalışıyor
21
Geliştirici 21
Derecelendirme
(5)
Projeler
5
20%
Arabuluculuk
0
Süresi dolmuş
1
20%
Çalışıyor
Benzer siparişler
Hi. I need help with a Heinken Ashi strategy for Metatrader 5. If you picture your self HA candels without the wick only the body. What i want is a strategy that buy when the next body closes higher when the one before, and closes the order long when one HA candles body closes below. The opposite with sell orders and exits, after exit buy or sell the status is zero (0) and a new position depends on next HA candles
im looking for coder that can code high/lows on a range and is defined by 3candle formation on the higher timeframe and a bos/mss on the lower timeframe.it should be able to show the near by liquidity of the poi on that range. is may eventually become a EA after
Hello there, MQL5 Expert Advisor Development for Custom Method I need a skilled MQL5 programmer to develop an Expert Advisor (EA) for the MetaTrader 5 platform. This EA should be tailored to a unique trading strategy we've created, specifically for the m1 time frame. Key Requirements: - The EA must incorporate features specific to our trading method. - It should utilize the ATR and Fibonacci indicators/signals. Ideal
Hello I would like to convert my PineScript into a MQL5 EA. It's a pine indicator but I would like to create later on a strategy based on this. It's about drawing 3 Boxes (Sessions with time inputs) and pivot highs and pivot lows in a timeframe which the user can choose (input for pivot high/low timeframe). The pivot highs and lows can get improved with 3 indicators: - RSI - Stoch - MACD - ADX That means you must add
I need some who can develop my strategy and hand me over the source code... I will give you the specific area in the market i want to mark out and then set pending orders to execute once price move into the zone
Red/yellow bot 30 - 100 USD
I require a bot that will trade under this condition: 1: in an uptrend I will draw yellow lines and if trend changes to downtrend and reaches one yellow line it opens a sell trade. In downtrend I will draw orange line if trend changes to uptrend and touch the line it enter buy trade. 2: if I was already in a trade, eg. Buy trade and trend changes and touches yellow line I
independent-minded coder and algorithmic trader who has forged a solo career crafting financial strategies using MetaQuotes languages, MQL4 and MQL5. Driven by a blend of analytical thinking and a love for technology, John has become a self-made expert, navigating the dynamic world of algorithmic trading with finesse. With an unquenchable curiosity for financial markets and a knack for coding, John's daily routine
write me an MQL code that will work on mt4 and mt5 and follow these specific instructions... This code is for forex trading EA and will work in any time frame, using the candle sticks formed on that time frame to make its trading decisions. it should work with all forex pairs, indices and commodities. The instructions are as follows: Entry Condition: when there are two or more consecutive bearish close (price opens
Hello I have an indicator here which is based on the crosses...if two lines crossing for buy it must change all candles on the main chart to be green, If two lines crossing for sell it must change all candles to red...Main Chart candles to change color(s) must be controlled by the cross indicator
Hello, I need someone to convert an existing Multi-Timeframe Meta Trader 4 dashboard indicator that features Orderblocks, Imbalances and Break of Structure into a Meta Trader 5 compatible dashboard Indicator

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD
Son teslim tarihi
to 7 gün