EA to Close Trades Using Stochastic Indicator

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
(20)
Projetos
19
11%
Arbitragem
2
50% / 50%
Expirado
0
Trabalhando
2
Desenvolvedor 2
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(141)
Projetos
166
22%
Arbitragem
7
29% / 43%
Expirado
4
2%
Trabalhando
4
Desenvolvedor 4
Classificação
(349)
Projetos
548
32%
Arbitragem
24
67% / 8%
Expirado
16
3%
Trabalhando
5
Desenvolvedor 5
Classificação
(295)
Projetos
373
21%
Arbitragem
43
60% / 23%
Expirado
44
12%
Ocupado
6
Desenvolvedor 6
Classificação
(1)
Projetos
3
0%
Arbitragem
0
Expirado
0
Trabalhando
7
Desenvolvedor 7
Classificação
(54)
Projetos
64
6%
Arbitragem
24
21% / 38%
Expirado
4
6%
Trabalhando
8
Desenvolvedor 8
Classificação
(17)
Projetos
23
39%
Arbitragem
0
Expirado
0
Trabalhando
9
Desenvolvedor 9
Classificação
(157)
Projetos
222
22%
Arbitragem
15
60% / 20%
Expirado
1
0%
Ocupado
10
Desenvolvedor 10
Classificação
(592)
Projetos
924
46%
Arbitragem
31
39% / 29%
Expirado
93
10%
Trabalhando
11
Desenvolvedor 11
Classificação
(241)
Projetos
425
34%
Arbitragem
54
37% / 39%
Expirado
155
36%
Trabalhando
12
Desenvolvedor 12
Classificação
(22)
Projetos
28
11%
Arbitragem
6
33% / 50%
Expirado
4
14%
Carregado
13
Desenvolvedor 13
Classificação
(69)
Projetos
79
9%
Arbitragem
34
9% / 56%
Expirado
6
8%
Carregado
14
Desenvolvedor 14
Classificação
(28)
Projetos
34
15%
Arbitragem
5
40% / 60%
Expirado
5
15%
Livre
15
Desenvolvedor 15
Classificação
(3)
Projetos
3
0%
Arbitragem
3
33% / 33%
Expirado
0
Livre
16
Desenvolvedor 16
Classificação
Projetos
1
0%
Arbitragem
1
0% / 0%
Expirado
0
Trabalhando
17
Desenvolvedor 17
Classificação
(1129)
Projetos
1431
62%
Arbitragem
21
57% / 10%
Expirado
43
3%
Livre
18
Desenvolvedor 18
Classificação
(103)
Projetos
130
44%
Arbitragem
7
43% / 43%
Expirado
7
5%
Livre
19
Desenvolvedor 19
Classificação
(50)
Projetos
94
29%
Arbitragem
3
33% / 0%
Expirado
4
4%
Livre
20
Desenvolvedor 20
Classificação
(58)
Projetos
76
25%
Arbitragem
9
33% / 56%
Expirado
8
11%
Trabalhando
21
Desenvolvedor 21
Classificação
(5)
Projetos
5
20%
Arbitragem
0
Expirado
1
20%
Trabalhando
Pedidos semelhantes
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
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
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
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
I need to automate the supertrend indicator on ctrader with partial tp and sl. I already have a sort of script (without tp and sl) but when I go to compile it gives me an error. would you be able to make it work by adding the partial tp and sl
I have an Expert Advisor in ex4 and mq4 file formats that I would like to recreate with its original strategy. I believe the file have a bug or one error inside or maybe also is a Decomp file , and as a result, I am unable to understand the rules it follows to evaluate the market and open orders. I am looking for a developer who can help me reconstruct the strategy accurately. The mql4 format file would need to be
Just need an EA based on Half Trend Indicator. Maybe add stop loss and take profit. ! am open to any suggestion you may recommend me. Lot size and time frame adjustable
Hello, I am looking for an expert in DLL to help control my current EA. I want to implement some conditions that will allow my EA to turn on and off according to DLL specifications. For example, the EA should only execute trades when a specific condition in the DLL is met, and it should stop trading when the condition is not met

Informações sobre o projeto

Orçamento
30+ USD
Desenvolvedor
27 USD
Prazo
para 7 dias