Announcement

Collapse
No announcement yet.

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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      227 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      145 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      159 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      237 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      197 views
      0 likes
      Last Post CarlTrading  
      Working...
      X