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

Dash Style <Custom>

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

    Dash Style <Custom>

    In the plots section of many of my indicators I see a 'Custom' label.

    What and how is this used?

    Can you give me an example of how this can be used?

    Thanks

    #2
    Hello,

    Are you referring to code? Can you paste in the code you are referring to so I can see the context? If it is not code, take a screen shot and post that.
    DenNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Ben View Post
      Hello,

      Are you referring to code? Can you paste in the code you are referring to so I can see the context? If it is not code, take a screen shot and post that.
      The gray area in the image shows the CUSTOM dropdown item.

      THanks,
      Attached Files

      Comment


        #4
        Hello DavidHP,

        The dash style option will configure the dash style of the plot in question.

        Unfortunately I am not familiar with this indicator. I suggest to contact the creator or vendor of the indicator to check what style is used for 'Custom'.
        JasonNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Jason View Post
          Hello DavidHP,

          The dash style option will configure the dash style of the plot in question.

          Unfortunately I am not familiar with this indicator. I suggest to contact the creator or vendor of the indicator to check what style is used for 'Custom'.

          Jason,

          You don't have to be familiar with this indicator. I just used this one because it was the first one I opened.

          This CUSTOM setting is on EVERY indicator that uses PLOT lines in NT.
          It is something built into NT not into indicators.

          Perhaps you are familiar with Simple Moving Average?
          Here is an image of that.
          Attached Files

          Comment


            #6
            DavidHP, the custom option is used to define custom dashstyle patterns that would need to be defined in your indicator code.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Custom is part of the standard c# DashStyle enumeration, David. If you, for example, define a DashPattern yourself, DashStyle would be set to Custom.

              Regards
              Ralph

              Comment


                #8
                Originally posted by Ralph View Post
                Custom is part of the standard c# DashStyle enumeration, David. If you, for example, define a DashPattern yourself, DashStyle would be set to Custom.

                Regards
                Ralph
                Thanks Ralph, Bertrand,

                I figured that was the answer. I've just never seen any examples in the script archives.

                Do you know of any?

                Thanks,

                Comment


                  #9
                  Hi David,

                  I think this is the way to go:

                  Plot(), for example used like: Add(new Plot(Color.Green "ADX")) accepts a Pen() as parameter too.
                  Pen() accepts a DashPattern as parameter. A pen with a DashPattern would change DashStyle.Custom in something meaningful, I guess.

                  Regards
                  Ralph

                  Comment


                    #10
                    In case anyone else is looking, I found this useful reference:

                    http://www.devx.com/dotnet/Article/32848

                    example is half way down the page.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by trilliantrader, 04-18-2024, 08:16 AM
                    5 responses
                    22 views
                    0 likes
                    Last Post trilliantrader  
                    Started by Davidtowleii, Today, 12:15 AM
                    0 responses
                    3 views
                    0 likes
                    Last Post Davidtowleii  
                    Started by guillembm, Yesterday, 11:25 AM
                    2 responses
                    9 views
                    0 likes
                    Last Post guillembm  
                    Started by junkone, 04-21-2024, 07:17 AM
                    9 responses
                    70 views
                    0 likes
                    Last Post jeronymite  
                    Started by mgco4you, Yesterday, 09:46 PM
                    1 response
                    14 views
                    0 likes
                    Last Post NinjaTrader_Manfred  
                    Working...
                    X