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

Excel to NT8 interface possibilities

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

    #16
    Originally posted by bltdavid View Post
    Welcome to the forums!

    I use and highly recommend EPPlus.

    The last free version 4.5.3.3 should work fine for your needs.
    bltdavid,

    Have you managed to link NinjaTrader 8 to EPPlus 7?

    Ninja produces an error when loading if I dump the EPPlus 7 dll in the bin\custom directory.
    I understand that I should be able to specify a non-commercial licence somewhere but I have no idea where or if this will remove the error I am getting.

    Regards,

    Comment


      #17
      Originally posted by MBScalper View Post
      Have you managed to link NinjaTrader 8 to EPPlus 7?
      No, I have not, but I've never tried.

      Originally posted by MBScalper View Post
      ​Ninja produces an error when loading if I dump the EPPlus 7 dll in the bin\custom directory.
      Have you added the DLL as a reference using the NinjaScript Editor?

      If not, try this Google search.

      ​Make sure the DLL you downloaded is targeted for .NET Framework 4.8,
      and not NetStandard, NetCore, etc.

      Originally posted by MBScalper View Post
      ​I understand that I should be able to specify a non-commercial licence somewhere but I have no idea where or if this will remove the error I am getting.

      I'm still using the last free version, which is 4.5.3.3.

      I thought everything after this version required you
      to actually purchase it -- whether or not they also
      offer a non-commercial license I have no idea.

      The free version works great to create a basic
      spreadsheet, which is all I ever needed, so I
      never bothered to upgrade.


      ​​

      Comment


        #18
        Thanks bltdavid,

        I did start to sign up for the latest version on the EPPlus site but it looked solely for the purpose of buying a commercial licence so I abandoned that process.

        I was able to download the correct 4.5.3.3 DLL, copy it to the correct bin\custom folder and add a reference from the editor.
        That produced no error when NT is loading so I think EPPlus is now installed correctly.

        The question I have is whether there is any sample code or reference manual out there for this version.
        Version 7 is nicely documented online of course but this I am sure is different than the one I have installed.

        I basically want to write a load of data to excel as my indicator runs as I don't want to keep any of this in memory as far as NT is concerned.
        I ideally want to be able to read some of this historical data from excel when scrolling back in the chart and will display some of it on screen using OnRender.

        So in essence, I want to
        - write some values to Excel on close of each bar
        - read these values when scrolling back in the chart.

        I can handle the chart navigation stuff, it is just the excel stuff that I am currently blind to.

        I just don't know where to find the syntax for doing what should be quite a simple task.

        Are you able to point me at a syntax reference or should I get Visual studio and interrogate the DLL code?

        Thanks for commenting earlier, I am one step further on

        ___

        note: This was the previous error when placing the EPPlus version 7 DLL in the bin\custom folder. This went away when I used the version 4.5.3.3

        Click image for larger version

Name:	EPPlus-7.0.9 Error.png
Views:	36
Size:	6.0 KB
ID:	1291962
        Last edited by MBScalper; 02-18-2024, 09:05 PM. Reason: Adding image of previous error when placing the EPPlus version 7 DLL in the bin\custom folder

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rbeckmann05, Yesterday, 06:48 PM
        1 response
        12 views
        0 likes
        Last Post bltdavid  
        Started by llanqui, Today, 03:53 AM
        0 responses
        6 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        10 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        15 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Working...
        X