Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

be notified when a position is open

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

    #16
    Unfortunately this is beyond the level of support we can provide. It is a complex process that will involve many details and high-level programming concepts. If you'd like to get started, you can take a look at the DLL function list here.
    AustinNinjaTrader Customer Service

    Comment


      #17
      ok. I was able to generate the following code

      public static class PlatformInvoke
      {
      [DllImport("NtDirect.dll")]
      public static extern double MarketData(string instrument, int type);

      [DllImport("NtDirect.dll")]
      internal static extern int _flushall();

      [DllImport("NtDirect.dll")]
      public static extern int Connected(int showMessage);

      [DllImport("NtDirect.dll")]
      public static extern int MarketPosition(string instrument, string account);
      }

      but Connected doesnt return 0.... any idea why?

      Comment


        #18
        aversano, please make sure the Automated Trading Interface is enabled by going to File -> AT Interface and make sure it is checked.
        AustinNinjaTrader Customer Service

        Comment


          #19
          thanks! that did it.
          how do I get something drawn using x and y coordinates?
          I tried DrawTextFixed but the textposition doesnt allow me to do that.

          Comment


            #20
            Drawing using x and y coordinates isn't supported. You'll have to override the plot method. You can search around the forums.. its definitely been done before. Another helpful keyword/method is ChartControl.
            AustinNinjaTrader Customer Service

            Comment


              #21
              To keep it simple, is there a way to obtain the y coordinate of the top of the chart?

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by cmoran13, 04-16-2026, 01:02 PM
              0 responses
              51 views
              0 likes
              Last Post cmoran13  
              Started by PaulMohn, 04-10-2026, 11:11 AM
              0 responses
              31 views
              0 likes
              Last Post PaulMohn  
              Started by CarlTrading, 03-31-2026, 09:41 PM
              1 response
              165 views
              1 like
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              100 views
              1 like
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              160 views
              2 likes
              Last Post CaptainJack  
              Working...
              X