Colored Candles Based on Two Indicators

仕事が完了した

実行時間2 日

指定

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.

応答済み

1
開発者 1
評価
(438)
プロジェクト
692
34%
仲裁
34
68% / 9%
期限切れ
22
3%
仕事中
2
開発者 2
評価
(33)
プロジェクト
50
74%
仲裁
4
50% / 0%
期限切れ
0
3
開発者 3
評価
(294)
プロジェクト
470
39%
仲裁
102
40% / 24%
期限切れ
78
17%
多忙
パブリッシュした人: 2 codes
4
開発者 4
評価
(152)
プロジェクト
233
32%
仲裁
18
39% / 33%
期限切れ
1
0%
仕事中
5
開発者 5
評価
(14)
プロジェクト
14
14%
仲裁
8
0% / 88%
期限切れ
2
14%
取り込み中
6
開発者 6
評価
(1)
プロジェクト
2
0%
仲裁
1
0% / 100%
期限切れ
0
パブリッシュした人: 2 codes
7
開発者 7
評価
(184)
プロジェクト
317
24%
仲裁
23
35% / 13%
期限切れ
24
8%
パブリッシュした人: 3 codes
8
開発者 8
評価
(542)
プロジェクト
624
33%
仲裁
38
37% / 50%
期限切れ
11
2%
多忙
9
開発者 9
評価
(44)
プロジェクト
53
38%
仲裁
8
13% / 38%
期限切れ
8
15%
仕事中
類似した注文
Condiciones de Operación: Activo: US30 Sesión: Jornada de Nueva York Horario: Operaciones desde las 9:00 a.m. NY, opción configurable Parámetros Generales: Operamos una ruptura del rango de la sesión de Londres, esperando que el precio salga del rango definido, ya sea al alza o a la baja, este rango debe ser configurable también Entran 2 operaciones al mismo tiempo cada una con 0.5% de riesgo, valor del riesgo
Buenas tengo un bot de metatrader 4 y me gustaria que me lo transformaran en lenguaje de mql5 para que funcione en la plataforma de Metatrader 5 SIN MODIFIFCAR nada de la estrategia del bot ni nada, es decir, convertir el codigo de mt4 a mt5 y a mayores, quisiera aprovechar para poder crear un menu para configurar los parametros del EA, que sea intuitivo, seperado por modulos con sus titulos y que sea mas atractivo

プロジェクト情報

予算
39+ USD
締め切り
最低 1 最高 5 日