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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    46 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    31 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X