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

launch .net form from NT7 strategy

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

    launch .net form from NT7 strategy

    Hello,
    Is it possible to launch a .net forms app through a Ninjatrader 7 strategy to submit orders and receive data?
    Or should I use the API and how so?
    Thanks!

    #2
    Hello smitty7,

    Thanks for your post.

    Launching a .NET forums app from a NinjaScript strategy in NT7 would go outside the scope of support we would be able to provide you with in the Support department at NinjaTrader.

    NinjaTrader does have an API available as a C# managed assembly. Support for the API is very limited.

    The Application Programming Interface (API) is available in NinjaTrader.Client.dll (managed) files to use in an external application to interface with NinjaTrader.

    Support for the API is limited from NinjaTrader Support. We are not able to assist with any code in an application external to NinjaTrader. We are able to detail the usage of any methods available from the API.

    Below I am providing a publicly available link to the help guide that lists the functions available to the API.

    Help Guide NT7 API functions: https://ninjatrader.com/support/help..._interface.htm

    Please also refer to this forum post link for more information about the NinjaTrader API — https://ninjatrader.com/support/foru...art#post793626

    On the forum, you can ask other developers in the community if anyone has tips for unsupported external application code.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Does the API support sending market depth to c#?
      Thanks

      Comment


        #4
        Hello smitty7,

        Thanks for your notes.

        It is only possible to set the best bid/ask with the API, not complete market depth.

        The function double MarketData(string instrument, int type) would be used to get the most recent price for the specified instrument and data type. 0 = last, 1 = bid, 2 = ask. You must first call the SubscribeMarketData() function prior to calling this function.

        The function int Ask(string instrument, double price, int size) sets the ask price and size for the specified instrument.

        The function ​int Bid(string instrument, double price, int size) sets the bid price and size for the specified instrument.

        Please let us know if we may assist further.​
        Brandon H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Haiasi, 04-25-2024, 06:53 PM
        2 responses
        16 views
        0 likes
        Last Post Massinisa  
        Started by Creamers, Today, 05:32 AM
        0 responses
        4 views
        0 likes
        Last Post Creamers  
        Started by Segwin, 05-07-2018, 02:15 PM
        12 responses
        1,785 views
        0 likes
        Last Post Leafcutter  
        Started by poplagelu, Today, 05:00 AM
        0 responses
        3 views
        0 likes
        Last Post poplagelu  
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,407 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Working...
        X