I have successfully been able to make two or more charts share live values between each other within the Tradestation, Multicharts and InvestorRT platforms. This is without a third party go-between such as Excel. With Tradestation and Multicharts I have used "GlobalVariables" (some use AllDataEverywhere or ADE) and this function is already prebuilt into InvestorRT using V# variables.
However, since NinjaTrader is my preferred platform I wished to do the same thing.
Why would I wish to do this? Lets say I have a Weekly chart with a 50EMA on it and I wish to know the current value to plot on my 100 tick chart. I do not wish of course to take the usual course of adding at least 50 weeks of data onto my 100 tick chart. Of course this example is basic but I'm sure you get my drift.
The image attached is my old InvestorRT 'Analyzer' or QuotePage that shows it's values using 'live' instant values from charts I have running in the background. There is no need to run multiple datas on the one chart. The same can be done in MC or TS via Global Variables.
The idea is to set a "Global Variable" in one indicator in a chart and Get the same variable within another.
bool SetDataInt(String name, int _value)
int GetDataInt(String name)
bool SetDataLong(String name, long _value)
long GetDataLong(String name)
bool SetDataFloat(String name, float _value)
float GetDataFloat(String name)
bool SetDataDouble(String name, double _value)
double GetDataDouble(String name)
bool SetDataString(String name, String _value)
Some NT ideas:
* Could a variable be set as "public' instead of private within an indicator and accessed by another in realtime?
* Windows Message Queuing?
* Singletons?
* Using dictionaries like this http://www.multicharts.com/discussio...p?f=19&t=45280
Please find included the necessary source code files for MC.net plus some documentation. Unfortunately I do not know enough how to do this for NT myself so please if anyone is so inclined to have a look that would be brilliant
Simon.
Comment