Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I am trying to customize the ninjascript code on a stock RVI indicator in NT8. All I want to do is add 3 more horizontal lines. So that I have the 70, 60, 40, 30 levels marked. The stock RVI indicator has one horizontal line, called the signal line, that functions as one of them. How can I add in 3 more horizontal lines, with specific width, dash style and color? I've tried manually adding code in and nothing happens.
Secondly, although I have created a copy of the original code and saved as a new indicator, when I go to the chart to add the indicator, it is not an option in the list. Do I have to do something after writing a new indicator code to make it be added to the indicator list?
Thanks!
Can you help answer these questions from other members on NexusFi?
The absolute easiest way to do this is is to add the lines you want to the panel you want via the Constant lines indicator that comes stock with NT8. Else, you can just copy the RVI indicator and add the code to give you the lines.
ES 09-20 (2000 Tick) 2020_09_09 (4_37_03 PM)
--------------------------------------------------------
- Trade what you see. Invest in what you believe -
--------------------------------------------------------
Add the lines which are in Bold and compile your script or just press F5 to compile then you should see it in your list of indicators. Basically, each time you add a line via the AddLine command, Ninja adds it in a special collection names Lines[] which holds all the lines created in the script. Since there was already one line to represent the 50 level and the two other lines then the Lines[] collection contains 3 items.
You can modify the properties of a line by using this collection like this: