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)
import levels from txt file and draw horizontal lines
Hi I am not much of a programmer, I like to import levels from a text file and draw them as horizontal lines on the chart itself. It should be something similar to futures.io/ local_links.php?linkid= 994 but I can't access the file. I can't link to it either since I am new. Can someone help me out?
Thank you so much for taking your time and posting the files! I actually was able to create something real simple that draws the lines but I will check it out. Thanks again!
does the filename of the text file have to follow a certain syntax or location? i think i got syntax correct on the text file i mean i just have numbers
I did load the txt file that came with it and it won't even show in the databox
Yes, every day you want to see your levels needs to be listed in the text file, they don't carry over and you can't list a range of dates.
Sometimes with Sundays night or holidays you won't list todays date, use the next day. A little trial and error you'll see what I mean
Like you I thought it was too cumbersome, I made something simple and you just need to dump your levels in there 1 per line. I don't use it anymore and haven't use it for a while, take a look at the source code. You will need to put the levels.txt in your ninjatrader directory or modify the source file. Once you add the indicator it will read the txt file and paint the levels. Every day or each time you want to re-paint the levels, you need to remove the indicator and add it back. I can't remember if it will actually label the levels with number, I think it doesn't so you will need to find another indicator to automatically label all the horizontal lines.