PDA

View Full Version : Stateful OnBarUpdate


kgillis23
05-29-2007, 05:29 PM
I need to persist and change "state" between calls to OnBarUpdate. Is there some way for me to know when or if I no longer have an active Long or Short?

NinjaTrader_Ray
05-29-2007, 08:08 PM
I am likely missing the point of your question but could you not use Position.MarketPosition ?

http://www.ninjatrader-support.com/HelpGuideV6/MarketPosition.html

kgillis23
05-30-2007, 11:01 AM
Just what I needed... thanks for the quick reply.