the attached “THREEindicatorCOHERENT” custom indicator is supposed to give a +1 value when all its 3 components are in positive (bullish) sync, -1 when they are in negative (bearish) sync, 0 in all other cases. So far I can have it working ok only partially. For ex I do not understand why the indicator value does not remain at value = 1 also on the 21/08/2104 (please see the attached pdf).
At this date all three indicators are all together, at the same time, bar by bar, above their respective signal lines, so the custom indicator measuring this event should remain at value=1, as it is on the previous and the next days, but instead it drops to zero. I have checked the settings of indicators on the chart with those in the script of the custom indicator and they coincide, so I can’t figure it out what is wrong. I am not expert in programming, however eventually I would like to create a market analyzer template that based on this indicator can send alerts when all 3 components are in positive or negative sync. Anyone can help please?
Thanks.
The script of the custom indicator is copied on the attached text file
Comment