• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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:

    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 Newtrader101, Today, 03:54 PM
          1 response
          15 views
          0 likes
          Last Post NinjaTrader_ShawnB  
          Started by williamzz, Today, 03:28 PM
          0 responses
          7 views
          0 likes
          Last Post williamzz  
          Started by Robert87, Today, 11:07 AM
          0 responses
          14 views
          0 likes
          Last Post Robert87  
          Started by phta123, Today, 10:24 AM
          0 responses
          17 views
          0 likes
          Last Post phta123
          by phta123
           
          Started by sidviciousX, Today, 06:47 AM
          0 responses
          16 views
          0 likes
          Last Post sidviciousX  
          Working...
          X