Austin, TX
Experience: Intermediate
Platform: NinjaTrader
Trading: Currencies
Posts: 162 since Jun 2009
Thanks Given: 57
Thanks Received: 248
|
I think the solution lies in the CountIF statement:
From Ninja help files
if (CountIf(delegate {return Close[0] > Open[0];}, 10) > 8)
EnterLong();
What this is saying is that if the close is greater than the open on more than 8 out of the last 10 bars, enter a long position.
The condition is in blue
if (CountIf(delegate {return Close[0] > Open[0];}, 10) > 8)
EnterLong();
|