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 fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,406 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by Shai Samuel, 07-02-2022, 02:46 PM
        4 responses
        98 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by DJ888, Yesterday, 10:57 PM
        0 responses
        8 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        160 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        9 views
        0 likes
        Last Post Belfortbucks  
        Working...
        X