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 GussJ, 03-04-2020, 03:11 PM
    11 responses
    3,229 views
    0 likes
    Last Post xiinteractive  
    Started by andrewtrades, Today, 04:57 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    7 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    441 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    12 views
    0 likes
    Last Post FAQtrader  
    Working...
    X