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

Write a function ?

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

    Write a function ?

    Hello !

    I have an indicator model (a curve). I would like to display 15 settings (so 15 curves) in the indicator part below my chart.

    The idea is : to create a function to not re-write the algo for each setting, for exemple f(Y), and display F(1), F(2), F(3) in plots etc...

    How could I create this kind of function ?

    Thanks a lot !

    #2
    Originally posted by After View Post
    Hello !

    I have an indicator model (a curve). I would like to display 15 settings (so 15 curves) in the indicator part below my chart.

    The idea is : to create a function to not re-write the algo for each setting, for exemple f(Y), and display F(1), F(2), F(3) in plots etc...

    How could I create this kind of function ?

    Thanks a lot !
    Use a for or while loop.

    Comment


      #3
      Hello After,

      Thank you for your post.

      As koganam suggests, a loop will provide the needed functionality for your idea. You can take a look at for loops at the following link on the MSDN: https://msdn.microsoft.com/en-us/library/ch45axte.aspx

      Please let me know if you have any questions.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by BarzTrading, Today, 07:25 AM
      2 responses
      14 views
      1 like
      Last Post BarzTrading  
      Started by devatechnologies, 04-14-2024, 02:58 PM
      3 responses
      19 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by tkaboris, Today, 08:01 AM
      0 responses
      3 views
      0 likes
      Last Post tkaboris  
      Started by EB Worx, 04-04-2023, 02:34 AM
      7 responses
      162 views
      0 likes
      Last Post VFI26
      by VFI26
       
      Started by Mizzouman1, Today, 07:35 AM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X