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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      142 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      81 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      125 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      120 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      98 views
      0 likes
      Last Post CarlTrading  
      Working...
      X