Trabajo finalizado
Tarea técnica
1. I have the code for a multi-timeframe indicator based on the standard MACD that draws 3 lines based on 3 time frames D1,H4 and H1. See attached image.
2. I want this indicator rather be based on an adapted MACD indicator that shows light green when indicator is bullish and price is increasing and dark green when price is bullish but price is decreasing. And then the same for bearish movements with light red for price decreasing and dark red for price increasing. I also have the code for this MACD indicator. See attached image.
So the colour scheme on the MTF indicator must change similarly as the colour changes on this MACD indicator.
3. But I want to add a third colour - e.g. Yellow/Gold (or to be selected). The indicator must read the previous x (e.g. 500) bars (to be selected) of the MACD indicator to establish the all-time high and low for that number of bars(period). Then if the value of the MACD bars (bullish or bearish) reach a certain low percentage e.g. 5% (this value must be able to be selected) Of the all-time high/low the colour must then be drawn as Yellow/Gold or the selected colour. (In other words when the histogram bars are very short)
4. Lastly (if this is not a big change) I want the timeframes to be displayed on the MTF MACD to be selected. Maximum of 4 bars/time frames to be selected and drawn on the indicator. At the moment it is fixed at three (3). D1,H4 and H1. I may want to add 15 min or weekly time frames.