Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart Trader Addon

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

    Chart Trader Addon

    Hi,

    I'm trying to code an addon for chart trader that allows me to launch my own algorithmic orders that are based on my proprietary research. I've added some controls to ChartTrader panel in an indicator code (strategies seem to block ChartTrader). I have added another namespace NinjaTrader.Strategy and inside that I have a class that is derived from Strategy class. I have an object of this strategy class on my indicator class. When I need to launch orders I call a method of this strategy class. Inside that method I have defined order entry like this:

    EnterShortLimit(quantity, price - slippage * ticksize);

    I also tried to switch unmanaged boolean to true and:

    SubmitOrder(0, OrderAction.Buy, OrderType.Limit, quantity, entryprice, 0, "", "");

    Either of these expressions throws an exception "Object reference not set to an instance of an object."

    Is there no way I can launch orders from indicator? Alternatively, can I access Chart Trader somehow using stategy instead of indicator?

    Can I call AT interface from ninjascript to submit orders?

    This is a screenshot of the modified Chart Trader:

    World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.

    #2
    rounder,

    Unfortunately this would be unsupported. There is no supported way to send orders from an indicator.
    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X