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)
Embarrassed at the simplicity, but I don't get it - C# basic syntax
At best I'm teaching myself a little programming by hacking away building indicators, but basically, I'm stumble around trying different things till something works.
I have looked through google etc, and I don't understand why this statement doesn't work.... I must be missing something so basic none of the articles I have read have helped me figure out what is wrong, and why what looks perfectly logical to me just won't compile.
I want to execute a series of statements only if the current bar is within a certain range... this comes up alot when initializing indicators.... so in my ignorance, I write..
if ( CurrentBar >=5 & <=7 )
{
statement
}
Would some kind soul explain to me why that doesn't work, and what I should use instead?
Can you help answer these questions from other members on NexusFi?