PDA

View Full Version : MarkerPosition within an Indicator


"CJS"
10-06-2010, 10:13 AM
Hi,

In the OnBarUpdate methode of an indicator can be evaluated the next condition?

if (Time[0].DayOfWeek==DayOfWeek.Monday
&& Position.MarketPosition==MarketPosition.Flat)
{

}

The indicator is not compiling well and the error is in the second contion.

Thanks

NinjaTrader_Josh
10-06-2010, 10:24 AM
Indicators cannot process positions and so this will not compile. Only strategies can check the strategy's own position. Indicators have no such concept.