Build an EA based on Parabolic SAR with loss hedging

MQL5 Indicators Experts

Job finished

Execution time 2 days
Feedback from customer
Helpful and hardworking. Highly recommend

Specification

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)


Responded

1
Developer 1
Rating
(328)
Projects
513
19%
Arbitration
35
43% / 31%
Overdue
34
7%
Loaded
2
Developer 2
Rating
(50)
Projects
64
20%
Arbitration
11
27% / 55%
Overdue
5
8%
Free
3
Developer 3
Rating
(62)
Projects
90
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
4
Developer 4
Rating
(4)
Projects
6
33%
Arbitration
7
14% / 57%
Overdue
1
17%
Free
5
Developer 5
Rating
(47)
Projects
67
37%
Arbitration
5
40% / 40%
Overdue
1
1%
Free
6
Developer 6
Rating
(7)
Projects
13
15%
Arbitration
13
23% / 46%
Overdue
3
23%
Free
Published: 35 articles
7
Developer 7
Rating
(274)
Projects
403
28%
Arbitration
40
40% / 50%
Overdue
1
0%
Free
8
Developer 8
Rating
(298)
Projects
478
40%
Arbitration
105
40% / 24%
Overdue
82
17%
Loaded
Published: 2 codes
9
Developer 9
Rating
(25)
Projects
32
19%
Arbitration
5
40% / 40%
Overdue
4
13%
Free
10
Developer 10
Rating
(2335)
Projects
2938
63%
Arbitration
124
44% / 26%
Overdue
429
15%
Working
11
Developer 11
Rating
(33)
Projects
35
20%
Arbitration
5
40% / 40%
Overdue
0
Free
Published: 1 code
12
Developer 12
Rating
(2672)
Projects
3407
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
13
Developer 13
Rating
(318)
Projects
323
71%
Arbitration
2
100% / 0%
Overdue
0
Free
Published: 1 code
14
Developer 14
Rating
(271)
Projects
553
50%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
15
Developer 15
Rating
(16)
Projects
20
0%
Arbitration
10
0% / 80%
Overdue
6
30%
Free
16
Developer 16
Rating
(64)
Projects
144
46%
Arbitration
20
40% / 20%
Overdue
32
22%
Free
17
Developer 17
Rating
(11)
Projects
18
28%
Arbitration
4
50% / 50%
Overdue
1
6%
Free
18
Developer 18
Rating
(162)
Projects
289
35%
Arbitration
18
22% / 61%
Overdue
43
15%
Free
19
Developer 19
Rating
(7)
Projects
6
0%
Arbitration
4
25% / 75%
Overdue
2
33%
Free
20
Developer 20
Rating
(6)
Projects
4
0%
Arbitration
5
0% / 100%
Overdue
0
Free
21
Developer 21
Rating
(12)
Projects
12
17%
Arbitration
2
0% / 50%
Overdue
1
8%
Free
22
Developer 22
Rating
(3)
Projects
1
0%
Arbitration
5
0% / 100%
Overdue
0
Free
Similar orders
Привіт. Шукаю когось, хто б застосував мій код як бота . Я торгую індексом Aus_200 SFE (не XJO). Бот базується на MACD входу/виходу, RSI, стохастиці та vwap. Як тільки роботу приймуть, мені потрібно внести кілька коректив; однак, нічого суттєвого. Дякую
SMC Martingale Pro is an advanced MetaTrader 5 Expert Advisor designed for high-volatility markets like XAU/USD. It combines institutional Smart Money Concepts with a dynamic risk recovery system. Key Features Dual FVG Engine: Automatically identifies and renders both bullish and bearish Fair Value Gaps in real time. Multi-Timeframe Flexibility: Operates independently of the active chart timeframe to target
I am looking for an experienced Sierra Chart ACSIL (C++) developer to create a custom indicator that measures the average Prior Day High-Low range over a configurable number of trading days (default: 7 days) using a 23-hour trading session
I have a technical specification ready for a custom alert indicator in NinjaTrader 8 (NinjaScript / C#). Important clarification: it is NOT an automatic trading bot, it is solely a visual indicator (arrows/lines on the chart) and sound alerts (notifications) based on EMA crossovers and range breakouts (ORB 15m) on lower timeframes for futures (MES). I already have the exact rules written out unambiguously
Custom MT5 EA for buy stop and sell stop breakout strategy.’ ‘Requirements, develop a custom Expert Advisor for MetaTrader 5 that places buy-stop and sell-stop pending orders based on defined breakout rules.’ ‘All important values adjustable via inputs.’ ‘Includes stop loss, take profit, trailing stop, and configurable risk management.’ ‘One trade at a time, works on demo before live.’ Provide source code and
I have an automated trading strategy in NinjaTrader 8 (C# / NinjaScript) that is currently under development. Before diving into technical details, I’d like to ask a quick question from someone who's interested. Do you work on existing / in-progress codebases to debug, refactor, or add new features, or do you strictly build projects from scratch? NOTE : Only professional Developer should apply for this project
السلام عليكم ورحمة الله وبركاته، ​أبحث عن مبرمج MQL5 خبير ومتمكن جداً لتطوير روبوت تداول (Expert Advisor) محترف لمنصة MetaTrader 5 يعمل باستراتيجية هيدج محددة بصفقة واحدة فقط في كل اتجاه (1 Buy & 1 Sell Max) مع إدارة مخاطر صارمة. ​المواصفات والاستراتيجية المطلوبة: ​1. آلية الهيدج المحدود (Single Position Hedging Limit): ​الحد الأقصى للصفقات: يُسمح للروبوت بفتح صفقة شراء واحدة (1 Buy) وصفقة بيع واحدة (1 Sell) فقط كحد
Looking for A verifiable, disciplined XAUUSD analyst with controlled drawdown, consistent stop-loss use, clear communication and the capacity to service a live community. To send daily London and New York signals exclusively in my channel on Telegram
SENIOR MQL5 / QUANTITATIVE DEVELOPER REQUIRED — PROFESSIONAL AI-ASSISTED MT5 TRADING SYSTEM Project Overview I am seeking a highly experienced MQL5 developer, quantitative trading-system engineer or small specialist team to design and build a professional, fully auditable MetaTrader 5 trading system. This is not a request for a basic indicator conversion, copied Expert Advisor, martingale robot, grid-recovery system
Hello, I'm working since few months on a project which is running. But there are entry Chase Problem between Paper and Live order Can you help investigate that. I know that entry execution differences between Paper and Live trading are fairly common and can be caused by factors such as order type, execution timing, slippage, market data differences, or broker/API behavior. I‘m stuggling bc paper made full profit and

Project information

Budget
40 - 70 USD
Deadline
from 2 to 3 day(s)