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

How to, searching example for Add-On for Custom Connection / Custom Chart

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

    How to, searching example for Add-On for Custom Connection / Custom Chart

    Dear everyone,

    already searched but was not able to find examples or howto's.


    I would like to build an Addon, that creates a connection to a custom broker. Similar to that one here: https://github.com/BitMEX/ninjatrade...x#installation

    So that I then can create charts based on that broker pairs.

    If that is doing much work, it would also be sufficient to create an addon that just can create chats based on a data stream.

    Hope on your help and guidance.

    Thanks in advance.




    #2
    Hello Airwave,

    Welcome to the NinjaTrader forums!

    The API can be used to push real-time data to NinjaTrader through the External Data Feed.

    Below is a link to a forum post on the API.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello Airwave,

      The API can be used to push real-time data to NinjaTrader through the External Data Feed.

      Below is a link to a forum post on the API.
      https://ninjatrader.com/support/foru...626#post793626

      Thank you very much.
      Is this external data feed then appearing in the connections?
      Additionally, could I then create a chart based on the data in different time units?
      And can I work with indicators and strategies on that chart then?

      Thanks in advance.

      Cheers

      Comment


        #4
        Hello Airwave,

        The External Data Feed can be added as a connection.




        Push through real-time tick data and this can be used to build any bar type in real-time, the same as if the ticks were coming from a connected data provider.

        Yes, real-time data from any source will build a chart. Yes, indicators and strategies can use real-time data that is building a chart.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thank you so much :-)

          Is there probably an sample C# project?

          Thanks in advance.

          Comment


            #6
            Hello Airwave,

            Yes, the link I have provided you does have a sample project.

            May I confirm you have reviewed the forum post I have linked you?
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_ChelseaB View Post
              Hello Airwave,

              Yes, the link I have provided you does have a sample project.

              May I confirm you have reviewed the forum post I have linked you?
              Ah yes, the Ninja8API.zip . Wasn't shure out of the discussion, that this is example is catching the same problem...

              Thank you very much again.

              Comment


                #8
                Hey ChelseaB,
                Hey All,

                I know had the time to try the Ninja8API.zip (https://ninjatrader.com/support/foru...etch?id=886889) out of upper post.

                Happy to say, that I got the applications running in my environment and the process of receiving the LAST() value from an open chart is working fine.

                But within the process of sending an individual symbol to ninja, the chart keeps staying empty, even the application confirms sending with a success.

                Think I'm doing something wrong and I hope you could help me please.

                Could you point me in the right direction please?

                Thanks you very much in advance.

                Click image for larger version

Name:	2021-01-06 17_18_31-Clipboard.png
Views:	380
Size:	101.4 KB
ID:	1135344
                Click image for larger version

Name:	2021-01-06 17_20_32-Window.png
Views:	373
Size:	50.0 KB
ID:	1135345

                Click image for larger version

Name:	2021-01-06 17_21_54-Window.png
Views:	354
Size:	15.1 KB
ID:	1135346

                Click image for larger version

Name:	2021-01-06 17_22_47-Window.png
Views:	351
Size:	49.7 KB
ID:	1135347


                Comment


                  #9
                  Hello Airwave,

                  I've run the release on a test machine with XXXB and this is working with out issue.


                  Are you testing this during market hours or are you using the Default 24/7 trading hours template?

                  Do you have NinjaTrader 7 open?
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #10
                    Hi ChelseaB,

                    ah, see here what I've done:



                    Found out, that it has to do with the market history data...
                    When this is send it stops working.

                    Maybe wrong format?

                    Comment


                      #11
                      Hello Airwave,

                      This video shows data being received. This means it works.

                      The sample project does not have advanced logic and is just the bare bones minimum to send data.

                      There may be more logic necessary to remove subscriptions and then re-add them.
                      Chelsea B.NinjaTrader Customer Service

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by judysamnt7, 03-13-2023, 09:11 AM
                      4 responses
                      59 views
                      0 likes
                      Last Post DynamicTest  
                      Started by ScottWalsh, Today, 06:52 PM
                      4 responses
                      36 views
                      0 likes
                      Last Post ScottWalsh  
                      Started by olisav57, Today, 07:39 PM
                      0 responses
                      7 views
                      0 likes
                      Last Post olisav57  
                      Started by trilliantrader, Today, 03:01 PM
                      2 responses
                      21 views
                      0 likes
                      Last Post helpwanted  
                      Started by cre8able, Today, 07:24 PM
                      0 responses
                      10 views
                      0 likes
                      Last Post cre8able  
                      Working...
                      X