Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

can I read parameters from other indicators on the chart?

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

    can I read parameters from other indicators on the chart?

    is there a way to read the parameters from an indicator that is on the chart?

    I wrote a signal indicator that looks at a variety of other indicators and when I get a combination of conditions that I have as filters in the signal indicator, it plots a vertical line on the chart so I can evaluate whether the combination gives me a good signal. This part works fine (see attached image)

    One thing that would help would be if I could read the parameters of the indicators on the chart and make sure my signal indicator was using the same parameters. For example, I might have my MACD window set to 12, 26, 9. But I left 10, 20, 30 as the MACD parameters for my signal indicator. then when I look at the signal indicator it doesn't makes sense.

    I can change them in the signal indicator to match, but a lot of times its easier to play with the chart indicator so I can see the results of the change.

    thanks for the help

    World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.





    #2
    Start here.

    Comment


      #3
      Hello cre8able,

      Thanks for your post.

      ChartControl.Indicators collection will represent all indicators that are added to the chart. Extracting what the indicator parameters are would involve checking what the public properties of each indicator are.

      There would not be a good way to check the public properties of an indicator unless you knew the exact names of the public properties of each indicator you are checking, or if you used Reflection. Reflection is an advanced C# concept which would be outside our scope of support for providing assistance with NinjaScript.

      If any other community members want to share show you can use Reflection to print out public properties and their values, they are welcome to chime in and provide that detail.

      We look forward to assisting.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      628 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      359 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      562 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      568 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X