Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATI DLL Example - Close All Positions

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

    ATI DLL Example - Close All Positions

    I am looking for an example to call the DLL Interface from within NinjaTrader.

    Ultimately I'd like to close all positions of a specified symbol manually opened from an indicator in the current account.

    Is it available?

    Thank you!
    Gio


    #2
    Hello Gio,

    Below is a link to the support article on using the API and includes a sample project.


    The commands include a command to 'FLATTENEVERYTHING' however this would apply to all positions and orders on all instruments.
    To flatten a single instrument, it would be necessary to get the market position and submit an order in the opposite direction of the position.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    15 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    59 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    42 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    47 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    38 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X