Build an EA based on Parabolic SAR with loss hedging

MQL5 Indicadores Asesores Expertos

Trabajo finalizado

Plazo de ejecución 2 días
Comentario del Cliente
Helpful and hardworking. Highly recommend

Tarea técnica

Indicator: Parabolic SAR

Trade as per the signal, close at TP: Check the indicator one again and initiate a new trade as per signal, the EA would continuously trade

If the indicator signals a new direction and the initial trade is in PROFIT, close and initiate new trade in new direction as per the indicator

If the indicator signals a new direction and the initial trade is in LOSS, don’t close:

·       Initiate a new opposite trade in the new direction with a multiplier of the initial order (x2)(see example a)

·       Keep initiating new trades till the basket of orders reaches “Basket TP” or the max number of orders in the basket is reached

·       Before the max number of orders in the basket is reached

o   If a signal shows and some orders from the opposite direction to the signal are in profit close them independently

o    If it is only one, close it, before initiating the order as per the new signal

o   If there are several in profit from the opposite direction to the new signal, close the one with the highest profit independently to keep down the numbers of the open orders in the baskets – Only close one trade at a time

o   Do not close the initial trade till the basket reaches TP

o   Keep doing this till basket TP )

o   (see example b)

·       After the max number of orders in the basket is reached

o   If there are winning ones in the opposite direction to the new signal close the highest winning one before initiating a new trade

o   If there are no winning ones in the in the opposite direction to the new signal close the smallest losing one before initiating a new trade – Only close one trade at a time

o   Do not close the initial trade till the basket reaches TP

o   (see Example c)

a.       Example a:

o   If the losing initial trade is 0.1 all the other trades in the baskets would be 0.2

o   If the losing initial trade is 1 all the other trades in the baskets would be 2

b.       Example b:

If we have 3 orders in the baskets and a new signal shows

1.       0.1 Buy

2.       0.2 Sell

3.       0.2 Buy

4.       (If 4. Signal is sell) and 3 or 1 is in profit, close the opposite ones with the highest profit before initiating a sell trade, if it is only one of them that is in profit, close it, if there are 2 of them in profit, close the highest profit before initiating the opposite trade

c.       Example c:

If the max number of orders for the basket is 7 and we have 7 open orders and a new direction is shown

o   If the new direction is sell, close the buy with the highest profit if there are no opposing trade with profit, close the buy with the smallest loss before initiating a new trade

o   If the new direction is buy, close the sell with the highest profit if there are no opposing trade with profit, close the sell with the smallest loss before initiating a new trade

o   Keep doing till basket reaches TP

 

Input

Chart timeframe

Indicator Timeframe

Parabolic SAR Step

Parabolic SAR Max

Lot Size

Take Profit

Stop Loss

Basket Take Profit

Magic Number 

(Add breakeven and trailing stop to the input)


Han respondido

