A multi-timeframe trend detection indicator is needed

Specification

Create an indicator which will detect the trends of M1, M5, M15, M30, H1, H4, D1 and W1 timeframes, and display them on the chart. The indicator will be able to show the current trend directions for all those timeframes, based on multiple indicators. The final trend detection decision will be a confluence of the results of the selected indicators.

The indicator should expose the below listed input parameters.

  1. Enable SMA (bool with Yes/No options)
  2. SMA Period (integer, default:200)
  3. Enable Three MAs (bool with Yes/No options)
  4. Three MA1 (integer, default:21)
  5. Three MA2 (integer, default:50)
  6. Three MA3 (integer, default:200)
  7. Enable ZigZag (bool with Yes/No options)
  8. Enable ADX (bool with Yes/No options)
  9. ADX Trend Level (integer, default:17)
  10. Enable High/Low Direction (bool with Yes/No options)
  11. Look Back Bars (integer, default 83)

The effect of each input parameter is detailed below.

Enable SMA

'Yes' option will enable the Simple Moving Average calculation for trend detection. We will use 200 period as default.

Enable Three MAs

'Yes' option will enable Three Moving Averages. If this option is 'Yes', the next three related parameters are taken into effect for the moving average periods. 21, 50 and 200 are default values.

  • Trend is up if at a given timeframe all moving averages are plotted in correct rising order on bar closure.
  • Trend is down if at a given timeframe all moving averages are plotted in correct falling order on bar closure.

Enable ZigZag

'Yes' option will make use of the ZigZag indicator for the trend detection. 

  • Trend is up if every next local maximum of price chart is higher than previous local maximum and each subsequent local minimum of price chart is also higher than previous local minimum.
  • Trend goes down if each subsequent local minimum of price chart is lower than previous local minimum, and each subsequent local maximum of price chart is also lower than previous local maximum.

Enable ADX

'Yes' option will use Average Directional Movement Index indicator for detection.

  • Trend goes up, if the +DI line is higher than the -DI line.
  • Trend goes down, if the +DI line is lower than the -DI line.

Enable High/Low Direction

'Yes' option will use the following rules for trend detection.

  • If the highest point in the last 'Look Back Bars' candles is closer to the current candle, than the lowest price point, the trend is upwards.
  • If the lowest point in the last 'Look Back Bars' candles is closer to the current candle, than the highest price point, the trend is downwards.

Important Note

I am not too fussy about the graphical panel of the indicator but it should be something nice.

The code should be well documented, either externally or internally with inline comments. The code should also be cleanly written and modular enough for me to pull from this indicator and put in another MQL4 program easily.

Also, I will have all rights reserved for this indicator, and the coder should withdraw all his/her copyright for this code.

Responded

1
Developer 1
Rating
(13)
Projects
18
11%
Arbitration
6
33% / 67%
Overdue
1
6%
Free
Published: 1 code
2
Developer 2
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(313)
Projects
559
35%
Arbitration
79
32% / 43%
Overdue
203
36%
Free
4
Developer 4
Rating
(1)
Projects
0
0%
Arbitration
1
0% / 0%
Overdue
0
Free
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(77)
Projects
243
74%
Arbitration
7
100% / 0%
Overdue
1
0%
Free
Published: 1 article
7
Developer 7
Rating
(7)
Projects
13
15%
Arbitration
13
23% / 46%
Overdue
3
23%
Free
Published: 24 articles
8
Developer 8
Rating
(54)
Projects
102
23%
Arbitration
12
25% / 17%
Overdue
13
13%
Free
9
Developer 9
Rating
(69)
Projects
146
34%
Arbitration
13
8% / 62%
Overdue
26
18%
Free
Published: 6 codes
10
Developer 10
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Published: 3 codes
11
Developer 11
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(265)
Projects
280
55%
Arbitration
0
Overdue
5
2%
Free
13
Developer 13
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
Add smart trailing 30 - 60 USD
Hello, I currently have a source code for an Expert Advisor (EA), but unfortunately it contains some errors that prevent it from working correctly. The EA idea is already built and the code is available, however it requires a professional review and correction to make it stable and ready for use. The concept of the EA is quite simple: it is a manual trade management EA, designed to manage manually opened trades (such
.. 30 - 200 USD
Ebrahim Ajarousha uggjhh jhghjh jhb hbhh hbhkoo ddddf drrd ffff tff ftv. Tf. Rf. Ff. F. Ff v. Hb b h h h c c n j j e. K dk. K kx. Kd. Kc k. Xk. Dk. K xk. Nx. Nx. Xj. Xnx xk. X xk d c g t. X f. C x x c
I have a fully developed and ready Expert Advisor for MT5. I am NOT looking for coding work. I am looking for an experienced MQL5 Market seller who can publish and manage my EA on the MQL5 Market on my behalf. The deal is revenue share — we split the income from sales or rentals. The EA is complete and ready to publish. If you have an established seller account on MQL5 Market with good reputation and experience
I am seeking an alert-only EA. An EA that will follow all the rules but not execute a trade. As this is a repeat posting I am seeking the successful technician - Xiro from Vietnam. Thanks Karl
Ninjatrader bot 30+ USD
I am looking for an experienced developer who specializes in NinjaTrader and NinjaScript to build a fully automated trading bot. The goal is to create a “sniper-style” trading system that focuses on precise entries, strong risk management, and structured trading logic. This is NOT a simple indicator project I am looking for someone who understands algorithmic trading and can translate trading rules into a reliable
24/7 Pick-and-Pack Bot 30 - 200 USD
Title: MT5 EA for XAUUSD M5 – Auto SL/TP + News Filter – Mobile Compatible Strategy: 1. Pair: XAUUSD, Timeframe: M5 2. Entry Buy: EMA(9) crosses above EMA(21) AND RSI(14) > 50 3. Entry Sell: Opposite 4. Exit: SL = 150 points, TP = 300 points. No trailing. 5. Risk: 1% of balance per trade, lot size auto-calculated 6. Time filter: Trade only 08:00–18:00 GMT+2, Mon-Thu. No Friday trades. 7. News filter: Pause 30min
24/7 Pick-and-Pack Bot 30 - 200 USD
Title: MT5 EA for XAUUSD M5 – Auto SL/TP + News Filter – Mobile Compatible Strategy: 1. Pair: XAUUSD, Timeframe: M5 2. Entry Buy: EMA(9) crosses above EMA(21) AND RSI(14) > 50 3. Entry Sell: Opposite 4. Exit: SL = 150 points, TP = 300 points. No trailing. 5. Risk: 1% of balance per trade, lot size auto-calculated 6. Time filter: Trade only 08:00–18:00 GMT+2, Mon-Thu. No Friday trades. 7. News filter: Pause 30min
Looking for a trading bot / Expert Advisor that wont make dozens of small successful trades and then one or two unsuccessful trades that wipes out your account Requirements: - MT4 capable - Use on the major currency pairs - although open to other currency pairs - Be successful in monetary terms not necessarily in how many successful trades
I need a MT5 Prop firm challenge passing EA with strict prop firm rules compliance. Any strategy can be used but win rate should be above 70%. It should have high impact news filter and a dashboard panel to monitor daily drawdown, target profit, current balance, etc. It should not have martingale, grid, hedging, etc
Hello Developers I have a Project to get done! i have a simple strategy can you please create the automated forex ea to execute my trading strategy? i need custom ea for tradingview and mt4/mt5 correction: i need a tradingview indicator created that tells me when to buy or sell. and ea in mt4/mt5

Project information

Budget
30+ USD