using indicators' color to buy or sell??

 

i have an indicator, voltychannel and there are 2 color lines displayed by this indicator, how do i change the orders to buy if the color of the line is blue and to sell if the color of the line is red,

following is the screenshot of the chart window,

if((iCustom(NULL, PERIOD_H1, "VoltyChannel_Stop_v2.1M",0,1,0,10,4,1,true,false,0,0,0))&&!(iCustom(NULL, PERIOD_H1, "VoltyChannel_Stop_v2.1M",0,1,0,10,4,1,true,false,0,1,0))
buyorder();

i tried the above code, thinking the above code will work if the line is blue and not red, "1 for blue" and "0 for red"..but the above code didnt work, can anyone provide me any idea??

 
Read some of the recent threads about iCustom and learn.
 
kmnatarajan:
"1 for blue" and "0 for red"..
Don't assume. Print out the values you read from iCustom.