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

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.
    JesseNinjaTrader Customer Service

    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 Javierw.ok, Today, 04:12 PM
            0 responses
            4 views
            0 likes
            Last Post Javierw.ok  
            Started by timmbbo, Today, 08:59 AM
            2 responses
            10 views
            0 likes
            Last Post bltdavid  
            Started by alifarahani, Today, 09:40 AM
            6 responses
            40 views
            0 likes
            Last Post alifarahani  
            Started by Waxavi, Today, 02:10 AM
            1 response
            18 views
            0 likes
            Last Post NinjaTrader_LuisH  
            Started by Kaledus, Today, 01:29 PM
            5 responses
            15 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X