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:

    Price alert indicator for NinjaTrader 8. The chart Alerts window functionality replaces the need for this NinjaTrader 7 indicator, but has been created at user request. See more about chart alerts: https://ninjatrader.com/support/helpGuides/nt8/alerts.htm Exported with 8.0.21.0. (Update March 11th, 2020 – Added re-arm ability, can be added to other panels, trigger price updates to line position […]


    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:

          Price alert indicator for NinjaTrader 8. The chart Alerts window functionality replaces the need for this NinjaTrader 7 indicator, but has been created at user request. See more about chart alerts: https://ninjatrader.com/support/helpGuides/nt8/alerts.htm Exported with 8.0.21.0. (Update March 11th, 2020 – Added re-arm ability, can be added to other panels, trigger price updates to line position […]


          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 ScottWalsh, Today, 06:52 PM
          3 responses
          17 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by trilliantrader, Today, 03:01 PM
          2 responses
          17 views
          0 likes
          Last Post helpwanted  
          Started by cre8able, Today, 07:24 PM
          0 responses
          1 view
          0 likes
          Last Post cre8able  
          Started by Haiasi, Today, 06:53 PM
          1 response
          4 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by ScottW, Today, 06:09 PM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Working...
          X