1
Desarrollador 1
Evaluación
(329)
Proyectos
515
19%
Arbitraje
35
46% / 31%
Caducado
34
7%
Trabaja
2
Desarrollador 2
Evaluación
(50)
Proyectos
64
20%
Arbitraje
11
27% / 55%
Caducado
5
8%
Libre
3
Desarrollador 3
Evaluación
(62)
Proyectos
90
29%
Arbitraje
24
13% / 58%
Caducado
7
8%
Trabaja
4
Desarrollador 4
Evaluación
(4)
Proyectos
6
33%
Arbitraje
7
14% / 57%
Caducado
1
17%
Libre
5
Desarrollador 5
Evaluación
(47)
Proyectos
67
37%
Arbitraje
5
40% / 40%
Caducado
1
1%
Libre
6
Desarrollador 6
Evaluación
(7)
Proyectos
13
15%
Arbitraje
13
23% / 46%
Caducado
3
23%
Libre
Ha publicado: 38 artículos
7
Desarrollador 7
Evaluación
(274)
Proyectos
403
28%
Arbitraje
40
40% / 50%
Caducado
1
0%
Libre
8
Desarrollador 8
Evaluación
(298)
Proyectos
478
40%
Arbitraje
105
40% / 24%
Caducado
82
17%
Trabajando
Ha publicado: 2 ejemplos
9
Desarrollador 9
Evaluación
(25)
Proyectos
33
18%
Arbitraje
6
50% / 33%
Caducado
4
12%
Libre
10
Desarrollador 10
Evaluación
(2346)
Proyectos
2951
63%
Arbitraje
125
44% / 26%
Caducado
429
15%
Libre
11
Desarrollador 11
Evaluación
(33)
Proyectos
35
20%
Arbitraje
5
40% / 40%
Caducado
0
Libre
Ha publicado: 1 ejemplo
12
Desarrollador 12
Evaluación
(2675)
Proyectos
3414
68%
Arbitraje
77
48% / 14%
Caducado
342
10%
Libre
Ha publicado: 1 ejemplo
13
Desarrollador 13
Evaluación
(323)
Proyectos
328
71%
Arbitraje
2
100% / 0%
Caducado
0
Libre
Ha publicado: 1 ejemplo
14
Desarrollador 14
Evaluación
(271)
Proyectos
553
50%
Arbitraje
57
40% / 37%
Caducado
227
41%
Trabaja
15
Desarrollador 15
Evaluación
(16)
Proyectos
20
0%
Arbitraje
10
0% / 80%
Caducado
6
30%
Libre
16
Desarrollador 16
Evaluación
(64)
Proyectos
144
46%
Arbitraje
20
40% / 20%
Caducado
32
22%
Trabaja
17
Desarrollador 17
Evaluación
(11)
Proyectos
18
28%
Arbitraje
4
50% / 50%
Caducado
1
6%
Libre
18
Desarrollador 18
Evaluación
(162)
Proyectos
289
35%
Arbitraje
18
22% / 61%
Caducado
43
15%
Libre
19
Desarrollador 19
Evaluación
(7)
Proyectos
6
0%
Arbitraje
4
25% / 75%
Caducado
2
33%
Libre
20
Desarrollador 20
Evaluación
(6)
Proyectos
4
0%
Arbitraje
5
0% / 100%
Caducado
0
Libre
21
Desarrollador 21
Evaluación
(12)
Proyectos
12
17%
Arbitraje
2
0% / 50%
Caducado
1
8%
Libre
22
Desarrollador 22
Evaluación
(3)
Proyectos
1
0%
Arbitraje
5
0% / 100%
Caducado
0
Libre
Solicitudes similares
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
Indicador Maximas e Minimas + Super Trend O Indicador MAX/MIN é um indicador de análise técnica para o MetaTrader 5 , desenvolvido para ajudar você a identificar regiões importantes de preço e possíveis oportunidades de compra e venda. O que ele faz MAX/MIN: identifica máximas e mínimas relevantes do mercado e mostra os preços no gráfico. HH / HL / LH / LL: ajuda a visualizar a estrutura do mercado, mostrando quando
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
I DO NOT need any programming or strategy development. I already have a working NinjaTrader 8 automated strategy based on a 3/5 EMA crossover. I need you to run my existing strategy through NinjaTrader Strategy Analyzer/Optimizer, test the existing adjustable parameters, and find robust settings with the best profit factor and lowest reasonable drawdown. I will provide the existing NinjaScript ZIP. I do not want the
I'm looking for an experienced developer to create an automated gold trading bot. The bot should be compatible with MetaTrader 4/5 and TradingView. Key Requirements: - Automated trading bot - Compatible with MetaTrader 4/5 and TradingView - Implement scalping and swing trading strategies Ideal Skills and Experience: - Proficiency in trading algorithms - Experience with gold trading - Familiarity with MetaTrader and
I need a robust optimization of my MT5 EA, mainly for XAUUSD (Gold). Please optimize the existing adjustable parameters such as entry/exit settings, SL/TP, trailing/break-even settings, and any other strategy parameters that are appropriate. I want the optimization focused on stable profitability, low/moderate drawdown, and robustness rather than simply the highest possible profit. Please use out-of-sample testing
NinjaTrader 8 / NinjaScript Phase 1 build: convert an existing Auction Market Theory (AMT) strategy into objective, alert-only decision-support logic. Not a bot, no auto-execution — trades stay manual. Covers NQ/MNQ, ES, CL, MGC using 30-min TPO/Volume Profile context with 5-min confirmation: one 5-min close outside VAH/VAL = acceptance, close back inside = rejection. Dashboard shows bias, auction state, location
Hello, I need a custom NON-REPAINT MT5 indicator that gives sell/buy arrow signals 1–2 candlesticks before a spike on Crash and boom indices respectively occurs. Requirements: Works perfectly on MT5 Shows arrows before the spike (1–2 candles earlier). Non-repaint – once the arrow appears, it must stay. Should be accurate, not quantity — only quality signals. Must work on both demo and live accounts. I want the
Hello, I saw an indicator on TradingView and would like to know if you will be able to convert it for use on Thinkorswim platform? Thanks. if anyone can help me with it kindly do well to bid it urgent thanks looking forward too see you
calcVolume( void ) { //--- MqlRates rates[]; if ( CopyRates ( _Symbol , PERIOD_CURRENT , startTime, endTime, rates) > 0 ) { double rangeHigh = rates[ 0 ].high, rangeLow = rates[ 0 ].low; int count = MathAbs ( iBarShift ( _Symbol , PERIOD_CURRENT , startTime) - iBarShift ( _Symbol , PERIOD_CURRENT , endTime)) + 1 ; //---VERTICAL PRICE RANGE for ( int b = 0

Información sobre el proyecto

Presupuesto
40 - 70 USD
Plazo límite de ejecución
de 2 a 3 día(s)