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

MQL4 指标

工作已完成

执行时间2 小时
客户反馈
Excellent! He asks the right questions, and works really fast. Highly recommended.
员工反馈
Good customer, very nice, I hope cooperate again.

指定

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.


附加的文件:

反馈

1
开发者 1
等级
(598)
项目
692
33%
仲裁
43
47% / 44%
逾期
12
2%
工作中
2
开发者 2
等级
(117)
项目
138
41%
仲裁
30
7% / 77%
逾期
17
12%
空闲
3
开发者 3
等级
(169)
项目
204
30%
仲裁
25
40% / 44%
逾期
12
6%
空闲
4
开发者 4
等级
(206)
项目
333
35%
仲裁
66
12% / 58%
逾期
87
26%
空闲
5
开发者 5
等级
(312)
项目
521
47%
仲裁
29
10% / 45%
逾期
139
27%
工作中
相似订单
Hello, I'm looking for EA or indicator that would help me reach at least 0.5 lot daily on XAUUSD pair. I trade with 30-35 spread on live standard account. 0.3 to 0.5 lot on XAUUSD is all i need per day, without losing too much money during week or month doing that. Every advice od product is welcome. tg @stellarcptadmin
✅ MT4 EA Developer Checklist (For Your Ladder EA) 1️⃣ Indicator Integration EA reads signals from provided custom indicator (.ex4 or .mq4) Detects “Buy Next” / “Sell Next” signals on current candle Works with arrow-based or buffer-based signals 2️⃣ Next Candle Execution EA does not trade on the candle where the signal appears Orders placed only at first tick of the next candle Timeframes supported: M1, M5, M15
Hello, i need expert developer that have been develop so many profitable AI bots that work for mt5 and ctrader autonomously if you know you can easily execute this requirement bid for it. NOTE:- YOU MUST COME WITH SAMPLE FOR THE 2 TRADING PLATFORM. While i take a look at your profile and reach out to you thanks
I am looking for an experienced MT4/MT5 developer to analyze my trading history and replicate the strategy in a new Expert Advisor (EA). The developer must have proven experience in reverse engineering strategies, analyzing trading data, and developing EAs across various trading methodologies. A deep understanding of XAUUDS and BTCUSD behavior, as well as chart analysis, is essential. Please note that we do not have
Ea.Mix 30+ USD
I am in need of a good scalping bot for gold or any currency pair. If you have one that is working, reach out. You must be able to provide a trial version so I can test the bot myself
I am in need of a good scalping bot for gold or any currency pair. If you have one that is working, reach out. You must be able to provide a trial version so I can test the bot myself
i have built a indicator on trading view which is veryt good, its based on liquidity sweeps on stop losses. im looking for an someone with experience in trading and indicators that has worked on similar strategy indicators. it already wins lots of very good trades im looking to tighten up on uneccesary trades it may send to clean it up as i currently am testing it out running to signal channel and want it the best /
I am looking for an experienced MQL5 developer to create a custom indicator for MetaTrader 5. The project requirements and indicator logic will be shared privately with the selected candidate to protect the concept and implementation details. Requirements: Strong experience with MQL5 indicator development. Ability to create clean, efficient, and well-structured code. Experience with custom buffers, chart objects
Hello, I am looking to develop a commercial-grade Expert Advisor for MT5 specifically optimized for XAUUSD (Gold). The underlying logic should be an intelligent, trend-filtered cost-averaging grid system focused on capital preservation. The EA must include the following functional architecture: 1. Core Strategy Structure: - Must feature a multi-strategy logic entry module. I want to use a combination of 3-4 standard
Generate a signal and place 2 arrows on the chart when these conditions happen. Rules: Levels up:price is below the Kijunsen and Senku A value is less than Senku B value Kijun sen close = previous kijun sen close; Kijun sen close value is LESS than Senku B close value Senkou B close = previous senku B close. Levels down: price is above Kijunsen. Senku A value is above Senku B value

项目信息

预算
30+ USD
截止日期
 1 天