Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Make the lines interoperable

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

    Make the lines interoperable

    hi,

    Make the lines interoperable

    You can add as feature request this?

    If the price touches the drawn line, call an event that returns the list of lines touched

    #2
    Hello,

    Thank you for the post.

    I wanted to get more details on the feature request. Are you asking for an Override similar to OnBarUpdate but for price crosses on objects?

    If so, generally you would do this yourself using logic and OnBarUpdate from the indicator you are creating. http://ninjatrader.com/support/helpG...ub=drawobjects

    If I have misunderstood and this is for manually applying lines in some what could you please clarify?


    I look forward to being of further assistance.

    Comment


      #3
      i give you an example ...

      See pics....there are lines draw by code and lines draw by hand..

      if price crosses these lines, I want a list of the lines that have been touched by the price ( List<DrawObject> can to be returned )
      Attached Files

      Comment


        #4
        Hello turbofib,

        To detect if a line has been crossed by the price on the current bar, logic is needed to determine the slope of the line, calculate a price for the previous bar, and then check to see if the current price on the current bar has crossed the calculated value for the previous bar.

        An example of this logic is in the NinjaTrader 7 LineAlert indicator.


        The logic would be the same for NinjaTrader while the syntax to loop through the objects would be slightly different. An example can be found in the help guide.



        Are you wanting to submit a feature request for a method that would calculate this automatically?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_ChelseaB View Post
          Hello turbofib,

          To detect if a line has been crossed by the price on the current bar, logic is needed to determine the slope of the line, calculate a price for the previous bar, and then check to see if the current price on the current bar has crossed the calculated value for the previous bar.

          yes....i know it...

          An example of this logic is in the NinjaTrader 7 LineAlert indicator.


          The logic would be the same for NinjaTrader while the syntax to loop through the objects would be slightly different. An example can be found in the help guide.



          Are you wanting to submit a feature request for a method that would calculate this automatically?
          yes
          I would like to have this feature

          Comment


            #6
            Hello turbofib,

            Your request for a method that detects when a line has been crossed is being tracked with ID #SFT-2585.

            Please note it is up to the NinjaTrader Development to decide if and when a request will be implemented.

            Thank you for your suggestion. Please let me know of any other requests you have for the NinjaTrader platform.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            630 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            364 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            566 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            568 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X