A multi-timeframe trend detection indicator is needed

Termos de Referência

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.

Respondido

1
Desenvolvedor 1
Classificação
(13)
Projetos
18
11%
Arbitragem
5
40% / 60%
Expirado
1
6%
Trabalhando
Publicou: 1 código
2
Desenvolvedor 2
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(309)
Projetos
555
35%
Arbitragem
79
32% / 42%
Expirado
201
36%
Trabalhando
4
Desenvolvedor 4
Classificação
(1)
Projetos
0
0%
Arbitragem
1
0% / 0%
Expirado
0
Livre
5
Desenvolvedor 5
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
6
Desenvolvedor 6
Classificação
(77)
Projetos
243
74%
Arbitragem
7
100% / 0%
Expirado
1
0%
Livre
Publicou: 1 artigo
7
Desenvolvedor 7
Classificação
(7)
Projetos
12
17%
Arbitragem
12
17% / 50%
Expirado
3
25%
Trabalhando
Publicou: 22 artigos
8
Desenvolvedor 8
Classificação
(54)
Projetos
102
23%
Arbitragem
12
25% / 17%
Expirado
13
13%
Livre
9
Desenvolvedor 9
Classificação
(69)
Projetos
146
34%
Arbitragem
13
8% / 62%
Expirado
26
18%
Livre
Publicou: 6 códigos
10
Desenvolvedor 10
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 3 códigos
11
Desenvolvedor 11
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
12
Desenvolvedor 12
Classificação
(262)
Projetos
277
55%
Arbitragem
0
Expirado
5
2%
Livre
13
Desenvolvedor 13
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Pedidos semelhantes
I want robot that can help me trade and make some money so that I can be able to learn from it while I'm still in depot account now.Is how it gonna help me with some money
Articles How to create Requirements Specification for ordering an indicator 76 MetaQuotes 51 380 Table of Contents How can algo trading make a trader's live easier? Supplement text with images and videos Useful programs for creating Requirements Specification Formulating the Requirements Specification as an algorithm Requirements Specification Examples What can I specify in the Requirements Specification? Indicator
Hello, I have two requests: First: Feature Modification Request Currently, the EA places only one pending order at a time. I want to modify this to place two opposite pending orders (Buy Stop and Sell Stop) simultaneously, with the distance between them aligned with the existing Breakeven and Trailing Stop settings in the bot. How it should work: The EA places a Buy Stop above current price and a Sell Stop
I need a custom MT5 expert advisor (EA) designed to mirror trades between two different broker accounts (Master and Slave) running on the same local PC. My primary objective is Synchronous Execution to avoid being exposed to the market due to price mismatches. Core Requirements: Symbol-Agnostic: The EA must automatically copy trades for any symbol I trade (Forex, Gold, Indices, etc.) without needing to hardcode
Hello, I need a professional MT5 Expert Advisor for currency trading. PAIRS: EURUSD, GBPUSD, USDJPY, USDCHF TIMEFRAME: M15 STRATEGY: - EMA 8 cross EMA 21 (entry signal) - EMA 50 for trend filter - RSI 14 confirmation (Buy > 52, Sell < 48) - No trade if RSI > 75 or < 25 SESSION: London + New York only 07:00 to 17:00 GMT No weekend trading TRADE MANAGEMENT: - Lot size: 0.06 - Take Profit: $15 per trade - Stop Loss: $8
I need a MetaTrader 5 Expert Advisor (EA) for Forex trading. Account size: $1000 Requirements: 1. The EA should work only on Forex pairs. 2. Automatic Buy and Sell trades. 3. Lot size starting from 0.04. 4. Stop Loss and Take Profit settings. 5. Only one trade at a time. 6. Works on pairs like EURUSD, GBPUSD, USDJPY etc. 7. Risk management suitable for a $1000 account. 8. Easy settings for lot size, SL, TP and risk
I want to design an EA that can identify key Supports and Resistances. This should be able to work on any timeframe from 1 minute to 1 hour (i.e 1 minute, 5 minutes, 15 minutes and 1 hour time frames.) The EA should be able to determine a Fibonacci retracement from a support and the next resistance point in an uptrend and vice versa (i.e the EA should be able to determine a Fibonacci retracement from a resistance and
Looking for a good EA 30 - 100 USD
Hello guys,i am looking for a good already established ea,that doesnt blow account,only give 5 percent per month with maximum 10 percent drowdown,I need prove,i need to backtest by myself,after that i select the developer
Short Description: I am seeking an experienced MQL4 developer to build a high-frequency Asymmetric Salami Grid EA . This is a sophisticated volatility harvester, not a basic martingale. Key Features to Implement: Virtual Grid Execution: No pending orders; all logic handled in-memory via OnTick . Asymmetric Lot Sizing: Trend-side degression vs. Counter-trend progression . Salami Partial Liquidation: XX% of profits
Hi, I need a custom MT5 indicator based on a multi-timeframe fractal break reversal. 1️⃣ The indicator should use two timeframes: Higher Timeframe (HTF) Lower Timeframe (LTF) (Timeframes should be adjustable in inputs, e.g., HTF = H1 and LTF = M5) 2️⃣ Use standard fractals to detect fractal highs and fractal lows. 3️⃣ Primary signal (HTF): When a Lower High fractal is formed and price breaks that Lower High in one

Informações sobre o projeto

Orçamento
30+ USD