EA to Close Trades Using Stochastic Indicator

Specification

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.

Responded

1
Developer 1
Rating
(20)
Projects
19
11%
Arbitration
2
50% / 50%
Overdue
0
Working
2
Developer 2
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(141)
Projects
166
22%
Arbitration
7
29% / 43%
Overdue
4
2%
Working
4
Developer 4
Rating
(349)
Projects
548
32%
Arbitration
24
67% / 8%
Overdue
16
3%
Working
5
Developer 5
Rating
(295)
Projects
373
21%
Arbitration
43
60% / 23%
Overdue
44
12%
Busy
6
Developer 6
Rating
(1)
Projects
3
0%
Arbitration
0
Overdue
0
Working
7
Developer 7
Rating
(54)
Projects
64
6%
Arbitration
24
21% / 38%
Overdue
4
6%
Working
8
Developer 8
Rating
(17)
Projects
23
39%
Arbitration
0
Overdue
0
Working
9
Developer 9
Rating
(157)
Projects
222
22%
Arbitration
15
60% / 20%
Overdue
1
0%
Busy
10
Developer 10
Rating
(592)
Projects
924
46%
Arbitration
31
39% / 29%
Overdue
93
10%
Working
11
Developer 11
Rating
(241)
Projects
425
34%
Arbitration
54
37% / 39%
Overdue
155
36%
Working
12
Developer 12
Rating
(22)
Projects
28
11%
Arbitration
6
33% / 50%
Overdue
4
14%
Loaded
13
Developer 13
Rating
(69)
Projects
79
9%
Arbitration
34
9% / 56%
Overdue
6
8%
Loaded
14
Developer 14
Rating
(28)
Projects
34
15%
Arbitration
5
40% / 60%
Overdue
5
15%
Free
15
Developer 15
Rating
(3)
Projects
3
0%
Arbitration
3
33% / 33%
Overdue
0
Free
16
Developer 16
Rating
Projects
1
0%
Arbitration
1
0% / 0%
Overdue
0
Working
17
Developer 17
Rating
(1129)
Projects
1431
62%
Arbitration
21
57% / 10%
Overdue
43
3%
Free
18
Developer 18
Rating
(103)
Projects
130
44%
Arbitration
7
43% / 43%
Overdue
7
5%
Free
19
Developer 19
Rating
(50)
Projects
94
29%
Arbitration
3
33% / 0%
Overdue
4
4%
Free
20
Developer 20
Rating
(58)
Projects
76
25%
Arbitration
9
33% / 56%
Overdue
8
11%
Working
21
Developer 21
Rating
(5)
Projects
5
20%
Arbitration
0
Overdue
1
20%
Working
Similar orders
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

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
to 7 day(s)