Announcement

Collapse
No announcement yet.

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.

    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.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          62 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          134 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          75 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          50 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X