Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MouseMove event

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

    #31
    Hey Guys,

    Great work here.

    I am trying to modify the use of this a bit to draw a few horizontal lines rather than a click and drag line. I notice that using the DrawLine function will only draw 1 line, regardless how how many times it is called. I am using a different tag for each draw object.

    Anyone else have this problem? Any idea's why this is?

    Thanks
    mrlogik
    NinjaTrader Ecosystem Vendor - Purelogik Trading

    Comment


      #32
      mrlogik,

      NinjaScript DrawLine() is a new line per tag. If you are using the Plot override, that is a completely different story as that is using C# graphics.
      Josh P.NinjaTrader Customer Service

      Comment


        #33
        Yes, I am using the Plot override.

        I understand that this is outside of the scope as to what you provide support for.
        mrlogik
        NinjaTrader Ecosystem Vendor - Purelogik Trading

        Comment


          #34
          Originally posted by mrlogik View Post
          Hey Guys,

          Great work here.

          I am trying to modify the use of this a bit to draw a few horizontal lines rather than a click and drag line. I notice that using the DrawLine function will only draw 1 line, regardless how how many times it is called. I am using a different tag for each draw object.

          Anyone else have this problem? Any idea's why this is?

          Thanks
          This is not my code i found it on other Forum, but maybe this help you or give you some hints
          Attached Files

          Comment


            #35
            Originally posted by piersh View Post
            ok, here's what i have.

            Alt+right-click-drag to draw lines:
            Tweeked this to work on Panel 1 when multi-charted (NT 7.b22). Still won't X-scale correct on a Panel 2 (seems to be getting some info from the first panel).
            Attached Files

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            181 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            334 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            258 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            358 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            187 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X