Colored Candles Based on Two Indicators

MQL4 지표 Forex

작업 종료됨

실행 시간 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
등급
(455)
프로젝트
721
34%
중재
35
71% / 9%
기한 초과
23
3%
무료
2
개발자 2
등급
(35)
프로젝트
53
74%
중재
4
50% / 0%
기한 초과
0
무료
3
개발자 3
등급
(298)
프로젝트
478
40%
중재
105
40% / 24%
기한 초과
82
17%
로드됨
게재됨: 2 코드
4
개발자 4
등급
(153)
프로젝트
240
34%
중재
20
45% / 30%
기한 초과
3
1%
작업중
5
개발자 5
등급
(14)
프로젝트
14
14%
중재
8
0% / 88%
기한 초과
2
14%
로드됨
6
개발자 6
등급
(1)
프로젝트
2
0%
중재
1
0% / 100%
기한 초과
0
무료
게재됨: 2 코드
7
개발자 7
등급
(184)
프로젝트
317
24%
중재
23
35% / 13%
기한 초과
23
7%
작업중
게재됨: 3 코드
8
개발자 8
등급
(623)
프로젝트
727
34%
중재
47
49% / 40%
기한 초과
14
2%
로드됨
9
개발자 9
등급
(44)
프로젝트
53
38%
중재
8
13% / 38%
기한 초과
8
15%
무료
비슷한 주문
Hello, I am looking for an experienced MQL5 and Web Developer to create a complete automated copy-trading infrastructure for MetaTrader 5 with a subscription/licensing system. The project consists of three main components: 1. MT5 Slave EA (Copiador): An Expert Advisor for MT5 that receives trading signals from a master account (via a web server, WebSockets, or a database like Firebase/MySQL) and replicates them
Vamos por todo 30+ USD
Quiero que el robo se encargue el mismo de operar mi dinero pero quiero ver ganancia quiero que el robot se encargue de ver el mercado y por el mismo tirar las operaciones
Busco un desarrollador con experiencia demostrable en MQL5 para desarrollar desde cero un Expert Advisor (EA) para MetaTrader 5. El proyecto consiste en un sistema de trading basado en piramidación positiva / anti-martingale, con gestión avanzada de operaciones por Basket, cálculo de riesgo, Global Break Even y control de beneficios. La lógica del sistema está definida y se entregará una especificación técnica
Me gustaría que alguien me hiciera una estrategia o un indicador para los futuros del nasdaq ya que opero en en la apertura de nueva york para ya mas adelante si la relación comercial es buena seguir con mas encargos. En principio busco una cosa que es posible que valga para mis dos objetivos. En principio estoy sacandome dos cuentas de fondeo yo ya tengo una estrategia buena pero busco una segunda que me pueda
Prueba técnica limitada para desarrollo en MQL5 de un motor de mapeo estructural mediante pivotes y líneas. Este encargo corresponde a un desarrollador previamente seleccionado y con quien las condiciones de la prueba ya fueron acordadas. Alcance formal: TT-TEST-MAP-001 v1.1 — Fases A+B+C Presupuesto total acordado: USD 30 . El detalle completo de la Tarea Técnica y los casos de evaluación serán proporcionados dentro

프로젝트 정보

예산
39+ USD
기한
에서 1 로 5 일