NT has built-in functions called CrossAbove and CrossBelow to check for the zero cross.
Check out the help section of NT on these functions.
Also I would suggest you check out some of the free indicators in the futures.io (formerly BMT) download area for code samples on how to change the color. You will have to write code to modify the plot properties but it's difficult to give a specific answer since you have not specified what indicator you want to modify.
The following user says Thank You to gulabv for this post:
Hi Man From Texas,
Thank you for your response.
The indicator in question is the LinRegSlope. I know that comes with NT7 and cannot be changed but I like to use a zero line with it and I got tired of drawing a zero line, so I managed to cobble together LinRegSlope with a zero line. Then I realized it would be nice if the indicator changed to green above zero and red below. I am familiar with TS Easy Language and it is an easy matter to do color changes with Easy Language. However, when I looked at the color change code in some other indicators, I decided it was not so easy and obvious in C#.
Your assistance would be most appreciated.
You should see all the really cool free stuff in the Elite Section. I strongly suggest you become an Elite member (Click on Elite Access at the top of the home page) it's painless and offers a tremendous amount of resources for traders.
Disclaimer: I am not a programmer, coach, trainer or self appointed guru. Have a professional review any code you receive from me before you trade real money with it. I am an Elite member of futures.io (formerly BMT) but am not an employee of or a spokesperson for futures.io (formerly BMT) and receive no compensation for recommending futures.io (formerly BMT) Elite membership.
Please register to view the post attachment(s), image(s), or screenshot(s) - it's simple and free.
I sent a message on this. How can I or you :-) do this for an ADX or CCI, when the indicator pivots form up/dn? I am not a coder, but figured adding the correct syntax of the NT7 indicator and saving it with a new name would work. No success finding the correct syntax to make it work.