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 SalmaTrader, 07-07-2026, 10:26 PM
              0 responses
              36 views
              0 likes
              Last Post SalmaTrader  
              Started by CarlTrading, 07-05-2026, 01:16 PM
              0 responses
              20 views
              0 likes
              Last Post CarlTrading  
              Started by CaptainJack, 06-17-2026, 10:32 AM
              0 responses
              14 views
              0 likes
              Last Post CaptainJack  
              Started by kinfxhk, 06-17-2026, 04:15 AM
              0 responses
              20 views
              0 likes
              Last Post kinfxhk
              by kinfxhk
               
              Started by kinfxhk, 06-17-2026, 04:06 AM
              0 responses
              22 views
              0 likes
              Last Post kinfxhk
              by kinfxhk
               
              Working...
              X