A simple EA with a not too simple TrailingStop

Job finished

Execution time 17 days
Feedback from customer
Sergey is probably the most skilled Coder here, he took his time to understand what I want and turned it into an EA, that does exactly what I want it to do. I'll definitely be back for my next Idea!
Feedback from employee
Very smart and good person. It was nice working with him. I hope for further cooperation. thank

Specification

Inputs:

OnNewCandle        M1, M5, M15, ... MN
Lotsize                   Lotsize
Distance                 Distance from Price for both directions in points
TakeProfit               0=None (=TrailingStop) in points
StopLoss                0=None in Points
MaxPositions          No. of max. positions
Timeout                  0-59 minutes in case a pending order is not triggered or deleted
MagicNumber        to allow it working on other instrumets too

EnableDouble        Yes/No (Checkbox)
DoubleLotsize        Lotsize for Double Position
DoubleTakeProfit    TakeProfit for Double Position 0=None (=TrailingStop) in points
DoubleStopLoss     StopLoss for Double Position 0=None in points

TrailingStart            Start trailing after profit in points
TrailingDistance      initial TrailingDistance below/above price in points

....................................................

The EA should open one Buy Stop and one Sell Stop order simultaneously on every
new candle specified in the OnNewCandle variable regardless the timeframe it
runs on, as long as MaxPositions allows it, with the specified Distance, Lotsize
TakeProfit, StopLoss and Timeout ... for the Instrument it is attached to
Then, if either one of these Stop orders is triggered (becomes a position) and
EnableDouble=Yes it opens another market position in the same direction with
the specified DoubleLotsize, DoubleTakeProfit and DoubleStopLoss at the current
price ... then closes the other (opposite) pending order.
In case a pending order can't be deleted or none of both is triggered, it (they) will
Timeout after xx minutes as specified in Timeout

TrailingStop should be a virtual TrailingStop which after reaching the
TrailingStart amount of profit, decreases TrailingDistance for every price
movement of one point in any direction for one point ... means if
TrailingStart i.e at 100 points of profit is triggered, it starts with a
TrailingDistance of i.e. 75 points ... then price goes up 15 points and down 10
points, TrailingDistance will be decreased by 25 points to 50 points ... until
the position is closed when a TrailingDistance of 0 is reached.
TrailingStop should trail all positions without a TakeProfit from its Instrument
including manually opened positions.

The EA will be used on a VPS and with 5 digit Instruments only and with no more
than about 3 Instruments.

As my Intentions to order this EA are 1. to have something to start automated
trading with and 2. to learn writing and optimizing EA's myself, I want it
delivered with a source code listing or as a .mq5 file to compile it myself.

Yeah ... it's name should be 369 ;)

Responded

1
Developer 1
Rating
(54)
Projects
53
17%
Arbitration
7
0% / 100%
Overdue
5
9%
Free
2
Developer 2
Rating
(277)
Projects
334
55%
Arbitration
14
36% / 29%
Overdue
1
0%
Free
3
Developer 3
Rating
(2660)
Projects
3380
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
4
Developer 4
Rating
(49)
Projects
134
27%
Arbitration
62
13% / 53%
Overdue
58
43%
Free
Published: 310 articles, 1 code
5
Developer 5
Rating
(169)
Projects
204
30%
Arbitration
25
40% / 44%
Overdue
12
6%
Free
6
Developer 6
Rating
(258)
Projects
396
28%
Arbitration
69
19% / 49%
Overdue
121
31%
Working
7
Developer 7
Rating
(250)
Projects
460
26%
Arbitration
140
20% / 59%
Overdue
100
22%
Working
8
Developer 8
Rating
(66)
Projects
95
28%
Arbitration
20
25% / 55%
Overdue
24
25%
Free
9
Developer 9
Rating
(144)
Projects
285
42%
Arbitration
19
63% / 5%
Overdue
29
10%
Free
Published: 2 codes
10
Developer 10
Rating
(568)
Projects
657
32%
Arbitration
41
41% / 46%
Overdue
11
2%
Busy
11
Developer 11
Rating
(171)
Projects
195
42%
Arbitration
13
8% / 54%
Overdue
9
5%
Free
Published: 3 codes
12
Developer 12
Rating
(1931)
Projects
3552
88%
Arbitration
73
40% / 15%
Overdue
268
8%
Free
Similar orders
I need a professional MT5 Expert Advisor (EA) built with clean, modular code. This is an advanced strategy combining liquidity concepts, controlled DCA, hedge protection, and strict risk management. Core Requirements: Entry Logic (ALL must align): Liquidity sweep (Previous Day High/Low breakout and return) EMA50 and EMA200 trend alignment Higher timeframe bias (H1 or H4) RSI confirmation Bollinger Band entry Filters
I need a professional MQL5 developer. BEFORE I SHARE ANY DETAILS: 1. You must sign a PERPETUAL NDA with no expiration date 2. NDA includes €100,000 penalty for any breach 3. I require full .mq5 source code ownership 4. Developer must have 500+ completed jobs, 4.9+ rating Budget: €1500 EUR Duration: 14 days Start your application with "RULER" to prove you read this
Pip Scalper Bot 60+ USD
i want a trading bot that is aleast 98% sure,and cam also do scalping 99% correct using smart money concept, ICT, ALL technical analysis on it and also put risk management on it
Greetings I need MT5 developer that has expertise in developing a custom indicator for mt5 boom and crash based on my exact details and requirements which would be discuss later. Kindly bid for this project if it is something you can handle for me
AI Trading MQL5: Maximizing Profit from a $10 Investment Achieving significant profits from a small initial capital like $10 in AI trading with MQL5 requires a highly strategic and disciplined approach. While the potential for exponential growth exists, it's crucial to manage expectations and understand the inherent risks. **Key Strategies for Small Capital AI Trading:** 1. **Low-Risk, High-Probability
I’m looking for an experienced NinjaTrader developer to complete an existing custom indicator. The project is already partially built and is well organized, completely functional, and well documented. The former developer experienced some personal difficulties and unfortunately cannot continue. Key Requirement (Read Carefully): You MUST have direct, hands-on experience with NinjaTrader and NinjaScript (C#) . This is
I need a professional developer to help me create an EA using RSI and Moving averages.The strategies are well organised and everything is in order. I will send all the details in the inbox
Powerful 30 - 100 USD
I really want a powerful developed EA that can generate a minimum of 10% every month without martingale, greed or any dangerous strategy for sale. Developer must provide the mql5 file or the raw file for modification etc
I already have a fully developed MT5 Expert Advisor with all required prop firm features, including: Risk management Daily loss & max drawdown limits Spread & slippage filters News filter Trade management system The EA structure is complete. 👉 What I need is a professional developer to replace ONLY the entry logic with a high-quality, rule-based trading strategy. 🚨 STRICT REQUIREMENT (READ CAREFULLY): I am NOT
Hello, I’m looking for an experienced developer who can help convert an existing cTrader indicator into a fully functional Quantower indicator . I already have the complete source code for the cTrader indicator (written in C#) , and I would like the same logic, behavior, and visual output to be accurately replicated in Quantower

Project information

Budget
50 - 150 USD
Deadline
from 3 to 10 day(s)