Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to Create an AddOn adding new "Default" Data Loaded settings

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

    How to Create an AddOn adding new "Default" Data Loaded settings

    Hello, wonder if anyone can tell me, if I was to create an AddOn, which loads a new data item by default to load on a new window being opened, is there a way to force NT to load in always in Global Simulation Mode based on installation of an AddOn? Say protected override void GlobalSimulationMode() { if (State == State.DataLoaded) globalSimulationMode = true; }

    Here is a link (Is it possible to enter a position using an indicator and NOT a strategy? - NinjaTrader Support Forum) to a thread ran back in beta which explained some settings which are available to be pre loaded in a new window. I want to include loading system defaults, loading based on AddOn settings, to set system wide defaults to be loaded when the AddOn is installed.

    Thank you.
    Last edited by LoganJKTrader; 08-06-2022, 07:13 AM.

    #2
    Hello LoganJKTrader,

    Unfortunately, this is not possible. Series<T> object types can only be used in Indicators and Strategies, and cannot be used in any other script type.

    For other script types, you can a BarsRequest to request data, however this data will be provided as a Bars object and not as a Series<T> object.
    https://ninjatrader.com/support/help...arsrequest.htm

    Below is a link to an example.
    https://ninjatrader.com/support/foru...208#post786208


    The forum thread you have linked, is about finding UIElements in a chart using Automation Ids. The ChartTrader selected account in a chart, can be used to submit orders using the Addon approach with <Account>.Submit().
    This is not related to global configuration settings.

    Setting GlobalSimulationMode or other settings from the Tools menu or Tools -> Options window, is not documented in the help guide or officially supported.

    The setting for this is Core.Globals.TradingOptions.IsGlobalSimulationMode , however, I wouldn't be able to say if this is read-only or if this would cause any issues when attempting to set.
    Use at your own discretion.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X