Create an indicator and EA using specific 3 bar reversal pattern

Trabalho concluído

Tempo de execução 4 dias
Comentário do cliente
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.
Comentário do desenvolvedor
It was my first job with this customer and it was just perfect! I hope to work with you again)

Termos de Referência

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






















































Arquivos anexados:

Respondido

1
Desenvolvedor 1
Classificação
(3)
Projetos
4
0%
Arbitragem
3
0% / 100%
Expirado
0
Livre
2
Desenvolvedor 2
Classificação
(430)
Projetos
606
55%
Arbitragem
48
23% / 56%
Expirado
176
29%
Livre
3
Desenvolvedor 3
Classificação
(491)
Projetos
955
74%
Arbitragem
26
19% / 65%
Expirado
100
10%
Carregado
Publicou: 1 artigo, 6 códigos
4
Desenvolvedor 4
Classificação
(221)
Projetos
369
66%
Arbitragem
10
50% / 0%
Expirado
46
12%
Livre
5
Desenvolvedor 5
Classificação
(257)
Projetos
341
58%
Arbitragem
7
14% / 71%
Expirado
9
3%
Livre
6
Desenvolvedor 6
Classificação
(1927)
Projetos
3545
88%
Arbitragem
73
40% / 15%
Expirado
268
8%
Livre
7
Desenvolvedor 7
Classificação
(7)
Projetos
9
33%
Arbitragem
4
0% / 100%
Expirado
4
44%
Livre
8
Desenvolvedor 8
Classificação
(30)
Projetos
52
52%
Arbitragem
6
0% / 100%
Expirado
18
35%
Livre
Publicou: 1 artigo
9
Desenvolvedor 9
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
10
Desenvolvedor 10
Classificação
(119)
Projetos
127
41%
Arbitragem
3
33% / 67%
Expirado
0
Livre
11
Desenvolvedor 11
Classificação
(2625)
Projetos
3334
67%
Arbitragem
77
48% / 14%
Expirado
342
10%
Livre
Publicou: 1 código
12
Desenvolvedor 12
Classificação
(365)
Projetos
412
36%
Arbitragem
35
26% / 57%
Expirado
63
15%
Livre
13
Desenvolvedor 13
Classificação
(588)
Projetos
1061
50%
Arbitragem
39
28% / 41%
Expirado
49
5%
Livre
Publicou: 1 artigo, 8 códigos
14
Desenvolvedor 14
Classificação
(43)
Projetos
74
50%
Arbitragem
5
0% / 40%
Expirado
19
26%
Trabalhando
15
Desenvolvedor 15
Classificação
(69)
Projetos
146
34%
Arbitragem
13
8% / 62%
Expirado
26
18%
Livre
Publicou: 6 códigos
16
Desenvolvedor 16
Classificação
(5)
Projetos
6
33%
Arbitragem
2
0% / 50%
Expirado
2
33%
Livre
Publicou: 6 códigos
17
Desenvolvedor 17
Classificação
(71)
Projetos
254
53%
Arbitragem
16
50% / 38%
Expirado
83
33%
Trabalhando
18
Desenvolvedor 18
Classificação
(94)
Projetos
148
59%
Arbitragem
16
38% / 13%
Expirado
25
17%
Livre
Publicou: 1 código
Pedidos semelhantes
1.Sinyal Perdagangan : Sinyal beli: garis MACD utama memotong garis sinyal ke atas (macd_current>signal_current && macd_previous<signal_previous). Sinyal jual: garis MACD utama memotong garis sinyal ke bawah (macd_current<signal_current && macd_previous>signal_previous). Gambar di bawah menunjukkan kasus beli dan jual. 2. Posisi ditutup pada sinyal yang berlawanan: Posisi beli ditutup pada sinyal jual, dan posisi
Trading Bot Executes Trades on Specific Days via TradingView Alerts **As a** trader, **I want** to develop a trading bot that integrates with TradeLocker and MTS, **So that** when a TradingView alert (based on a 2,4,5,10,15,30 minute break and retest strategy whichever one) is triggered first. the bot will execute trades on both platforms, but only on specific days of the week. --- ## Acceptance Criteria 1
specification High-Frequency Candle Momentum Scalper 1. Strategy Overview Core Logic: The EA identifies the current color of the active candle (Bullish or Bearish). Entry Trigger: It opens positions only after a specific duration of the candle has passed (e.g., after 30 seconds on a 1-minute candle) to confirm the direction. 2. Entry Logic (The "Half-Candle" Rule) Timeframe: M1 (Default, but adjustable). Time Filter
Me encuentro en busca de un desarrollador MT4 para crear un EA totalmente basado en reglas enfocadas en Propfirms (Específicamente en The5ers) para operar el activo EURUSD. Cuento con un documento detallado con reglas de contexto, eventos, ejecución y gestión operativa. Necesito código limpio, sin margintale, sin grid; con control de reducción orientado a abrir y cerrar posiciones durante el horario de la sesión de
Olá, preciso de um programador para montar um indicador com base na sobrevenda do estocastico, volume macd, para uma estrategia de reversão e falso rompimento com regioes de OB validos minimas e maximas de H1, H4, D1 e canais para confluencias, quero que seja didatico visualmente e com cores, sons de alertas e algum sinal de call ou put como setas indicando reversões e falsos rompimentos e continuidade
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
I have a perfectly working EA that always gets altered, I need special security features implemented, and I already have a great idea of what I need. Super easy, codes already work, just need tweaking here and there. Cybersecurity proficiency would be a positive

Informações sobre o projeto

Orçamento
100 - 400 USD