NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 08-26-2010, 03:54 AM   #1
xenayoo
Senior Member
 
Join Date: Nov 2009
Location: Germany
Posts: 142
Thanks: 3
Thanked 8 times in 6 posts
Send a message via Skype™ to xenayoo
Default data format problem

Hi,

I am using Zen-Fire datafeed. Zen-Fire doesn't provide daily data. As a shortterm workaround I used 1440min Chart. But - depending of the local timezone the 'daily' bars may differ from real daily bars. So I want to wrote an Indicator, wich do this automatically.

So far - so good.

The first part works fine. There is just a little problem: My indicator exports values with comma and not point (I work in germany ;-) ). I can't import pricevalues with comma. How can i fix this issue caused of the localization of my computer?

thanks a lot

I don't want to change the localization....
xenayoo is offline  
Reply With Quote
Old 08-26-2010, 04:05 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

xenayoo, you would need to modify the exported file for example Excel to change the commas to the needed dot separator, or you could use NT7 where ZenFire would offer daily bars per default.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 08-26-2010, 08:59 AM   #3
xenayoo
Senior Member
 
Join Date: Nov 2009
Location: Germany
Posts: 142
Thanks: 3
Thanked 8 times in 6 posts
Send a message via Skype™ to xenayoo
Default

Thank you Bertrand, but that's not a good solution.

I now add a little Funktion:

Code:
.....
string DayOpen = FloatingPoint(OpenOfTheDay);
.....

public string FloatingPoint( double Vtc)
{
     string s = Vtc.ToString();
     s = s.Replace(",", ".");
     return s;
}
That's it.... ;-)
xenayoo is offline  
Reply With Quote
Old 08-26-2010, 09:02 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Nice job, thanks for sharing here.
NinjaTrader_Bertrand is offline  
Reply With Quote
Reply

Tags
daily data, export, streamwriter, zenfire

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting eSignal OnDemand output file format to NT historical data input format AnotherTrader Connecting 0 09-15-2009 07:21 AM
Replay data feed: Last Date on Format Data Series Dialogue atrader101 Miscellaneous Support 1 04-20-2009 05:14 PM
Format Data Series Bars Back Problem praveen_d Miscellaneous Support 3 08-08-2008 06:24 AM
Excel report format problem goover Historical NinjaTrader 6.5 Beta Threads 3 03-19-2008 08:31 AM
Format of Performance Data Bdixon Miscellaneous Support 2 02-19-2005 12:24 PM


All times are GMT -6. The time now is 02:36 PM.