code snippet handling OnMarketData event:
protected override void OnMarketData(MarketDataEventArgs e)
{
string exampleString = e.ToString();
}
Running this method in US may result in the following 'exampleString':
Instrument='CL 12-13 Nymex' Type=Last Price=94.88 Volume=1 Time=11/6/2013 1:28:13
The question is whether this string, in particular its price portion, will be formatted differently in Europe, for example French culture ( CultureInfo("fr-FR") ) will format decimal point separation with a comma instead. and thus it might be that the string could look like this
Instrument='CL 12-13 Nymex' Type=Last Price=94,88 Volume=1 Time=11/6/2013 1:28:13
This would be the case if the 'ToString()' method internally used a call to 'Price.ToString()' as Double.ToString() is culture specific and would return 94.88 in US and 94,88 in most european cultures.
It is important to know the answer to this question for anyone who develops applications for NinjaTrader with international audience in mind.
Comment