Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Orders are not displayed in chart

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

    #16
    Originally posted by NinjaTrader_Kate View Post
    Hello zhiga,

    Thank you for your reply.

    Can you confirm if you have checked with IQ feed that you are enabled for the GC instrument?

    I'm not sure what you mean by "Also there is such strange detail, for Ticker @6B, the code doesn't work, but it's for @M6B." Could you provide a screenshot that illustrates? 6B would be British pound futures, and M6B would be micro British pound futures.

    Thanks in advance; I look forward to assisting you further.

    T
    Hello Kate,

    I have Subscription for real-time qoutes for CME, COMEX, NYMEX form IQ feed. And I have GC on Chart in NT ant it works fine. Do you mean that? Or there is some "mysterious" toggle switch to the instrument.)
    Please see attach.
    I check a few Symbols:
    are working :@MGC, @MES, @ES, @NQ, @MNQ, @YM, @M6E, @M6B, @RTY .
    not working: @GC, @6E, @6B

    So I can't figure out the ticker spelling error?

    Thank you.
    Attached Files

    Comment


      #17
      Hello zhiga,

      Thank you for your reply.

      Ah, the pictures of the script are helpful as I understand what you're trying to do now.

      The ones you mention are not working have different symbol mapping for IQ feed than the actual symbol name. For GC, try QGC (no @ sign). For 6E, try @EU. Finally, for 6B, try @BP.

      You can check the symbol mapping for any given instrument under Tools > Instruments. Use the search box at the top to find the instrument you wish, then double click on it in the list to open the instrument information. If you scroll down you'll find the symbol mapping for IQ feed listed.

      Please let us know if we may be of further assistance to you.

      Comment


        #18
        Hello,

        I am trying to find the API for version 8, but the page is no longer available. Where can I find this?

        Thanks.

        Comment


          #19
          Hello techsigma,

          Thanks for your note.

          Information about the NinjaTrader 8 API could be found on the forum thread linked below.

          https://ninjatrader.com/support/foru...art#post793626​​

          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 NT8 API functions:
          <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

          Comment


            #20
            Originally posted by NinjaTrader_BrandonH View Post
            Hello techsigma,

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

            Help Guide NT8 API functions:
            https://ninjatrader.com/support/help...nctions​
            I was able to decompile Ninjatrader.Client.dll. Am I able to add functions/commands to the .dll? For instance it'd be nice to be able to check to see if I have enough "Excess Initial Margin" before opening up a new position on another symbol or accessing the "Days until Rollover" values. Or being able to rollover the contract. I'm guessing the answer is no, since there'd likely need to be modifications needed on the Ninjatrader desktop app itself to accept the new commands? Or is there a better way to do this? Like creating my own .dll addon that creates it's own socket for my external app to communicate with NT? I would think something like this might already exist? Eventually I guess my best bet is to convert my strategy to C# NT addon, but unfortunately I spent a lot of time creating my strategy on TV in pinescript.

            Comment


              #21
              Hello ilikerolls,

              Thanks for your notes.

              This is unsupported and would be up to your own discretion. We would not be able to assist with any errors or unexpected behaviors that may occur.

              Ultimately, it goes outside the scope of support we would be able to provide you with in the Support department at NinjaTrader.

              The forum thread will be open for other community members to share their insights on the topic.
              <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

              Comment


                #22
                Originally posted by ilikerolls View Post

                I was able to decompile Ninjatrader.Client.dll. Am I able to add functions/commands to the .dll? For instance it'd be nice to be able to check to see if I have enough "Excess Initial Margin" before opening up a new position on another symbol or accessing the "Days until Rollover" values. Or being able to rollover the contract. I'm guessing the answer is no, since there'd likely need to be modifications needed on the Ninjatrader desktop app itself to accept the new commands? Or is there a better way to do this? Like creating my own .dll addon that creates it's own socket for my external app to communicate with NT? I would think something like this might already exist? Eventually I guess my best bet is to convert my strategy to C# NT addon, but unfortunately I spent a lot of time creating my strategy on TV in pinescript.
                Hi ilikerolls, did you figure out how to add functions or commands to the .dll?

                I'm looking for a way to control the on/off of a strategy and read its PnL.

                Comment


                  #23
                  Originally posted by JohnShiu View Post

                  Hi ilikerolls, did you figure out how to add functions or commands to the .dll?

                  I'm looking for a way to control the on/off of a strategy and read its PnL.
                  I'm sorry I gave up on this idea. I was trading externally from Tradingview and ultimately my solution was to just rewrite the strategies in NT's C# as their backtesting/optimization software & everything else was much better. Although it sounds like your strategies are already written in NT C#. idk how good your programming is? But here's some suggestions if it's decent.

                  1. Check to see if anyone has already written code to do this in NinjaTraders Ecosystem. I'd bet they have done at least some version of what you're thinking about with code that you could modify to suit your exact needs. https://ninjatraderecosystem.com/

                  2. Build this into your strategies. It's not uncommon at all to have some sort of logic in your strategy to shut the strategy down after it reaches X losses or whatever metric you want to base it off of. Check out the CloseStrategy() method​ https://ninjatrader.com/support/help...sestrategy.htm to shutdown the strategy. If you go this route you maybe consider using a Partial Class for the base Strategy to make this available to all of your strategies & give it a set of parameters of when to enable/disable this functionality. Or create your own StrategyPnLLimiter Class that inherits from Strategy that adds this functionality. And u can choose which strategies you'd want to work with this functionality by inheriting from StrategyPnLLimiter instead of Strategy directly. Note that I've not tried using this method yet, but idk why it shouldn't work?
                  Partial classes and members in C# split the definition of a class, a struct, an interface, or a member over two or more source files.


                  3. Consider creating an AddOn if you're looking for something a little more visual & communicate externally.https://ninjatrader.com/support/help...nt8/add_on.htm

                  Comment


                    #24
                    Hello Kate,

                    A search turned up your reply to BobyGill below. The API you described is exactly what I have been searching for. The symbols are setup in the Instruments window by defaullt in NT8. Live data is available externally. Just needed the bridge.

                    Could you please post a link to the Ninjatrader API? A link to instructions would help also.

                    Thank you




                    Originally posted by NinjaTrader_Kate View Post
                    Hello BobyGill,

                    Thank you for your reply.

                    Our API will allow you to pump data for any instrument you wish as long as the instrument is set up in the Instruments window.

                    Please let us know if we may be of further assistance to you.




                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by mlarocco, 06-20-2025, 11:12 AM
                    1 response
                    46 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Started by futurenow, 12-06-2021, 05:49 PM
                    19 responses
                    1,025 views
                    0 likes
                    Last Post Redders
                    by Redders
                     
                    Started by mathfrick2023, 05-08-2025, 12:51 PM
                    8 responses
                    139 views
                    0 likes
                    Last Post Yogaman
                    by Yogaman
                     
                    Started by several, 04-22-2025, 05:21 AM
                    1 response
                    296 views
                    0 likes
                    Last Post Lukasxgtx  
                    Started by NTEducationTeam, 06-12-2025, 02:30 PM
                    0 responses
                    54 views
                    0 likes
                    Last Post NTEducationTeam  
                    Working...
                    X