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)
OK, this could just be me losing my mind...it's been a while since I donned my programmer's cap, and I just can't remember....
I am coding a strategy and one of my conditions really wants an OR clause:
"if the Stoch is here and either this CCI is here or this one is, then do this."
(not my exact code, just a simplified example of what I'm trying to do)
But, of course, NT7 doesn't like that. It doesn't like anything close to that.
Is there a form of an OR clause? You know, like one that serves as the partner/opposite of the && clause? I'm kind of starting to use a bunch of nested if/else statements in place of a simple OR, but it's getting very messy...
Thanks in advance,
Gary
Can you help answer these questions from other members on NexusFi?
It's hard for me to say what's wrong without seeing the entire code and knowing what the rules of the strategy are. I suggest you look for more significant help here or here. You really need more Ninjascript/C# programming training and experience.
and yet,it`s still not what i wanted.Sorry if i didn`t put it clear.
For the Bar[0], i need EXACTLY the comparison - <or> ,for the this.super.Values[3][0] and the ONE,that this exact this.super.Values[3][0] was matched at the Bar[1].For now,the conditions you`ve added just do an arbitrary comparison - which one is grater/lesser another,not for the particular set.