Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help to import data

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

    Help to import data

    Hi

    I'm trying to import forex tick for EURUSD following the procedures and formats indicated at this link:



    And I'm getting the following errors:
    2/11/2021 21:26 NinjaScript Import type 'NinjaTrader (beginning of bar timestamps)': Error on calling 'OnNextDataPoint' method: System.InvalidOperationException: Operation is not valid due to the current state of the object. at NinjaTrader.NinjaScript.ImportTypes.TextImportType .OnNextDataPoint() at NinjaTrader.NinjaScript.ImportTypes.ImportType.Imp ort(MarketDataType marketDataType, TimeZoneInfo sourceTimeZoneInfo, Boolean generateMinuteBars, Boolean generateDailyBars, IProgress progress)
    2/11/2021 21:26 Default EURUSD: Date/Time format error in line 0: Index and length must refer to a location within the string. Parameter name: length: '20210201 20000;1.21322;75'

    Attached is the file that I'm trying to upload, which is formatted as specified for Tick Format (Second Granularity)

    Please tell me what is wrong, I didn't find any issue.

    Thanks in advanced.

    Marcello
    Attached Files

    #2
    Hello mchiuminatto,

    Thank you for your post.

    Please ensure that the data in your file is formatted for NinjaTrader. The format for Tick data is yyyyMMdd HHmmss;price;volume

    Here is the first line of data from your file.

    20210201 20000;1.21322;75

    HHmmss uses 6 digits.

    Your HHmmss data only features 5 digits.

    In the Importing Help Guide. This is outlined in the section labeled "Understanding import file and data formats". Please open the link to our help and expand this section for more information on this topic.

    Please do not hesitate to contact us for any other NinjaTrader inquiries you may have.


    Shawn B.NinjaTrader Customer Service

    Comment


      #3
      Thank you Shawn, my bad!!!, that was the issue.

      Regards

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by bortz, 11-06-2023, 08:04 AM
      47 responses
      1,605 views
      0 likes
      Last Post aligator  
      Started by jaybedreamin, Today, 05:56 PM
      0 responses
      8 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      18 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      4 views
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      13 views
      0 likes
      Last Post Javierw.ok  
      Working...
      X