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

AddDataSeries question

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

    AddDataSeries question

    Hi

    I have read your documentation and understand that it is "unwise" to use parameters to set the AddDataSeries values. I want to create AddDataSeries whereby I can reset the values to different timeframes and different symbols without having to hardcode the values.

    For example I have;
    AddDataSeries("@USOIL", Data.BarsPeriodType.Minute, 10, Data.MarketDataType.Last);

    and would ideally like to make the symbol and timeframe value different, so in parameters I would enter "EURUSD" and 30.

    If I cannot use parameters is there any alternate way?

    Thanks

    #2
    Hello fishbed,

    There is not suggested or supported way, either through parameters or otherwise, to dynamically add/change data series however I have added your vote to the popular feature request SFT-882.

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DawnTreader, 05-08-2024, 05:58 PM
    13 responses
    44 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by jpeep, 08-16-2020, 08:31 AM
    15 responses
    497 views
    0 likes
    Last Post notenufftime  
    Started by ldanenberg, Yesterday, 03:19 PM
    2 responses
    12 views
    0 likes
    Last Post ldanenberg  
    Started by joselube001, Today, 12:17 PM
    2 responses
    12 views
    0 likes
    Last Post joselube001  
    Started by arangocj, Today, 12:37 PM
    1 response
    20 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X