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)
You have now defined 5 plots. So the original plot will plot alongside with the new plots.
NinjaTrader 7 offers a more elegant way to color a PlotSeries. Just have one plot defined and then adapt the color, for example the code
will color the current value of the plot number 1 red. This is recommended as it also colors the line between the current value at [0] and the prior value at [1].
the indicator i hacked up was for 6.5 (should've mentioned that in the prior post and will edit it to show) so it sounds like it will take more work to make it work for 6.5.
ok, so here is some code that i know won't work but hopefully it will explain what i'm looking for: this is for 6.5 but if N7 is better for this, i wouldn't complain
basically looking for a "cross back below the 10 line" and "cross back above the -10 line"
also, can anyone tell me if using the "CurrentBar.ToString" uses alot of CPU which may bog the chart down?
ok, so here is some code that i know won't work but hopefully it will explain what i'm looking for: this is for 6.5 but if N7 is better for this, i wouldn't complain
basically looking for a "cross back below the 10 line" and "cross back above the -10 line"
also, can anyone tell me if using the "CurrentBar.ToString" uses alot of CPU which may bog the chart down?
Just from looking at the code: rsi is a variable of type double, so rsi[1] does not exist. If it is indexed, it is supposed to be a DataSeries. In this case you may try
if (Value[1] > 10 && rsi < 9.95)
Not tested.
If you want to display all the dots, you need to identify each of them via a different string, so your approach is appropriate. That will indeed create a huge CPU load, which is a problem. Possible solution: only display the dots for a limited lookback period, for example