EA to Close Trades Using Stochastic Indicator

Trabalho concluído

Tempo de execução 1 dia

Termos de Referência

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.

Respondido

1
Desenvolvedor 1
Classificação
(22)
Projetos
21
10%
Arbitragem
4
25% / 75%
Expirado
0
Livre
2
Desenvolvedor 2
Classificação
(102)
Projetos
105
60%
Arbitragem
0
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(279)
Projetos
350
29%
Arbitragem
37
27% / 65%
Expirado
10
3%
Carregado
4
Desenvolvedor 4
Classificação
(455)
Projetos
721
34%
Arbitragem
35
71% / 9%
Expirado
23
3%
Livre
5
Desenvolvedor 5
Classificação
(396)
Projetos
512
23%
Arbitragem
60
57% / 25%
Expirado
60
12%
Carregado
6
Desenvolvedor 6
Classificação
(2)
Projetos
5
0%
Arbitragem
3
0% / 100%
Expirado
1
20%
Trabalhando
7
Desenvolvedor 7
Classificação
(75)
Projetos
80
6%
Arbitragem
46
11% / 54%
Expirado
7
9%
Trabalhando
8
Desenvolvedor 8
Classificação
(47)
Projetos
67
37%
Arbitragem
5
40% / 40%
Expirado
1
1%
Livre
9
Desenvolvedor 9
Classificação
(274)
Projetos
403
28%
Arbitragem
40
40% / 50%
Expirado
1
0%
Livre
10
Desenvolvedor 10
Classificação
(636)
Projetos
1007
47%
Arbitragem
33
36% / 36%
Expirado
99
10%
Trabalhando
Publicou: 6 códigos
11
Desenvolvedor 11
Classificação
(319)
Projetos
568
35%
Arbitragem
82
30% / 45%
Expirado
206
36%
Carregado
12
Desenvolvedor 12
Classificação
(62)
Projetos
90
29%
Arbitragem
24
13% / 58%
Expirado
7
8%
Trabalhando
13
Desenvolvedor 13
Classificação
(72)
Projetos
80
10%
Arbitragem
38
8% / 58%
Expirado
6
8%
Livre
14
Desenvolvedor 14
Classificação
(50)
Projetos
64
20%
Arbitragem
11
27% / 55%
Expirado
5
8%
Livre
15
Desenvolvedor 15
Classificação
(7)
Projetos
8
13%
Arbitragem
6
33% / 33%
Expirado
0
Livre
16
Desenvolvedor 16
Classificação
Projetos
1
0%
Arbitragem
4
0% / 50%
Expirado
0
Trabalhando
17
Desenvolvedor 17
Classificação
(1156)
Projetos
1462
63%
Arbitragem
21
57% / 10%
Expirado
43
3%
Livre
18
Desenvolvedor 18
Classificação
(111)
Projetos
139
43%
Arbitragem
9
33% / 44%
Expirado
6
4%
Livre
19
Desenvolvedor 19
Classificação
(50)
Projetos
94
29%
Arbitragem
4
25% / 0%
Expirado
4
4%
Livre
Publicou: 3 códigos
20
Desenvolvedor 20
Classificação
(64)
Projetos
83
28%
Arbitragem
9
33% / 56%
Expirado
9
11%
Livre
Publicou: 1 código
21
Desenvolvedor 21
Classificação
(10)
Projetos
6
33%
Arbitragem
6
0% / 67%
Expirado
1
17%
Trabalhando
Pedidos semelhantes
Modification of Trade_Panel_7 7.05 Objective . I have this utility “Trade_Panel_7 7.05” with which I open and close positions. Please refer to attached “Trade Panel Modification.jpg”. It shows an input parameter “Volume Step”. This parameter has the initial value of 0.02 as shown. This feature needs to be amended. Present Status . Value of lot size is increased by this “Volume Step”. I have built a whole series of
Hello Traders, Have a trading strategy or idea you want to automate? I specialize exclusively in MQL5 development, helping traders turn their concepts into professional trading solutions. Custom Expert Advisors — automate your strategy and reduce manual execution Custom Indicators — transform your market ideas into powerful trading tools Fix & Debug — identify errors and get your existing code working properly
please share: Strategy description — entry/exit rules, indicators used, timeframe(s), and instrument(s) (a written explanation, screenshots, or an existing indicator/EA to reference all work) Risk management rules — position sizing method (fixed lot / % risk), stop loss / take profit logic, max drawdown or daily loss limits, and whether martingale/grid/hedging is involved Broker & account details — broker name
I need a unique grid trading system for XAUUSD that combines entry, controlled two-sided grid expansion, DCA (Dollar Cost Averaging) basket profit control, hedging. Unlike traditional grid EAs that only trade against price, this unique grid system should dynamically build positions in both directions based on market movement, allowing flexible adaptation to changing conditions ie the grid needs to dynamically move
I need an experienced MQL5 developer to create a fully automated MT5 Expert Advisor called Ayoub Gold EA , focused exclusively on XAUUSD (Gold) . Main requirements: Platform: MT5 / MQL5. Fully automated BUY and SELL trading on XAUUSD. Must support broker suffixes such as XAUUSD, XAUUSD.f and XAUUSDm. Trading strategy based mainly on Range Breakout with trend confirmation. EMA, ADX and ATR filters. London/New York
Mashiri 50 - 10000 USD
I need a custom MetaTrader 5 indicator designed specifically for XAUUSD gold trading. The indicator should identify potential buy and sell opportunities, display clear entry and exit signals on the chart, provide alerts, and help identify market trends and possible reversals
Looking for an experienced Sierra Chart ACSIL/C++ developer to customize an existing footprint chart. I need 3 things: 7-Day ATR – calculate and display a configurable 7-day ATR. Custom Footprint – modify my existing footprint chart to match my preferred layout/data display. Automatic LVN – detect and plot Low Volume Nodes automatically based on volume distribution. I already have a working footprint chart, so no
//———————————————————————————————————————————————————————————————————— struct S_MCAV { double matureSum; double totalSum; double value; void Init () { matureSum = 0.0; totalSum = 0.0; value = 0.5; } void AddContext (int ctx) { totalSum += 1.0; if (ctx == 1) matureSum += 1.0; } void ApplyDecay (double rate) { matureSum *= rate; totalSum *= rate; } void Update () {
1. Title Development of a Custom MQL5 Expert Advisor for XAUUSD (MetaTrader 5) 2. Requirements Specification Overview: I am looking for an experienced MQL5 developer to build a robust, fully custom Expert Advisor (EA) for MetaTrader 5 tailored for trading Gold (XAUUSD). Core Specifications & Features: Asset & Timeframe: Designed specifically for XAUUSD. Timeframe should be selectable directly from the EA inputs
SPECIFICA TECNICA: Cerco uno sviluppatore MQL5 esperto per sviluppare da zero un Expert Advisor completamente nuovo per XAUUSD su MT5. Non desidero un semplice Expert Advisor basato su indicatori fissi. Desidero un sistema di trading dinamico e adattivo , in grado di adattare il comportamento proprio alle diverse condizioni di mercato di XAUUSD. Lo sviluppatore può utilizzare tecniche appropriate quali trend

Informações sobre o projeto

Orçamento
30+ USD
Prazo
para 7 dias