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

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 xiinteractive, 04-09-2024, 08:08 AM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by Johnny Santiago, 10-11-2019, 09:21 AM
    95 responses
    6,193 views
    0 likes
    Last Post xiinteractive  
    Started by Irukandji, Today, 09:34 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by RubenCazorla, Today, 09:07 AM
    1 response
    6 views
    0 likes
    Last Post RubenCazorla  
    Started by TraderBCL, Today, 04:38 AM
    3 responses
    26 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X