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:	122
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:	72
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 NullPointStrategies, Today, 05:17 AM
          0 responses
          20 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          119 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          63 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          41 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          45 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X