Indicator goin with trend or not?

 
Hello can somebody tell me how to find the indicator is moving with trend or not? Is their is a method available which help to find the indicator is moving with trend?
 
ankitkalindi:
Hello can somebody tell me how to find the indicator is moving with trend or not? Is their is a method available which help to find the indicator is moving with trend?

I don't understand the question
 
You have to define 'trend'. You have to define what you consider "moving with trend" Once you do that sufficiently, then you can code it. Until then, your question is a vague as trying to code 'what color is the sky' (cloudy, gray, blue, sky blue, red, ...)