Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using/Leveraging Indicator Properties in a Strategy

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

    Using/Leveraging Indicator Properties in a Strategy

    Hello,

    I don't think this is possible, but I'll ask anyway.

    I have a custom indicator that is under development. It has 12 properties that determine behavior and appearance. At the same time, I'm developing a strategy around that indicator. When I make a change in the Indicator properties, I then, most times, need to make the same change in the Strategy properties.

    Is there way to leverage or display the Indicator properties in the Strategy and have them automatically passed to the indicator being using in the Strategy?

    Thanks!
    Matt

    #2
    Hello Matt,

    Thanks for your post.

    To clarify, you are wanting to access non-plotted values from the indicator when using it in a strategy. Is that correct?

    Please see this reference sample demonstrating how to expose indicator values that are not plots so you could access non-plotted values when using this indicator inside of another indicator or strategy.

    SampleBoolSeries: https://ninjatrader.com/support/help...alues_that.htm

    Let me know if I may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Hello NinjaTrader_BrandonH

      Thank you, that is not what I'm referring to. I'm referring to copying or bringing forward the configuration properties of an indicator into a strategy without having to code those properties in the strategy.

      For example, in the Woodies CCI, there are about 10 parameters and another 10+ plot settings.
      Click image for larger version

Name:	image.png
Views:	124
Size:	41.9 KB
ID:	1245430

      If I'm using that indicator in a strategy, it is quite tedious and error prone to code those properties in the strategy and the pass them in as parameters. Is there a way to display and then use those indicator properties in a strategy without duplicating them?

      Hopefully, that clears up my question.

      Thanks,
      Matt

      Comment


        #4
        Hello Matt,

        Thanks for the clarification.

        This could likely be accomplished using unsupported code to create a property changed event.

        Please review the forum thread below for information about how you might go about creating a property changed event.
        https://forum.ninjatrader.com/forum/...dsaddonexample

        Let me know if I may assist further.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          Thank you, NinjaTrader_BrandonH,

          While that is an interesting post, that is not what I'm looking for. Like I said, I don't think it is possible without some pre-compiler directives/processing. Ah, well... No biggie.

          Let me try again... I would like the Indicator parameters to automatically show in the Strategy parameters. Like so:

          Click image for larger version

Name:	image.png
Views:	74
Size:	159.6 KB
ID:	1245581

          Is it possible to do that?

          Thanks,
          Matt
          Last edited by StealthM93; 04-10-2023, 08:38 PM.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          47 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          23 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          33 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          51 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          42 views
          0 likes
          Last Post CarlTrading  
          Working...
          X