Moving Average Step Indikator MT5

MQL5 Outros C++

Termos de Referência

//+------------------------------------------------------------------+
//|                                               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);
  }
//+------------------------------------------------------------------+

Respondido

1
Desenvolvedor 1
Classificação
(5)
Projetos
8
13%
Arbitragem
4
50% / 25%
Expirado
2
25%
Livre
2
Desenvolvedor 2
Classificação
(137)
Projetos
161
22%
Arbitragem
7
14% / 43%
Expirado
4
2%
Trabalhando
3
Desenvolvedor 3
Classificação
(87)
Projetos
107
24%
Arbitragem
8
38% / 25%
Expirado
8
7%
Trabalhando
4
Desenvolvedor 4
Classificação
(337)
Projetos
455
52%
Arbitragem
22
50% / 27%
Expirado
5
1%
Carregado
5
Desenvolvedor 5
Classificação
(62)
Projetos
69
29%
Arbitragem
2
0% / 0%
Expirado
1
1%
Carregado
6
Desenvolvedor 6
Classificação
(10)
Projetos
25
28%
Arbitragem
1
0% / 0%
Expirado
1
4%
Carregado
7
Desenvolvedor 7
Classificação
(2423)
Projetos
3045
66%
Arbitragem
77
48% / 14%
Expirado
340
11%
Livre
8
Desenvolvedor 8
Classificação
(23)
Projetos
45
20%
Arbitragem
24
29% / 46%
Expirado
12
27%
Livre
9
Desenvolvedor 9
Classificação
(454)
Projetos
513
33%
Arbitragem
25
40% / 48%
Expirado
7
1%
Carregado
10
Desenvolvedor 10
Classificação
(24)
Projetos
31
68%
Arbitragem
2
50% / 0%
Expirado
1
3%
Livre
11
Desenvolvedor 11
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
12
Desenvolvedor 12
Classificação
(2)
Projetos
1
0%
Arbitragem
2
0% / 50%
Expirado
0
Trabalhando
13
Desenvolvedor 13
Classificação
Projetos
2
0%
Arbitragem
1
100% / 0%
Expirado
1
50%
Trabalhando
14
Desenvolvedor 14
Classificação
Projetos
1
0%
Arbitragem
1
100% / 0%
Expirado
0
Livre
15
Desenvolvedor 15
Classificação
(41)
Projetos
88
14%
Arbitragem
30
30% / 53%
Expirado
36
41%
Trabalhando
Pedidos semelhantes
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 point ( the normal tsl) and the other is that
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

Informações sobre o projeto

Orçamento
30 - 200 USD
Prazo
de 5 para 10 dias

Cliente

Pedidos postados1
Número de arbitragens0