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 Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              580 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              335 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              102 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              554 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              552 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X