Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Constrain Trendlines Key

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

    Constrain Trendlines Key

    Hello

    I can't find the Constrain Trendline to X or Y axis key?

    Usually Drawing Software if you hold down Ctrl or Shift or Alt and drag a line the key will constrain or snap a drawing in progress line to the dominant movement axis.
    For drawing straight lines without having to be precise and then having to waste time trying to be precise and then giving up and having to open up the properties inspector and copy the start anchor value to the end anchor value. Its a lot of inconvenience and time that could be eliminated by hitting just one key.

    Has Ninjatrader 8 not got an implimentation of this?

    Thanks



    Last edited by SmartArtsStudio; 03-01-2023, 04:52 AM.

    #2
    Hello SmartArtsStudio,

    You can configure 'Snap mode' to Price and anchor points of drawing tools will snap to price (rounded to the nearest tick).

    Please right click in the chart and select Drawing Tools-->Snap Mode-->Price. If you now draw a Line drawing object horizontally, the 2nd anchor point will snap to the same value of the first anchor point.

    Comment


      #3
      Hello

      Thankyou. Snap is good for the origin, but no good for the destination anchor, lines into the future where there is nothing to snap to (and you want it time limited not to infinity)... or to the past where it wants to snap to a candles when you what you want is a straight line.

      I can modify the drawing tool myself to
      1) Check for a control key press
      2) Calculate rise over run to determine dominante axis movement.
      3) Enter Origin coordinate for the other axis coordinate.

      It'll probably only take an hour for me to figure out the source code.
      Which is why I was checking first. Such a simple feature to impliment... I was sure I must have been missing something.

      Can you add it as a feature request. I am sure others will love it too.

      Thanks
      Last edited by SmartArtsStudio; 03-01-2023, 09:10 PM.

      Comment


        #4
        Originally posted by NinjaTrader_Jason View Post
        Hello SmartArtsStudio,

        You can configure 'Snap mode' to Price and anchor points of drawing tools will snap to price (rounded to the nearest tick).

        Please right click in the chart and select Drawing Tools-->Snap Mode-->Price. If you now draw a Line drawing object horizontally, the 2nd anchor point will snap to the same value of the first anchor point.
        I am not finding that it does. For me the second anchor stays where I second click.

        Comment


          #5
          This works for me when I test it. When I draw a Line, the first and second anchor point snap to price.

          You will have to draw the Line horizontally - the second anchor point does not automatically get placed at the same value of the first anchor point.

          If I do this without Snap mode set to Price, it is much harder to draw a Line horizontally. It might look horizontal, but then when I check the values under Data, it is usually slightly different.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          66 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          36 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          59 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          62 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          53 views
          0 likes
          Last Post CarlTrading  
          Working...
          X