Replay Control Center programmatically - NinjaTrader | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader

Replay Control Center programmatically
Started:March 3rd, 2015 (05:45 PM) by grankus Views / Replies:265 / 0
Last Reply:March 3rd, 2015 (05:45 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Replay Control Center programmatically

Old March 3rd, 2015, 05:45 PM   #1 (permalink)
Elite Member
Futures Experience: Beginner
Platform: NinjaTrader 7
Favorite Futures: CL, TF
grankus's Avatar
Posts: 8 since Aug 2012
Thanks: 5 given, 0 received

Replay Control Center programmatically


I’m trying to control the Replay Control Center programmatically and other NinjaTrader internal items.
I have discovered that using .NET Reflector and Reflexil, you can get the all the internal items NinjaTrader, so in theory using “System.Reflection”, you can reach all the internal NT items.

First of all I’d like to use the “GoTo(DateTime newDate)” method inside the “NinjaTrader.Core.dll” that I want to include in a Strategy (I don’t know if this it’s possible or not)

This is what I have right now:

public void Test()
object[] arguments = new object[What DateTime format?];
Assembly assembly = Assembly.LoadFrom("NinjaTrader.Core.dll");
object mc =assembly.CreateInstance("NinjaTrader.Data.ReplayControlCenter");
Type t = mc.GetType(); 
BindingFlags bf = BindingFlags.Instance |  BindingFlags.NonPublic;
MethodInfo mi = t.GetMethod("GoTo", bf);
mi.Invoke(mc, arguments);
And I get this error:

**NT** Error on calling 'OnBarUpdate' method for strategy 'ST44/258f8d75debc46a8adc8c61eceadf3ec': Parameter count mismatch.

I tried different DateTime formats, without success.

Unfortunatelly I don’t have the skill to solve this right know but I’m learning little by little.

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > Replay Control Center programmatically

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
programmatically read the type of unit pintope NinjaTrader Programming 1 December 1st, 2014 10:51 AM
Open New Chart Programmatically AlBundy NinjaTrader Programming 2 July 30th, 2014 06:22 AM
Is it possible to programmatically pause NinjaTrader Market Replay? drunkcolonel NinjaTrader 4 May 5th, 2014 09:58 PM
Showing Position (from Strategies tab on Control Center) on the chart nanobiotech Elite Automated Trading 2 January 25th, 2014 04:13 AM
Automation for the programmatically impaired trader trendisyourfriend Elite Automated NinjaTrader Trading 3 August 19th, 2012 08:12 PM

All times are GMT -4. The time now is 03:54 AM.

Copyright © 2016 by All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts

Page generated 2016-10-23 in 0.06 seconds with 20 queries on phoenix via your IP