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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X