Try changing lines #149 and #150 fromHercs wrote: Fri Aug 24, 2018 7:20 pm Gentlemen and ladies so inclined, please look at this indicator and tell me what I am doing wrong as it will simply not alert. I am running it on M-1 TF to see what is going on, but without any success. See attached screen-print for settings used.
All I want it to do is to alert when the colour changes on the central line.
Thanking you sincerely in advance.
Code: Select all
trend1[i] = trend1[i+1];
trend2[i] = trend2[i+1];
Code: Select all
trend1[i] = 0;
trend2[i] = 0;
this other way it should alert whenever there is a cross.