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 algospoke, Yesterday, 06:40 PM
      2 responses
      19 views
      0 likes
      Last Post algospoke  
      Started by ghoul, Today, 06:02 PM
      3 responses
      14 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      44 views
      0 likes
      Last Post jeronymite  
      Started by Barry Milan, Yesterday, 10:35 PM
      7 responses
      20 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by AttiM, 02-14-2024, 05:20 PM
      10 responses
      180 views
      0 likes
      Last Post jeronymite  
      Working...
      X