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 NullPointStrategies, Today, 05:17 AM
    0 responses
    52 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    48 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X