Moving Average Step Indikator MT5

MQL5 Altro C++

Specifiche

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

Con risposta

1
Sviluppatore 1
Valutazioni
(5)
Progetti
8
13%
Arbitraggio
4
50% / 25%
In ritardo
2
25%
Gratuito
2
Sviluppatore 2
Valutazioni
(137)
Progetti
161
22%
Arbitraggio
7
14% / 43%
In ritardo
4
2%
Caricato
3
Sviluppatore 3
Valutazioni
(86)
Progetti
106
24%
Arbitraggio
8
38% / 25%
In ritardo
8
8%
In elaborazione
4
Sviluppatore 4
Valutazioni
(337)
Progetti
455
52%
Arbitraggio
22
50% / 27%
In ritardo
5
1%
Caricato
5
Sviluppatore 5
Valutazioni
(61)
Progetti
69
29%
Arbitraggio
2
0% / 0%
In ritardo
1
1%
Caricato
6
Sviluppatore 6
Valutazioni
(10)
Progetti
25
28%
Arbitraggio
1
0% / 0%
In ritardo
1
4%
Caricato
7
Sviluppatore 7
Valutazioni
(2423)
Progetti
3045
66%
Arbitraggio
77
48% / 14%
In ritardo
340
11%
Gratuito
8
Sviluppatore 8
Valutazioni
(23)
Progetti
45
20%
Arbitraggio
24
29% / 46%
In ritardo
12
27%
Gratuito
9
Sviluppatore 9
Valutazioni
(453)
Progetti
512
33%
Arbitraggio
25
40% / 48%
In ritardo
7
1%
Caricato
10
Sviluppatore 10
Valutazioni
(24)
Progetti
31
68%
Arbitraggio
2
50% / 0%
In ritardo
1
3%
Gratuito
11
Sviluppatore 11
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
12
Sviluppatore 12
Valutazioni
(2)
Progetti
1
0%
Arbitraggio
2
0% / 50%
In ritardo
0
In elaborazione
13
Sviluppatore 13
Valutazioni
Progetti
2
0%
Arbitraggio
1
100% / 0%
In ritardo
1
50%
In elaborazione
14
Sviluppatore 14
Valutazioni
Progetti
1
0%
Arbitraggio
1
100% / 0%
In ritardo
0
Gratuito
15
Sviluppatore 15
Valutazioni
(41)
Progetti
88
14%
Arbitraggio
30
30% / 53%
In ritardo
36
41%
In elaborazione
Ordini simili
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
Hey, great developer I have a thinkorswim script I want to convert it into TradingView. Can you please let me know if you can i will be looking for great developer that will bid for it best regards
Hey, great developer I have a thinkorswim script I want to convert it into TradingView. Can you please let me know if you can i will be looking for great developer that will bid for it best regards

Informazioni sul progetto

Budget
30 - 200 USD
Scadenze
da 5 a 10 giorno(i)

Cliente

Ordini effettuati1
Numero di arbitraggi0