Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Strategy vs Indicator "Constant lines"

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

    Strategy vs Indicator "Constant lines"

    Hello

    I would like read values from Indicator "Constant lines" in a Strategy when value in Indicator will be updated/changed. Is it possible?
    So user can change value of Indicator while Strategy working and Strategy have to read New value and use it in calculation.
    How I can know that value of Indicator was changed?

    Thanks,
    Sergey

    #2
    Hello sergey_z,

    Thank you for your post.

    You couldn't just include the indicator in your strategy and get the values directly because if a user wanted to modify the line values it would require disabling and re-enabling the strategy. Instead, theoretically the indicator could be "separate" and then the strategy looks for specific drawing objects that the indicator makes. I recommend taking a look at this indicator that is publicly available on our User App Share - you could modify the part that looks for drawing objects for use in your strategy:

    https://ninjatraderecosystem.com/use...d/price-alert/

    Please let us know if we may be of further assistance to you.

    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      ok. thanks.
      Indicator will be not part of code of Strategy. Its like external object but Strategy have to read it, find specific name of Indicator and receive value from it object. This is idea.

      Comment


        #4
        its possible?

        Comment


          #5
          Hello sergey_z,

          Thank you for your replies.

          Yes, please refer to the example I've quoted below from my previous post to see how you could look for drawing objects drawn by the indicator in your strategy:

          Originally posted by NinjaTrader_Kate View Post
          Instead, theoretically the indicator could be "separate" and then the strategy looks for specific drawing objects that the indicator makes. I recommend taking a look at this indicator that is publicly available on our User App Share - you could modify the part that looks for drawing objects for use in your strategy:

          https://ninjatraderecosystem.com/use...d/price-alert/

          The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
          Please let us know if we may be of further assistance to you.
          Kate W.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by mattdowns1234, Today, 06:57 PM
          0 responses
          14 views
          0 likes
          Last Post mattdowns1234  
          Started by dgee949, Today, 06:26 PM
          0 responses
          24 views
          0 likes
          Last Post dgee949
          by dgee949
           
          Started by dgee949, Today, 05:58 PM
          0 responses
          30 views
          0 likes
          Last Post dgee949
          by dgee949
           
          Started by thepcmd, Today, 05:14 PM
          0 responses
          33 views
          0 likes
          Last Post thepcmd
          by thepcmd
           
          Started by xmess777, Today, 04:58 PM
          0 responses
          23 views
          0 likes
          Last Post xmess777  
          Working...
          X