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)
Hi,
I want to have a condition in my strategy and i want MARising to be N/A (as in panel 2). I want to know how I add that in as its not equivalent to 0 is there a null value available in the condition builder? (null2 screenshoot)
thanks
JLo
Can you help answer these questions from other members on NexusFi?
Hi @solondon,
Here is a section of the NinjaTrader manual that may help. You are looking to see if the dataseries "ContainsValue", false means N/A (not valid data for the bar, value should always be ignored), true means the data is valid. Not sure how to do it with the Wizard as I hand code but hopefully this helps:
Checking for Valid Values
It is possible that you may use a DataSeries object but decide not to set a value for a specific bar. However, you should not try to access a DataSeries value that has not been set. Internally, a dummy value does exists, but you want to check to see if it was a valid value that you set before trying to access it for use in your calculations.
DataSeries.ContainsValue(intbarsAgo)
Returns a true or false value.