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

Impacting input dataseries from indicator

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

    Impacting input dataseries from indicator

    Hi, regarding the current input series:
    1. Is there a way my indicator can programmatically change the input series params (Period params such as value, value2 & BaseBarsPeriodType), including changing the current bar chart display?
    2. How can I get the current input dataseries param (instrument, BarsPeriodType, value, value2 & BaseBarsPeriodType) on State State.SetDefaults (to set the indicator defaults)?
    3. How can I get the current input dataseries param (instrument, BarsPeriodType, value, value2 & BaseBarsPeriodType) on State.Configure to update the current input series and to add additional Higher Timeframe series using AddDataSeries()?
    Many thanks for your kind support. It is the reason why I have chosen NinjaTrader as my platform of choice

    #2
    Hello Shai Samuel,

    It is not supported to change any Data Series information for a chart.

    You can use unsupported code to send keys.
    Below is a link to a script that does this.
    https://ninjatraderecosystem.com/use...indications-2/

    You cannot get primary data series information in State.SetDefaults. The BarsArray, BarsPeriod, and Instrument will not be available until State.DataLoaded.
    https://ninjatrader.com/support/help...barsperiod.htm
    https://ninjatrader.com/support/help.../barsarray.htm
    https://ninjatrader.com/support/help...instrument.htm
    https://ninjatrader.com/support/help...tatechange.htm

    When adding an additional time frame, you will not be able to base this off the primary series. But you can use null as the instrument to add a series using the same instrument as the primary.
    https://ninjatrader.com/support/help...dataseries.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by galsermil, Today, 10:21 AM
    0 responses
    5 views
    0 likes
    Last Post galsermil  
    Started by MatthewLesko, Today, 08:42 AM
    1 response
    20 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by dallasstarsfan, Today, 08:22 AM
    1 response
    26 views
    0 likes
    Last Post dallasstarsfan  
    Started by 309338, Yesterday, 12:06 PM
    0 responses
    30 views
    0 likes
    Last Post 309338
    by 309338
     
    Started by GamarIsmayilova, Yesterday, 01:14 PM
    3 responses
    25 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X