Colored Candles Based on Two Indicators

MQL4 Indicateurs Forex

Tâche terminée

Temps d'exécution 2 jours

Spécifications

I need an indicator for MT4 that combines the logic of the SuperTrend and Donchian Trend Ribbon indicator. The indicator should color the candles based on the following rules:


SpringGreen: When both indicators are in Buy/Uptrend mode.

Crimson Red: When both indicators are in Sell/Downtrend mode.

Dark Gray: When the indicators disagree (one is Buy, the other is Sell).


The SuperTrend indicator (the primary signal) is always in either Uptrend or Downtrend mode—there is never a “neutral” state.

Therefore, at every candle close, the chart will always display either “Uptrend” or “Downtrend” as the current SuperTrend status. While the Donchian indicator is not yet aligned with the SuperTrend (i.e., the two indicators arein opposite directions), the candles should be colored dark gray and the message should remain “Uptrend” or “Downtrend” (matching the SuperTrend’s current state).


Only when both indicators are aligned in the same direction (both Uptrend or both Downtrend), the candles change to the corresponding color (SpringGreen for Uptrend, Crimson Red for Downtrend) and the message updates to “Buy Confirmed” or “Sell Confirmed”.


Summary:


At every 1H candle close, display the current SuperTrend state:

If SuperTrend is up, show “Uptrend”

If SuperTrend is down, show “Downtrend”

While SuperTrend and Donchian are not aligned, candles are always dark gray, and the label remains “Uptrend” or “Downtrend”.

When both indicators align, candles switch to the trend color and the label changes to “Buy Confirmed”/“Sell Confirmed”,

This ensures there is never any ambiguity:

The chart always shows “Uptrend” or “Downtrend” as long as there is no confirmation.

Only after confirmation do you show the final message and color.


Last: Add a mini chart/visual box on the main chart showing the candle color changes based on this logic, but applied to 1-minute candles (no messages or alerts needed for this mini chart).


I will provide both reference indicators.

Répondu

1
Développeur 1
Évaluation
(442)
Projets
698
34%
Arbitrage
34
68% / 9%
En retard
22
3%
Travail
2
Développeur 2
Évaluation
(34)
Projets
52
73%
Arbitrage
4
50% / 0%
En retard
0
Gratuit
3
Développeur 3
Évaluation
(296)
Projets
475
40%
Arbitrage
105
40% / 24%
En retard
80
17%
Occupé
Publié : 2 codes
4
Développeur 4
Évaluation
(153)
Projets
237
33%
Arbitrage
20
45% / 30%
En retard
2
1%
Gratuit
5
Développeur 5
Évaluation
(14)
Projets
14
14%
Arbitrage
8
0% / 88%
En retard
2
14%
Chargé
6
Développeur 6
Évaluation
(1)
Projets
2
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
Publié : 2 codes
7
Développeur 7
Évaluation
(184)
Projets
317
24%
Arbitrage
23
35% / 13%
En retard
24
8%
Gratuit
Publié : 3 codes
8
Développeur 8
Évaluation
(555)
Projets
642
33%
Arbitrage
41
41% / 46%
En retard
11
2%
Chargé
9
Développeur 9
Évaluation
(44)
Projets
53
38%
Arbitrage
8
13% / 38%
En retard
8
15%
Travail
Commandes similaires
Ofrezco un sistema de trading automatizado que conecta señales de MetaTrader 4 con ejecución automática de operaciones en Polymarket. El sistema ya está desarrollado y funcionando correctamente. Este bot permite copiar señales generadas por un indicador personalizado en MT4 y ejecutar operaciones automáticamente en mercados de predicción de criptomonedas. Cómo funciona el sistema Un indicador personalizado en MT4
Diseño simple de página web, para venta de vinos con tienda online y grupo exclusivo para clientes. Además se incorporarán otros artículos relacionados con el mundo del.vino para su venta

Informations sur le projet

Budget
39+ USD
Délais
de 1 à 5 jour(s)