Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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:

    Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.

    #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 mattbsea, Today, 05:44 PM
    0 responses
    4 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    31 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    2 views
    0 likes
    Last Post tkaboris  
    Started by GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,282 views
    0 likes
    Last Post Leafcutter  
    Started by WHICKED, Today, 12:45 PM
    2 responses
    20 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Working...
    X