EA for EMA strategy with breakeven, trailling stop, setting trading hour

Specification

I want to create an EA like this:

- Long entry: Price close above EMA

  Close long when price close below EMA

- Short entry: Price close below EMA

  Close long when price close above EMA


EMA long short strategy with setting

- STOPLOSS: 

   + 1st option close at specific setting price 

   + 2nd option stoploss at highest price of signal candle. 

- TAKE PROFIT at specific setting price

- BREAKEVEN: when price move to a certain price the breakeven is active, the SL will move to offsetting price.

- TRAILING TRIGGER: when price move to a certain price, trailing stoploss will active

- TRAILING DISTANCE: Distance of the trailing stop-loss from current price.SL will be opened at traildist after trailtrig is met.

- TRAILING STEP : Moves trailing stop-loss once price moves to favourable by a specified number of pips.

examble for trailing step: trailtrig=12,traildist=8,trailstep=3

Interpretation: With trailtrig=12, the first instance of trailing SL will be when price moves favourably for 12 pips (entry+12). 

The SL will be placed 8 pips lower at (entry+12-8).

With trailstep=3, the second instance of trailing SL is when price moves favourably for another 3 pips (entry+12+3).

The SL will be placed at 8 pips lower at (entry+12+3-8).

The third instance will be when price moves another 3 favourable pips (entry+12+3+3)

The SL will be placed 8 pips lower at (entry+12+3+3-8), and so on.

- TRADING TIME : buy or sell only active during active hours are setting.

QUESTION: with the trailling stoploss can you set at close price. For example, when price close 12 pips over entry then the trailing trigger is active and so on for other trailing distance and trailing step.


Files:

Responded

