Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

interactive trend line

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

    interactive trend line

    I would like to make the color of an indicator to be one color when the price is above a manually drawn horizontal trendline and another color when the price is below it.

    Are there any code examples that would show me how to access the trendline. I can easily code the color change, I just don't know how to refer to the trendline and if that is possible. Also, if this is possible, if I drag the trendline to another price level will the code I would use reflect this change or only the original location of the trendline?

    Thanks for your time.

    Safetrading

    #2
    Hello Safetrading,

    Thank you for your post.

    We have a tutorial that will walk you through these items at the following link: http://www.ninjatrader.com/support/h...om_drawing.htm

    Please let me know if I may be of further assistance.

    Comment


      #3
      Thanks for your quick reply. The link you sent me however shows the part fo the coding I already know how to do. It shows how to make the indicator appear in different colors based upon the indicator levels. What I need to know is how to tell the indicator the price level of a hand drawn horizontal line on the price chart. For example, if I draw a line at the price level of 85.25 and the price crosses that line, then I want the indicator to be aware of that so it can change color. I can code the different colors, but I don't know how to tell the indicator when the above event occurs.

      Comment


        #4
        Hello Safetrading,

        Thank you for that information.

        The following link will take you to the Version 7 Indciators section of the Support Forum to download the Alert For Manually Drawn Lines indicator that will show you within the code how to reference when price crosses a manually drawn line: http://www.ninjatrader.com/support/f...d=4&linkid=472

        Please let me know if you have any questions.

        Comment


          #5
          thanks so much, exactly what I needed.

          Have a nice day

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by zstheorist, Today, 07:52 PM
          0 responses
          3 views
          0 likes
          Last Post zstheorist  
          Started by pmachiraju, 11-01-2023, 04:46 AM
          8 responses
          149 views
          0 likes
          Last Post rehmans
          by rehmans
           
          Started by mattbsea, Today, 05:44 PM
          0 responses
          5 views
          0 likes
          Last Post mattbsea  
          Started by RideMe, 04-07-2024, 04:54 PM
          6 responses
          33 views
          0 likes
          Last Post RideMe
          by RideMe
           
          Started by tkaboris, Today, 05:13 PM
          0 responses
          5 views
          0 likes
          Last Post tkaboris  
          Working...
          X