Indicator conversion from MQL4 to MQL5 and EA build on it (in MQL5)

MQL5 Indicadores

Trabalho concluído

Tempo de execução 3 dias

Termos de Referência

The job is very simple. An indicator that has less than 90 lines I want to be converted from MQL4 to MQL5. Than in MQL5 build an EA that will open BUY when the 2 arrows of the indicator are both BLUE  at the same time and close it when the 2 arrows are different. In the same way open an SELL order when the 2 arrows  are both RED at the same time and close it when the 2 arrows are different. You can use the MQL4 code (that is functionally) to better understand what I mean.

#property indicator_separate_window
#property indicator_minimum 1.0
#property indicator_maximum 3.0
#property indicator_buffers 6
#property indicator_color1 Blue
#property indicator_color2 Red
#property indicator_color3 Yellow
#property indicator_color4 Blue
#property indicator_color5 Red
#property indicator_color6 Yellow

int g_period_76 = 14;
int g_period_80 = 14;
int g_period_84 = 14;
double g_ibuf_88[];
double g_ibuf_92[];
double g_ibuf_96[];
double g_ibuf_100[];
double g_ibuf_104[];
double g_ibuf_108[];
double g_imomentum_112;
double g_idemarker_120;
double g_iforce_128;
int g_color_136 = Blue;
int g_color_140 = Red;
int g_color_144 = Yellow;
int gi_148 = 225;
int gi_152 = 226;
int gi_156 = SYMBOL_STOPSIGN;
int gi_160 = 1;
int gi_164 = 2;
int gi_168 = 1;
double gd_172 = 0.6;

int init() {
   SetIndexStyle(0, DRAW_ARROW, STYLE_SOLID, gi_160, g_color_136);
   SetIndexArrow(0, gi_148);
   SetIndexBuffer(0, g_ibuf_88);
   SetIndexStyle(1, DRAW_ARROW, STYLE_SOLID, gi_160, g_color_140);
   SetIndexArrow(1, gi_152);
   SetIndexBuffer(1, g_ibuf_92);
   SetIndexStyle(2, DRAW_ARROW, STYLE_SOLID, gi_160, g_color_144);
   SetIndexArrow(2, gi_156);
   SetIndexBuffer(2, g_ibuf_96);
   SetIndexStyle(3, DRAW_ARROW, STYLE_SOLID, gi_160, g_color_136);
   SetIndexArrow(3, gi_148);
   SetIndexBuffer(3, g_ibuf_100);
   SetIndexStyle(4, DRAW_ARROW, STYLE_SOLID, gi_160, g_color_140);
   SetIndexArrow(4, gi_152);
   SetIndexBuffer(4, g_ibuf_104);
   SetIndexStyle(5, DRAW_ARROW, STYLE_SOLID, gi_160, g_color_144);
   SetIndexArrow(5, gi_156);
   SetIndexBuffer(5, g_ibuf_108);
   IndicatorShortName("Oracle Direction");
   return (0);
}

int deinit() {
   return (0);
}

int start() {
   int li_0 = IndicatorCounted();
   if (li_0 < 0) return (-1);
   if (li_0 > 0) li_0--;
   int li_4 = Bars - li_0;
   for (int li_8 = li_4 - 1; li_8 >= 0; li_8--) {
      g_idemarker_120 = iDeMarker(NULL, 0, g_period_80, li_8);
      g_imomentum_112 = iMomentum(NULL, 0, g_period_76, PRICE_CLOSE, li_8);
      g_iforce_128 = iForce(NULL, 0, g_period_84, MODE_EMA, PRICE_CLOSE, li_8);
      g_ibuf_88[li_8] = EMPTY_VALUE;
      g_ibuf_92[li_8] = EMPTY_VALUE;
      g_ibuf_96[li_8] = EMPTY_VALUE;
      g_ibuf_100[li_8] = EMPTY_VALUE;
      g_ibuf_104[li_8] = EMPTY_VALUE;
      g_ibuf_108[li_8] = EMPTY_VALUE;
      if (g_imomentum_112 > 100.0) g_ibuf_88[li_8] = gd_172 * gi_164 + 1.0;
      if (g_imomentum_112 <= 100.0) g_ibuf_92[li_8] = gd_172 * gi_164 + 1.0;
      if (g_idemarker_120 > 0.5 && g_iforce_128 > 0.0) g_ibuf_100[li_8] = gd_172 * gi_168 + 1.0;
      else {
         if (g_idemarker_120 < 0.5 < 50 && g_iforce_128 < 0.0) g_ibuf_104[li_8] = gd_172 * gi_168 + 1.0;
         else g_ibuf_108[li_8] = gd_172 * gi_168 + 1.0;
      }
   }
   return (0);
}

 

