Indicator problem

 

So i'm trying to make a new indicator with a histogram that has 2 values. 1 and -1. It is supposed to increase the outcome of trades if you only trade with the trend that's shown by the indicator.

Now the problem with my indicator is that if the whole subwindow has a value of 1 or -1 the indicator doesn't show anything. Otherwise it works just fine.

 
Set the window limits to +/- 1
 
whroeder1:
Set the window limits to +/- 1
thank you . it worked.
Reason: