Create an indicator and EA using specific 3 bar reversal pattern

Tâche terminée

Temps d'exécution 4 jours
Commentaires du client
Developer did a great job of implementing the correct strategy with only one go. Great job! I highly recommend this developer and will use him on future projects.
Commentaires de l'employé
It was my first job with this customer and it was just perfect! I hope to work with you again)

Spécifications

I would like to hire someone to build an MT4 indicator and an expert adviser that I intend to use to automate trading on a live account.  It needs to operate efficiently and most of all accurately.  I expect clearly documented clean source code as part of the deliverable. I remain the only owner of this indicator and EA after completion. I am also a programmer, but new to MQL4 so it will help to have code formatted and documented suitable for another developer to later modify should I ever become good enough to do so. 

My strategy is basic and based on using a short-term HMA and long-term HMA. I typically use hma(50) and hma(15) in combination with a specific definition of a 3 bar reversal (see definition at bottom of page). I am asking for the following:

  1. An indicator that shows an up green or down red arrow when a 3 bar reversal closes whereby the long-term HMA and short-term HMA confirm the direction immediately or on the close of any bar according to chart time frame.
  2. An EA that provides all trading signals to open, close, set stops and take profit, and move the stop losses. 

3 bar reversal Indicator
Inputs:

  • long-term hma (default 50)
  • short-term hma (default 15)

Buy signal: When bullish 3 bar reversal (3BR) closes and is confirmed by both hma signals being bullish. If both hmas are not bullish wait for the close of up to 3 more bars to get bullish confirmation. Number of bars needed for confirmation should be configurable and default to 3. The signal should be a green up arrow. On bar #2 there should be a green dot below.

Sell signal: Reverse of above. The indicator will be a red arrow pointing down on the bar that triggers an entry. There should be a red dot above bar 2 of the 3BR.

I recommend that you complete this indicator and let me test it before completing the EA.

See below for 3BR definition and examples.

3 Bar Reversal Expert Adviser

I recommend that you complete the indicator and let me test it before implementing the EA since the indicator is key to the correct operation of the EA.

When the long-term trend, as determined by the long-term hma, changes from bearish to bullish we will open only long positions. When the long-term hma is bearish we will open only short positions.

Dashboard and annotations on the chart:

Add any annotations to chart that are helpful.  The dashboard should show current positions, total lots used / total lots allowed and anything you think might be useful should be added to a dashboard.

Inputs (these are just suggestions to give you an idea of what I might be looking for):

  • primary entry lot size (0.02)
  • secondary entry lot size (0.01)
  • maximum positions -- primary entry plus secondary entries should not exceed this number of positions
  • primary entry reward (2.0) -- tells take profit to be 2.0 X stop loss
  • secondary entry reward (1.0) -- tells take profit to be 1.0 X stop loss
  • long-term hma periods (50)
  • short-term hma periods (15)
  • hma applied price (close price)
  • minimum stop loss (10 pips)
  • use news (default true)
  • show news (default true)
  • show news text (default true)
  • News: High impact (default true)
  • News: Medium impact (default true)
  • News: Low impact (default false)
  • Minutes to close before news (default 10)
  • Time management to close on Friday and at what time
  • Time management to open new positions during major exchange hours

Long Setup:

  • any time of the day, but must close positions before news events and by close of markets on Fridays 
  • any time frame 
  • any currency pair
  • long-term hma bullish

 Long Trigger:

  • The first position opened after the long-term trend has changed is called the primary position. Each subsequent trigger in the same direction opens secondary positions. 
  • 3 Bar bullish Reversal with the third bar closing bullish (see attached images). 
  • Short-term HMA is bullish or becomes bullish on bar close within 3 bars following the 3 bar reversal
  • If there are short positions then they are all closed at market price prior to opening long position

 Short Setup and Trigger are the opposite of bullish. Initial Stop Loss:

  • Long: 1 pip below last bullish 3 bar reversal that is at least 10 pips away from entry. If last bullish 3BR is less then 10 pips then keep going back in time until a swing low or bullish 3BR is over 10 pips and place the SL 1 pip lower then the lowest bar.
  • Short: (inverse of above) 

Stop Loss Adjustment: 

  • Long: Adjust stop to 1 pip below the low of the prior bullish 3BR (or prior swing low) as bullish 3BR's close. Must be at least 10 pips away or don't move stop loss.  
  • Short: inverse of above

Target:

  • Primary entry: 2.0 times the distance entry is from the stop loss
  • Secondary entry: 1.0 times the distance from the stop loss

 Exit: At Take Profit, Stop Loss, when an entry is triggered in the opposite direction, news (optional), or Friday close


Three Bar Reversal (3BR) Definition

See the attached images of 3BR.

Long 3BR

  • Bar 2 has a lower low than bar 1 and bar 3
  • Bar 3 closes bullish. It doesn't have to go above or close above bar 2's close or high. It only has to close bullish.


Short 3BR is just the opposite


Here is a video where I try to explain the indicator and the EA. I expect the indicator to show something like up green arrows for buys and downward pointing red arrows for sells and green dotted lines for take profits and red dotted lines for stop losses.

https://www.dropbox.com/s/twou7aavc71ypxk/intro_to_3br_hma_strategy.mp4?dl=0






















































Dossiers :

Répondu

