EA to Close Trades Using Stochastic Indicator

工作已完成

执行时间1 一天

指定

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.

反馈

1
开发者 1
等级
(22)
项目
21
10%
仲裁
4
25% / 75%
逾期
0
空闲
2
开发者 2
等级
(102)
项目
105
60%
仲裁
0
逾期
0
空闲
3
开发者 3
等级
(279)
项目
350
29%
仲裁
37
27% / 65%
逾期
10
3%
已载入
4
开发者 4
等级
(455)
项目
721
34%
仲裁
35
71% / 9%
逾期
23
3%
空闲
5
开发者 5
等级
(396)
项目
512
23%
仲裁
60
57% / 25%
逾期
60
12%
已载入
6
开发者 6
等级
(2)
项目
5
0%
仲裁
3
0% / 100%
逾期
1
20%
工作中
7
开发者 7
等级
(75)
项目
80
6%
仲裁
46
11% / 54%
逾期
7
9%
工作中
8
开发者 8
等级
(47)
项目
67
37%
仲裁
5
40% / 40%
逾期
1
1%
空闲
9
开发者 9
等级
(274)
项目
403
28%
仲裁
40
40% / 50%
逾期
1
0%
空闲
10
开发者 10
等级
(636)
项目
1007
47%
仲裁
33
36% / 36%
逾期
99
10%
工作中
发布者: 6 代码
11
开发者 11
等级
(319)
项目
568
35%
仲裁
82
30% / 45%
逾期
206
36%
已载入
12
开发者 12
等级
(62)
项目
90
29%
仲裁
24
13% / 58%
逾期
7
8%
工作中
13
开发者 13
等级
(72)
项目
80
10%
仲裁
38
8% / 58%
逾期
6
8%
空闲
14
开发者 14
等级
(50)
项目
64
20%
仲裁
11
27% / 55%
逾期
5
8%
空闲
15
开发者 15
等级
(7)
项目
8
13%
仲裁
6
33% / 33%
逾期
0
空闲
16
开发者 16
等级
项目
1
0%
仲裁
4
0% / 50%
逾期
0
工作中
17
开发者 17
等级
(1156)
项目
1462
63%
仲裁
21
57% / 10%
逾期
43
3%
空闲
18
开发者 18
等级
(111)
项目
139
43%
仲裁
9
33% / 44%
逾期
6
4%
空闲
19
开发者 19
等级
(50)
项目
94
29%
仲裁
4
25% / 0%
逾期
4
4%
空闲
发布者: 3 代码
20
开发者 20
等级
(64)
项目
83
28%
仲裁
9
33% / 56%
逾期
9
11%
空闲
发布者: 1 代码
21
开发者 21
等级
(10)
项目
6
33%
仲裁
6
0% / 67%
逾期
1
17%
工作中
相似订单
I need an MT5 Expert Advisor for XAUUSD (Gold) running on an Exness account. STRATEGY LOGIC The exact entry and exit rules will be provided in writing before development starts. Please quote for a single rule-based strategy with clearly separated logic, so the rules can be adjusted later without rewriting the whole EA. RISK MANAGEMENT (this is the priority of the project) - Risk per trade as a percentage of account
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

项目信息

预算
30+ USD
截止日期
 7 天