PDA

View Full Version : Determine trade size in real-time and backtest


tomace
04-28-2009, 04:17 PM
Hi,

There may be a simple answer to this, but I can't seem to find it.

I want to be able to feed in the last traded size (or print) on the ES into a strategy. I only need to know the size and whether it was a sell or buy. I'd need to do this with CalculateOnBarClose = false, I assume.

If this is possible, I'm assuming NT wouldn't be able to backtest on this.

Please let me know if anyone can help or point me in the right direction.
Thanks!
Rick

NinjaTrader_Bertrand
04-29-2009, 04:23 AM
Hi Rick, for realtime use you could look into OnMarketData() for this - http://www.ninjatrader-support.com/HelpGuideV6/OnMarketData.html

tomace
04-29-2009, 04:43 PM
Thanks, that seems to work for what I need now!