PDA

View Full Version : How to count when condition has been met multiple times.


alcamie
04-29-2009, 09:08 PM
Hi.

I am trying to workout how programatically to do this :

/// 2. If (IndicatorW > IndicatorX> IndicatorY > IndicatorZ) and if candle Close has closed > IndicatorW at least twice in a row but not Closed > IndicatorX then ExitPosition when Ask crosses below IndicatorY

Cheers

chris

NinjaTrader_Bertrand
04-30-2009, 04:25 AM
Hi Chris, did you already look into CountIf() for this? - http://www.ninjatrader-support.com/HelpGuideV6/CountIf.html