A simple EA with a not too simple TrailingStop

Trabajo finalizado

Plazo de ejecución 17 días
Comentario del Cliente
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!
Comentario del Ejecutor
Very smart and good person. It was nice working with him. I hope for further cooperation. thank

Tarea técnica

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 ;)

Han respondido

1
Desarrollador 1
Evaluación
(54)
Proyectos
53
17%
Arbitraje
7
0% / 100%
Caducado
5
9%
Libre
2
Desarrollador 2
Evaluación
(277)
Proyectos
334
55%
Arbitraje
14
36% / 29%
Caducado
1
0%
Libre
3
Desarrollador 3
Evaluación
(2660)
Proyectos
3380
68%
Arbitraje
77
48% / 14%
Caducado
342
10%
Libre
Ha publicado: 1 ejemplo
4
Desarrollador 4
Evaluación
(49)
Proyectos
134
27%
Arbitraje
62
13% / 53%
Caducado
58
43%
Libre
Ha publicado: 310 artículos, 1 ejemplo
5
Desarrollador 5
Evaluación
(169)
Proyectos
204
30%
Arbitraje
25
40% / 44%
Caducado
12
6%
Libre
6
Desarrollador 6
Evaluación
(258)
Proyectos
396
28%
Arbitraje
69
19% / 49%
Caducado
121
31%
Trabaja
7
Desarrollador 7
Evaluación
(250)
Proyectos
460
26%
Arbitraje
140
20% / 59%
Caducado
100
22%
Trabaja
8
Desarrollador 8
Evaluación
(66)
Proyectos
95
28%
Arbitraje
20
25% / 55%
Caducado
24
25%
Libre
9
Desarrollador 9
Evaluación
(144)
Proyectos
285
42%
Arbitraje
19
63% / 5%
Caducado
29
10%
Libre
Ha publicado: 2 ejemplos
10
Desarrollador 10
Evaluación
(568)
Proyectos
657
32%
Arbitraje
41
41% / 46%
Caducado
11
2%
Ocupado
11
Desarrollador 11
Evaluación
(171)
Proyectos
195
42%
Arbitraje
13
8% / 54%
Caducado
9
5%
Libre
Ha publicado: 3 ejemplos
12
Desarrollador 12
Evaluación
(1931)
Proyectos
3552
88%
Arbitraje
73
40% / 15%
Caducado
268
8%
Libre
Solicitudes similares
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

Información sobre el proyecto

Presupuesto
50 - 150 USD
Plazo límite de ejecución
de 3 a 10 día(s)