EA to Close Trades Using Stochastic Indicator

Spécifications

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.

Répondu

1
Développeur 1
Évaluation
(20)
Projets
19
11%
Arbitrage
2
50% / 50%
En retard
0
Travail
2
Développeur 2
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
3
Développeur 3
Évaluation
(141)
Projets
166
22%
Arbitrage
7
29% / 43%
En retard
4
2%
Travail
4
Développeur 4
Évaluation
(349)
Projets
548
32%
Arbitrage
24
67% / 8%
En retard
16
3%
Travail
5
Développeur 5
Évaluation
(295)
Projets
373
21%
Arbitrage
43
60% / 23%
En retard
44
12%
Occupé
6
Développeur 6
Évaluation
(1)
Projets
3
0%
Arbitrage
0
En retard
0
Travail
7
Développeur 7
Évaluation
(54)
Projets
64
6%
Arbitrage
24
21% / 38%
En retard
4
6%
Travail
8
Développeur 8
Évaluation
(17)
Projets
23
39%
Arbitrage
0
En retard
0
Travail
9
Développeur 9
Évaluation
(157)
Projets
222
22%
Arbitrage
15
60% / 20%
En retard
1
0%
Occupé
10
Développeur 10
Évaluation
(592)
Projets
924
46%
Arbitrage
31
39% / 29%
En retard
93
10%
Travail
11
Développeur 11
Évaluation
(241)
Projets
425
34%
Arbitrage
54
37% / 39%
En retard
155
36%
Travail
12
Développeur 12
Évaluation
(22)
Projets
28
11%
Arbitrage
6
33% / 50%
En retard
4
14%
Chargé
13
Développeur 13
Évaluation
(69)
Projets
79
9%
Arbitrage
34
9% / 56%
En retard
6
8%
Chargé
14
Développeur 14
Évaluation
(28)
Projets
34
15%
Arbitrage
5
40% / 60%
En retard
5
15%
Gratuit
15
Développeur 15
Évaluation
(3)
Projets
3
0%
Arbitrage
3
33% / 33%
En retard
0
Gratuit
16
Développeur 16
Évaluation
Projets
1
0%
Arbitrage
1
0% / 0%
En retard
0
Travail
17
Développeur 17
Évaluation
(1129)
Projets
1431
62%
Arbitrage
21
57% / 10%
En retard
43
3%
Gratuit
18
Développeur 18
Évaluation
(103)
Projets
130
44%
Arbitrage
7
43% / 43%
En retard
7
5%
Gratuit
19
Développeur 19
Évaluation
(50)
Projets
94
29%
Arbitrage
3
33% / 0%
En retard
4
4%
Gratuit
20
Développeur 20
Évaluation
(58)
Projets
76
25%
Arbitrage
9
33% / 56%
En retard
8
11%
Travail
21
Développeur 21
Évaluation
(5)
Projets
5
20%
Arbitrage
0
En retard
1
20%
Travail
Commandes similaires
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
im looking for coder that can code high/lows on a range and is defined by 3candle formation on the higher timeframe and a bos/mss on the lower timeframe.it should be able to show the near by liquidity of the poi on that range. is may eventually become a EA after
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
Hello I would like to convert my PineScript into a MQL5 EA. It's a pine indicator but I would like to create later on a strategy based on this. It's about drawing 3 Boxes (Sessions with time inputs) and pivot highs and pivot lows in a timeframe which the user can choose (input for pivot high/low timeframe). The pivot highs and lows can get improved with 3 indicators: - RSI - Stoch - MACD - ADX That means you must add
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
write me an MQL code that will work on mt4 and mt5 and follow these specific instructions... This code is for forex trading EA and will work in any time frame, using the candle sticks formed on that time frame to make its trading decisions. it should work with all forex pairs, indices and commodities. The instructions are as follows: Entry Condition: when there are two or more consecutive bearish close (price opens
Hello I have an indicator here which is based on the crosses...if two lines crossing for buy it must change all candles on the main chart to be green, If two lines crossing for sell it must change all candles to red...Main Chart candles to change color(s) must be controlled by the cross indicator
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

Informations sur le projet

Budget
30+ USD
Pour le développeur
27 USD
Délais
à 7 jour(s)