Moving Average Step Indikator MT5

MQL5 Lo demás C++

Tarea técnica

//+------------------------------------------------------------------+
//|                                               SimpleMAIndicator.mq5|
//|                        Copyright 2024, MetaTrader 5               |
//|                                        https://www.mql5.com       |
//+------------------------------------------------------------------+
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 Blue

input int InpPeriod = 14; // MA period

double ExtLineBuffer[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
  {
   SetIndexBuffer(0, ExtLineBuffer, INDICATOR_DATA);
   IndicatorSetString(INDICATOR_SHORTNAME, "Simple MA");
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
  {
   if(rates_total <= InpPeriod)
      return(0);

   for(int i = prev_calculated; i < rates_total; i++)
     {
      ExtLineBuffer[i] = iMA(NULL, 0, InpPeriod, 0, MODE_SMA, PRICE_CLOSE, i);
     }

   return(rates_total);
  }
//+------------------------------------------------------------------+

Han respondido

1
Desarrollador 1
Evaluación
(5)
Proyectos
8
13%
Arbitraje
4
50% / 25%
Caducado
2
25%
Libre
2
Desarrollador 2
Evaluación
(137)
Proyectos
161
22%
Arbitraje
7
14% / 43%
Caducado
4
2%
Trabaja
3
Desarrollador 3
Evaluación
(87)
Proyectos
107
24%
Arbitraje
8
38% / 25%
Caducado
8
7%
Trabaja
4
Desarrollador 4
Evaluación
(337)
Proyectos
455
52%
Arbitraje
22
50% / 27%
Caducado
5
1%
Trabajando
5
Desarrollador 5
Evaluación
(62)
Proyectos
69
29%
Arbitraje
2
0% / 0%
Caducado
1
1%
Trabajando
6
Desarrollador 6
Evaluación
(10)
Proyectos
25
28%
Arbitraje
1
0% / 0%
Caducado
1
4%
Trabajando
7
Desarrollador 7
Evaluación
(2423)
Proyectos
3045
66%
Arbitraje
77
48% / 14%
Caducado
340
11%
Libre
8
Desarrollador 8
Evaluación
(23)
Proyectos
45
20%
Arbitraje
24
29% / 46%
Caducado
12
27%
Libre
9
Desarrollador 9
Evaluación
(454)
Proyectos
513
33%
Arbitraje
25
40% / 48%
Caducado
7
1%
Trabajando
10
Desarrollador 10
Evaluación
(24)
Proyectos
31
68%
Arbitraje
2
50% / 0%
Caducado
1
3%
Libre
11
Desarrollador 11
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
12
Desarrollador 12
Evaluación
(2)
Proyectos
1
0%
Arbitraje
2
0% / 50%
Caducado
0
Trabaja
13
Desarrollador 13
Evaluación
Proyectos
2
0%
Arbitraje
1
100% / 0%
Caducado
1
50%
Trabaja
14
Desarrollador 14
Evaluación
Proyectos
1
0%
Arbitraje
1
100% / 0%
Caducado
0
Libre
15
Desarrollador 15
Evaluación
(41)
Proyectos
88
14%
Arbitraje
30
30% / 53%
Caducado
36
41%
Trabaja
Solicitudes similares
i get paid in 12 hour too send agreement Once the Tp or stop loss or trailing sl is hit a new order is placed in the direction of where the Tp and sl or tsl is hit immediately So trail profits until close and open new trade in reverse direction immediately and trail until close again points for trailing sl, tp and sl I want the trailing stop too have two different functions one is that it’s trails from the entry
Hi, i have a tos script i need converted to Ninja script, but someone who knows both coding. Cant be someone who is just going to paste into chat gpt, it requires more understanding for compatibility
I need a trading bot, My strategy works with the 1hour timeframe .My stop-loss should be put using Atr of the candle multiply by 1.5 then the value will be added or subtracted from my entry depending on if it's a buy or sell and my entry should be a candlestick pattern also in addition to when the 3 Ema corresponds .When the 8Ema is above the 20Ema and they are both above the 100Ema it is a buy and when the 20Ema is
Need ea according to stochastic divergence (both hidden and regular) plus candlestick flip .. need for experinced developers to complete my order with 99percent accuracy. So bet for it the budged is fixed and other plugins will be added in the v2
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
My trust wallet was hacked and I have tokens to claim which unlock almost daily but the person who hacked the wallet drains the tokens as soon as I claim them in the hacked wallet. I have contacted the support for that crypto but they were not helpful. There is no way to claim this crypto to another wallet. I need a bot or another solution that can transfer the crypto out of the hacked wallet into my other wallet as
I want to design a website like https://www.ngnrates.com/ we will change some stuff but not much, if you can deliver a website like this let me know your budget and readiness to implement
Hi, I need a robot, which wil get instructions to trade in 3 symbols at the same time based on few parameters and calculations. Example: There is 1 symbol called Gold-Near and the rate for it is 1000-1002 If i specify that when the rate reaches 1050, it should sell 1 lot Upon execution it will have to sell 1 lot of cme gold, buy 3 lots of mcx gold and buy currently (lots will be based on calculation). All the
Hey man Based on the tradingview pinescript strategy I sent to you . I want you to convert the Tradingview script to Metatrader expert advisor as discussed . Kindly bid for it and let proceed with the coding
I have a full code ,, There are some errors in this.It does not add to the chart, does not show arrow marks, does not alert ,, fix this problem and work properly,, Contact on telegram @Gw_rakib1

Información sobre el proyecto

Presupuesto
30 - 200 USD
Plazo límite de ejecución
de 5 a 10 día(s)

Cliente

Encargos realizados1
Número de arbitrajes0