EA to Close Trades Using Stochastic Indicator

Specifiche

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.

Con risposta

1
Sviluppatore 1
Valutazioni
(20)
Progetti
19
11%
Arbitraggio
2
50% / 50%
In ritardo
0
In elaborazione
2
Sviluppatore 2
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
3
Sviluppatore 3
Valutazioni
(141)
Progetti
166
22%
Arbitraggio
7
29% / 43%
In ritardo
4
2%
In elaborazione
4
Sviluppatore 4
Valutazioni
(349)
Progetti
548
32%
Arbitraggio
24
67% / 8%
In ritardo
16
3%
In elaborazione
5
Sviluppatore 5
Valutazioni
(295)
Progetti
373
21%
Arbitraggio
43
60% / 23%
In ritardo
44
12%
Occupato
6
Sviluppatore 6
Valutazioni
(1)
Progetti
3
0%
Arbitraggio
0
In ritardo
0
In elaborazione
7
Sviluppatore 7
Valutazioni
(54)
Progetti
64
6%
Arbitraggio
24
21% / 38%
In ritardo
4
6%
In elaborazione
8
Sviluppatore 8
Valutazioni
(17)
Progetti
23
39%
Arbitraggio
0
In ritardo
0
In elaborazione
9
Sviluppatore 9
Valutazioni
(157)
Progetti
222
22%
Arbitraggio
15
60% / 20%
In ritardo
1
0%
Occupato
10
Sviluppatore 10
Valutazioni
(592)
Progetti
924
46%
Arbitraggio
31
39% / 29%
In ritardo
93
10%
In elaborazione
11
Sviluppatore 11
Valutazioni
(241)
Progetti
425
34%
Arbitraggio
54
37% / 39%
In ritardo
155
36%
In elaborazione
12
Sviluppatore 12
Valutazioni
(22)
Progetti
28
11%
Arbitraggio
6
33% / 50%
In ritardo
4
14%
Caricato
13
Sviluppatore 13
Valutazioni
(69)
Progetti
79
9%
Arbitraggio
34
9% / 56%
In ritardo
6
8%
Caricato
14
Sviluppatore 14
Valutazioni
(28)
Progetti
34
15%
Arbitraggio
5
40% / 60%
In ritardo
5
15%
Gratuito
15
Sviluppatore 15
Valutazioni
(3)
Progetti
3
0%
Arbitraggio
3
33% / 33%
In ritardo
0
Gratuito
16
Sviluppatore 16
Valutazioni
Progetti
1
0%
Arbitraggio
1
0% / 0%
In ritardo
0
In elaborazione
17
Sviluppatore 17
Valutazioni
(1129)
Progetti
1431
62%
Arbitraggio
21
57% / 10%
In ritardo
43
3%
Gratuito
18
Sviluppatore 18
Valutazioni
(103)
Progetti
130
44%
Arbitraggio
7
43% / 43%
In ritardo
7
5%
Gratuito
19
Sviluppatore 19
Valutazioni
(50)
Progetti
94
29%
Arbitraggio
3
33% / 0%
In ritardo
4
4%
Gratuito
20
Sviluppatore 20
Valutazioni
(58)
Progetti
76
25%
Arbitraggio
9
33% / 56%
In ritardo
8
11%
In elaborazione
21
Sviluppatore 21
Valutazioni
(5)
Progetti
5
20%
Arbitraggio
0
In ritardo
1
20%
In elaborazione
Ordini simili
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

Informazioni sul progetto

Budget
30+ USD
Per lo sviluppatore
27 USD
Scadenze
a 7 giorno(i)