|
Shenandoah Valley, VA
Experience: Advanced
Platform: NT8
Broker: NinjaTrader introduced to Dorman
Trading: ES, CL, 6E, ZN
Posts: 14 since Jan 2011
Thanks Given: 5
Thanks Received: 3
|
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?
|