Build an EA based on Parabolic SAR with loss hedging

MQL5 指标 专家

工作已完成

执行时间2 天
客户反馈
Helpful and hardworking. Highly recommend

指定

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)


反馈

1
开发者 1
等级
(329)
项目
515
19%
仲裁
35
46% / 31%
逾期
34
7%
工作中
2
开发者 2
等级
(50)
项目
64
20%
仲裁
11
27% / 55%
逾期
5
8%
空闲
3
开发者 3
等级
(62)
项目
90
29%
仲裁
24
13% / 58%
逾期
7
8%
工作中
4
开发者 4
等级
(4)
项目
6
33%
仲裁
7
14% / 57%
逾期
1
17%
空闲
5
开发者 5
等级
(47)
项目
67
37%
仲裁
5
40% / 40%
逾期
1
1%
空闲
6
开发者 6
等级
(7)
项目
13
15%
仲裁
13
23% / 46%
逾期
3
23%
空闲
发布者: 38 文章
7
开发者 7
等级
(274)
项目
403
28%
仲裁
40
40% / 50%
逾期
1
0%
空闲
8
开发者 8
等级
(298)
项目
478
40%
仲裁
105
40% / 24%
逾期
82
17%
已载入
发布者: 2 代码
9
开发者 9
等级
(25)
项目
33
18%
仲裁
6
50% / 33%
逾期
4
12%
空闲
10
开发者 10
等级
(2346)
项目
2951
63%
仲裁
125
44% / 26%
逾期
429
15%
工作中
11
开发者 11
等级
(33)
项目
35
20%
仲裁
5
40% / 40%
逾期
0
空闲
发布者: 1 代码
12
开发者 12
等级
(2675)
项目
3414
68%
仲裁
77
48% / 14%
逾期
342
10%
空闲
发布者: 1 代码
13
开发者 13
等级
(323)
项目
328
71%
仲裁
2
100% / 0%
逾期
0
空闲
发布者: 1 代码
14
开发者 14
等级
(271)
项目
553
50%
仲裁
57
40% / 37%
逾期
227
41%
工作中
15
开发者 15
等级
(16)
项目
20
0%
仲裁
10
0% / 80%
逾期
6
30%
空闲
16
开发者 16
等级
(64)
项目
144
46%
仲裁
20
40% / 20%
逾期
32
22%
工作中
17
开发者 17
等级
(11)
项目
18
28%
仲裁
4
50% / 50%
逾期
1
6%
空闲
18
开发者 18
等级
(162)
项目
289
35%
仲裁
18
22% / 61%
逾期
43
15%
空闲
19
开发者 19
等级
(7)
项目
6
0%
仲裁
4
25% / 75%
逾期
2
33%
空闲
20
开发者 20
等级
(6)
项目
4
0%
仲裁
5
0% / 100%
逾期
0
空闲
21
开发者 21
等级
(12)
项目
12
17%
仲裁
2
0% / 50%
逾期
1
8%
空闲
22
开发者 22
等级
(3)
项目
1
0%
仲裁
5
0% / 100%
逾期
0
空闲
相似订单
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
Create an MT5 Expert Advisor (EA) for trading Gold (XAUUSD). The EA should provide BUY and SELL signals based on trend direction, market momentum, and price action. It should automatically place trades only when the entry conditions are met. Risk management: Use a small adjustable lot size. Include Stop Loss (SL) and Take Profit (TP). Include a maximum daily loss limit. Include a maximum number of open trades. Do not
Hello there, I am looking for a automated strategy for ninjatrader 5 Looking for a proven profit factor of 1.5 ( minimum ) on 15 mins time frame . I do MNQ futures I do not have the logic, but I like mean reverssion variable , plus RSI etc . that could make the automated tool robust and long lasting. i need fast response if you have

项目信息

预算
40 - 70 USD
截止日期
 2  3 天