Respondido

1
Desenvolvedor 1
Classificação
(548)
Projetos
825
73%
Arbitragem
15
53% / 13%
Expirado
193
23%
Trabalhando
2
Desenvolvedor 2
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(47)
Projetos
140
49%
Arbitragem
9
56% / 0%
Expirado
27
19%
Livre
4
Desenvolvedor 4
Classificação
(15)
Projetos
65
58%
Arbitragem
6
17% / 33%
Expirado
39
60%
Livre
5
Desenvolvedor 5
Classificação
(187)
Projetos
367
56%
Arbitragem
45
22% / 56%
Expirado
188
51%
Livre
Pedidos semelhantes
I want to make a new dashboard using 3 common indicators and the ADX indicator , which you must supply I have a MA dash which you can strip & reuse if it helps you I tried to cover all questions in the attached but i'm sure there'll be more
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Helvetica Neue'} Hello Looking for someone to help me improve my current strategy on my own algorithm and to also add hedging mode
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I want a program that will help calculate and enter the market on full margin for me. I just need to put in the price for entry, Stop loss and TP then it will calculate the lot sizes for entering the trade on full margin on Mt5
I am looking to develop an automated trading bot based on a strategy involving the crossing of four Simple Moving Averages (SMA). The bot should be capable of entering trades based on this strategy. Additionally, I would like to incorporate some custom diversions tailored for NinjaTrader
We are seeking a talented and experienced developer to convert two sophisticated TradingView indicators to NinjaTrader 8. These indicators are crucial for our trading strategy, and we need them to function flawlessly in the new environment. The project comes with specific usage restrictions, which will be discussed in detail with the chosen developer. Requirements: Extensive experience with both TradingView and
preciso de um robô com duas médias móveis, uma exponencial high e uma exponencial low. preciso também ter a opção de utilizar e todos os tempos gráficos e alterar os parâmetros das médias. entrada de compra será feita quando um candle de alta romper e fechar a cima da média high e fechará a posição quando um candle de baixa romper e fechar a baixo da média low. a venda será feita quando o candle de baixa romper e
Greetings, As the title suggests, I am trying to convert an indicator that calls itself via an iCustom call like this. iMAArray_Buffer[loop_1] = iCustom ( NULL , Selected_TF, MQLInfoString ( MQL_PROGRAM_NAME ), "calculate" , RPeriod, MType, MPeriod, 1 , shift); Full code will not be provided, only the position that needs fixing. I cannot get this working in MQL5 but the original code runs smoothly in MQL4. Please
I need a chart to replicate/track my equity + Balance Curve into my mt4. Also this chart i need to be able to add Stochastic / Bollingerband / Moving average on the equity/balance curve. Besides the equity curve i would like the indicator to show the Line-chart of my win + 1 and my loss -1 which results in a win-loss curve. ( i will discuss this with the choosen developer in depth. ) More information on what i want
Greetings great developer, I am in search of a highly skilled developer to assist with an exciting project. I need to convert two open-source TradingView indicators to NinjaTrader 8 and implement a usage restriction based on computer IDs. If you have experience with NinjaTrader 8 coding please let me know. I’d be happy to discuss the details further

Informações sobre o projeto

Orçamento
10 USD
IVA (19%): 1.9 - 1.9 USD
Total: 11.9 - 11.9 USD
Desenvolvedor
9 - 9 USD