PDA

View Full Version : Do not want multiple entries in same direction


RickStevenson1
03-04-2010, 08:26 AM
Can anyone help me with this issue? In my strategy I'm getting multiple entries after getting stoped out if the market is trending against me. I would like to be stopped out and then not enter again until the opposite postion is called.
My thought is this but I don't know how to code it:

// Look for last postion
if (LastPosition=short)
{
take no shorts
}
Is this posible to do?
Rick

NinjaTrader_Tim
03-04-2010, 08:50 AM
Hi RickStevenson1,

Please take a look at the TradesPerformance Class, that should get you on the right track.

More info at - http://www.ninjatrader-support.com/HelpGuideV6/helpguide.html?TradesPerformanceClass