Moving Average Step Indikator MT5

MQL5 Other C++

Specification

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

Responded

1
Developer 1
Rating
(5)
Projects
7
14%
Arbitration
2
50% / 50%
Overdue
2
29%
Working
2
Developer 2
Rating
(131)
Projects
152
22%
Arbitration
5
0% / 60%
Overdue
4
3%
Working
3
Developer 3
Rating
(83)
Projects
103
24%
Arbitration
7
43% / 29%
Overdue
8
8%
Free
4
Developer 4
Rating
(329)
Projects
448
52%
Arbitration
22
50% / 27%
Overdue
5
1%
Loaded
5
Developer 5
Rating
(54)
Projects
60
32%
Arbitration
2
0% / 0%
Overdue
0
Working
6
Developer 6
Rating
(10)
Projects
25
28%
Arbitration
1
0% / 0%
Overdue
1
4%
Working
7
Developer 7
Rating
(2409)
Projects
3026
66%
Arbitration
77
48% / 14%
Overdue
340
11%
Free
8
Developer 8
Rating
(23)
Projects
45
20%
Arbitration
24
29% / 42%
Overdue
12
27%
Working
9
Developer 9
Rating
(438)
Projects
495
33%
Arbitration
25
40% / 48%
Overdue
7
1%
Loaded
10
Developer 10
Rating
(24)
Projects
30
67%
Arbitration
2
0% / 0%
Overdue
1
3%
Working
11
Developer 11
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(2)
Projects
1
0%
Arbitration
2
0% / 50%
Overdue
0
Working
13
Developer 13
Rating
Projects
2
0%
Arbitration
1
100% / 0%
Overdue
1
50%
Loaded
14
Developer 14
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Working
15
Developer 15
Rating
(41)
Projects
88
14%
Arbitration
29
31% / 48%
Overdue
36
41%
Loaded
Similar orders
Can you get my drafts to work? Have to conditions in RSI and Stoch oscillators ,,,I have a draft but its not run,, you can help me? if iRsi <30 ordersend op_sell iStoch > 80 ordersend op_sell Period_15M Send Orders_Buy limit Pivot Price Send Orders_Sell Limit Pivot Price
I recently bought an indicator, that sends out notifications for trades i need to place, on the notification these and SL and TP, so i want an EA that would automate that for me
I'm looking for an expert experienced developer who have skills in convert it to DLL format, i didn't have the original source code, only the ex4 file available, if you have a track record experienced in this field please apply for this project
I want to develop bot for MT4 and i will send pdf to explain in detail and you have any questions on it https://drive.google.com/drive/folders/1TPtn-THkqbLqf6kL_w09OD4vcmhOerIc?usp=sharing I will be looking for great developer to bid for it best regard
CGG Bands 60+ USD
I need you to create a mt4 indicator that will work exactly like the Dark Bands indicator. The dark bands indicator is located in the market in codebase and is free
Hello great developer here am looking for expert developer will convert convert this Trading View Code to Mt4 Indicator and this is a simple indicator i will be expecting your bid peace be unto you
Using Bollinger Band only. When price closes above upper BB, open Buy. If the length of the candle body that closed above the upper BB is more than Y pips, then do not Buy and remove the EA. Otherwise, continue to open Buy if crosses and close above upper BB and the number of positions is not more than Max No of Positions. The user will choose either Buy or Sell only. When price closes below the lower BB, close all
Hello freelancers here, I need an expert to help me with coding my script which is already working in pinescript, Moreover, i want a system whereby i can sell my trading bot and can give access with a license, I need an expert that can help me with this
hello great developer Can you make a high/low ticker tape on a table for 100 stock symbols? As a symbol makes a high or low throughout the day, it will appear on the table. i will be expecting great developer to bid for this project
Hello freelancers here, I need an expert to help me with coding my script which is already working in pinescript, Moreover, i want a system whereby i can sell my trading bot and can give access with a license, I need an expert that can help me with this, and my budget is $20, Thank you

Project information

Budget
30 - 200 USD
Deadline
from 5 to 10 day(s)

Customer

Placed orders1
Arbitrage count0