Something not working right when trying to create an EA from Slope Direction Line HISTOGRAM.... PLEASE HELP!!


This is the indicator:


and what im trying to do is when the histogram changed color from red to blue or viceversa it will enter a trade


 iCustom(NULL,0,"SLOPE HISTO~",80,3,0,  0,1)>0

&&iCustom(NULL,0,"SLOPE HISTO",80,3,0,  1,2)==0;




 iCustom(NULL,0,"SLOPE HISTO",80,3,0,  1,1)>0

&&iCustom(NULL,0,"SLOPE HISTO",80,3,0,  0,2)==0;


PLEASE HELP!............ 

William Roeder  
Karish: PLEASE HELP!............ 
  1. Something not working right

    "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires - meaningless. There are no mind readers here.
  2. learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.