1
Développeur 1
Évaluation
(3)
Projets
4
0%
Arbitrage
3
0% / 100%
En retard
0
Gratuit
2
Développeur 2
Évaluation
(430)
Projets
606
55%
Arbitrage
48
23% / 56%
En retard
176
29%
Gratuit
3
Développeur 3
Évaluation
(504)
Projets
971
74%
Arbitrage
27
19% / 67%
En retard
100
10%
Chargé
Publié : 1 article, 6 codes
4
Développeur 4
Évaluation
(221)
Projets
369
66%
Arbitrage
10
50% / 0%
En retard
46
12%
Gratuit
5
Développeur 5
Évaluation
(257)
Projets
341
58%
Arbitrage
7
14% / 71%
En retard
9
3%
Gratuit
6
Développeur 6
Évaluation
(1929)
Projets
3550
88%
Arbitrage
73
40% / 15%
En retard
268
8%
Gratuit
7
Développeur 7
Évaluation
(7)
Projets
9
33%
Arbitrage
4
0% / 100%
En retard
4
44%
Gratuit
8
Développeur 8
Évaluation
(30)
Projets
52
52%
Arbitrage
6
0% / 100%
En retard
18
35%
Gratuit
Publié : 1 article
9
Développeur 9
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
10
Développeur 10
Évaluation
(119)
Projets
127
41%
Arbitrage
3
33% / 67%
En retard
0
Gratuit
11
Développeur 11
Évaluation
(2642)
Projets
3357
68%
Arbitrage
77
48% / 14%
En retard
342
10%
Gratuit
Publié : 1 code
12
Développeur 12
Évaluation
(365)
Projets
412
36%
Arbitrage
35
26% / 57%
En retard
63
15%
Gratuit
13
Développeur 13
Évaluation
(588)
Projets
1063
50%
Arbitrage
39
28% / 41%
En retard
49
5%
Travail
Publié : 1 article, 8 codes
14
Développeur 14
Évaluation
(43)
Projets
74
50%
Arbitrage
5
0% / 60%
En retard
19
26%
Gratuit
15
Développeur 15
Évaluation
(69)
Projets
146
34%
Arbitrage
13
8% / 62%
En retard
26
18%
Gratuit
Publié : 6 codes
16
Développeur 16
Évaluation
(5)
Projets
6
33%
Arbitrage
2
0% / 50%
En retard
2
33%
Gratuit
Publié : 6 codes
17
Développeur 17
Évaluation
(73)
Projets
257
53%
Arbitrage
16
50% / 38%
En retard
83
32%
Gratuit
18
Développeur 18
Évaluation
(94)
Projets
148
59%
Arbitrage
16
38% / 13%
En retard
25
17%
Gratuit
Publié : 1 code
Commandes similaires
1. Idea systemu handlowego jest następująca : wejścia na rynek odbywają się, gdy główna linia MACD i linia sygnałowa przecinają się zgodnie z aktualnym kierunkiem trendu . 2. Trend jest określany na podstawie wykładniczej średniej kroczącej z określonym okresem (InpMATrendPeriod). Jeśli bieżąca wartość EMA jest większa od poprzedniej, trend uznaje się za rosnący (ema_current > ema_previous). Alternatywnie, jeśli
Hi I have a simple task (hopefully) I have a custom strategy that I built with the help of Claude Anthropic - everything is finished and I zipped it with power shell but when importing it NT8 gives me the error message that the file was made from an older, incompatible version or not a NinjaScript. My folder structure is correct as far I can see so I don't know what the issues is and it's costing me too much to go
Looking for an experienced MQL5 developer to design and develop a custom Expert Advisor (EA) for MetaTrader 5. The purpose of this EA is not just automated trading, but also to help me better structure, test, and refine my personal trading strategy
Freeallfree 400 - 800 USD
Professional MT5 EA – XAUUSD I need a professional Expert Advisor for MT5 (MQL5) to trade XAUUSD only. This is not a random scalping bot. The EA must trade only high-probability liquidity breakouts during active sessions and avoid ranging or low-volatility markets. Symbol: XAUUSD Timeframe: M15 (optional H1 confirmation) Session filter (Dubai GMT+4): Trade only London and New York sessions Adjustable session times No
Modification of EA and Addition of New Trade Logic and Features Currently, the EA is opening trades correctly but in addition, there are times when it is opening the trades wrongly. The EA is based on an indicator (only the .ex5 file is available). A new trigger logic also needs to be added, along with new closing conditions. This project must NOT use any DLL and must be submitted in 1 day (max 2 days) The EA will be
Refine signal trigger execution . Optimize live chart performance . Ensure stable and clean code structure : Stable and clean code is important . Otherwise its a mess . Apply with as much accurate structure you foresee
This post is subject to developers response . Edit the post as you like . May be with me you can make a come back . So , , , Shift calculations . More to the calculation then you can comprehend is known . What else comes to your mind
All other Necessary filters already coded , Mostly it is referring to another expert copy pasting . Live Chart Optimization . Optimization from Signal Trigger Point . Apply to stay ahead . While applying please explain the correct trailing stop loss for value gap entries
Trailing Stop Based on Thresholds . Other Necessary Filters already Coded . Live Chart Only . The strategy already coded - needs a fresh new draft . To Start from Signal Trigger
I am looking for a professional MQL5 developer to build a structured MT5 Expert Advisor. This is NOT a martingale or high-risk grid bot. Platform: • MT5 only (MQL5 source code required) Symbols: • XAUUSD • GBPUSD • GBPJPY Timeframe: • M5 Risk Management: • Adjustable risk per trade (default 0.5% equity) • Daily drawdown protection (max 3%, auto-lock trading for the day) • Maximum 2 open trades • Minimum 120 seconds

Informations sur le projet

Budget
100 - 400 USD