Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 benmarkal, Today, 12:52 PM
            0 responses
            1 view
            0 likes
            Last Post benmarkal  
            Started by stafe, 04-15-2024, 08:34 PM
            11 responses
            58 views
            0 likes
            Last Post stafe
            by stafe
             
            Started by pechtri, 06-22-2023, 02:31 AM
            5 responses
            116 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by Tim-c, Today, 03:54 AM
            3 responses
            13 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by FAQtrader, Today, 12:00 PM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X