Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

data format problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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....

    #2
    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.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      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.... ;-)

      Comment


        #4
        Nice job, thanks for sharing here.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by hazylizard, Today, 08:38 AM
        2 responses
        8 views
        0 likes
        Last Post hazylizard  
        Started by geddyisodin, Today, 05:20 AM
        2 responses
        18 views
        0 likes
        Last Post geddyisodin  
        Started by Max238, Today, 01:28 AM
        5 responses
        47 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by giulyko00, Yesterday, 12:03 PM
        3 responses
        13 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by habeebft, Today, 07:27 AM
        1 response
        16 views
        0 likes
        Last Post NinjaTrader_ChristopherS  
        Working...
        X