Writing of an Expert Advisor based on EMA cross that utilizes a martingale

작업 종료됨

실행 시간 30 일
피고용인의 피드백
Wonderful client. Patient and great communication. Looking forward to more projects together!!
고객의 피드백
Paul (MQL5) is fantastic! Delivered perfectly, offered great suggestions & exceeded expectations with clear communication & positivity

명시

Objective: To Create an EA based on an EMA cross Strategy that utilizes martingale account management strategy with multiple profiles to better manage risk                     and  scale safely

Strategy Concept: This strategy was created around Volatility Index 75  on the 5 minute chart. It was Observed that this Index tends to  frequently form very          strong trends with short periods of consolidation. On applying a 10 period EMA offset at 0 And a 10 Period EMA offset at 500 , it was observed          that there tends to be on average at least a 1,000,0000 point movement in price in  a single direction after 1 or a few crosses  of EMA lines.          After applying a martingale strategy that increases lot size on every 'x' points in cumulative losses per martingale run, the risk of ruin          returned positive figures. The system uses a mix of dynamic and fixed stop loses, take profits and trailing stops to mitigate loses and          maximize profit. These levels are based on the EMAs as well.

Targeted pairs/index/Commodities: Volatility Index 75 , others(build to be able to be tested on currency pairs though doesn't have to be effective with)

Parameters: 

EMA1_period ;   EMA2_period ; EMA1_offshift  ; EMA2_offshift ;  EMA1_Method ;  EMA2_Method ;  EMA1_Apply2 ;  EMA2_Apply2 ; fixedTakeProfit ;    fixedStopLoss ; floatingTakeProfit ;   floatingStopLoss ;  floatingStopLoss_Type; 

(martingale)

no_of_Steps ; initial_step_size ; continue_after_final_step ; continue_type ; multiply_on_loss_amount ; multiply_on_loss_rate_factor;

Specification:

     1.After User enters parameter and initializes the bot, an alert should be issued informing user of the dollar amount that would be at risk per  martingale cycle. this can be  calculated as:

       amount at risk per run =  (Initial Step Size *multiply_on_loss_amount )[1+ ( Σ n * (multiply_on_loss_rate_factor))]   where ,  1 < n   < = (no_of_Steps

                   Formula in text was assuming  1 unit  = 100     points

     2. If EMA1 is Lower than EMA2 then Open a sell position 

else

If EMA1 is higher than EMA2 then Open a buy position

    3. If EA opened position but EMA lines cross line in other direction, close position and open other opposing position type( close buy and open sell).

     4.  On loosing a specified number of points ; ( >=  multiply_on_loss_amount ), The following position should open with

lot size  = initial step size * multiply_on_loss_rate_factor * number of current step    

     5. If the Accumulated  loss for current run is equal to or exceeds the previously calculated amount at risk per run then the EA must alert the user and  either   stop the EA, continue the martingale run  or restart the martingale run. (The purpose of the  continue_after_final_step ; continue_type ;  parameters)

     6. On opening a position the stop levels would be according to the  fixedTakeProfit ;   fixedStopLoss parameters. As price moves away from he entry   point if  the user selects a value equal to or above zero (=> 0) for the  floatingStopLoss  a trailing stop would be applied using either of 2 methods.  

If   floatingStopLoss_Type   = continuous ; then a regular trailing stop with the specified number of point will be applied to price

                        If   floatingStopLoss_Type   =  jump ; then for each specified number of units/points change in price (non-absolute) the stop loss jumps to             that many points bellow or above current price (jumping again only after price went up or down by the           specified amount of units once

     7. The floating TP is equal to the EMA2 Line if Line value is greater than  fixedTakeProfit  for a buy position and less than the fixedTakeProfit for a sell    position. If floating stop is enabled it would be based on the maximum value for The floating Tp(maximum relative to direction of trade)

     8. The EA would not consider other trades made manually or by other EAs. 

     9. The EA should update the user via comment :

the current step number ; the current martingale run number (since initiating) ; the accumulated loss on current run; the next lot size          run continuation type.

 


As an example, take point 1 , EMA1( the turquoise line  set at offset = 0)  crosses EMA2 which is offset at 500. If the initial step size is 0.01 then a   sell position is opened with SL set at fixedStopLoss . In this case even if the user was using a floating stop loss it would automatically default  to the fixed stop loss as the distance between the EMA 2 line and EMA1 line is below the permitted stop loss level.

At point 2 though the previously opened sell position has not reached the Fixed stop loss and the floating stop loss was unable to activate, the  position is closed and a buy position is opened. If the multiply_on_loss_amount is exceeded for the current step of the martingale run then the  opening lot size for the buy order 

initial step size multiply_on_loss_factor  *( current step number).  (Assuming we index steps in martingale run  starting at 1) . 

        Additionally for point 2  lets consider the yellow rectangle. If the stop levels for the buy position opened at point  2 is represented by the long sides  of the rectangle then price would've reached the stop loss before the moment , on close, that the EMA1 would below the EMA 2. The trade would  close at the price marked by the triangle however the sell position would open at point three where the EMAs cross after the close

For Point 4 , the previous sell position would be closed and a buy position simultaneously opened at the crossing of the EMA lines. The floating Stop  Loss ,if selected as a value  => 0,  would begin at the EMA2 line and dependent on the  floatingStopLoss_Type selected would either trail behind price  for each point movement, jump between prices as current price increases every  floatingStopLoss  units  or be equal to EMA2 so long as that value is  less than the  fixedStopLoss

    

Notes:

Use points not pips as unit of price measurement though that may be simplified by rebasing for user input. Formula in text was assuming  1 unit  = 100      points

  This would be the first version of the EA. I plan to use the same developer to apply more features in the future. features would include panels, buttons ,     a partials mechanism with multiple TPs, reporting to a website ect.

  I am aware the current method of calculating the next lot size becomes inefficient really quickly would like to discuss if other more efficient models           not posted here 

 Use this set as the initial starting parameters:

EMA1_period  = 10 ;   EMA2_period = 10  ; EMA1_offshift = 0  ; EMA2_offshift =  500;  EMA1_Method = exponential;  EMA2_Method = exponential ;    EMA1_Apply2 = close ;  EMA2_Apply2 = close ; fixedTakeProfit = 10,000 ;    fixedStopLoss = 5,000 ; floatingTakeProfit = no ;   floatingStopLoss = 0 ;     floatingStopLoss_Type = jump; 

(martingale)

no_of_Steps = 3 ; initial_step_size =0.005 ; continue_after_final_step = yes ; continue_type = restart ; multiply_on_loss_amount = 5,000 ;  multiply_on_loss_rate_factor = 1 ;


응답함

1
개발자 1
등급
(8)
프로젝트
11
18%
중재
7
43% / 29%
기한 초과
1
9%
무료
2
개발자 2
등급
(6)
프로젝트
9
11%
중재
5
40% / 20%
기한 초과
2
22%
무료
3
개발자 3
등급
(43)
프로젝트
90
13%
중재
34
26% / 56%
기한 초과
37
41%
작업중
4
개발자 4
등급
(11)
프로젝트
11
0%
중재
4
25% / 50%
기한 초과
2
18%
무료
5
개발자 5
등급
(839)
프로젝트
1430
72%
중재
117
29% / 47%
기한 초과
354
25%
작업중
게재됨: 3 기고글
6
개발자 6
등급
(248)
프로젝트
362
24%
중재
21
62% / 24%
기한 초과
1
0%
작업중
7
개발자 7
등급
(72)
프로젝트
80
10%
중재
35
9% / 54%
기한 초과
6
8%
무료
8
개발자 8
등급
(149)
프로젝트
221
80%
중재
18
33% / 44%
기한 초과
10
5%
작업중
게재됨: 24 기고글, 1882 코드
9
개발자 9
등급
(251)
프로젝트
297
50%
중재
10
40% / 0%
기한 초과
16
5%
바쁜
10
개발자 10
등급
(21)
프로젝트
28
36%
중재
3
33% / 33%
기한 초과
2
7%
작업중
11
개발자 11
등급
(284)
프로젝트
458
39%
중재
94
44% / 18%
기한 초과
72
16%
로드됨
게재됨: 2 코드
12
개발자 12
등급
(270)
프로젝트
550
49%
중재
55
40% / 36%
기한 초과
227
41%
작업중
13
개발자 13
등급
(568)
프로젝트
641
41%
중재
24
50% / 29%
기한 초과
46
7%
작업중
14
개발자 14
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
비슷한 주문
I am looking for a professional expert advisor developer to build my EA (MT4 and MT5). The first thing that I need is screenshot of the work to make sure the developer can Done my project. I need to make sure that the developer fully understood my Strategy and could do it. So the developer should start the job and proof ability to finish the job then we will go ahead to make contract. So I need a good developer with
Description de la stratégie de trading : Bot de trading ULTIMATE AI Smart Money Concept (SMC) Aperçu: J'ai besoin du robot de trading IA ultime, conçu pour mettre en œuvre une stratégie de trading Smart Money Concept (SMC) axée sur l'identification des configurations de trading à forte probabilité en fonction de la structure du marché, des blocs d'ordres et de l'évolution des prix. Ce robot vise à capitaliser sur le
Trading Strategy Description: ULTIMATE AI Smart Money Concept (SMC) Trading Bot Overview: i need The ULTIMATE AI trading bot that is designed to implement a Smart Money Concept (SMC) trading strategy that focuses on identifying high-probability trading setups based on market structure, order blocks, and price action. The bot aims to capitalize on institutional trading behavior by analyzing price movements and
I need a highly disciplined, low-risk EA for MT4/MT5 that trades only when 100% strategy conditions are met. It must include multi-timeframe trend logic, support/resistance rejection, BOS/CHoCH detection from real swing levels, and a breakout strategy with trailing SL. EA should scan all major pairs (from one chart), trade only during 07:00–16:00 GMT, and skip trades 2 hours before major news. Max 1 trade per pair
need a expert advisor for mt5 and need a pine script strategy This indicator is as an evolution of the classic Donchian channel. Pivots are identified using a zigzag structure and graphical markers, with the pivots derived entirely from the behaviour of the channel. A pivot is triggered when the channel flattens, forming a connector point for the next zigzag leg. To avoid weak or insignificant pivots, a depth
need a expert advisor for mt5 and need a pine script strategy This indicator is as an evolution of the classic Donchian channel. Pivots are identified using a zigzag structure and graphical markers, with the pivots derived entirely from the behaviour of the channel. A pivot is triggered when the channel flattens, forming a connector point for the next zigzag leg. To avoid weak or insignificant pivots, a depth
EA Optimization 50+ USD
I have HFT EA but he is working perfectly on demo account but not working on real account. I need a man who makes EA working on real account. please fill free to contact me who can make it possible, source code will be shared
I’m seeking an experienced Quantower/C# developer to finalize and deploy a near-complete trading strategy. The core logic, UI, and risk management are already implemented (see attached files), but I need expert support to: Resolve Integration Issues: Fix .NET Framework mismatch (target: net48). Ensure strategy loads correctly in Quantower’s Order Panel. QA & Validation: Backtest and verify: S/R calculations
THE STUDY : Add 4 study overlay in the input settings and color bar based on alert condition is sg1=1 I want it to trail the order instead of flat to avoid too much slippage What I do is the 15-Minutes chart I have filter also in the 10tick chart if those filters are meet the bar is green or red using sierrachar color bar based on alert condition I overlay the 4 in the study in the 6tick Renko chart that will
I am looking for a MetaTrader 4 (MT4) developer to create a scalping-based Expert Advisor (EA) for the US30 index. The EA will be based on pending orders with trend filtering and equity-based risk management. It should include virtual SL/TP, support multiple pending orders, and be optimized for high-volatility sessions. Only experienced developers with proven MT4 EA development should apply

프로젝트 정보

예산
30 - 100 USD
개발자에게
27 - 90 USD
기한
 10 일