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 algospoke, Yesterday, 06:40 PM
            2 responses
            23 views
            0 likes
            Last Post algospoke  
            Started by ghoul, Today, 06:02 PM
            3 responses
            14 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by jeronymite, 04-12-2024, 04:26 PM
            3 responses
            45 views
            0 likes
            Last Post jeronymite  
            Started by Barry Milan, Yesterday, 10:35 PM
            7 responses
            21 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by AttiM, 02-14-2024, 05:20 PM
            10 responses
            181 views
            0 likes
            Last Post jeronymite  
            Working...
            X