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 Stanfillirenfro, Today, 07:23 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by cmtjoancolmenero, Yesterday, 03:58 PM
      2 responses
      22 views
      0 likes
      Last Post cmtjoancolmenero  
      Started by olisav57, Yesterday, 07:39 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by cocoescala, 10-12-2018, 11:02 PM
      7 responses
      944 views
      0 likes
      Last Post Jquiroz1975  
      Started by oviejo, Today, 12:28 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X