Custom Indicator: max difference, in absolute value, between two SMA's for a fixed number of periods

MQL4 Indicators

Job finished

Execution time 2 hours
Feedback from customer
Excellent! He asks the right questions, and works really fast. Highly recommended.
Feedback from employee
Good customer, very nice, I hope cooperate again.

Specification

Hi, Thanks for taking a look at this simple Custom Indicator job. I know how to do it on R, but don't have the MQL skills.  The excel file of the screenshot is attached.


Description:

I need an indicator that evaluates the maximum difference, in absolute value,  between two simple moving averages for a fixed number of periods.


custom indicator will be named:   

"MA delta max"


Indicator format:  line in separate window


3 configurable input variables:

  • MA1    example 200 for SMA200
  • MA2    example   50 for SMA50
  • p         example  150 to look 150 periods back   (ex 150 days if  chart is Daily)

* both are Simple Moving Averages, at close, no shift


formula possible syntax (no specific programming language): 

Max( Abs( MA1[(now-p) : (now)]   - MA50[(now-p) : (now)]))


It should match the picture here below, where indicator fetches the maximum value in p range:

* notice that a p value of 0 (as in current value)  is always included.  So p =3 actually reads 4 data points.


Responded

1
Developer 1
Rating
(571)
Projects
662
32%
Arbitration
42
45% / 45%
Overdue
12
2%
Working
2
Developer 2
Rating
(117)
Projects
138
41%
Arbitration
30
7% / 77%
Overdue
17
12%
Free
3
Developer 3
Rating
(169)
Projects
204
30%
Arbitration
25
40% / 44%
Overdue
12
6%
Free
4
Developer 4
Rating
(206)
Projects
333
35%
Arbitration
66
12% / 58%
Overdue
87
26%
Free
5
Developer 5
Rating
(312)
Projects
521
47%
Arbitration
29
10% / 45%
Overdue
139
27%
Working
Similar orders
Good day, I would like to have an expert advisor for my MT4 indicator (Major key alert) that can scan and provide push notification messages for entry opportunities across different time frames when a when a signal is identified
Modify an existing EA 30 - 50 USD
This is to modify my Semi Auto EA -Looking for developer modify my existing EA to Pending Order EA (BS/BL/SL/SS). Relevent with Heiken Ashi Smooth ,Moving Average , Acceleration. Concept MAster and Slave. Ready to give previous soucre code as guide. Work to do - 1)To modify this EA to Pending Order. 2) to add new feature - Risk Management/moneymanagement 3) To modify 4 slave to 7 slave will give the previous to
I have a indicator working good but have some bug for arrow placement . budget is fixed 30 used . only experience developer apply. i want to arrow get put on just above the candle high and candle low
I am looking to get this Indicator but i don't know which indicator is it , if anyone know about it let me know , images are attached , this is used for Binary Pairs
Pip Scalper Bot 60+ USD
i want a trading bot that is aleast 98% sure,and cam also do scalping 99% correct using smart money concept, ICT, ALL technical analysis on it and also put risk management on it
Greetings I need MT5 developer that has expertise in developing a custom indicator for mt5 boom and crash based on my exact details and requirements which would be discuss later. Kindly bid for this project if it is something you can handle for me
Hello, I have a Ctrader indicator with the source code, I was wondering if this possible to convert it to Quantower. Hello, I have a Ctrader indicator with the source code, I was wondering if tis possible to convert it to Quantower., i need an expert who can convert it perfectly
I’m looking for an experienced NinjaTrader developer to complete an existing custom indicator. The project is already partially built and is well organized, completely functional, and well documented. The former developer experienced some personal difficulties and unfortunately cannot continue. Key Requirement (Read Carefully): You MUST have direct, hands-on experience with NinjaTrader and NinjaScript (C#) . This is
I already have a fully developed MT5 Expert Advisor with all required prop firm features, including: Risk management Daily loss & max drawdown limits Spread & slippage filters News filter Trade management system The EA structure is complete. 👉 What I need is a professional developer to replace ONLY the entry logic with a high-quality, rule-based trading strategy. 🚨 STRICT REQUIREMENT (READ CAREFULLY): I am NOT
Hello, I’m looking for an experienced developer who can help convert an existing cTrader indicator into a fully functional Quantower indicator . I already have the complete source code for the cTrader indicator (written in C#) , and I would like the same logic, behavior, and visual output to be accurately replicated in Quantower

Project information

Budget
30+ USD
Deadline
to 1 day(s)