Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Vortex signals when lines crossovered

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

    Vortex signals when lines crossovered

    Hi, I am trying to draw a vertical line when VIPlus and VIMinus lines get crossover.

    How can I find values of both lines?

    For example,

    valueP = Value of VIPlus
    valueM = Value of VIMinus

    if (CrossAbove(valueP(0), valueM(0), 1))
    Draw.VerticalLine(this, "MyVerticalLine", 0, Brushes.Blue);

    Help, Please.
    Thank you

    #2
    Hello patinyaeuro2543,

    Thanks for your post.

    You could set up this condition/action using the Strategy Builder and click the 'View code' button to see the generated syntax to accomplish this.

    In the Strategy Builder, create a crossover condition that compares the Vortex VIPlus plot with the Vortex VIMinus plot. Then create an action to draw a vertical line (Actions > add > Drawing folder > Vertical line). After setting up your condition and action, click the 'View code' button to see the generated syntax.

    See this help guide page for more information: https://ninjatrader.com/support/help...sOverCondition

    Let us know if we may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Thank you so much!!

      Comment


        #4
        Did you figure this out? I too want a indicator type setup that prints a Vertical line when they cross on the chart.

        Comment


          #5
          Hello SPXSlayer,

          The original code will work for that purpose however it has a Tag which is static meaning it doesn't change. You would also have to substitute the plots that were used for the indicators or values you are comparing. If you want to draw lines at all of the crossings you need to use "MyVerticalLine" + CurrentBar as the tag. You can also do this in the builder and click view code like it was previously noted.

          Comment


            #6
            Can you do this for me?

            Comment


              #7
              Hello SPXSlayer,

              You may need to change the price of the line as well, looking back at the example it seems the original user used 0 as the price. You would need to use a price if you want it to show up in the chart around the bars.

              If you need help with drawing i would suggest trying the strategy builder, you can configure conditions in that tool and also actions of drawing. It will generate the necessary code.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              547 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              323 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              99 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              543 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              545 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X