Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop drawing once price closes above/below a line

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

    Stop drawing once price closes above/below a line

    Hi guys

    I have recently compiled a simple indicator that plots a mid-point line (DrawLine()). Is there a way I can make the line to stop once price crosses and closes above it? I attached a picture to show what I'm talking about

    Thanks!
    Vladi
    Attached Files

    #2
    Hello,

    Thank you for the question.

    It would be easiest to see what you have already put in place to provide a suggestion, there are a few different ways you could check that the price has crossed.

    To start with, if you are currently using the Price series to draw the line, you could likely use the same series to check a CrossAbove or CrossBelow for a price value:



    This could additionally be accomplished by checking conditions and using variables, again it would be better to see what you currently have and recommend something based on that.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Originally posted by Scalper85 View Post
      Hi guys

      I have recently compiled a simple indicator that plots a mid-point line (DrawLine()). Is there a way I can make the line to stop once price crosses and closes above it? I attached a picture to show what I'm talking about

      Thanks!
      Vladi
      Exact question answered here, with the relevant code posted.

      ref: http://ninjatrader.com/support/forum...78&postcount=1

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by funk10101, Today, 09:43 PM
      0 responses
      6 views
      0 likes
      Last Post funk10101  
      Started by pkefal, 04-11-2024, 07:39 AM
      11 responses
      37 views
      0 likes
      Last Post jeronymite  
      Started by bill2023, Yesterday, 08:51 AM
      8 responses
      44 views
      0 likes
      Last Post bill2023  
      Started by yertle, Today, 08:38 AM
      6 responses
      26 views
      0 likes
      Last Post ryjoga
      by ryjoga
       
      Started by algospoke, Yesterday, 06:40 PM
      2 responses
      24 views
      0 likes
      Last Post algospoke  
      Working...
      X