1
Developer 1
Rating
(22)
Projects
21
10%
Arbitration
4
25% / 75%
Overdue
0
Free
2
Developer 2
Rating
(3)
Projects
4
25%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(15)
Projects
19
16%
Arbitration
5
40% / 40%
Overdue
0
Free
4
Developer 4
Rating
(93)
Projects
114
24%
Arbitration
21
29% / 52%
Overdue
8
7%
Free
5
Developer 5
Rating
(390)
Projects
416
30%
Arbitration
74
19% / 70%
Overdue
52
13%
Working
6
Developer 6
Rating
(373)
Projects
479
23%
Arbitration
57
56% / 25%
Overdue
55
11%
Busy
7
Developer 7
Rating
(152)
Projects
190
57%
Arbitration
10
80% / 0%
Overdue
0
Free
Published: 1 code
8
Developer 8
Rating
(84)
Projects
164
43%
Arbitration
3
67% / 0%
Overdue
5
3%
Working
Published: 1 code
9
Developer 9
Rating
(428)
Projects
623
54%
Arbitration
30
53% / 23%
Overdue
6
1%
Busy
10
Developer 10
Rating
(12)
Projects
14
0%
Arbitration
4
0% / 75%
Overdue
3
21%
Working
11
Developer 11
Rating
(278)
Projects
340
37%
Arbitration
6
50% / 17%
Overdue
7
2%
Free
Published: 5 codes
12
Developer 12
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free
13
Developer 13
Rating
(540)
Projects
622
33%
Arbitration
37
38% / 51%
Overdue
11
2%
Busy
14
Developer 14
Rating
(51)
Projects
69
35%
Arbitration
4
25% / 75%
Overdue
0
Free
15
Developer 15
Rating
(275)
Projects
370
72%
Arbitration
18
33% / 44%
Overdue
14
4%
Free
Published: 14 codes
16
Developer 16
Rating
(2629)
Projects
3341
67%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
17
Developer 17
Rating
(100)
Projects
125
23%
Arbitration
12
0% / 75%
Overdue
22
18%
Free
18
Developer 18
Rating
(3)
Projects
9
33%
Arbitration
1
100% / 0%
Overdue
0
Free
19
Developer 19
Rating
(2293)
Projects
2887
63%
Arbitration
122
44% / 25%
Overdue
428
15%
Working
20
Developer 20
Rating
(72)
Projects
80
10%
Arbitration
38
8% / 58%
Overdue
6
8%
Free
21
Developer 21
Rating
(57)
Projects
84
26%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
22
Developer 22
Rating
(1156)
Projects
1462
63%
Arbitration
21
57% / 10%
Overdue
43
3%
Free
23
Developer 23
Rating
(37)
Projects
59
27%
Arbitration
26
19% / 54%
Overdue
10
17%
Working
Published: 1 code
24
Developer 24
Rating
(617)
Projects
1427
59%
Arbitration
31
81% / 0%
Overdue
10
1%
Free
25
Developer 25
Rating
(77)
Projects
241
73%
Arbitration
7
100% / 0%
Overdue
1
0%
Free
26
Developer 26
Rating
(294)
Projects
470
39%
Arbitration
102
40% / 24%
Overdue
78
17%
Busy
Published: 2 codes
Similar orders
I want an EA that work with my support and resistance indicator. Buy entry condition are: 1. hen candlestick closes in side the support bar. 2. When candlestick break above resistance bar. Likewise sell condition: 1. When candlestick closes inside the resistance bar, 2. When candlestick break below support bar
1. Goal I want a MetaTrader 5 Expert Advisor that trades a simple Supertrend trend‑following idea, but with professional‑grade risk management and filters. It should be robust enough for real money on instruments like XAUUSD and GBP pairs, using small, consistent risk per trade rather than martingale or grid. 2. Strategy Logic Indicators (I will supply the .mq5 files if needed): Supertrend (ATR‑based), with
Hi developers, I need someone to help me create a simple EA with my indicators and trading plan... I will give you all parameters and you help me create... 2 moving averages, one candle pattern
Please a need a very good expert for this jou I want to create 2 robot one a trade manager Perfect — here’s a clean, professional order description you can post directly to an EA freelancer (MQL5). I’ve written it so it’s clear, serious, and attractive to skilled developers 👌 MQL5 Trade Manager EA – Development Request I am looking for an experienced MQL5 developer to build a robust Trade Manager Expert Advisor for
Henryy999 30 - 3000 USD
The Ai robot must help me with forex and I don't have money soon can the Ai robot give me some money and I will pay it back if the Ai robot does a good job making me rich
Project Title: MT5 Algo Trading EA (Single Strategy + License Panel + Ownership + Manual Trade) --- Project Description I am looking for an experienced MT5 (MQL5) developer to create a clean, stable and professional Algo Trading EA for my company and future clients. This is a long-term business project, not a one-time personal EA. --- 1. Strategy Requirements - Only 1 single trading strategy - No martingale - No grid
I am looking for an experienced StrategyQuant X (SQX) developer to build a reusable trading template , not a single strategy. ⚠️ Please do NOT apply unless you actively use StrategyQuant X and have access to it. This project cannot be completed without SQX. 1. Session and Time Filters Trading restricted to fixed GMT sessions per index Sessions must convert correctly to broker server time and remain correct through
Is there someone who coded the PipJuice indicator? Here is the link: https://www.pipjuice.io/ Unfortunately, I don‘t have access to the indicator or the code. If someone have it please send me some screenshots
Strategy Development: Suggest a high-probability trading strategy based on Technical Analysis (using indicators like RSI, MACD, or Price Action). Risk Management: Explain how to calculate position sizing so I don't lose more than 1-2% of my capital per trade. Market Analysis: Teach me how to identify Support and Resistance levels and how to spot a trend reversal. Psychology: Give me 5 golden rules to maintain
A Grid EA with a hedge that open trades on a percentage based on whats is opened on the other side, closes losing trades with current profits made and utilizes a grid trading strategy combined with hedging technique to mitigate risk and potentially lock in profits. It involves placing buy and sell orders at predetermined price intervals, forming a grid. When a trade within the grid moves against the initial

Project information

Budget
30 - 80 USD