Color Candles based on previous candle | MT5 - page 2

 
Vladimir Karputov:

If you give up the idea of TWO timeframes in the indicator, I will help you. Here's an example:


Could you help me create an indicator that colors the candle to red when it happens?

rates[1].high > rates[0].high && rates[1].low < rates[0].low && rates[1].close < rates[1].open


thanks in advance

 
diegotfcastro :

Could you help me create an indicator that colors the candle to red when it happens?


thanks in advance

Why do you need candlestick # 0 and # 1 - after all, these candles are on the left of the chart - nobody sees these candles?

 
diegotfcastro:

Could you help me create an indicator that colors the candle to red when it happens?


thanks in advance

.

Files:
 
Ernst Van Der Merwe:

.

many thanks!!!!!

 
Vladimir Karputov #:

If you give up the idea of TWO timeframes in the indicator, I will help you. Here's an example:


This is very useful, is it possible to share the MT5 indicator code for this please.
Reason: