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, 05-11-2026, 05:56 AM
    0 responses
    52 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    29 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    194 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    355 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    274 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X