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 )
Would some kind soul explain to me why that doesn't work, and what I should use instead?
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
The following user says Thank You to Big Mike for this post: